System: Apache/1.3.26 (Unix) Debian GNU/Linux with mod_ssl
Im able to do typical virtual hosts on a single IP system with the following
httpd.conf entries.
This enables me to host multiple sites on a single system running apache..
aslong as DNS is setup properly.
NameVirtualHost *
<VirtualHost *:80>
ServerAdmin webmaster DeleteThis @blahh.blahh
DocumentRoot /var/www/blahhblahh
ServerName blahhblahh.net
ServerAlias
www.blahhblahh.net
ErrorLog /var/log/apache/blahhblahh_error_log
CustomLog /var/log/apache/blahhblahh_access_log common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster DeleteThis @blahhblahh2.net
DocumentRoot /var/www/blahhblahh2_htdocs
ServerName blahhblahh2.net
ServerAlias
www.blahhblahh2.net
ErrorLog /var/log/apache/blahhblahh2_error_log
CustomLog /var/log/apache/blahhblahh2_access_log common
</VirtualHost>
Im trying to do pretty much the same thing with the below entries yet using
mod_ssl port:443 with dif keys per site, yet obviously its not working. Can
it be done? Current httpd.conf entries below .. Im sure im doing someing
completly wrong... I get the below error from apache. [warn] _default_
VirtualHost overlap on port 443, the first has precedence
<VirtualHost *:443>
ServerAdmin webmaster@securtesite#1.net
DocumentRoot /var/www/securesite#1_htdocs/ssl
ServerName securesite#1.net
ServerAlias
www.securesite#1.net
ErrorLog /var/log/apache/securesite#1_ssl_error_log
CustomLog /var/log/apache/securesite#1_access_log common
<IfModule mod_ssl.c>
SSLEngine on
SSLCertificateFile /etc/apache/ssl.crt_securesite#1/server.crt
SSLCertificateKeyFile /etc/apache/ssl.key_securesite#1/server.key
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
</IfModule>
</VirtualHost>
<VirtualHost *:443>
ServerAdmin webmaster@securesite#2.ca
DocumentRoot /var/www/securesite#2_htdocs/ssl/
ServerName securesite#2.ca
ServerAlias
www.securesite#2.ca
ErrorLog /var/log/apache/securesite#2_ssl_error_log
CustomLog /var/log/apache/securesite#2__ssl_access_log common
<IfModule mod_ssl.c>
SSLEngine on
SSLCertificateFile /etc/apache/ssl.crt_thedream/server.crt
SSLCertificateKeyFile /etc/apache/ssl.key_thedream/server.key
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
</IfModule>
</VirtualHost>