Configure Virtual Host with SSL
- Cree un certificado SSL, del que hablaremos en el siguiente artículo.Cree un certificado SSL, del que hablaremos en el siguiente artículo. Por ejemplo un certificado con el nombre de archivo «server.crt», «server.key»
- Por ejemplo, un certificado con el nombre de archivo «servidor.crt», «servidor.key», «servidor.key».
- Coloque el certificado SSL en «C:\XAMPP\apache\conf»
- Añada el siguiente código al final del archivo 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>