Asked by Geyybecca in Apache Web Server, Secure Socket Layer (SSL) & HTTPS, Red Hat Linux
I am trying to host two SSL websites on an Apache 2.0 webserver which is running on Redhat Enterprise 5.2
These
websites are on seperate IP addresses, and I am using the
httpd-vhosts.conf file to specify the details of each website. the
contents of the above file is below. By adding the new second ssl
certificate apache hangs on restart. If I change the certificate for
www.geminiit.co.uk
to the default server.crt and server.key files supplied with Apache,
everything starts ok and my first SSL website works fine. The second by
using the default server.crt starts but of course the certificate is of
no use.
I have now tried certificates from two differnet suppliers to no avail, any help very greatfully received
what am I doing wrong?
NameVirtualHost 192.168.0.86:80
<VirtualHost 192.168.0.86:80>
ServerAdmin webmaster@ginxcouture.co.u
k
DocumentRoot /opt/lampp/htdocs/shopginxcouture
ServerName shop.ginxcouture.co.uk
ErrorLog htdocs/shopginxcouture/logs/ginxshop-error_log
CustomLog htdocs/shopginxcouture/logs/ginxshop-access_log common
</VirtualHost>
<VirtualHost 192.168.0.86:443>
ServerAdmin webmaster@ginxcouture.co.uk
SSLEngine on
SSLCertificateFile /opt/lampp/etc/ssl.crt/shop.ginxcouture.crt
SSLCertificateKeyFile /opt/lampp/etc/ssl.key/shop.ginxcouture.key
DocumentRoot /opt/lampp/htdocs/shopginxcouture
ServerName shop.ginxcouture.co.uk:443
ErrorLog htdocs/shopginxcouture/logs/ginxshop-error_log
CustomLog htdocs/shopginxcouture/logs/ginxshop-access_log common
</VirtualHost>
<VirtualHost 192.168.0.86:80>
ServerAdmin webmaster@the-website-directory.com
DocumentRoot /opt/lampp/htdocs/the-website-directory
ServerName www.the-website-directory.com
ErrorLog htdocs/the-website-directory/logs/error_log
CustomLog htdocs/the-website-directory/logs/access_log common
</VirtualHost>
<VirtualHost 192.168.0.86:80>
ServerAdmin webmaster@theukwebsitedirectory.co.uk
DocumentRoot /opt/lampp/htdocs/ukweb
ServerName www.theukwebsitedirectory.co.uk
ServerAlias www.the-uk-website-directory.co.uk www.theukwebsitedirectory.com
ErrorLog htdocs/ukweb/logs/error_log
CustomLog htdocs/ukweb/logs/access_log common
</VirtualHost>
<VirtualHost 192.168.0.88:80>
ServerAdmin webmaster@geminiit.co.uk
DocumentRoot /opt/lampp/htdocs/shopgeminiit
ServerName www.geminiit.co.uk
ErrorLog htdocs/shopgeminiit/logs/geminishop-error_log
CustomLog htdocs/shopgeminiit/logs/geminishop-access_log common
</VirtualHost>
<VirtualHost 192.168.0.88:443>
ServerAdmin webmaster@geminiit.co.uk
SSLEngine on
SSLCertificateFile /opt/lampp/etc/ssl.crt/geminiit.crt
SSLCertificateKeyFile /opt/lampp/etc/ssl.key/geminiit.key
DocumentRoot /opt/lampp/htdocs/shopgeminiit
ServerName www.geminiit.co.uk:443
ErrorLog htdocs/shopgeminiit/logs/geminishop-error_log
CustomLog htdocs/shopgeminiit/logs/geminishop-access_log common
</VirtualHost>