Is it possible to use Mod_Rewrite and apache in reverse proxy mode
simultaneously?

I have a web server (server1) that is a mirror of another of another
web server (server2) and all requests from the server1 are reverse
proxyed to server2.
The robots.txt from server2 needs to be changed to disallow crawling
when accessed through server1.
So I created a robots2.txt, uploaded onto server2 and tried this
configuration on server1 but it is not working.



<Directory />
RewriteEngine on
RewriteBase /
RewriteRule ^robots\.txt$ robots2.txt
</Directory>

ProxyPass / http://www.server2/ retry=0
ProxyPassReverse / http://www.server2/
ProxyPreserveHost On


Any recommendations as to how to accomplish this are very much
appreciated. Thank you.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to