Nous avons activé le ssl pour un site web. Si nous entrons " https://example.com/ "(avec htpps://), il pointe vers le bon dossier. Sans https://(exemple.com) Il pointe vers le dossier racine (/var/www/html). Comment faire pointer les deux vers le bon dossier "/var/www/html/exemple.com/public_html" ?
.conf comme suit
<Directory /var/www/html/example.com/public_html>
Require all granted
</Directory>
<VirtualHost xx.xx.xx.xx:443>
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/example.crt
SSLCertificateKeyFile /etc/apache2/ssl/example.key
SSLCACertificateFile /etc/apache2/ssl/example.cer
ServerName example.com
ServerAlias www.example.com
ServerAdmin test@example
DocumentRoot /var/www/html/example.com/public_html
ErrorLog /var/www/html/example.com/logs/error.log
CustomLog /var/www/html/example.com/logs/access.log combined
</VirtualHost>