Worked like a charm, thanks!<div><br><br><div class="gmail_quote">On Fri, May 21, 2010 at 9:53 AM, Ray <span dir="ltr"><<a href="mailto:gunblad3@gmail.com">gunblad3@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Yes.<br>
<br>
server {<br>
listen 80 default;<br>
server_name www;<br>
<br>
location /robots.txt {<br>
alias /path/to/the/file1;<br>
}<br>
}<br>
<br>
server {<br>
listen 80;<br>
server_name server2;<br>
<br>
location /robots.txt {<br>
alias /path/to/the/file2;<br>
}<br>
}<br>
<br>
<br>
Ray.<br>
<div><div></div><div class="h5"><br>
<br>
On Fri, May 21, 2010 at 9:43 PM, Ilan Berkner <<a href="mailto:iberkner@gmail.com">iberkner@gmail.com</a>> wrote:<br>
> Hi All,<br>
> We have 2 sub-domain groups setup for processing incoming requests:<br>
> 1. "server2"<br>
> 2. all others, for example: "www"<br>
> The 2 sub-domains share the same directory for delivery of static files<br>
> (html, images, swf, etc.) but use different PHP backends.<br>
> Is there a way, using nginx configuration to load a different robots.txt<br>
> file when requested for one group vs. the other?<br>
> Thanks!<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> nginx mailing list<br>
> <a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
> <a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
><br>
><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br></div>