----- Original Message -----
From: Ruiyuan Jiang <Ruiyuan_Jiang@xxxxxxx> Date: Tue, 27 Apr 2010 15:54:24 -0400 Subject: RE: Wield problem with a reverse proxy server To: users@xxxxxxxxxxxxxxxx <users@xxxxxxxxxxxxxxxx> Hi, all I posted below email but got no answer. Now I found that my Apache 2.2.15 stopped working. It behaves the same way as Apache 2.2.14. As a test, I switched the order on Apache 2.2.15 for these two virtual host statements: <VirtualHost 10.10.10.10:80> .... </VitualHost> .... <VirtualHost 10.10.10.10:80> ServerName www.survey.juicycouture.com Redirect / http://survey.juicycouture.com/tellus </VirtualHost> <VirtualHost 10.10.10.10:80> ServerName www.survey.juicycouture.com Redirect /tellus http://survey.juicycouture.com/tellus </VirtualHost>
You have two VirtualHost containers with the exact same settings (same IP:port and same ServerName). There's no way for Apache to distinguish between the two (it can only do so based upon the IP:port or ServerName).
What are you expecting to happen when someone visits a URL that is NOT http://www.survey.juicycouture.com or http://www.survey.juicycouture.com/tellus? Where should it go? Depending on the answer to this, why not just create one VirtualHost with a simple RewriteRule to push all requests to the new URL?
RewriteEngine on RewriteRule . http://survey.juicycouture.com/tellus Otherwise, just handle the two special cases RewriteEngine on RewriteRule ^/$ http://survey.juicycouture.com/tellus RewriteRule ^/tellus$ http://survey.juicycouture.com/tellus -- Justin Pasher --------------------------------------------------------------------- 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-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx