You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by May Lyn Lis <ma...@yahoo.com.sg> on 2002/02/05 09:57:00 UTC

single mod_proxy to serve multiple web server

Would like to make a request that whether a single
server with mod_proxy can serve as reverse proxy for
multiple different web server.

Anyone have any idea ? Thanks for the advice.


MayLyn

__________________________________________________
Do You Yahoo!?
Yahoo! Mobile - Jazz up your mobile phone!  Get funky ringtones and logos!
http://mobile.yahoo.com.sg/

---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org


RE: single mod_proxy to serve multiple web server

Posted by Joshua Slive <jo...@slive.ca>.
> From: May Lyn Lis [mailto:maylynlis@yahoo.com.sg]

> Would like to make a request that whether a single
> server with mod_proxy can serve as reverse proxy for
> multiple different web server.
> 
> Anyone have any idea ? Thanks for the advice.

Sure.  Here's a sketch:

NameVirtualHost *

<VirtualHost *>
ServerName reverse1.example.com
ProxyPass / http://internal1.example.com/
ProxyPassReverse / http://internal1.example.com/
</VirtualHost>

<VirtualHost *>
ServerName reverse2.example.com
ProxyPass / http://internal2.example.com/
ProxyPassReverse / http://internal2.example.com/
</VirtualHost>

Joshau.

---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org