Я пытаюсь установить локально (в целях разработки/тестирования) сайт SSL с помощью Apache и mod_ssl, и это - то, что я имею в своих файлах 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>
Первое (не-SSL) работает просто великолепно, но с SSL один я получил не ошибку 404:
The requested URL /app_dev.php was not found on this server.
Почему? Что я пропускаю на уровне конфигурации?
Ваше имя сервера "reptool.dev:443" мне не кажется правильным, в нем не должно быть порта. Попробуйте:
ServerName reptool.dev