httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rainer Jung <rainer.j...@kippdata.de>
Subject Re: [users@httpd] https and http server with the same documentRoot + force to use https for some content and authenticate!
Date Thu, 23 Sep 2010 15:14:18 GMT
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message