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 ECA701081D for ; Sat, 3 Jan 2015 16:21:10 +0000 (UTC) Received: (qmail 10090 invoked by uid 500); 3 Jan 2015 16:21:08 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 10053 invoked by uid 500); 3 Jan 2015 16:21:08 -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 10043 invoked by uid 99); 3 Jan 2015 16:21:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Jan 2015 16:21:08 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of francois.gingras@gmail.com designates 209.85.223.196 as permitted sender) Received: from [209.85.223.196] (HELO mail-ie0-f196.google.com) (209.85.223.196) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Jan 2015 16:20:42 +0000 Received: by mail-ie0-f196.google.com with SMTP id rp18so4973273iec.11 for ; Sat, 03 Jan 2015 08:19:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ccdRQLNxshz300h8odGXqkcl8FvbLWOM7Ujtlt+d60Q=; b=IgREGhs/mC1pYHq4shZED5Iekx1v+PEKNYV4QZyLnECdTY8uUuZ48wnkBbcow+RePm ZrH0Sx6EF5jniSiyupYtmXd7Q0DBikjZy3RNjHBUktzs8RD8nTiZCxp69fe80q9xflgG xqrx1ecHVCv4jneFi3lfGB+mjV+yq9NItNfHQ77JQhNa5zm+mGgf4GRDWPOXfWJopYCh xeRPoLZBfKnvJTVa6fuKw9nmd/2HjzE6ev4DgWi10AaHDKzfmW+XK67YBAD1F0bkErwC 6KHvv15IsLZ5JB4Gdn6IeLirClII8A4crr96xWavhGfGBvZaaXhJpvrOdxUOjgjlAbrh 4b8g== MIME-Version: 1.0 X-Received: by 10.42.179.133 with SMTP id bq5mr60929207icb.3.1420301996052; Sat, 03 Jan 2015 08:19:56 -0800 (PST) Received: by 10.107.15.144 with HTTP; Sat, 3 Jan 2015 08:19:55 -0800 (PST) In-Reply-To: References: Date: Sat, 3 Jan 2015 11:19:55 -0500 Message-ID: From: Francois Gingras To: users@httpd.apache.org Content-Type: multipart/alternative; boundary=90e6ba6e8134f2d6a6050bc1d3ab X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Apache 2.4 This webpage has a redirect loop --90e6ba6e8134f2d6a6050bc1d3ab Content-Type: text/plain; charset=UTF-8 Your second rule is mostly abusing mod_rewrite - you should use FallbackResource instead, or just add a RewriteCond before the rule to prevent loops in the per directory context. Frank On Wed, Dec 31, 2014 at 1:45 PM, Tim Dunphy wrote: > Hey all, > > OK so I have a website that's entering a re-direct loop that prevents the > site from working. > > The site's default behavior is to go from / to site/universalpictures. And > from there it enters the redirect loop and stops working. > > Here's the vhost for the site in question: > > > DocumentRoot /var/www/qa/launchpadnew/site > ServerName launchpadnew.upqa.com > ServerAlias launchpad2.upqa.com test-launchpad.upqa.com > > Options -Indexes +FollowSymLinks -MultiViews -Includes > -ExecCGI > #Options +Indexes +FollowSymLinks +MultiViews +Includes > +ExecCGI > AllowOverride All > > Order deny,allow > Deny from all > > AuthType Basic > AuthName UPQA > AuthUserFile /var/www/qa/etc/http.passwd > AuthGroupFile /var/www/qa/launchpadnew/conf/groups > require valid-user > satisfy any > > > > > From there the site encounters an .htaccess file that has the following in > it: > > php_flag zlib.output_compression off > php_flag magic_quotes_gpc off > > AddOutputFilter INCLUDES .html > AddOutputFilter INCLUDES .htm > > AddHandler cgi-script .pl > AddHandler php5-script php > > RewriteEngine on > RewriteRule ^new$ new_site.php [QSA,L] > RewriteRule ^site/(.*)$ edit_site.php?site=$1 [QSA,L] > > The only errors I see in the logs are this one, repeating over and over > again: > > [Wed Dec 31 11:43:06.174003 2014] [:error] [pid 9053:tid 47022521411904] > [client64.210.199.232:64956] PHP Notice: Undefined index: action in > /var/www/qa/launchpadnew/site/edit_site_ajax.php on line 43, referer: > http://launchpadnew.upqa.com/site/Firstsite > > However I'm not sure if that pertains to the error I'm experiencing. > > If it's of any use, line 43 from that eror log starts at the switch > statement in the following: > > //echo "POST:".$_POST['action']; > switch ($_POST['action']) { > case 'deployFiles': > > > I'd appreciate any advice you may have in correcting this problem! > > Thanks, > Tim > > -- > GPG me!! > > gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B > > --90e6ba6e8134f2d6a6050bc1d3ab Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Your second rule is mostly abusing mod_rewrite - you shoul= d use FallbackResource instead, or just add a RewriteCond before the rule t= o prevent loops in the per directory context.

Frank

On Wed, De= c 31, 2014 at 1:45 PM, Tim Dunphy <bluethundr@gmail.com> = wrote:
Hey all,

=C2=A0OK = so I have a website that's entering a re-direct loop that prevents the = site from working.=C2=A0
<= br>
The site's default= behavior is to go from / to=C2=A0site/universalpictures. And from there it= enters the redirect loop and stops working.

He= re's the vhost for the site in question:

<VirtualHost *:80>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 DocumentR= oot /var/www/qa/launchpadnew/site
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Ser= verName=C2=A0la= unchpadnew.upqa.com
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ServerAlias= =C2=A0launchpad2.= upqa.com=C2=A0test-launchpad.upqa.com
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <= Directory /var/www/qa/launchpadnew/site>
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Options -Indexes +FollowSymLinks -MultiV= iews -Includes -ExecCGI
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 #Options +Indexes +FollowSymLinks +MultiViews +Includes +Exe= cCGI
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Allo= wOverride All

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 Order deny,allow
=C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 Deny from all

=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 AuthType Basic
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 AuthName UPQA
=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 AuthUserFile /= var/www/qa/etc/http.passwd
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 AuthGroupFile /var/www/qa/launchpadnew/conf/groups
<= div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 require valid-u= ser
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 satis= fy any
=C2=A0 =C2=A0 =C2=A0 =C2=A0 </Directory>
&= lt;/VirtualHost>
=

From there the site encounters an .htacce= ss file that has the following in it:

php_= flag zlib.output_compression off
php_flag magic_quotes_gpc off

AddOutputFilter INCLUDES .html
AddOutputFi= lter INCLUDES .htm

AddHandler cgi-script .pl
=
AddHandler php5-script php

RewriteEngine on
RewriteRule ^new$ new_site.php [QSA,L]
RewriteRule ^site= /(.*)$ edit_site.php?site=3D$1 [QSA,L]

Th= e only errors I see in the logs are this one, repeating over and over again= :

[Wed Dec 31 11:43:06.174003 2014] [:error] [p= id 9053:tid 47022521411904] [client64.210.199.232:64956] PHP Notice: =C2=A0Undefined in= dex: action in /var/www/qa/launchpadnew/site/edit_site_ajax.php on line 43,= referer:http://launchpadnew.upqa.com/site/Firstsite

However I'm not sure if that pertains to the error I'm= experiencing.

<= div style=3D"font-size:12.7272720336914px">If it's of any use, line 43 = from that eror log starts at the switch statement in the following:

//echo "POST:".$_POST['action']= ;
switch ($_POST['action']) {
=C2=A0 case '= deployFiles':

I'd appreciate any advice you may have i= n correcting this problem!

Thanks,
Tim

--
GPG me!!

gpg --keyserve= r pool.sks-key= servers.net --recv-keys F186197B


--90e6ba6e8134f2d6a6050bc1d3ab--