Skip to content

Commit bfce03e

Browse files
committed
调整nginx的数据限制
1 parent a7ca79c commit bfce03e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

conf/nginx.conf

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ server
44
server_name go9999_v2;
55

66
index index.php index.html;
7-
root /Users/maker/Projects/go9999_v2/public;
7+
root /Users/maker/Projects/go9999_v2/public;
8+
9+
client_max_body_size 100m;
810

911
access_log /Users/maker/Projects/go9999_v2/logs/access.log combined;
1012
error_log /Users/maker/Projects/go9999_v2/logs/error.log debug;
@@ -14,11 +16,11 @@ server
1416
}
1517

1618
location ~ \.php$ {
17-
fastcgi_pass 127.0.0.1:9000;
18-
fastcgi_index index.php;
19-
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
19+
fastcgi_pass 127.0.0.1:9000;
20+
fastcgi_index index.php;
21+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
2022
fastcgi_param PATH_INFO $fastcgi_script_name;
21-
include fastcgi_params;
23+
include fastcgi_params;
2224
}
2325

2426
# security

0 commit comments

Comments
 (0)