httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gregor Schneider" <rc4...@googlemail.com>
Subject Re: [users@httpd] ssl - force ssl per directory
Date Wed, 13 Dec 2006 16:10:47 GMT
My suggestion:

<VirtualHost *:80>
    ServerName your_server
    ServerAdmin webmaster@localhost
    # don't loose time with IP address lookups
    HostnameLookups Off
    # needed for named virtual hosts
    UseCanonicalName Off
    #
    RewriteEngine On
    RewriteRule ^/(.*)$ https://%{HTTP_HOST}/$1
    RewriteLog /var/log/apache2/your_server_rewrite.log
    # RewriteLogLevel 9
</VirtualHost>

<VirtualHost *:443>
    ServerName your_server
    ServerAdmin webmaster@localhost
    # don't loose time with IP address lookups
    HostnameLookups Off
    # needed for named virtual hosts
    UseCanonicalName Off
    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel info
    ServerSignature Off
    # SSL
    SSLEngine On
[...]
</VirtualHost>

cheers

Greg
-- 
what's puzzlin' you, is the nature of my game

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