Re: Rewrite does not work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

RewriteEngine On
RewriteCond %{REMOTE_HOST} \.domain\.ch$
RewriteRule ^/testtinfo/fea http://another.url.ch/ [R,L]
RewriteCond %{SERVER_PORT} =80
RewriteRule ^(.+)$ https://server.domain.ch$1 [R,L]

--
Bob

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux