I am trying to setup a locally (for development/testing purposes) SSL site using Apache and mod_ssl and this is what I have in my VirtualHost files:
/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>
The first (the non-SSL) works just fine but with the SSL one I got not error 404:
The requested URL /app_dev.php was not found on this server.
Why? What I am missing at configuration level?