29 lines
644 B
Plaintext
29 lines
644 B
Plaintext
# Default server configuration
|
|
#
|
|
server {
|
|
listen 80 default_server;
|
|
|
|
index index.php;
|
|
root /var/www/public;
|
|
|
|
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;
|
|
}
|