You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Coughlin, Michael J" <Mi...@opm.gov> on 2013/02/09 03:23:04 UTC

[users@httpd] internal redirects in httpd.conf

I had many rewrite rules in .htaccess.  I discovered they were being reevaluated with an internal direct after a rewrite.  I also read that this does not happen if you place the rules in the httpd.config file.

So I did, I killed the .htaccess file to be sure, and sure enough, the internal redirects are still happening.

Was this a lie?  Or am I missing something again......






________________________________________
From: users-help@httpd.apache.org [users-help@httpd.apache.org]
Sent: Friday, February 08, 2013 3:47 PM
To: Coughlin, Michael J
Subject: WELCOME to users@httpd.apache.org

Hi! This is the ezmlm program. I'm managing the
users@httpd.apache.org mailing list.

PLEASE READ!  This message contains information specific to
this mailing list, and is not your standard form-letter
subscription acknowledgement.

I have added the address

   Michael.Coughlin@opm.gov

to the users mailing list.

Welcome to users@httpd.apache.org!

Please save this message so that you know the address you are
subscribed under, in case you later want to unsubscribe or change your
subscription address.

This mailing list is maintained by the Apache Software Foundation
as a forum in which users of the Apache HTTP server can ask each
other questions, pose problems, and discuss issues.  It is NOT,
repeat NOT, an official support medium of the Foundation.  Please
take a look at

        <URL:http://httpd.apache.org/userslist.html

to see details about how this list is to be used.

Posting is only permitted by subscribed addresses as an anti-spam
measure.  The list is moderated by volunteers from the Apache Software
Foundation; moderation will mostly be notable by its absence.
However, blatant abuse of the forum's purpose or the sensibilities
of the subscribers will not be tolerated.  Any actions taken
by the moderators is final, solely at their discretion, and not
subject to formal appeal.

So.. be excellent to each other, and party on!

--- Administrative commands for the users list ---

I can handle administrative requests automatically. Please
do not send them to the list address! Instead, send
your message to the correct command address:

To subscribe to the list, send a message to:
   <us...@httpd.apache.org>

To remove your address from the list, send a message to:
   <us...@httpd.apache.org>

Send mail to the following for info and FAQ for this list:
   <us...@httpd.apache.org>
   <us...@httpd.apache.org>

Similar addresses exist for the digest list:
   <us...@httpd.apache.org>
   <us...@httpd.apache.org>

To get messages 123 through 145 (a maximum of 100 per request), mail:
   <us...@httpd.apache.org>

To get an index with subject and author for messages 123-456 , mail:
   <us...@httpd.apache.org>

They are always returned as sets of 100, max 2000 per request,
so you'll actually get 100-499.

To receive all messages with the same subject as message 12345,
send a short message to:
   <us...@httpd.apache.org>

The messages should contain one line or word of text to avoid being
treated as sp@m, but I will ignore their content.
Only the ADDRESS you send to is important.

You can start a subscription for an alternate address,
for example "john@host.domain", just add a hyphen and your
address (with '=' instead of '@') after the command word:
<us...@httpd.apache.org>

To stop subscription for this address, mail:
<us...@httpd.apache.org>

In both cases, I'll send a confirmation message to that address. When
you receive it, simply reply to it to complete your subscription.

If despite following these instructions, you do not get the
desired results, please contact my owner at
users-owner@httpd.apache.org. Please be patient, my owner is a
lot slower than I am ;-)

--- Enclosed is a copy of the request I received.

Return-Path: <Mi...@opm.gov>
Received: (qmail 28462 invoked by uid 99); 8 Feb 2013 20:47:53 -0000
Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136)
    by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2013 20:47:53 +0000
X-ASF-Spam-Status: No, hits=-2.3 required=5.0
        tests=RCVD_IN_DNSWL_MED,SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (athena.apache.org: domain of Michael.Coughlin@opm.gov designates 205.131.188.141 as permitted sender)
Received: from [205.131.188.141] (HELO louie.opm.gov) (205.131.188.141)
    by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2013 20:47:48 +0000
Authentication-Results: louie.opm.gov; dkim=neutral (message not signed) header.i=none
X-IronPort-AV: E=Sophos;i="4.84,632,1355097600";
   d="scan'208";a="89432907"
Received: from unknown (HELO WDCV7EXCHUB02.opm.gov) ([172.17.1.46])
  by louie.opm.gov with ESMTP/TLS/AES128-SHA; 08 Feb 2013 20:47:27 +0000
Received: from WDCV7EXVS2.opm.gov ([fe80::a800:b468:85d2:c76b]) by
 WDCV7EXCHUB02.opm.gov ([fe80::d8c2:3d5:a26f:9269%10]) with mapi; Fri, 8 Feb
 2013 15:47:26 -0500
From: "Coughlin, Michael J" <Mi...@opm.gov>
To: "users-sc.1360353374.apjlpkglnlloadohkicn-Michael.Coughlin=opm.gov@httpd.apache.org"
        <us...@httpd.apache.org>
Date: Fri, 8 Feb 2013 15:44:00 -0500
Subject: RE: confirm subscribe to users@httpd.apache.org
Thread-Topic: confirm subscribe to users@httpd.apache.org
Thread-Index: Ac4GNmViSpx8X5uxRvuZbZpMaRtW+gABqB9B
Message-ID: <14...@WDCV7EXVS2.opm.gov>
References: <13...@httpd.apache.org>
In-Reply-To: <13...@httpd.apache.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Virus-Checked: Checked by ClamAV on apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] internal redirects in httpd.conf

Posted by "Coughlin, Michael J" <Mi...@opm.gov>.
I care because I have to test again at the top of the rules for the rewritten URIs to say "ok their fine now, get out", or they get screwed up by the re-evluation of the same rules for some instances.  

I have read further that I need to place the rules inside a <VirtualHost> to prevent this, I used a <Directory.... to my discredit.

Unless, this is just a big waste of time, and I should leave it alone and just add my catch rules at the top.

I'm fairly new to rewrites so I want to be sure I'm doing it right before adding dozens of new rules.

________________________________________
From: Eric Covener [covener@gmail.com]
Sent: Friday, February 08, 2013 9:28 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] internal redirects in httpd.conf

On Fri, Feb 8, 2013 at 9:23 PM, Coughlin, Michael J
<Mi...@opm.gov> wrote:
> I had many rewrite rules in .htaccess.  I discovered they were being reevaluated with an internal direct after a rewrite.  I also read that this does not happen if you place the rules in the httpd.config file.
>
> So I did, I killed the .htaccess file to be sure, and sure enough, the internal redirects are still happening.
>
> Was this a lie?  Or am I missing something again......

Every rewrite is an internal redirect in htaccess.  Other features of
the server also use internal redirects.  Why do you care?

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


Re: [users@httpd] internal redirects in httpd.conf

Posted by Eric Covener <co...@gmail.com>.
On Fri, Feb 8, 2013 at 9:28 PM, Eric Covener <co...@gmail.com> wrote:
> On Fri, Feb 8, 2013 at 9:23 PM, Coughlin, Michael J
> <Mi...@opm.gov> wrote:
>> I had many rewrite rules in .htaccess.  I discovered they were being reevaluated with an internal direct after a rewrite.  I also read that this does not happen if you place the rules in the httpd.config file.
>>
>> So I did, I killed the .htaccess file to be sure, and sure enough, the internal redirects are still happening.
>>
>> Was this a lie?  Or am I missing something again......
>
> Every rewrite is an internal redirect in htaccess.  Other features of
> the server also use internal redirects.  Why do you care?

Also, moving them to httpd.conf really means "httpd.conf outside of
<Directory> and <Location>".

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] internal redirects in httpd.conf

Posted by Eric Covener <co...@gmail.com>.
On Fri, Feb 8, 2013 at 9:23 PM, Coughlin, Michael J
<Mi...@opm.gov> wrote:
> I had many rewrite rules in .htaccess.  I discovered they were being reevaluated with an internal direct after a rewrite.  I also read that this does not happen if you place the rules in the httpd.config file.
>
> So I did, I killed the .htaccess file to be sure, and sure enough, the internal redirects are still happening.
>
> Was this a lie?  Or am I missing something again......

Every rewrite is an internal redirect in htaccess.  Other features of
the server also use internal redirects.  Why do you care?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org