ich bin ziemlich unterfahren in Sachen Konfiguration von Webserver. Bisher habe ich alles irgendwie mit Tutorials und der Hilfe hinbekommen, aber zur Zeit klappt nichts mehr.
Ich habe zwei Verzeichnisse in meinem Homeorder:
1. /home/wolf/http <-- hier soll das Standard-Root Verzeichnis sein, wenn man den Server im Browser via http://meinedomain.de auruft.
2. /home/wolf/https <-- hier soll das Standard-Root Verzeichnis sein, wenn man den Server im Browser via https://meinedomain.de aufruft.
Punkt 1 funktioniert wunderbar, Punkt 2 allerdings nicht.
Hier die /etc/apache2/ports.conf:
- Code: Select all
wolf@frida:/etc/apache2 $ cat /etc/apache2/ports.conf
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default.conf
Listen 80
<IfModule mod_ssl.c>
Listen 443
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Hier die enabled-sites:
- Code: Select all
wolf@frida:~ $ ls -lah /etc/apache2/sites-enabled/
insgesamt 8,0K
drwxr-xr-x 2 root root 4,0K Feb 28 20:31 .
drwxr-xr-x 8 root root 4,0K Feb 21 18:19 ..
lrwxrwxrwx 1 root root 33 Feb 28 20:31 root-http.conf -> ../sites-available/root-http.conf
lrwxrwxrwx 1 root root 34 Feb 28 20:31 root-https.conf -> ../sites-available/root-https.conf
und hier die jeweiligen .conf-Dateien der sites:
- Code: Select all
wolf@frida:/etc/apache2/sites-available $ cat root-http.conf
<VirtualHost *:80>
ServerName meinedomain.de
ServerAdmin webmaster@meinedomain.de
DocumentRoot /home/wolf/http/
</VirtualHost>
wolf@frida:/etc/apache2/sites-available $ cat root-https.conf
<VirtualHost *:443>
ServerName meinedomain.de
ServerAdmin webmaster@meinedomain.de
DocumentRoot /home/wolf/https/
# DocumentRoot /var/www/html/
SSLEngine on
SSLCertificateFile /root/server.crt
SSLCertificateKeyFile /root/server.key
</VirtualHost>
Das komische ist, dass es mit dem "originalen DocumentRoot /var/www/html/" funktionier würde, allerdings muss ich den Root-Pfad aus auf das Benutzerverzeichnis ändern.
An was kann es liegen? Es kommt immer die Fehlermeldung im Browser "You don't have permission to access / on this server."