Mailing List Archive

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 [ In reply to ]
> 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