Apache SSL

Force secure connection (for auth)

Redirect
/etc/apache2/sites-available/default

[...] 

# redirect everything if accessed via http
<IfModule mod_rewrite.c>
    <IfModule mod_ssl.c>
         RewriteEngine On
         RewriteCond %{HTTPS} !=on
         RewriteRule (.*) https://host.domain.tld%{REQUEST_URI} [R=301,L]
    </IfModule>
</IfModule>

# explicit redirect to avoid multiple auth requests for this location
<Location /nagios3>
         Redirect permanent /nagios3 https://host.domain.tld/nagios3
</Location>

[...]
apache/ssl.txt · Last modified: 2010/11/23 16:42 by tb
CC Attribution-Noncommercial-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0