<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi All,<br>
<br>
I have the following code:<br>
<br>
location = /favicon.ico {<br>
if ($host = "abc.com"){<br>
return 301
<a class="moz-txt-link-rfc2396E" href="http://www.abc.com/favicon.ico">"http://www.abc.com/favicon.ico"</a>;<br>
}<br>
}<br>
<br>
If I make a request to abc.com/favicon.ico I get a 301 and then a
200 OK<br>
<br>
However the issue is that if I make a request to
xyz.abc.com/favicon.ico I get a 404 as it passes the first match
statement but fails the second and trys to get the favicon resource
from the nginx root directory<br>
<br>
Is there a better way of doing it so it continues on to be evaluated
by the other rules? or Is there a better way of writing this part of
the code?<br>
<br>
Thanks in advance.<br>
<br>
Nick<br>
<br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<br>
</body>
</html>