19 lines
454 B
Plaintext
19 lines
454 B
Plaintext
server {
|
|
listen 80;
|
|
server_name __DOMAIN__;
|
|
root /var/www/html;
|
|
index index.php index.html;
|
|
|
|
location / { try_files $uri $uri/ /index.php?$args; }
|
|
|
|
location ~ \.php$ {
|
|
include fastcgi_params;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
fastcgi_param HTTP_X_FORWARDED_PROTO $http_x_forwarded_proto;
|
|
fastcgi_param HTTP_X_FORWARDED_HOST $host;
|
|
fastcgi_pass php:9000;
|
|
}
|
|
|
|
client_max_body_size 50m;
|
|
}
|