rewrite rules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux