Hi
I'm using OpenBSD 3.7 with default Apache with SSL over two VirtualHosts witht he same IP.

Here is how it works in there:

NameVirtualHost *:80
NameVirtualHost *:443

<VirtualHost *>
ServerName myservername.com
</VirtualHost>

<VirtualHost *:443>
ServerName needssl.myservername.com
DocumentRoot /var/www/htdocs/mydomainssl
SSLEngine on
SSLCertificateFile /etc/ssl/server-ssl2.crt
SSLCertificateKeyFile /etc/ssl/private/ssl2.key
</VirtualHost>

second ssl is just default:

<VirtualHost _default_:443>
DocumentRoot /var/www/htdocs
ServerName myservername.com
ServerAdmin i'[EMAIL PROTECTED]
ErrorLog logs/error_log
TransferLog logs/access_log

SSLEngine on
SSLCertificateFile    /etc/ssl/server.crt
SSLCertificateKeyFile /etc/ssl/private/server.key
</VirtualHost>

As You can see the main difference are certificate files.

At 00:51 2006-05-25, you wrote:
Okay, but this is only part of the problem from what I understand from
reading the provided link. How can I have multiple sites on the same
server then if I don't use name-based virtual hosts without using
multiple IP addresses?

Any idea about the other issue I'm having?

Best,
Adam

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Spruell, Darren-Perot
Sent: Wednesday, May 24, 2006 1:42 PM
To: misc@openbsd.org
Subject: Re: Apache: Odd Errors with HTTPS and NameVirtualHosts

From: [EMAIL PROTECTED]
> At startup of Apache I get a warning notice of "[warn] NameVirtualHost
> xxx.xxx.xxx.xxx:443 has no VirtualHosts".
>
> I have two virtual hosts for port 80 based on IP to ServerName. I then

> have one virtual host for SSL port 443. I have "NameVirtualHost
> xxx.xxx.xxx.xxx:80" and "NameVirtualHost xxx.xxx.xxx.xxx:443".
>
> Any ideas or suggestions how to resolve these problems would be much
> appreciated.

http://httpd.apache.org/docs/1.3/vhosts/name-based.html

"Name-based virtual hosting cannot be used with SSL secure servers
because of the nature of the SSL protocol."

DS

Marcin "Nicram" Wilk

Homepage:
http://nicram.sytes.net
Maintainer of:
http://ng.pl.eu.org
http://mga.pl.eu.org

AQQ:66491 , GG:2941385 , ICQ:126530466
YM&AIM:nicr4m , Skype:nicrame
Tlen:[EMAIL PROTECTED] , MSN:[EMAIL PROTECTED]
Jabber:[EMAIL PROTECTED], [EMAIL PROTECTED]
IRC: http://www.ii2.org/user.php?nick=nicram

Reply via email to