title: How do I use https (SSL) in XAMPP while using virtual hosts
body: <p>I am writing a php app on my local machine and would like to test to see if SSL is working. Bear with me because this is the first time I've ever used SSL.</p>
  
  <p>So far this is what I've done:</p>
  
  <ol>
  <li>Created a SSL Certificate. I followed the first part of this <a href="http://robsnotebook.com/xampp-ssl-encrypt-passwords" rel="noreferrer">this</a> tutorial to create the certificate.</li>
  <li>I imported the <code>server.crt</code> file into chrome.</li>
  <li>Removed the semicolon in front of <code>;extension=php_openssl.dll</code> in <code>php.ini</code> (<a href="https://stackoverflow.com/a/2643598/1043817">reference</a>)</li>
  <li>Edited my <code>httpd-vhosts.conf</code> file based on <a href="http://www.leonardaustin.com/technical/how-to-enable-ssl-on-xampp-with-vhosts" rel="noreferrer">this</a> page. The relevant section of that file is below. This is the full file: <a href="http://pastebin.com/k6Jh2eR6" rel="noreferrer">http://pastebin.com/k6Jh2eR6</a>
  
  <blockquote>
  <pre><code>&lt;VirtualHost *&gt;
      DocumentRoot "C:\Users\user_name\Documents\project_one"
      ServerName project_one.localhost
      SSLEngine on
      SSLCertificateFile "conf/ssl.crt/server.crt"
      SSLCertificateKeyFile "conf/ssl.key/server.key"
      &lt;Directory "C:\Users\user_name\Documents\project_one"&gt;
          AllowOverride All
          Order allow,deny
          Allow from all
      &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  </blockquote></li>
  </ol>
  
  <p>I would usually access my project by typing in <code>http://project_one.localhost</code> </p>
  
  <p><strong>When trying to access my project by typing <code>https://project_one.localhost</code> into chrome I automatically get forwarded to <code>https://project_one.localhost/xampp/</code> (as if XAMPP doesn't recognize <code>https://project_one.localhost</code> as a subdomain at all and treats it as if I'm typing in <code>https://localhost</code>) Any idea where I'm screwing up?</strong></p>
  
  <p>NOTE:</p>
  
  <ul>
  <li><code>LoadModule ssl_module modules/mod_ssl.so</code> was uncommented in <code>httpd.conf</code> file</li>
  </ul>