- I setup Apache server with minimal changes to configuration to initial httpd.conf. I changed only ServerAdmin and ServerName. I restarted the and the webserver pointed to DocumentRoot /var/www/html
- I setup then Apache Virtual Hosts configuration, adding to httpd.conf IncludeOptional sites-enabled/*.conf and creationg these directories and correspondent config files. I restarted and the webserver pointed now to the new DocumentRoot (/var/www/<domain>/html
- I installed then mod_ssl and restarted the webserver. Now webserver back again to /var/www/html instead of to the DocumentRoot of the virtual host.
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName www.wo-lar.com
ServerAlias wo-lar.com
DocumentRoot /var/www/wo-lar.com/html
ErrorLog /var/log/httpd/wo-lar_error.log
CustomLog /var/log/httpd/wo-lar_requests.log combined
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/wo-lar.com/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/wo-lar.com/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/wo-lar.com/chain.pem
</VirtualHost>
</IfModule>
Any idea why? I did not do any further changes to httpd.conf not ssl.conf.
Thanks for your help.
Wolfgang