docker_zoo/docker/nginx/default

29 lines
640 B
Plaintext
Raw Normal View History

2020-11-01 19:09:40 +05:00
# Default server configuration
#
server {
listen 80 default_server;
index index.php;
2020-11-19 20:48:41 +05:00
root ${WEB_ROOT};
2020-11-01 19:09:40 +05:00
location / {
try_files $uri /index.php$is_args$args;
}
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_index index.php;
fastcgi_pass phpfpm:9000;
fastcgi_buffering off;
}
error_log stderr warn;
access_log off;
client_max_body_size 12m;
}