Setting up VirtualHost with SSL
am 30.01.2003 22:15:11 von Tom SmithI'm learning how to use SSL with virtual host. So far, I've figured out how to
make it work. What I'm curious about is if there's a way to nest the SSL options
into the main VirtualHost directive.
Here's my current config:
----------
ServerAdmin webmaster@openadventures.org
NameVirtualHost 216.161.174.139
ServerName www.openadventures.org
User apache
Group apache
DocumentRoot /httpd/openadventures/public_html
CustomLog /var/log/httpd/openadventures_access_log Combined
Options ExecCgi Includes
ScriptAlias /cgi-bin/ /httpd/openadventures/public_html/cgi-bin/
Options None
AllowOverride AuthConfig
AuthName "Perma-Cool"
AuthType Basic
AuthDBUserFile **********
require user **********
ServerName www.openadventures.org
SSLEngine on
DocumentRoot /httpd/openadventures/public_html/
ErrorLog /var/log/httpd/openadventures_error_log
TransferLog /var/log/httpd/openadventures_transfer_log
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+e NULL
SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
SSLOptions +StdEnvVars
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
SSLOptions +StdEnvVars
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
downgrade-1.0 force-response-1.0
CustomLog /var/log/httpd/openadventures_ssl_request_log "%t %h
%{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
----------
This is the only way I've been able to get it to work. I'm looking to make
things more managable, easier to follow, and very refined.
Is there a better way to set this up?
Tom Smith
tom@openadventures.org
http://www.openadventures.org/
____________________________________________________________ __________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org