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 0BC8318D19 for ; Mon, 15 Jun 2015 21:11:32 +0000 (UTC) Received: (qmail 80606 invoked by uid 500); 15 Jun 2015 21:11:28 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 80563 invoked by uid 500); 15 Jun 2015 21:11:28 -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 80553 invoked by uid 99); 15 Jun 2015 21:11:27 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Jun 2015 21:11:27 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 7FAB61A569C for ; Mon, 15 Jun 2015 21:11:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3 X-Spam-Level: *** X-Spam-Status: No, score=3 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id vfp_fj1O6OpW for ; Mon, 15 Jun 2015 21:11:12 +0000 (UTC) Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bbn0102.outbound.protection.outlook.com [157.56.111.102]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id F079824D0F for ; Mon, 15 Jun 2015 21:11:11 +0000 (UTC) Received: from BY1PR0201MB0904.namprd02.prod.outlook.com (25.160.193.28) by BY1PR0201MB0903.namprd02.prod.outlook.com (25.160.193.27) with Microsoft SMTP Server (TLS) id 15.1.184.17; Mon, 15 Jun 2015 21:11:10 +0000 Received: from BY1PR0201MB0904.namprd02.prod.outlook.com ([25.160.193.28]) by BY1PR0201MB0904.namprd02.prod.outlook.com ([25.160.193.28]) with mapi id 15.01.0184.014; Mon, 15 Jun 2015 21:11:10 +0000 From: Daniel Zenczak To: "users@httpd.apache.org" Thread-Topic: Redirect gets ignored Thread-Index: AdCnr6rTlRGANgXAQGGGm20Ybuzkkw== Date: Mon, 15 Jun 2015 21:11:09 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: httpd.apache.org; dkim=none (message not signed) header.d=none; x-originating-ip: [207.67.44.34] x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR0201MB0903; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(5005006)(520003)(3002001);SRVR:BY1PR0201MB0903;BCL:0;PCL:0;RULEID:;SRVR:BY1PR0201MB0903; x-forefront-prvs: 0608DEDB67 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(2656002)(5003600100002)(66066001)(110136002)(74316001)(5001960100002)(2501003)(46102003)(107886002)(87936001)(229853001)(189998001)(76576001)(33656002)(15975445007)(102836002)(40100003)(19625215002)(2351001)(16799955002)(15188155005)(92566002)(16236675004)(19617315012)(122556002)(19300405004)(5002640100001)(19580395003)(50986999)(54356999)(1720100001)(86362001)(99286002)(62966003)(77156002)(450100001)(2900100001);DIR:OUT;SFP:1102;SCL:1;SRVR:BY1PR0201MB0903;H:BY1PR0201MB0904.namprd02.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; Content-Type: multipart/alternative; boundary="_000_BY1PR0201MB0904ED069D1E8573A3864ECCDBB80BY1PR0201MB0904_" MIME-Version: 1.0 X-OriginatorOrg: zoosociety.org X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jun 2015 21:11:09.7535 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3373b12a-f010-4b10-a525-67c1b9de26b9 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0201MB0903 Subject: [users@httpd] Redirect gets ignored --_000_BY1PR0201MB0904ED069D1E8573A3864ECCDBB80BY1PR0201MB0904_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable So I am running Apache 2.4 on Windows Server 2008. My Virtualhost looks kin= da like this: Code: ServerName www.site1.org ServerAlias www2.site1.org ServerAlias server1.org ServerAlias *.site2.com ServerAlias *.site2.org ..... 15 more aliases Include z:/place/redirects.site RewriteEngine On # redirect 1 group RewriteCond %{HTTP_HOST} ^(www\.)?site2\.com\/Thing\/ [OR] RewriteCond %{HTTP_HOST} ^(www\.)?site2\.com\/thing\/ RewriteRule .* http://www.site1.org/stuff/Thingstuff.php [R=3D302,L] # redirect 2 group RewriteCond %{HTTP_HOST} ^(www\.)?site2\.com [OR] RewriteCond %{HTTP_HOST} ^.*\.site2\.com RewriteRule .* http://www.site1.org/fun [R=3D302,L] ----- six more redirect groups So here is the problem. When I have both these redirect groups in the code,= redirect 2 group only works and www.site2.com/Thing goes to www.site1/fun. When I comment out redi= rect 2 group. The redirect 1 group works fine, but redirect 2 group only go= es to http://www.site1.org. I can't figure out what= is going on here. Why can't I get both these to work at the same time? An= y suggestions would be helpful. dmz --_000_BY1PR0201MB0904ED069D1E8573A3864ECCDBB80BY1PR0201MB0904_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

So I am running Apache 2.4 on Windows Server 2008. My Virtualhost looks= kinda like this: 


Code:

<VirtualHost *.80>&= nbsp;
    ServerName = www.site1.org =
    ServerAlias www2.site1.org 
    ServerAlias server1.org=  
    ServerAlias *.site2.com=  
    ServerAlias *.site2.org=  
    ..... 15 more aliases&n= bsp;
    Include z:/place/redirects.site 
    
    RewriteEngine On <= /span>

    # redirect 1 group = ;
    RewriteCond %{HTTP_HOST} ^(www\.)?site2\.com\/Thing\/ [OR] 

    RewriteCond %{HTTP_HOST} ^(www\.)?site2\.com\/thing\/ 
    RewriteRule .* http://www.site1.org/stuff/Thingstuff.php [R= =3D302,L] 

    # redirect 2 group = ;
    RewriteCond %{HTTP_HOST} ^(www\.)?site2\.com [OR] 
    RewriteCond %{HTTP_HOST} ^.*\.site2\.com 
    RewriteRule .* http://www.site1.org/fun [R=3D302,L] 

    ----- six more redirect groups 
</VirtualHost>



So here is the problem. When I have both these red= irect groups in the code, redirect 2 group only works and www.site2.com/Thing goes to www.site1/fun. When I comment out redirect 2 group. The redirect 1 group works fine, but redir= ect 2 group only goes to = http://www.site1.org.<= /span> I can't figure out what is going on here. Why can't I get both these to work= at the same time?  Any suggestions would be helpful.

 

dmz

--_000_BY1PR0201MB0904ED069D1E8573A3864ECCDBB80BY1PR0201MB0904_--