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

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#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 <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Rainer Jung [ Do, 23 September 2010 17:14 ] [ ID #2048452 ]
Webserver » gmane.comp.apache.user » Re: https and http server with the same documentRoot+ force to use https for some content and authen

Vorheriges Thema: Re: Add ID by request in Error Logfile
Nächstes Thema: Re: Is there any way I could share a session b/w Jsp(Tomcat)& php(apache)??!