Re: https and http server with the same documentRoot + force to use https for some content and authenticate!

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

 



On 15.09.2010 18:11, Joost de Heer wrote:
On 09/15/2010 05:55 PM, sattlite Installer wrote:
Thanks for the reply, then to confirm is there no way of doing this
only in
.htaccess files? I would prefer to do this as the web team edit these
while I
have to edit the server config?

You need SSLRequireSSL
(http://httpd.apache.org/docs/2.2/mod/mod_ssl.html#sslrequiressl) which
can be enabled in .htaccess.

Or if you want to redirect instead of presenting an error, add a RewriteCond that checks "HTTPS".

See:

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

Regards,

Rainer

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