start_sf5_project/docker_build/nginx/nginx.conf

27 lines
590 B
Nginx Configuration File
Raw Normal View History

2017-12-27 19:03:06 +00:00
server {
listen 80 default;
client_max_body_size 108M;
2021-02-18 12:55:13 +00:00
access_log /var/log/nginx/app.access.log;
2017-12-27 19:03:06 +00:00
2021-02-18 12:55:13 +00:00
root /var/www/app/public;
2017-12-27 19:03:06 +00:00
index index.php;
if (!-e $request_filename) {
rewrite ^.*$ /index.php last;
}
location ~ \.php$ {
2021-02-18 12:55:13 +00:00
fastcgi_pass php:9000;
2017-12-27 19:03:06 +00:00
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
2021-02-18 12:55:13 +00:00
fastcgi_param PHP_VALUE "error_log=/var/log/nginx/app_php_errors.log";
2017-12-27 19:03:06 +00:00
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
include fastcgi_params;
}
2021-02-18 12:55:13 +00:00
2017-12-27 19:03:06 +00:00
}