Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vanleantking/fa3281c99630b4e879c0944be536f4a1 to your computer and use it in GitHub Desktop.
Save vanleantking/fa3281c99630b4e879c0944be536f4a1 to your computer and use it in GitHub Desktop.
https over xampp
Config virtual host from httpd.conf (or httpd-vhost.conf file)
Http
<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs/myproject/web"
ServerName www.myurl.com
<Directory "C:/xampp/htdocs/myproject/web">
Options All
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
https
<VirtualHost *:443>
DocumentRoot "C:/xampp/htdocs/myproject/web"
ServerName www.myurl.com
SSLEngine on
SSLCertificateFile "conf/ssl.crt/server.crt"
SSLCertificateKeyFile "conf/ssl.key/server.key"
<Directory "C:/xampp/htdocs/myproject/web">
Options All
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
Make sure server.crt & server.key path given properly otherwise this will not work.
If config from /httpd-vhost.conf make sure include this file into httpd.conf:
Include etc/extra/httpd-vhosts.conf
@vanleantking
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment