I can bypass "[emerg] open() "/opt/nginx/conf/proxy_params" failed (2: No such file or directory) in /opt/nginx/site-enabled/proxy.conf:8" by creating /opt/nginx/conf/proxy_params :
<code>
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 100M;
client_body_buffer_size 1m;
proxy_intercept_errors on;
proxy_buffering on;
proxy_buffer_size 128k;
proxy_buffers 256 16k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_max_temp_file_size 0;
proxy_read_timeout 300;
</code>
I had syntax error with ip_hash ==> ip_hash;
So why Nginx cannot understand parameter max_conns=1024 in upstreams.conf ?
<code>
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 100M;
client_body_buffer_size 1m;
proxy_intercept_errors on;
proxy_buffering on;
proxy_buffer_size 128k;
proxy_buffers 256 16k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_max_temp_file_size 0;
proxy_read_timeout 300;
</code>
I had syntax error with ip_hash ==> ip_hash;
So why Nginx cannot understand parameter max_conns=1024 in upstreams.conf ?