
Estoy intentando configurar un sitio SSL local (para fines de desarrollo/prueba) usando Apache y mod_ssl y esto es lo que tengo en mis archivos VirtualHost:
/etc/httpd/conf.d/local.conf
<VirtualHost *:80>
ServerName reptool.dev
DocumentRoot /var/www/html/magnific/reptooln_admin/web
<Directory /var/www/html/magnific/reptooln_admin/web>
# enable the .htaccess rewrites
AllowOverride All
Order allow,deny
Allow from All
</Directory>
ErrorLog /var/log/httpd/reptool-error.log
CustomLog /var/log/httpd/reptool-access.log combined
</VirtualHost>
/etc/httpd/conf.d/local-ssl.conf
<VirtualHost reptool.dev:443>
ServerName reptool.dev:443
DocumentRoot /var/www/html/magnific/reptooln_admin/web
<Directory /var/www/html/magnific/reptooln_admin/web>
# enable the .htaccess rewrites
AllowOverride All
Order allow,deny
Allow from All
</Directory>
ErrorLog /var/log/httpd/reptool-error.log
CustomLog /var/log/httpd/reptool-access.log combined
SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/ca.crt
SSLCertificateKeyFile /etc/pki/tls/private/ca.key
</VirtualHost>
El primero (el que no es SSL) funciona bien, pero con el SSL no obtuve el error 404:
The requested URL /app_dev.php was not found on this server.
¿Por qué? ¿Qué me falta a nivel de configuración?
Respuesta1
Su nombre de servidor "reptool.dev:443" no me parece correcto, no debería tener el puerto. Intentar:
ServerName reptool.dev