On Aug 7, 2007, at 4:32 PM, Lonnie Olson wrote:

On Tue, 2007-08-07 at 15:13 -0600, Richard K Miller wrote:
The Alias command works, with one exception: The file at /www/public/
robots.txt is always served, even if a VirtualHost has its own
robots.txt file. Is there a way to do the equivalent of RewriteCond %
{REQUEST_FILENAME} !-f with an Alias command?

You could use Jon Jensen's idea, or you can just use the Alias command
inside the <VirtualHost> directives of the hosts that you want to use it in. Or add the Alias command in a .htaccess at the DocumentRoot of each
host that you want the alias to apply to.


I was hoping to avoid putting something in each <VirtualHost> directive or .htaccess file. But it wouldn't be too hard to script it.



_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to