Re: IP based http->https redirection

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

 



mod_rewrite is your friend:

http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html

You can build RewriteCond based on REMOTE_HOST/REMOTE_ADDR and use
RewriteRules then.

Something like

RewriteCond %{REMOTE_HOST}  ^host1.*
RewriteCond %{REMOTE_HOST}  ^host2.*
RewriteCond %{REMOTE_HOST}  ^host3.*
RewriteRule /(.*) https://ssl_host [RL]

On 1/23/07, Dragan Zubac <zubac@xxxxxxxxxxxxxxxx> wrote:
Is it possible to redirect http->https traffic for all IP addresses
range,except for specific IP address range for which not to redirect
anything and behave normal (http->http,https->https) ?

Sincerely

Dragan Zubac


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________

---------------------------------------------------------------------
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



---------------------------------------------------------------------
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