<div dir="ltr">Hi, I have a question. It's better to describe with example<div><br></div><div>I point one.local and two.local to 127.0.0.1 and create following servers in config for nginx:</div><div><br></div><div><div>
server {</div><div> listen 80;</div><div> server_name one.local;</div><div><br></div><div> location / {</div><div> return 404;</div><div> }</div><div>}</div><div><br></div><div><div>server {</div><div> listen two.local:80;</div>
<div> server_name two.local;</div><div><br></div><div> location / {</div><div> return 403;</div><div> }</div><div>}</div></div><div><br></div><div style>If I request one.local then 403 is returned. If i change listen for one.local to one.local:80 then 404 correctly returned, but only after restart, reload doesn't help (that's probably bug too).</div>
<div style><br></div><div style>I expect to get 404 if i request one.local even if I listen on all addresses. Am I right?</div><div style><br></div><div style>Thanks!</div><div><br></div>-- <br>Regards, Ian Babrou<br><a href="http://bobrik.name" target="_blank">http://bobrik.name</a> <a href="http://twitter.com/ibobrik" target="_blank">http://twitter.com/ibobrik</a> skype:i.babrou
</div></div>