Enabling SSL with XAMPP

后端 未结 6 768
野的像风
野的像风 2020-11-27 09:56

I\'ve been following this guide as much as I could http://robsnotebook.com/xampp-ssl-encrypt-passwords .

However whenever I browse to a page starting with https the

6条回答
  •  广开言路
    2020-11-27 10:35

    configure SSL in xampp/apache/conf/extra/httpd-vhost.conf

    http

    
        DocumentRoot "C:/xampp/htdocs/myproject/web"
        ServerName www.myurl.com
    
        
            Options All
            AllowOverride All
            Require all granted
        
    
    

    https

    
        DocumentRoot "C:/xampp/htdocs/myproject/web"
        ServerName www.myurl.com
        SSLEngine on
        SSLCertificateFile "conf/ssl.crt/server.crt" 
        SSLCertificateKeyFile "conf/ssl.key/server.key"
        
            Options All
            AllowOverride All
            Require all granted
        
    
    

    make sure server.crt & server.key path given properly otherwise this will not work.

    don't forget to enable vhost in httpd.conf

    # Virtual hosts
    Include etc/extra/httpd-vhosts.conf
    

提交回复
热议问题