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 / {
|
|
|
|
index index.php index.html;
|
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
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
location ~ \.php$ {
|
|
|
|
include fastcgi_params;
|
|
|
|
fastcgi_pass php:9000;
|
2017-03-29 09:24:59 -07:00
|
|
|
fastcgi_index app_dev.php;
|
2017-02-07 13:17:46 -08:00
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|