Jasper wrote:
Hi All,

I've configured the httpd.conf file the following:

<VirtualHost www.mercatortrading.nl:443>

#  General setup for the virtual host
DocumentRoot "/home/jabal/public_html"
ServerName mercatortrading.nl
ServerAdmin [EMAIL PROTECTED]
ErrorLog logs/ssl_error_log
TransferLog logs/ssl_access_log

*snip*

</VirtualHost>

<VirtualHost www.profibas.com:443>
DocumentRoot "/home/jabal/public_html"
ServerName profibas.com
ServerAdmin [EMAIL PROTECTED]
ErrorLog logs/ssl_error_log
TransferLog logs/ssl_access_log

SSLEngine on

SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /etc/ssl/profibas.crt
SSLCertificateKeyFile /etc/ssl/private/profibas.key

</VirtualHost>

running httpd -uDSSL gives the following warning:
[Tue Sep 20 20:39:33 2005] [warn] VirtualHost www.mercatortrading.nl:443 overlaps with VirtualHost www.profibas.com:443, the first has precedence, perhaps you need a NameVirtualHost directive

Am i missing the point of virtual hosting?

Well, at least some parts of it. Two virtualhosts can only share the same ip:host tuple if they are both non-secured (SSL). Otherwise the server cannot know which certificate to use (or not).

If you are hosting multiple secured sites you need multiple ip addresses or the sites must reside on separate ports.

/Alexander

Reply via email to