title: apache virtualhost with ssl not working on subdirectories
body: <p>I have an issue with my virtual host SSL configuration. 
  My site works on the basic domain www.my_domain.com for both HTTP and HTTPS but doesn't work on all the subdirectories.
  Example:</p>
  
  <ul>
  <li><p><a href="http://www.my_domain.com" rel="nofollow noreferrer">http://www.my_domain.com</a> - works</p></li>
  <li><p><a href="https://www.my_domain.com" rel="nofollow noreferrer">https://www.my_domain.com</a> - works</p></li>
  <li><p><a href="http://www.my_domain.com/secondary" rel="nofollow noreferrer">http://www.my_domain.com/secondary</a> - works</p></li>
  <li><p><a href="https://www.my_domain.com/secondary" rel="nofollow noreferrer">https://www.my_domain.com/secondary</a> - doesn't work</p></li>
  </ul>
  
  <p>My virtual host setup is as follows:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
   ServerAdmin my_domain@gmail.com
   DocumentRoot /var/www/html/
   ServerName www.my_domain.com
   ServerAlias my_domain.com
   ErrorLog /var/www/html/error.log
  
   Alias /secondary /var/www/html/secondary/
   &lt;Directory /var/www/html/secondary/&gt;
      Options FollowSymLinks MultiViews
      allow from all
      order allow,deny
      AllowOverride All
   &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>My ssl.conf setup is as follows:</p>
  
  <pre><code>&lt;VirtualHost _default_:443&gt;
  ServerName www.my_domain.com:443
  ...
  SSLEngine on
  SLProtocol all -SSLv2
  SSLCipherSuite DEFAULT:!EXP:!SSLv2:!DES:!IDEA:!SEED:+3DES
  SSLCertificateFile /etc/httpd/ssl/apache.crt
  SSLCertificateKeyFile /etc/httpd/ssl/apache.key
  &lt;FilesMatch "\.(cgi|shtml|phtml|php)$"&gt;
  SSLOptions +StdEnvVars
  &lt;/FilesMatch&gt;
  &lt;Directory /usr/lib/cgi-bin&gt;
      SSLOptions +StdEnvVars
  &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>The error is: The requested URL /secondary was not found on this server.</p>