www-modproxy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Leggett <minf...@sharp.fm>
Subject Re: How to use different server based on the url ???
Date Tue, 20 Aug 2002 06:39:34 GMT
Nicolas Brasseur wrote:

> Hello can anybody please tell me if it is possible to
> reroute requests to another web server based on the
> url used ...
> I have an apache web server on a machine, and a lotus
> domino server on another machine. I have a domain name
> loop.be pointing to a router that re-route requests
> addressed to the port 80 to the apache server. I would
> like that when the url is www.loop.be the HTTP
> requests are re-routed to the apache server (normal
> way) and when the url used is mail.loop.be the HTTP
> requests should be forwarded to the domino server.
> In other terms, is apache able to "forward" requests
> based on the url used ...

Use mod_proxy and virtual hosts:

NameVirtualHost ip.add.re.ss:80

<VirtualHost ip.add.re.ss:80>
   ServerName www.loop.be
   ProxyPass / http://apache/
   ProxyPassReverse / http://apache/
</VirtualHost>

<VirtualHost ip.add.re.ss:80>
   ServerName mail.loop.be
   ProxyPass / http://domino/
   ProxyPassReverse / http://domino/
</VirtualHost>

You can also use mod_rewrite in there, but using virtual hosts is 
cleaner and more flexible a solution.

Regards,
Graham
-- 
-----------------------------------------
minfrin@sharp.fm 
	"There's a moon
					over Bourbon Street
						tonight..."


Mime
View raw message