On 1/9/07, Bob <[EMAIL PROTECTED]> 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 "domain.ch" 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.

Krist



--
[EMAIL PROTECTED]
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:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to