Hallo,
also zu Anfang mal:
ServerName muss immer eine tld sein.
Wie willst Du denn dein Admin-Panel erreichen? Über eine Subdomain oder über einen Path? Das ist noch wichtig zu wissen. Du kannst Die gleiche tld nicht auf mehrere VirtualHosts binden, das versteht Apache nicht.
Ich würde dir empfehlen 2 Configs zu erstellen:
Apache Configuration: 100-deineDomain.tld.conf (Forum)
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/forum
ServerName forum.arctic-life.net
ServerAlias arctic-life.net
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/forum/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
#HTTPS Rewrite
RewriteEngine on
RewriteCond %{SERVER_NAME} =forum.arctic-life.net
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
Alles anzeigen
Code: 200-adminpanel.deineDomain.tld.conf (AdminPanel
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/folder/vielleichtSubfolder
ServerName adminpanel.deineDomain.tld
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/folder/vielleichtSubfolder/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
Alles anzeigen