Konfigurasi Virtual Host dengan SSL
- Buat Sertifikat SSL, dibahas pada artikel berikutnya.
Misalnya sertifikat dengan nama file server.crt, server.key - Letakkan sertifikat SSL pada C:\XAMPPapacheconf
- 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>