{"id":1017,"date":"2014-04-20T16:18:27","date_gmt":"2014-04-20T16:18:27","guid":{"rendered":"http:\/\/scunster.co.uk\/?p=1017"},"modified":"2014-04-20T16:18:27","modified_gmt":"2014-04-20T16:18:27","slug":"setup-multiple-ssl-vhosts-in-apache","status":"publish","type":"post","link":"https:\/\/scunster.co.uk\/?p=1017","title":{"rendered":"Setup multiple SSL vhosts in apache"},"content":{"rendered":"<p>Edit \/etc\/httpd\/conf.d\/ssl.conf and make sure the following are enabled just underneath LoadModule ssl_module modules\/mod_ssl.so<\/p>\n<pre>Listen 443\r\nNameVirtualHost *:443<\/pre>\n<p>Then at the bottom of the file, add your virtual hosts, heres a template you can use for all your sites<\/p>\n<pre>&lt;VirtualHost *:443&gt;\r\nServerName yourservername.co.uk\r\nDocumentRoot \/var\/www\/html\r\n\r\nErrorLog logs\/ssl_error_log\r\nTransferLog logs\/ssl_access_log\r\nLogLevel warn\r\nSSLEngine on\r\nSSLProtocol all -SSLv2\r\nSSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW\r\nSSLCertificateFile \/etc\/httpd\/certs\/ca.crt\r\nSSLCertificateKeyFile \/etc\/httpd\/certs\/ca.key\r\n&lt;Files ~ &quot;\\.(cgi|shtml|phtml|php3?)$&quot;&gt;\r\n   SSLOptions +StdEnvVars\r\n&lt;\/Files&gt;\r\n&lt;Directory &quot;\/var\/www\/cgi-bin&quot;&gt;\r\n    SSLOptions +StdEnvVars\r\n&lt;\/Directory&gt;\r\nSetEnvIf User-Agent &quot;.*MSIE.*&quot; \\\r\n         nokeepalive ssl-unclean-shutdown \\\r\n         downgrade-1.0 force-response-1.0\r\nCustomLog logs\/ssl_request_log \\\r\n         &quot;%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \\&quot;%r\\&quot; %b&quot;\r\n&lt;\/VirtualHost&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Edit \/etc\/httpd\/conf.d\/ssl.conf and make sure the following are enabled just underneath LoadModule ssl_module modules\/mod_ssl.so Listen 443 NameVirtualHost *:443 Then at the bottom of the file, add your virtual hosts, heres a template you can use for all your sites &lt;VirtualHost *:443&gt; ServerName yourservername.co.uk DocumentRoot \/var\/www\/html ErrorLog logs\/ssl_error_log TransferLog logs\/ssl_access_log LogLevel warn SSLEngine on SSLProtocol all [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[164,3,12],"tags":[],"class_list":["post-1017","post","type-post","status-publish","format-standard","hentry","category-centos","category-linux","category-webhosting"],"_links":{"self":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1017","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1017"}],"version-history":[{"count":1,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1017\/revisions"}],"predecessor-version":[{"id":1018,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1017\/revisions\/1018"}],"wp:attachment":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1017"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1017"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1017"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}