Hello,
have the following problem. If I access the site without the WWW, everything works, i.e. I can log in and see all the pictograms. If I enter a www. If you put it in front of it, you will no longer be able to log in and the pictograms will no longer be displayed. You are welcome to see it for yourself here: pflegenetzwerk.eu
Here are my two Vhosts:
Once without SSL
`<VirtualHost *:80>
ServerAdmin mail@dennispohle.de
DocumentRoot /var/www/flarum/public
ServerName pflegenetzwerk.eu
ServerAlias www.pflegenetzwerk.eu pflegenetzwerk.eu www
<Directory /var/www/flarum/public/>
Options FollowSymlinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/flarum/public/>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* index.php [PT,L]
</Directory>
RewriteCond %{SERVER_NAME} =www.pflegenetzwerk.eu [OR]
RewriteCond %{SERVER_NAME} =pflegenetzwerk.eu
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
`
Once with SSL
`
<IfModule mod_ssl.c>
SSLStaplingCache shmcb:/var/run/apache2/stapling_cache(128000)
<VirtualHost *:443>
ServerAdmin mail@dennispohle.de
DocumentRoot /var/www/flarum/public
ServerName pflegenetzwerk.eu
ServerAlias www www.pflegenetzwerk.eu pflegenetzwerk.eu www
<Directory /var/www/flarum/public/>
Options FollowSymlinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/flarum/public/>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* index.php [PT,L]
</Directory>
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/pflegenetzwerk.eu/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/pflegenetzwerk.eu/privkey.pem
Header always set Strict-Transport-Security "max-age=31536000"
SSLUseStapling on
</VirtualHost>
</IfModule>
`
Maybe you have another idea?!!