httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Kaiser <>
Subject Re: [users@httpd] New to Apache. Need help to redirect.
Date Tue, 01 Jun 2004 18:25:07 GMT
Sean Boodoo wrote:

> Hi Everyone,
> I am new to Apache and I am looking for a way to redirect a web request 
> to a different server. Here is the example. We have two addresses we are 
> working with here. One would be for example and the other 
> is Both of these are coming in to our Apache web 
> server as defined by the DNS. What I want to do, is if someone goes to 
>, they will actually be directed to another server 
> machine with a non apache web server on it listening on port 80 also.
> So far it looks like I would use the Vitualhost container, but I have 
> not seen any good examples of this use.
> Any help would be greatly appreciated.

NameVirtualHost *:80
<VirtualHost *:80>
         RewriteEngine On
         RewriteRule ^/(.*) http://your-other-server-hostname-or-ip/$1 [L,P]
         ProxyVia On


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message