2 reverse proxy to serve a sakai installation

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

 



I am having following setup

A------B
on A and B both Ubuntu 10.04 and Apache2 are running.

On B there are many websites running.Which are configured with
NameBased VirtualHosting.

On A a request comes from internet

http://www.mysite.com/site1
http://www.mysite.com/site2
http://www.mysite.com/site3

A forwards all the requests for www.mysite.com to B as

<VirtualHost *:80>
ServerName mysite.com

ProxyPass /site1 http://(vhost at B for site1)
ProxyPassReverse /site1 http://(vhost at B for site1)


ProxyPass /site2 http://(vhost at B for site2)
ProxyPassReverse /site2 http://(vhost at B for site2)


ProxyPass /site3 http://(vhost at B for site3)
ProxyPassReverse /site3 http://(vhost at B for site3)


ProxyPass /site4 http://(vhost at B for site4)
ProxyPassReverse /site4 http://(vhost at B for site4)


</VirtualHost



On B vhosts for site1 , site2 ,site 3websites are

<VirtualHost *:80>
Server name site1
DocumentRoot /var/www/site1
..
..
</VirtualHost>

for site2

<VirtualHost *:80>
Server name site2
DocumentRoot /var/www/site1
..
..
</VirtualHost>

for site3

<VirtualHost *:80>
Server name site3
DocumentRoot /var/www/site1
..
..
</VirtualHost>


now the site for which I am asking the problem is site4 and has a vhost as


<VirtualHost *:80>
Server name site4

ProxyPass / http://localhost:9090/portal
ProxyPassReverse / http://localhost:9090/portal
</VirtualHost>


Is this way of using vhosts or ReverseProxy wrong ?
-- 
Tapas

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