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">&lt;<a href="mailto:gunblad3@gmail.com">gunblad3@gmail.com</a>&gt;</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 &lt;<a href="mailto:iberkner@gmail.com">iberkner@gmail.com</a>&gt; wrote:<br>
&gt; Hi All,<br>
&gt; We have 2 sub-domain groups setup for processing incoming requests:<br>
&gt; 1. &quot;server2&quot;<br>
&gt; 2. all others, for example: &quot;www&quot;<br>
&gt; The 2 sub-domains share the same directory for delivery of static files<br>
&gt; (html, images, swf, etc.) but use different PHP backends.<br>
&gt; Is there a way, using nginx configuration to load a different robots.txt<br>
&gt; file when requested for one group vs. the other?<br>
&gt; Thanks!<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; nginx mailing list<br>
&gt; <a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
&gt; <a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
&gt;<br>
&gt;<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>