Created
August 4, 2018 07:51
-
-
Save vanleantking/fa3281c99630b4e879c0944be536f4a1 to your computer and use it in GitHub Desktop.
https over xampp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
more detail
http://robsnotebook.com/xampp-ssl-encrypt-passwords