X_FISH
08.06.14, 18:30
Ich habe gestern eine neue Festplatte ausgepackt und mich daher die letzten 24 Stunden mit dem Einrichten von Windows 7 und Linux Mint 17 beschäftigen »dürfen«.
Soweit läuft auch alles, nur kann ich meine alte (4 Jahre) Konfiguration vom Apache 2 nicht weiterverwenden. Der Grund: Virtual Hosts.
Ich habe eine Testumgebung, welche ich via localhost nutze. Mittels virtual hosts sind meine Website-Projekte getrennt:
foo.localhost
bar.localhost
etc.localhost
Die bisherige Konfiguration (in /etc/apache2/sites-enabled) funktioniert leider nicht mehr. Ich finde nur nicht wieso.
Meine Vermutung:
By default, Ubuntu does not allow access through the web browser to any file apart of those located in /var/www, public_html directories (when enabled) and /usr/share (for web applications). If your site is using a web document root located elsewhere (such as in /srv) you may need to whitelist your document root directory in /etc/apache2/apache2.conf.
The default Ubuntu document root is /var/www/html. You can make your own virtual hosts under /var/www. This is different to previous releases which provides better security out of the box.
Meine Website-Projekte liegen nicht in /var/www -> war bisher beim alten Mint kein Problem.
Was muss ich in der apache2.conf deaktivieren (oder aktivieren) damit es wieder so ist wie bisher? Der Server hängt nicht im Netz, daher ist das mit der Sicherheit zweitrangig.
edit
Ergänzend: Bisher war's ein Apache 2.2 auf dem die Testumgebung lief. Installiert wurde mit Linux Mint ein Apache 2.4.
Konkretes Problem: Fehler 403 beim Aufruf der Seite (virtual host). Ausreichende Zugriffsrechte (755) auf das Verzeichnis sind gesetzt.
Grüße, Martin
Soweit läuft auch alles, nur kann ich meine alte (4 Jahre) Konfiguration vom Apache 2 nicht weiterverwenden. Der Grund: Virtual Hosts.
Ich habe eine Testumgebung, welche ich via localhost nutze. Mittels virtual hosts sind meine Website-Projekte getrennt:
foo.localhost
bar.localhost
etc.localhost
Die bisherige Konfiguration (in /etc/apache2/sites-enabled) funktioniert leider nicht mehr. Ich finde nur nicht wieso.
Meine Vermutung:
By default, Ubuntu does not allow access through the web browser to any file apart of those located in /var/www, public_html directories (when enabled) and /usr/share (for web applications). If your site is using a web document root located elsewhere (such as in /srv) you may need to whitelist your document root directory in /etc/apache2/apache2.conf.
The default Ubuntu document root is /var/www/html. You can make your own virtual hosts under /var/www. This is different to previous releases which provides better security out of the box.
Meine Website-Projekte liegen nicht in /var/www -> war bisher beim alten Mint kein Problem.
Was muss ich in der apache2.conf deaktivieren (oder aktivieren) damit es wieder so ist wie bisher? Der Server hängt nicht im Netz, daher ist das mit der Sicherheit zweitrangig.
edit
Ergänzend: Bisher war's ein Apache 2.2 auf dem die Testumgebung lief. Installiert wurde mit Linux Mint ein Apache 2.4.
Konkretes Problem: Fehler 403 beim Aufruf der Seite (virtual host). Ausreichende Zugriffsrechte (755) auf das Verzeichnis sind gesetzt.
Grüße, Martin