[LUNI] SSL virtual hosts on Apache

Lance Spitzner lance at honeynet.org
Sun Aug 11 17:04:00 CDT 2002


I've setup virtual hosts many times on Apache, however this
is my first crack at doing it with SSL.  SSL is working fine
on my system, but I can't get virtual SSL hosts to work.  Below
is the SSL Virtual host config file.  However, when I connect
to port 443, I get a 501 Error message, method not supported.
The client is attempting to make an SSL connection to port 443,
but appears that when apapche responds, it does not realize the
connection is SSL, and is attempting cleartext connection, thus
the 501 Not Supported error.

Words of wisdom?

Thanks!

lance

      ---    httpd.conf   ----

<IfDefine SSL>

##
## SSL Virtual Host Context
##


<VirtualHost 1.1.1.1:443>
DocumentRoot /var/www/htdocs/web1
ServerName web1.example.org
ServerAdmin hostmaster at example.org
ErrorLog logs/error_log-web1
TransferLog logs/access_log-web1
SSLEngine on
SSLCertificateFile    /etc/ssl/web1/server.crt
SSLCertificateKeyFile /etc/ssl/web1/private/server.key
</VirtualHost>                                  

<VirtualHost 1.1.1.1:443>
DocumentRoot /var/www/htdocs/web2
ServerName web2.example.org
ServerAdmin hostmaster at example.org
ErrorLog logs/error_log-web2
TransferLog logs/access_log-web2
SSLEngine on
SSLCertificateFile    /etc/ssl/web2/server.crt
SSLCertificateKeyFile /etc/ssl/web2/private/server.key
</VirtualHost>    

</IfDefine>





More information about the luni mailing list