httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Melanie Pfefer <melanie_pfe...@yahoo.co.uk>
Subject [users@httpd] rewrite rules
Date Tue, 16 Sep 2008 10:48:49 GMT
hi,

I have 3 instances of apache each running on a separate port.

I have created a 4th instance on port 80 and 3 aliases so that when users want to access let’s
say:

http://alias1 it goes to http://server:port1
http://alias2 it goes to http://server:port2
http://alias3 it goes to http://server:port3


http://server and http://alias1 and http://alias2 and http://alias3 refer to the 4th instance
(port 80). I want to add rewrite rules so that it redirects to the corresponding apache instance.

I tried to edit httpd.conf of the 4th instance:

RewriteEngine On
ProxyPass /alias1/ http://alias1:5001/
ProxyPassReverse /alias1/ http://alias1:5001/


But http://alias1 still refers to http://alias1 whereas it should go to http://alias1:5001.

Any idea?

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-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message