Cara Konfigurasi Virtual Host XAMPP di Windows 10

Konfigurasi Virtual Host dengan SSL

  1. Buat Sertifikat SSL, dibahas pada artikel berikutnya.
    Misalnya sertifikat dengan nama file server.crt, server.key
  2. Letakkan sertifikat SSL pada C:\XAMPPapacheconf
  3. Tambahkan kode berikut pada akhir file httpd-vhosts.conf
<virtualhost *:443>
    ServerName www.example1.com
    DocumentRoot "C:\XAMPP\htdocs\www.example1.com"
    SSLEngine on
    SSLCertificateFile "conf/ssl.crt/server.crt"
    SSLCertificateKeyFile "conf/ssl.key/server.key"
   <directory "c:\xampp\htdocs\www.example1.com">
        Options Indexes FollowSymLinks Includes ExecCGI
        Order allow,deny
        Allow from all
  </directory>
</virtualhost>

Artikel Terbaru