Dann habe ich eine /etc/apache2/sites-available/001-meine-domain_loc.conf mit folgendem Inhalt erzeugt:
Code: Alles auswählen
<VirtualHost *:80>
ServerName meine-domain.loc
DocumentRoot /FP1_1/meine-domain.loc
<Directory /FP1_1/meine-domain.loc>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Dann habe ich die neue Konfiguration mit sudo a2ensite 001-meine-domain_loc.conf aktiviert.
Dann habe ich in der /etc/hosts die Zeile
Code: Alles auswählen
127.0.0.1 localhost
Code: Alles auswählen
127.0.0.1 localhost meine-domain.loc
Als nächstes habe ich in die /etc/apache2/apache2.conf folgendes ergänzt:
Code: Alles auswählen
<Directory /FP1_1/meine-domain.loc/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>