httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krist van Besien" <>
Subject Re: [users@httpd] Rewrite does not work
Date Wed, 10 Jan 2007 14:18:25 GMT
On 1/9/07, Bob <> wrote:
> Huesser Peter wrote:
> > My interpretation of "RewriteCond
> > %{REMOTE_HOST} \.domain\.ch$" is the following: If the client that makes
> > the https request is within the "" than apply the following
> > RewriteRule.
> Yes, this will cause a reverse DNS lookup of remote_addr. But anyway, I
> think your order is incorrect. If your request comes through port 80,
> the 2nd rule won't have any effect, because your first rule matched already.

What might also  be an issue here is that reverse DNS doesn't work properly.

However, what you are trying to achieve might be better done
differently. See another post in this forum. You ought to set up two
virtual hosts, one on port 80 and one on port 443. Have a redirect to
the https host in the http host, and have your rewrite in the https
host config.


Bremgarten b. Bern, Switzerland
"...what you don't realize is that in the future Google WILL reach
sentience, will [have had] invent[ed] a time machine, and will [have
had] travel[ed] back in time to prevent Bill Gates... only to become
Bill Gates by accident because of a search engine optimization
miscalculation." (Comment on the Dilbert Blog)

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