if you are running nginx, you may use "nginx -s reload" to reload the config.<div>or killall -9 nginx; nginx to restart nginx<br><br><div class="gmail_quote">2011/9/10 ynasser <span dir="ltr"><<a href="mailto:nginx-forum@nginx.us">nginx-forum@nginx.us</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I reinstalled nginx and re-added that directive to the new configutation<br>
file. Now this happens:<br>
<br>
>> sudo nginx<br>
>> nginx: [emerg] bind() to <a href="http://10.0.1.187:2525" target="_blank">10.0.1.187:2525</a> failed (49: Can't assign<br>
requested address)<br>
<br>
In regards to the example given above:<br>
<div class="im"><br>
server {<br>
listen some_ip:some_port default;<br>
<br>
location / {<br>
add_header X-h1 h1;<br>
add_header X-h2 "h2 h2";<br>
add_header X-h3 h3;<br>
add_header X-h4 h4;<br>
add_header X-h5 h5;<br>
add_header X-h6 "h6 h6";<br>
add_header X-h7 h7;<br>
proxy_pass <a href="http://backend" target="_blank">http://backend</a>;<br>
}<br>
}<br>
<br>
</div>some_ip:some_port is the site that I'm trying to pass the headers to.<br>
For <a href="http://backend" target="_blank">http://backend</a>, I'm using "<a href="http://127.0.0.1" target="_blank">http://127.0.0.1</a>"<br>
<br>
Any help would be appreciated.<br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,214982,215040#msg-215040" target="_blank">http://forum.nginx.org/read.php?2,214982,215040#msg-215040</a><br>
<div><div></div><div class="h5"><br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br></div>