Mở cổng 443, https trên xampp (ok)

Bước 1: 
C:\xampp\apache\conf\extra\httpd-vhosts.conf
Bước 2:
Listen 1996
<VirtualHost *:1996>
 DocumentRoot "C:/xampp/htdocs/giasu123"
 ServerName localhost
</VirtualHost>

Chú ý: nếu open port 443 thì thêm

SSLEngine on
SSLCertificateFile "conf/ssl.crt/server.crt"
SSLCertificateKeyFile "conf/ssl.key/server.key"
Listen 443
<VirtualHost *:443>
    DocumentRoot "C:/xampp/htdocs/binhchonhangviet.com.vn"
    ServerName binhchonhangviet.com.vn
    SSLEngine on
    SSLCertificateFile "conf/ssl.crt/server.crt"
    SSLCertificateKeyFile "conf/ssl.key/server.key"
</VirtualHost>

Last updated