Re: https and http server with the same documentRoot+ force to use https for some content and authen
am 23.09.2010 17:14:18 von Rainer JungOn 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#sslrequir essl) 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#rewrit econd
Regards,
Rainer
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org