/var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
client_max_body_size 500m;
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
#gzip on;
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/vhosts/*/*.conf;
server {
client_max_body_size 500m;
server_name localhost;
disable_symlinks if_not_owner;
listen 80;
listen [::]:80;
include /etc/nginx/vhosts-includes/*.conf;
location @fallback {
client_max_body_size 500m;
error_log /dev/null crit;
proxy_pass http://127.0.0.1:8080;
proxy_redirect http://127.0.0.1:8080 /;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
access_log off ;
}
}
client_max_body_size 500m;
}
Возникла ошибка при работе с WWW-доменами. Синтаксическая ошибка: 'nginx: [emerg] "client_max_body_size" directive is duplicate in /etc/nginx/nginx.conf:52 nginx: configuration file /etc/nginx/nginx.conf test failed '
В чем проблема?
Издеваешься, да?
Обсуждают сегодня