Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 10271 invoked from network); 1 Jun 2004 18:18:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Jun 2004 18:18:45 -0000 Received: (qmail 39747 invoked by uid 500); 1 Jun 2004 18:18:43 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 39715 invoked by uid 500); 1 Jun 2004 18:18:43 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 39697 invoked by uid 99); 1 Jun 2004 18:18:42 -0000 Received: from [217.115.138.29] (HELO mail.xo7.de) (217.115.138.29) by apache.org (qpsmtpd/0.27.1) with SMTP; Tue, 01 Jun 2004 11:18:42 -0700 Received: (qmail 25823 invoked by uid 0); 1 Jun 2004 18:18:23 -0000 Received: from p5085457f.dip0.t-ipconnect.de (HELO ?192.168.2.4?) (kaiser@xo7.de@80.133.69.127) by ns.xo7.de with SMTP; 1 Jun 2004 18:18:23 -0000 Message-ID: <40BCCA03.2040005@xo7.de> Date: Tue, 01 Jun 2004 20:25:07 +0200 From: Andreas Kaiser User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@httpd.apache.org References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked Subject: Re: [users@httpd] New to Apache. Need help to redirect. X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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 ServerAdmin info@company.com ServerName demo.something.net RewriteEngine On RewriteRule ^/(.*) http://your-other-server-hostname-or-ip/$1 [L,P] ProxyVia On hth, Andreas --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See 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