42 lines
989 B
Plaintext
42 lines
989 B
Plaintext
server {
|
|
listen 80;
|
|
server_name _;
|
|
|
|
root /var/www/html;
|
|
|
|
index index.html index.htm index.php;
|
|
|
|
charset utf-8;
|
|
|
|
location = /favicon.ico { access_log off; log_not_found off; }
|
|
location = /robots.txt { access_log off; log_not_found off; }
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.php;
|
|
}
|
|
|
|
sendfile off;
|
|
client_max_body_size 3000m;
|
|
|
|
location ~ \.php$ {
|
|
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
fastcgi_index index.php;
|
|
include fastcgi_params;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
fastcgi_intercept_errors off;
|
|
fastcgi_buffer_size 128k;
|
|
fastcgi_buffers 8 128k;
|
|
fastcgi_connect_timeout 300;
|
|
fastcgi_send_timeout 300;
|
|
fastcgi_read_timeout 300;
|
|
fastcgi_request_buffering off;
|
|
}
|
|
|
|
error_page 404 /index.php;
|
|
|
|
location ~ /\.ht {
|
|
deny all;
|
|
}
|
|
}
|