httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Perl Whore <whorep...@gmail.com>
Subject Re: [users@httpd] What is wrong with this RewriteCond?
Date Fri, 18 Dec 2009 12:34:50 GMT
I got it to work correctly with the [L] flag. Now everything is
working as intended.

One last thing I need to accomplish is overriding the Server header
when using the [P] flag. For example in this rule

RewriteRule /inbox/(.+) http://127.0.0.1:22131/$1 [P]

The Server header returned is "TwistedWeb/2.5.0" (python server). Can
I do something to override that and make it return the Apache version
like it does normally?

On Fri, Dec 18, 2009 at 5:07 PM, Cristian Pini <cris.pini@fsite.com> wrote:
> It skips the rest of the rules that are chained with that rule if it does not match,
not necessarily the rest of the conditions that are set.
>
> Can you add the code pls as the next part seems a little unclear.
>
>
> -----Original Message-----
> From: Perl Whore [mailto:whoreperl@gmail.com]
> Sent: 18 December 2009 10:35
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] What is wrong with this RewriteCond?
>
> I read the docs for the flags and it says for [C] that if a rule is
> not matched then it skips the rest of the rules.
>
> What I'm trying to do are set individual rules for the same condition
> and not a chain of rules. So only the rule that match should be
> applied.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> 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
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> 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
>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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


Mime
View raw message