Configurer un hôte virtuel avec SSL
- Créez un certificat SSL, dont il sera question dans l’article suivant.Créez un certificat SSL, dont il sera question dans l’article suivant. Par exemple, un certificat avec le nom de fichier « server.crt », « server.key »
- Par exemple, un certificat portant le nom de fichier « server.crt », « server.key »
- Placer le certificat SSL dans « C:³XAMPP³capache³conf³ ».
- Ajoutez le code suivant à la fin du fichier 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>