Melanie Pfefer wrote: > 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. That's not the way ProxyPass works, what you need is VHosts. And BTW, why did you created 3 instances instead of one instance with 3 VHosts since the beginning? NameVirtualHost *:80 <VirtualHost *:80> ServerName alias1 ProxyPass / http://localhost:port1 ProxyPassReverse / http://localhost:port1 </VirtualHost> repeat for all the 'aliases' Davide -- I used to be interested in Windows NT, but the more I see of it the more it looks like traditional Windows with a stabler kernel. I don't find anything technically interesting there. In my opinion MS is a lot better at making money than it is at making good operating systems. -- Linus Torvalds --------------------------------------------------------------------- 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