Hi All:<br><br>I met a configuation issue. the configuration is as following:(NGINX is V0.7.68) and upstream is enabled when compiled. <br>I also test it in V1.0.5, the issue happens again. <br><br>----------------------------------------------------------------------------------------------------------------------------------------------<br>
server {<br> listen 80;<br> server_name <a href="http://aaa.com">aaa.com</a>;<br> server_name 192.168.2.140;<br> location / {<br>
proxy_pass <a href="http://haha">http://haha</a>;<br> proxy_redirect off;<br> proxy_buffering off;<br> proxy_set_header Host $host;<br>
proxy_set_header X-Real-IP $remote_addr;<br> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br> client_max_body_size 1000m;<br>
client_body_buffer_size 256k;<br> proxy_connect_timeout 600;<br> proxy_temp_file_write_size 64k;<br> }<br>
}<br> upstream haha {<br> server 1.1.1.2 max_fails=3 fail_timeout=30s; <---------max_fails/fail_timeouts/weight is not support ? <br> server 1.1.1.1 weight=10;<br>
}<br>----------------------------------------------------------------------------------------------------------------------------------------------<br><br>When I run nginx, the error message print out as following:<br>
./nginx <br><br>Root# /etc/init.d/nginx restart<br>[emerg]: invalid parameter "max_fails=3" in /var/log/nginx/conf/nginx.conf:19<br>~<br>~<br>~<br>~<br>