我正在尝试在我的nginx配置文件中设置client_max_body_size.
server {
listen 80;
server_name ****.com;
root ****;
client_max_body_size 32m
location / {
try_files $uri /app.php$is_args$args;
}
location ~ ^/(app_dev|config)\.php(/|$) {
fastcgi_pass 127.0.0.1:9000;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
}
location ~ ^/app\.php(/|$) {
fastcgi_pass 127.0.0.1:9000;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
internal;
}
}
Run Code Online (Sandbox Code Playgroud)
我收到错误:/etc/nginx/sites-enabled/****.com中"client_max_body_size"指令中的参数数量无效
我的conf怎么了?
| 归档时间: |
|
| 查看次数: |
3014 次 |
| 最近记录: |