httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krist van Besien" <>
Subject Re: [users@httpd] Redirect HTTPS --> HTTP
Date Sat, 01 Dec 2007 22:22:50 GMT
On Nov 30, 2007 9:27 PM, Matt Bullock <> wrote:

> I see the issue with server_port =81 not being matched, but I have tried
> removing that directive, as well as changing it to !=81.  I don't really
> have any leads as to what to try next.

You are testing wether or not the server port is =81 or =80, but since
it is either 80 or 81 this never matches.

You need to realise that the RewriteCond ought to have been:
RewriteCond {SERVER_PORT} !81
(Since you don't need a = sign, I'm sorry I didn't find this out sooner)
You don't need this rewritecond however, as you allready take care of
sorting on port numbers by using virtual hosts.

However, I also see the following in your log:][rid#555555b7c6a8/subreq] (2) init rewrite
engine with requested uri /error/include/top.html - - [30/Nov/2007:12:15:49 --0800] [www.][rid#555555b7c6a8/subreq] (3) applying
pattern '\.(html|php|css|js|jpg|gif|png|pdf|txt|swf|flv|wmv|wav|htm)$'
to uri '/error/include/top.html' - - [30/Nov/2007:12:15:49 --0800] [www.][rid#555555b7c6a8/subreq] (4) RewriteCond:
input='!' pattern='(.*)' => matched - - [30/Nov/2007:12:15:49 --0800] [www.][rid#555555b7c6a8/subreq] (1) pass through

Do you have other rewrite rules?


Bremgarten b. Bern, Switzerland
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message