title: Using SSL on two VirtualHosts
body: <p>So I got an SSL from GoDaddy.<br>
  It works for my public site <code>mysite.com</code>.<br>
  I would like now to have an SSL connection for my <code>administrator.mysite.com</code><br>
  So I created a self signed certificate using <strong><code>openssl</code></strong> because I don't mind managing my own site with a red mark on the lock.  </p>
  
  <p>inside <strong><code>httpd-ssl.conf</code></strong></p>
  
  <pre><code>&lt;VirtualHost *:443&gt;
     ServerName mysite.com:443
     ServerAlias www.mysite.com
  
     DocumentRoot /opt/lampp/htdocs/MySite/
  
     ServerAdmin admin@mysite.com
  
     ErrorLog /opt/lampp/htdocs/MySite/logfiles/ssl_errors.log
     TransferLog /opt/lampp/htdocs/MySite/logfiles/ssl_access.log
  
     SSLEngine on
     SSLProtocol all -SSLv2
     SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM
  
     SSLCertificateFile /opt/lampp/etc/ssl.crt/mysite.com.crt
     SSLCertificateKeyFile /opt/lampp/etc/ssl.key/server_nopwd.key
     SSLCertificateChainFile /opt/lampp/etc/ssl.crt/gd_bundle.crt
  
     SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
     CustomLog /opt/lampp/htdocs/MySite/logfiles/ssl_request_log "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
     &lt;FilesMatch "\.(cgi|shtml|phtml|php)$"&gt;
      SSLOptions +StdEnvVars
     &lt;/FilesMatch&gt;
     &lt;Directory "/opt/lampp/cgi-bin"&gt;
       SSLOptions +StdEnvVars
      &lt;/Directory&gt;
      BrowserMatch ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
  
  &lt;/VirtualHost&gt;                                  
  
  &lt;VirtualHost *:443&gt;
     ServerName administrator.mysite.com:443
     DocumentRoot "/opt/lampp/htdocs/"
  
     ServerAdmin admin@mysite.com
  
     ErrorLog /opt/lampp/htdocs/MySite/logfiles/ssl_errors_admin.log
     TransferLog /opt/lampp/htdocs/MySite/logfiles/ssl_access_admin.log
  
     SSLEngine on
     SSLProtocol all -SSLv2
     SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM
  
     SSLCertificateFile /opt/lampp/etc/ssl.crt/admin.crt
     SSLCertificateKeyFile /opt/lampp/etc/ssl.key/admin.key
  
     SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
     CustomLog /opt/lampp/htdocs/MySite/logfiles/ssl_request_log "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
  
  &lt;FilesMatch "\.(cgi|shtml|phtml|php)$"&gt;
      SSLOptions +StdEnvVars
  &lt;/FilesMatch&gt;
  &lt;Directory "/opt/lampp/cgi-bin"&gt;
      SSLOptions +StdEnvVars
  &lt;/Directory&gt;
  BrowserMatch ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
  
  &lt;/VirtualHost&gt;      
  </code></pre>
  
  <p>And I get this warning:</p>
  
  <pre><code>[warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
  </code></pre>
  
  <p>What happens is that the administrator host is redirected to the regular host, which is very annoying</p>