apache2 открывает Default Page вместо моего сайта
Использую Debian 11. При таком конфиге сайт загружается отлично
<VirtualHost 127.0.0.1:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/mysite
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm
</VirtualHost>
Когда я меняю его на
<IfModule mod_ssl.c>
<VirtualHost mysite.com:443>
ServerName mysite.com
DocumentRoot /var/www/mysite.com
<Directory /var/www/mysite.com>
RewriteEngine On
AllowOverride All
Options Indexes FollowSymLinks MultiViews
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/mysite.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/mysite.com/privkey.pem
</VirtualHost>
</IfModule>
меня кидает в /var/www/html вместо указанного /var/www/mysite.com