httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tapas Mishra <mightydre...@gmail.com>
Subject [users@httpd] 2 reverse proxy to serve a sakai installation
Date Sun, 18 Jul 2010 11:41:12 GMT
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@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