<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Configuring HTTPS with virtual hosts</title>
	<atom:link href="http://diymacserver.com/installing-apache/configuring-https-with-virtual-hosts/feed/" rel="self" type="application/rss+xml" />
	<link>http://diymacserver.com</link>
	<description></description>
	<lastBuildDate>Mon, 06 Feb 2012 16:07:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: billc108</title>
		<link>http://diymacserver.com/installing-apache/configuring-https-with-virtual-hosts/comment-page-1/#comment-10281</link>
		<dc:creator>billc108</dc:creator>
		<pubDate>Tue, 17 May 2011 05:17:48 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/installing-apache/configuring-https-with-virtual-hosts/#comment-10281</guid>
		<description>Hi Joe, 

Here&#039;s my entire httpd-ssl.conf file, scrubbed for publication, with most of the standard notes removed.  Hope it helps.  Email me through my site&#039;s contact page if you want to communicate directly. 

#replacing brackets with double parentheses ((

# note: IP address for secure.domain1.com != IP for domain2.com

Listen xxx.xxx.xxx.xxx:443  ## This is domain 1 - secure.domain1.com only
Listen domain2.com:8443     ## This is domain 2 - no &quot;secure.&quot; subdomain on this one. 

AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl    .crl

SSLPassPhraseDialog  builtin

SSLSessionCache        &quot;shmcb:/opt/local/apache2/logs/ssl_scache(512000)&quot;
SSLSessionCacheTimeout  300

SSLMutex  &quot;file:/opt/local/apache2/logs/ssl_mutex&quot;

SSLCipherSuite HIGH:!SSLv2:!ADH:!aNULL:!eNULL:!NULL:!kEDH

#####################################

NameVirtualHost secure.domain1.com:443
                               
((VirtualHost secure.domain1.com:443))
DocumentRoot &quot;/opt/local/apache2/htdocs/domain1/secure/&quot;
ServerName secure.domain1.com:443
ServerAdmin admin@domain1.com
ErrorLog &quot;/opt/local/apache2/logs/error_log&quot;
TransferLog &quot;/opt/local/apache2/logs/access_log&quot;
SSLEngine on
SSLCipherSuite HIGH:!SSLv2:!ADH:!aNULL:!eNULL:!NULL:!kEDH
SSLCertificateFile &quot;/opt/local/apache2/conf/secure.domain1.com.crt&quot; 			

SSLCertificateKeyFile &quot;/opt/local/apache2/conf/secure.domain1.key&quot;  		

SSLCACertificateFile &quot;/opt/local/apache2/conf/secure.domain1.com_ca.crt&quot;

SSLVerifyClient   optional_no_ca

SSLProtocol -ALL +SSLv3 +TLSv1

((FilesMatch &quot;\.(cgi&#124;shtml&#124;phtml&#124;php)$&quot;))
    SSLOptions +StdEnvVars
((/FilesMatch))
((Directory &quot;/opt/local/apache2/cgi-bin&quot;))
    SSLOptions +StdEnvVars
((/Directory))
BrowserMatch &quot;.*MSIE.*&quot; \
         nokeepalive ssl-unclean-shutdown \
         downgrade-1.0 force-response-1.0
CustomLog &quot;/opt/local/apache2/logs/ssl_request_log&quot; \
          &quot;%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \&quot;%r\&quot; %b&quot;
((/VirtualHost)) 

#####################################

NameVirtualHost domain2.com:8443
                               
((VirtualHost domain2.com:8443))
DocumentRoot &quot;/opt/local/apache2/htdocs/domain2/DMX/&quot;
ServerName domain2.com
ServerAdmin admin@domain1.com
ErrorLog &quot;/opt/local/apache2/logs/error_log&quot;
TransferLog &quot;/opt/local/apache2/logs/access_log&quot;
SSLEngine on
SSLCipherSuite HIGH:!SSLv2:!ADH:!aNULL:!eNULL:!NULL:!kEDH

SSLCertificateFile &quot;/opt/local/apache2/conf/domain2.com.crt&quot; 			
SSLCertificateKeyFile &quot;/opt/local/apache2/conf/domain2.key&quot;  		
SSLCACertificateFile &quot;/opt/local/apache2/conf/domain2.com_ca.crt&quot;

SSLProtocol -ALL +SSLv3 +TLSv1

SSLVerifyClient   optional_no_ca

((FilesMatch &quot;\.(cgi&#124;shtml&#124;phtml&#124;php)$&quot;))
    SSLOptions +StdEnvVars
((/FilesMatch))
((Directory &quot;/opt/local/apache2/cgi-bin&quot;))
    SSLOptions +StdEnvVars
((/Directory))
BrowserMatch &quot;.*MSIE.*&quot; \
         nokeepalive ssl-unclean-shutdown \
         downgrade-1.0 force-response-1.0
CustomLog &quot;/opt/local/apache2/logs/ssl_request_log&quot; \
          &quot;%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \&quot;%r\&quot; %b&quot;
((/VirtualHost))</description>
		<content:encoded><![CDATA[<p>Hi Joe, </p>
<p>Here&#8217;s my entire httpd-ssl.conf file, scrubbed for publication, with most of the standard notes removed.  Hope it helps.  Email me through my site&#8217;s contact page if you want to communicate directly. </p>
<p>#replacing brackets with double parentheses ((</p>
<p># note: IP address for secure.domain1.com != IP for domain2.com</p>
<p>Listen xxx.xxx.xxx.xxx:443  ## This is domain 1 &#8211; secure.domain1.com only<br />
Listen domain2.com:8443     ## This is domain 2 &#8211; no &#8220;secure.&#8221; subdomain on this one. </p>
<p>AddType application/x-x509-ca-cert .crt<br />
AddType application/x-pkcs7-crl    .crl</p>
<p>SSLPassPhraseDialog  builtin</p>
<p>SSLSessionCache        &#8220;shmcb:/opt/local/apache2/logs/ssl_scache(512000)&#8221;<br />
SSLSessionCacheTimeout  300</p>
<p>SSLMutex  &#8220;file:/opt/local/apache2/logs/ssl_mutex&#8221;</p>
<p>SSLCipherSuite HIGH:!SSLv2:!ADH:!aNULL:!eNULL:!NULL:!kEDH</p>
<p>#####################################</p>
<p>NameVirtualHost secure.domain1.com:443</p>
<p>((VirtualHost secure.domain1.com:443))<br />
DocumentRoot &#8220;/opt/local/apache2/htdocs/domain1/secure/&#8221;<br />
ServerName secure.domain1.com:443<br />
ServerAdmin <a href="mailto:admin@domain1.com">admin@domain1.com</a><br />
ErrorLog &#8220;/opt/local/apache2/logs/error_log&#8221;<br />
TransferLog &#8220;/opt/local/apache2/logs/access_log&#8221;<br />
SSLEngine on<br />
SSLCipherSuite HIGH:!SSLv2:!ADH:!aNULL:!eNULL:!NULL:!kEDH<br />
SSLCertificateFile &#8220;/opt/local/apache2/conf/secure.domain1.com.crt&#8221; 			</p>
<p>SSLCertificateKeyFile &#8220;/opt/local/apache2/conf/secure.domain1.key&#8221;  		</p>
<p>SSLCACertificateFile &#8220;/opt/local/apache2/conf/secure.domain1.com_ca.crt&#8221;</p>
<p>SSLVerifyClient   optional_no_ca</p>
<p>SSLProtocol -ALL +SSLv3 +TLSv1</p>
<p>((FilesMatch &#8220;\.(cgi|shtml|phtml|php)$&#8221;))<br />
    SSLOptions +StdEnvVars<br />
((/FilesMatch))<br />
((Directory &#8220;/opt/local/apache2/cgi-bin&#8221;))<br />
    SSLOptions +StdEnvVars<br />
((/Directory))<br />
BrowserMatch &#8220;.*MSIE.*&#8221; \<br />
         nokeepalive ssl-unclean-shutdown \<br />
         downgrade-1.0 force-response-1.0<br />
CustomLog &#8220;/opt/local/apache2/logs/ssl_request_log&#8221; \<br />
          &#8220;%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \&#8221;%r\&#8221; %b&#8221;<br />
((/VirtualHost)) </p>
<p>#####################################</p>
<p>NameVirtualHost domain2.com:8443</p>
<p>((VirtualHost domain2.com:8443))<br />
DocumentRoot &#8220;/opt/local/apache2/htdocs/domain2/DMX/&#8221;<br />
ServerName domain2.com<br />
ServerAdmin <a href="mailto:admin@domain1.com">admin@domain1.com</a><br />
ErrorLog &#8220;/opt/local/apache2/logs/error_log&#8221;<br />
TransferLog &#8220;/opt/local/apache2/logs/access_log&#8221;<br />
SSLEngine on<br />
SSLCipherSuite HIGH:!SSLv2:!ADH:!aNULL:!eNULL:!NULL:!kEDH</p>
<p>SSLCertificateFile &#8220;/opt/local/apache2/conf/domain2.com.crt&#8221;<br />
SSLCertificateKeyFile &#8220;/opt/local/apache2/conf/domain2.key&#8221;<br />
SSLCACertificateFile &#8220;/opt/local/apache2/conf/domain2.com_ca.crt&#8221;</p>
<p>SSLProtocol -ALL +SSLv3 +TLSv1</p>
<p>SSLVerifyClient   optional_no_ca</p>
<p>((FilesMatch &#8220;\.(cgi|shtml|phtml|php)$&#8221;))<br />
    SSLOptions +StdEnvVars<br />
((/FilesMatch))<br />
((Directory &#8220;/opt/local/apache2/cgi-bin&#8221;))<br />
    SSLOptions +StdEnvVars<br />
((/Directory))<br />
BrowserMatch &#8220;.*MSIE.*&#8221; \<br />
         nokeepalive ssl-unclean-shutdown \<br />
         downgrade-1.0 force-response-1.0<br />
CustomLog &#8220;/opt/local/apache2/logs/ssl_request_log&#8221; \<br />
          &#8220;%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \&#8221;%r\&#8221; %b&#8221;<br />
((/VirtualHost))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://diymacserver.com/installing-apache/configuring-https-with-virtual-hosts/comment-page-1/#comment-10280</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Tue, 17 May 2011 02:02:16 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/installing-apache/configuring-https-with-virtual-hosts/#comment-10280</guid>
		<description>Hi billc108,

Can you elaborate on your the solution? I&#039;m trying to make it work however had no success so far. An example of the file structure would be good. Thanks!</description>
		<content:encoded><![CDATA[<p>Hi billc108,</p>
<p>Can you elaborate on your the solution? I&#8217;m trying to make it work however had no success so far. An example of the file structure would be good. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: billc108</title>
		<link>http://diymacserver.com/installing-apache/configuring-https-with-virtual-hosts/comment-page-1/#comment-7673</link>
		<dc:creator>billc108</dc:creator>
		<pubDate>Tue, 14 Sep 2010 23:34:33 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/installing-apache/configuring-https-with-virtual-hosts/#comment-7673</guid>
		<description>Jeff wrote:
&quot;One important note to this: You can only use one certificate for your entire apache server – you cannot, for example set up https://www.example1.com and https://www.example2.com  and have different certificates for them. Apache (any version) will ignore all but the first SSLCertificateFile and SSLCertificateKeyFile directives it encounters.&quot;

This is not entirely true. It is possible to set up an apache server - or at least, some of them - with more than one SSL cert on different IPs and ports.  

replacing brackets with double parentheses ((

Listen example1.com:443
Listen example2.com:8443

#the server on port 443 follows the usual setup.

NameVirtualHost example2.com:8443
                               
((VirtualHost example2.com:8443))
ServerName example2.com


#etc....


I suspect that there are other, cleaner ways to do it as well.  I just haven&#039;t dug them up yet.</description>
		<content:encoded><![CDATA[<p>Jeff wrote:<br />
&#8220;One important note to this: You can only use one certificate for your entire apache server – you cannot, for example set up <a href="https://www.example1.com" rel="nofollow">https://www.example1.com</a> and <a href="https://www.example2.com" rel="nofollow">https://www.example2.com</a>  and have different certificates for them. Apache (any version) will ignore all but the first SSLCertificateFile and SSLCertificateKeyFile directives it encounters.&#8221;</p>
<p>This is not entirely true. It is possible to set up an apache server &#8211; or at least, some of them &#8211; with more than one SSL cert on different IPs and ports.  </p>
<p>replacing brackets with double parentheses ((</p>
<p>Listen example1.com:443<br />
Listen example2.com:8443</p>
<p>#the server on port 443 follows the usual setup.</p>
<p>NameVirtualHost example2.com:8443</p>
<p>((VirtualHost example2.com:8443))<br />
ServerName example2.com</p>
<p>#etc&#8230;.</p>
<p>I suspect that there are other, cleaner ways to do it as well.  I just haven&#8217;t dug them up yet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://diymacserver.com/installing-apache/configuring-https-with-virtual-hosts/comment-page-1/#comment-7448</link>
		<dc:creator>David</dc:creator>
		<pubDate>Thu, 19 Aug 2010 12:15:20 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/installing-apache/configuring-https-with-virtual-hosts/#comment-7448</guid>
		<description>When I use &quot;SSLEngine on&quot;
Apache will not start.  No errors are thrown when I use &quot;sudo /usr/local/apache2/bin/apachectl start&quot;, but the httpd process is not started, as shown by &quot;sudo top&quot;

When I remove the &quot;SSLEngine on&quot;, Apache is able to start.
Help would be greatly appreciated.</description>
		<content:encoded><![CDATA[<p>When I use &#8220;SSLEngine on&#8221;<br />
Apache will not start.  No errors are thrown when I use &#8220;sudo /usr/local/apache2/bin/apachectl start&#8221;, but the httpd process is not started, as shown by &#8220;sudo top&#8221;</p>
<p>When I remove the &#8220;SSLEngine on&#8221;, Apache is able to start.<br />
Help would be greatly appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://diymacserver.com/installing-apache/configuring-https-with-virtual-hosts/comment-page-1/#comment-6779</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Sat, 27 Mar 2010 14:32:45 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/installing-apache/configuring-https-with-virtual-hosts/#comment-6779</guid>
		<description>@Richard M. Thanks for pointing that one out. It&#039;s corrected.</description>
		<content:encoded><![CDATA[<p>@Richard M. Thanks for pointing that one out. It&#8217;s corrected.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Mace</title>
		<link>http://diymacserver.com/installing-apache/configuring-https-with-virtual-hosts/comment-page-1/#comment-6777</link>
		<dc:creator>Richard Mace</dc:creator>
		<pubDate>Fri, 26 Mar 2010 16:47:24 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/installing-apache/configuring-https-with-virtual-hosts/#comment-6777</guid>
		<description>Richard, you have a typo in the httpd-ssl.conf file &quot;from&quot; listing.  You have both listed as SSLCertificationKeyFile.  You need to correct (SSLCertificateKeyFile “/etc/httpd/server.crt”) into (SSLCertificateFile “/etc/httpd/server.crt”)</description>
		<content:encoded><![CDATA[<p>Richard, you have a typo in the httpd-ssl.conf file &#8220;from&#8221; listing.  You have both listed as SSLCertificationKeyFile.  You need to correct (SSLCertificateKeyFile “/etc/httpd/server.crt”) into (SSLCertificateFile “/etc/httpd/server.crt”)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://diymacserver.com/installing-apache/configuring-https-with-virtual-hosts/comment-page-1/#comment-6440</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Wed, 27 Jan 2010 05:33:35 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/installing-apache/configuring-https-with-virtual-hosts/#comment-6440</guid>
		<description>@Roberto, maybe during the compile fase there was an error with SSL and the module didn&#039;t compile. Check the config.log for errors on SSL and check if the module is available in the modules directory. If it is there just put the line in httpd.conf.</description>
		<content:encoded><![CDATA[<p>@Roberto, maybe during the compile fase there was an error with SSL and the module didn&#8217;t compile. Check the config.log for errors on SSL and check if the module is available in the modules directory. If it is there just put the line in httpd.conf.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roberto</title>
		<link>http://diymacserver.com/installing-apache/configuring-https-with-virtual-hosts/comment-page-1/#comment-6439</link>
		<dc:creator>Roberto</dc:creator>
		<pubDate>Wed, 27 Jan 2010 01:53:41 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/installing-apache/configuring-https-with-virtual-hosts/#comment-6439</guid>
		<description>Hi Richard question I dont have this line in my httpd.conf file:

LoadModule ssl_module modules/mod_ssl.so

So I cant uncomment it. How do I go about enabaling ssl_mod? Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi Richard question I dont have this line in my httpd.conf file:</p>
<p>LoadModule ssl_module modules/mod_ssl.so</p>
<p>So I cant uncomment it. How do I go about enabaling ssl_mod? Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://diymacserver.com/installing-apache/configuring-https-with-virtual-hosts/comment-page-1/#comment-1143</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Tue, 15 Jul 2008 19:59:21 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/installing-apache/configuring-https-with-virtual-hosts/#comment-1143</guid>
		<description>Sam in /etc/apache2 is the original configuration I didn&#039;t want to touch that. Same with the actual binaries, the diy install is in /usr/local just to not interfere with the original installation which might be overwritten by a update.

If you want to start the original use the sharing pane in the system preference, otherwise use the &lt;a href=&quot;/installing-apache/starting-apache-at-boot-on-leopard/&quot; rel=&quot;nofollow&quot;&gt;launchd script from the site&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Sam in /etc/apache2 is the original configuration I didn&#8217;t want to touch that. Same with the actual binaries, the diy install is in /usr/local just to not interfere with the original installation which might be overwritten by a update.</p>
<p>If you want to start the original use the sharing pane in the system preference, otherwise use the <a href="/installing-apache/starting-apache-at-boot-on-leopard/" rel="nofollow">launchd script from the site</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://diymacserver.com/installing-apache/configuring-https-with-virtual-hosts/comment-page-1/#comment-1140</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Tue, 15 Jul 2008 11:28:49 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/installing-apache/configuring-https-with-virtual-hosts/#comment-1140</guid>
		<description>Why you are using /etc/httpd... isn&#039;t this an apache2 config? shouldn&#039;t it be /etc/apache2?

With the diy setup, the Apache install on /usr/sbin is still there. Where do you set which apache is going to run on start? Maybe I haven&#039;t dug deep enough... I&#039;m guessing it&#039;s a launchd thing.</description>
		<content:encoded><![CDATA[<p>Why you are using /etc/httpd&#8230; isn&#8217;t this an apache2 config? shouldn&#8217;t it be /etc/apache2?</p>
<p>With the diy setup, the Apache install on /usr/sbin is still there. Where do you set which apache is going to run on start? Maybe I haven&#8217;t dug deep enough&#8230; I&#8217;m guessing it&#8217;s a launchd thing.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

