Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 41A6C9CD6 for ; Wed, 11 Jul 2012 02:20:13 +0000 (UTC) Received: (qmail 53971 invoked by uid 500); 11 Jul 2012 02:20:10 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 53922 invoked by uid 500); 11 Jul 2012 02:20:10 -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: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 53912 invoked by uid 99); 11 Jul 2012 02:20:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jul 2012 02:20:10 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [75.180.132.120] (HELO cdptpa-omtalb.mail.rr.com) (75.180.132.120) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jul 2012 02:20:02 +0000 X-Authority-Analysis: v=2.0 cv=Dp/UCRD+ c=1 sm=0 a=SWowGRsViryGCq6W3uAXzg==:17 a=Z8NhdVnBYBkA:10 a=FKkrIqjQGGEA:10 a=vpuGBOzt1oAA:10 a=gKdNUozYXGYA:10 a=wPDyFdB5xvgA:10 a=IkcTkHD0fZMA:10 a=Fx01H1t8AAAA:8 a=eAAL1In8AAAA:8 a=mV9VRH-2AAAA:8 a=FUdNYOMFAAAA:8 a=trapAE5gdXX7GHyBMjwA:9 a=QEXdDO2ut3YA:10 a=resepmd4uhkA:10 a=thVeFYP5CaEA:10 a=qiWi7Edwir4A:10 a=NWVoK91CQyQA:10 a=SWowGRsViryGCq6W3uAXzg==:117 X-Cloudmark-Score: 0 X-Originating-IP: 75.177.187.225 Received: from [75.177.187.225] ([75.177.187.225:12643] helo=mail.electrichendrix.com) by cdptpa-oedge02.mail.rr.com (envelope-from ) (ecelerity 2.2.3.46 r()) with ESMTP id 96/35-13948-DB2ECFF4; Wed, 11 Jul 2012 02:19:41 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.electrichendrix.com (Postfix) with ESMTP id 722CD41A002 for ; Tue, 10 Jul 2012 22:19:40 -0400 (EDT) X-Virus-Scanned: amavisd-new at mail.electrichendrix.com Received: from mail.electrichendrix.com ([127.0.0.1]) by localhost (mail.electrichendrix.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BIlYME9CFCBF for ; Tue, 10 Jul 2012 22:19:39 -0400 (EDT) Received: from mail.electrichendrix.com (mail.electrichendrix.com [192.168.124.3]) by mail.electrichendrix.com (Postfix) with ESMTP id D5E4741A001 for ; Tue, 10 Jul 2012 22:19:39 -0400 (EDT) Date: Tue, 10 Jul 2012 22:19:39 -0400 (EDT) From: Chris Arnold To: users@httpd.apache.org Message-ID: <1713089363.44894.1341973179734.JavaMail.root@electrichendrix.com> In-Reply-To: <189829546.44875.1341970650770.JavaMail.root@electrichendrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Mailer: Zimbra 7.2.0_GA_2669 (ZimbraWebClient - IE7 (Win)/7.2.0_GA_2669) Subject: Re: [users@httpd] Rewrite Rule Help (again) In the event anyone comes across this, i got this to work using the following: RewriteEngine On RewriteCond %{HTTP_HOST} !^update.domain.com$ [NC] RewriteRule ^/$ http://private.ip.address [R,L] ----- Original Message ----- From: "Chris Arnold" To: users@httpd.apache.org Sent: Tuesday, July 10, 2012 9:37:30 PM Subject: Re: [users@httpd] Rewrite Rule Help (again) >You've been already given the answer by Eric what else do you need? Read mod_rewrite manual and combine RewriteCond and RewriteRule >commands thats all you need to do. Igor,i have read the rewrite guide and tried what i thought was needed. Which i have repeated here more than 1 time but this time i will show what i tried from the guide: Move Homedirs to Different Webserver Description: Many webmasters have asked for a solution to the following situation: They wanted to redirect just all homedirs on a webserver to another webserver. They usually need such things when establishing a newer webserver which will replace the old one over time. Solution: The solution is trivial with mod_rewrite. On the old webserver we just redirect all /~user/anypath URLs to http://newserver/~user/anypath. RewriteEngine on RewriteRule ^/~(.+) http://newserver/~$1 [R,L] And here is how i have altered it to fit what i need: RewriteRule ^/$ http://192.168.123.2/ [L] This just leaves me at the webserver. I have also tried what others have suggested here and replied with the results. BTW, the solution Igor is referring to, does anyone have that email and can post it (send it to me) as i seem to have lost that email. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org