2017-02-07 13:17:46 -08:00
|
|
|
server {
|
|
|
|
listen 0.0.0.0:80;
|
|
|
|
|
|
|
|
access_log /var/log/nginx/host.access.log main;
|
|
|
|
error_log /var/log/nginx/host.error.log;
|
|
|
|
|
|
|
|
root /var/www/html;
|
|
|
|
|
|
|
|
location / {
|
2017-03-29 09:24:59 -07:00
|
|
|
try_files $uri /app_dev.php$is_args$args;
|
2017-02-07 13:17:46 -08:00
|
|
|
}
|
|
|
|
|
2017-04-09 18:08:01 -07:00
|
|
|
#location ~ \.php$ {
|
|
|
|
location ~ ^/(app_dev|config)\.php(/|$) {
|
|
|
|
fastcgi_pass php:9000;
|
|
|
|
fastcgi_split_path_info ^(.+\.php)(/.*)$;
|
2017-02-07 13:17:46 -08:00
|
|
|
include fastcgi_params;
|
2017-04-09 18:08:01 -07:00
|
|
|
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
|
|
|
fastcgi_param DOCUMENT_ROOT $realpath_root;
|
|
|
|
#fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
|
2017-02-07 13:17:46 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|