8
1
This is how I have set up a virtual host:
<VirtualHost mysite>
<Directory "/Users/myusername/sitefolder">
Options +FollowSymlinks
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>
DocumentRoot "/Users/myusername/sitefolder"
ServerName mysite
SSLEngine on
SSLCertificateFile /Users/myusername/certs/server.crt
SSLCertificateKeyFile /Users/myusername/certs/server.key
</VirtualHost>
With this configuration, I can view my site only with https, but not http. When I turn SSLEngine off then I cannot view my site with https, but http works fine.
How can I adjust the above lines so that I am able to see my site using both http and https?
I using OSX Lion, but I don't think it matters that much.
Thanks.
Is there any way to move the common code into a different file and #include it to make maintenance easier? – Ponkadoodle – 2013-12-18T06:11:04.430