查看完整版本: Multiple SSL Websites Apache 2.0

chun 2009-8-10 23:00

Multiple SSL Websites Apache 2.0

<div class="qTitle loggedOutQTitle">
       <h1 class="titleHeader">http://www.experts-exchange.com/Software/Server_Software/Web_Servers/Apache/Q_23964097.html</h1><br><br><h1 class="titleHeader"><br></h1><h1 class="titleHeader">Multiple SSL Websites Apache 2.0</h1>
    </div>
<h3>Asked by <a class="highlight" href="http://www.experts-exchange.com/M_1277468.html">Geyybecca</a> in Apache Web Server, Secure Socket Layer (SSL) &amp; HTTPS, Red Hat Linux</h3>
<h3>Tags: <span>
        <a class="tag" rel="tag nofollow noindex" href="http://www.experts-exchange.com/tag/LINUX+Redhat+Enterprise+5.0#allResults">LINUX Redhat Enterprise 5.0</a>, <a class="tag" rel="tag nofollow noindex" href="http://www.experts-exchange.com/tag/Apache#allResults">Apache</a>, <a class="tag" rel="tag nofollow noindex" href="http://www.experts-exchange.com/tag/2.0#allResults">2.0</a></span></h3>

I am trying to host two SSL websites on an Apache 2.0 webserver which is running on Redhat Enterprise 5.2<br><br>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 <a rel="nofollow" href="http://www.geminiit.co.uk/" target="_blank">www.geminiit.co.uk</a>
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.<br><br>I have now tried certificates from two differnet suppliers to no avail, any help very greatfully received<br><br>what am I doing wrong?<br><br>NameVirtualHost 192.168.0.86:80<br><br>&lt;VirtualHost 192.168.0.86:80&gt;<br>&nbsp; &nbsp; ServerAdmin webmaster@ginxcouture.co.u<div class="qBody" id=""><wbr>k<br>&nbsp; &nbsp; DocumentRoot /opt/<span class="searchTerm">lampp</span>/htdocs/shopginx<wbr>couture<br>&nbsp; &nbsp; ServerName shop.ginxcouture.co.uk<br>&nbsp; &nbsp; ErrorLog htdocs/shopginxcouture/log<wbr>s/ginxshop<wbr>-error_log<wbr><br>&nbsp; &nbsp; CustomLog htdocs/shopginxcouture/log<wbr>s/ginxshop<wbr>-access_lo<wbr>g common<br>&lt;/VirtualHost&gt;<br><br>&lt;VirtualHost 192.168.0.86:443&gt;<br>&nbsp; &nbsp; ServerAdmin webmaster@ginxcouture.co.u<wbr>k<br>&nbsp; &nbsp; SSLEngine on<br>&nbsp; &nbsp; SSLCertificateFile /opt/<span class="searchTerm">lampp</span>/etc/ssl.crt/sho<wbr>p.ginxcout<wbr>ure.crt<br>&nbsp; &nbsp; SSLCertificateKeyFile /opt/<span class="searchTerm">lampp</span>/etc/ssl.key/sho<wbr>p.ginxcout<wbr>ure.key<br>&nbsp; &nbsp; DocumentRoot /opt/<span class="searchTerm">lampp</span>/htdocs/shopginx<wbr>couture<br>&nbsp; &nbsp; ServerName shop.ginxcouture.co.uk:443<wbr><br>&nbsp; &nbsp; ErrorLog htdocs/shopginxcouture/log<wbr>s/ginxshop<wbr>-error_log<wbr><br>&nbsp; &nbsp; CustomLog htdocs/shopginxcouture/log<wbr>s/ginxshop<wbr>-access_lo<wbr>g common<br>&lt;/VirtualHost&gt;<br><br>&lt;VirtualHost 192.168.0.86:80&gt;<br>&nbsp; &nbsp; ServerAdmin webmaster@the-website-dire<wbr>ctory.com<br>&nbsp; &nbsp; DocumentRoot /opt/<span class="searchTerm">lampp</span>/htdocs/the-webs<wbr>ite-direct<wbr>ory<br>&nbsp; &nbsp; ServerName <a rel="nofollow" href="http://www.the-website-directory.com/" target="_blank">www.the-website-directory.<wbr>com</a><br>&nbsp; &nbsp; ErrorLog htdocs/the-website-directo<wbr>ry/logs/er<wbr>ror_log<br>&nbsp; &nbsp; CustomLog htdocs/the-website-directo<wbr>ry/logs/ac<wbr>cess_log common<br>&lt;/VirtualHost&gt;<br><br>&lt;VirtualHost 192.168.0.86:80&gt;<br>&nbsp; &nbsp; ServerAdmin webmaster@theukwebsitedire<wbr>ctory.co.u<wbr>k<br>&nbsp; &nbsp; DocumentRoot /opt/<span class="searchTerm">lampp</span>/htdocs/ukweb<br>&nbsp; &nbsp; ServerName <a rel="nofollow" href="http://www.theukwebsitedirectory.co.uk/" target="_blank">www.theukwebsitedirectory.<wbr>co.uk</a><br>&nbsp; &nbsp; ServerAlias <a rel="nofollow" href="http://www.the-uk-website-directory.co.uk/" target="_blank">www.the-uk-website-directo<wbr>ry.co.uk</a> <a rel="nofollow" href="http://www.theukwebsitedirectory.com/" target="_blank">www.theukwebsitedirectory.<wbr>com</a><br>&nbsp; &nbsp; ErrorLog htdocs/ukweb/logs/error_lo<wbr>g<br>&nbsp; &nbsp; CustomLog htdocs/ukweb/logs/access_l<wbr>og common<br>&lt;/VirtualHost&gt;<br><br><br>&lt;VirtualHost 192.168.0.88:80&gt;<br>&nbsp; &nbsp; ServerAdmin webmaster@geminiit.co.uk<br>&nbsp; &nbsp; DocumentRoot /opt/<span class="searchTerm">lampp</span>/htdocs/shopgemi<wbr>niit<br>&nbsp; &nbsp; ServerName <a rel="nofollow" href="http://www.geminiit.co.uk/" target="_blank">www.geminiit.co.uk</a><br>&nbsp; &nbsp; ErrorLog htdocs/shopgeminiit/logs/g<wbr>eminishop-<wbr>error_log<br>&nbsp; &nbsp; CustomLog htdocs/shopgeminiit/logs/g<wbr>eminishop-<wbr>access_log<wbr> common<br>&lt;/VirtualHost&gt;<br><br>&lt;VirtualHost 192.168.0.88:443&gt;<br>&nbsp; &nbsp; ServerAdmin webmaster@geminiit.co.uk<br>&nbsp; &nbsp; SSLEngine on<br>&nbsp; &nbsp; SSLCertificateFile /opt/<span class="searchTerm">lampp</span>/etc/ssl.crt/gem<wbr>iniit.crt<br>&nbsp; &nbsp; SSLCertificateKeyFile /opt/<span class="searchTerm">lampp</span>/etc/ssl.key/gem<wbr>iniit.key<br>&nbsp; &nbsp; DocumentRoot /opt/<span class="searchTerm">lampp</span>/htdocs/shopgemi<wbr>niit<br>&nbsp; &nbsp; ServerName <a rel="nofollow" href="http://www.geminiit.co.uk:443/" target="_blank">www.geminiit.co.uk:443</a><br>&nbsp; &nbsp; ErrorLog htdocs/shopgeminiit/logs/g<wbr>eminishop-<wbr>error_log<br>&nbsp; &nbsp; CustomLog htdocs/shopgeminiit/logs/g<wbr>eminishop-<wbr>access_log<wbr> common<br>&lt;/VirtualHost&gt;</div>
頁: [1]
查看完整版本: Multiple SSL Websites Apache 2.0