forked from ankitpokhrel/tus-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.conf
41 lines (32 loc) · 1009 Bytes
/
default.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
server {
listen 80;
server_name _;
root /var/www/html;
index index.html index.htm index.php;
charset utf-8;
location = /favicon.ico { log_not_found off; access_log off; }
location = /robots.txt { log_not_found off; access_log off; }
location /files {
try_files $uri $uri/ /server.php?$query_string;
}
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;
}
}