Yii2-advanced app with SSL on localhost
<p>I'm running xampp on Windows. I have a yii2-advanced installation set up on an existing domain that points to my localhost by configuring the hosts file. i.e.:</p>

<p>hosts file:</p>

<p><code>local.testwebsite.com 127.0.0.1</code></p>

<p>I have to use an existing domain because I'm using some third party APIs which require the return URLs to be pointing to an online website.</p>

<p>Now I'm trying to create a Facebook page app, which requires the page tab to point to a HTTPS URL. <a href="http://local.testwebsite.com" rel="nofollow">http://local.testwebsite.com</a> correctly points to my yii2 installation. However, when I try to go to <a href="https://testwebsite.com" rel="nofollow">https://testwebsite.com</a>, I land at my root <code>htdocs</code> folder.</p>

<p>So if my Facebook page tab app is located at <code>controller/fb-app</code>, going to <code>http://local.testwebsite.com/controller/fb-app</code> will work correctly, but going to <code>https://local.testwebsite.com/controller/fb-app</code> will incorrectly try to find <code>../controller/app</code> in <code>htdocs</code>.</p>

<p>I realize there's some Apache configuration issue here, but I'm unsure about what to change in my apache config in order to get https to also be routing my yii2 app correctly.</p>

<p>Note: I don't have a certificate set up on my server. I just access it by HTTPS and bypass the browser 'unsafe' notification.</p>