29 lines
711 B
Nginx Configuration File
29 lines
711 B
Nginx Configuration File
|
server {
|
||
|
listen 80;
|
||
|
server_name money;
|
||
|
index index.php;
|
||
|
# error_log /code/logs/error.log;
|
||
|
# access_log /code/logs/access.log;
|
||
|
root /code/public;
|
||
|
|
||
|
location / {
|
||
|
try_files $uri /index.php$is_args$args;
|
||
|
}
|
||
|
location /api {
|
||
|
try_files $uri /api/index.php$is_args$args;
|
||
|
# add_header "Content-Type" "application/json";
|
||
|
}
|
||
|
|
||
|
location ~ \.php {
|
||
|
try_files $uri =404;
|
||
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||
|
include fastcgi_params;
|
||
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||
|
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
|
||
|
fastcgi_param CONTENT_TYPE $content_type;
|
||
|
fastcgi_index index.php;
|
||
|
fastcgi_pass money-php:9000;
|
||
|
}
|
||
|
}
|
||
|
|