Virtual Hosts and reverse proxy

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

 



Hi,

I am trying to set up virtual hosts for web applications running on the
intranet. (using httpd 2.2 on openSuse 10.3 amd64). The configuration is
below, problem is that all requests go to the first virtual host and
passed on to the first application. The second application is never been
called.
So http://second.mydomain.biz:80 will end up at
http://172.16.185.128:50000/ internally, which is not intended. I am new
to httpd. Am I missing something obvious? Or is there some other trick
to reserve proxying?

thanks,
   Arno


<VirtualHost *:80>
ProxyPass / http://172.16.185.128:50000/
ProxyPassReverse / http://172.16.185.128:50000/
ProxyPreserveHost On
<Proxy *>
allow from all
</Proxy>
ServerName first.mydomain.biz
</VirtualHost>


<VirtualHost *:80>
ProxyPass / http://192.168.59.129:8080/
ProxyPassReverse / http://192.168.59.129:8080/
ProxyPreserveHost On
<Proxy *>
allow from all
</Proxy>
ServerName second.mydomain.biz
</VirtualHost>

---------------------------------------------------------------------
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