Re: ssl - force ssl per directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux