php/docker/etc/nginx/conf.d/sf.conf.disabled

32 lines
758 B
Plaintext
Raw Permalink Normal View History

2021-03-28 18:50:39 +00:00
server {
server_name _;
root /var/www/public;
2021-06-13 10:21:21 +00:00
client_max_body_size 256M;
client_body_temp_path /tmp 1 2;
2021-03-28 18:50:39 +00:00
location / {
# try to serve file directly, fallback to index.php
try_files $uri /index.php$is_args$args;
}
location ~ ^/index\.php(/|$) {
fastcgi_pass 127.0.0.1:9000;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
2021-10-25 08:25:30 +00:00
send_timeout 1800;
fastcgi_read_timeout 1800;
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
include fastcgi_params;
2021-03-28 18:50:39 +00:00
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
internal;
}
location ~ \.php$ {
return 404;
}
}