httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Kaiser <kai...@xo7.de>
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 something.net and the other 
> is demo.something.net. 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 
> demo.something.net, 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>
         ServerAdmin info@company.com
         ServerName demo.something.net
         RewriteEngine On
         RewriteRule ^/(.*) http://your-other-server-hostname-or-ip/$1 [L,P]
         ProxyVia On
</VirtualHost>


hth,
Andreas

---------------------------------------------------------------------
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