View previous topic :: View next topic |
Author |
Message |
misterxx Guru
Joined: 18 Apr 2004 Posts: 515
|
Posted: Fri Oct 29, 2004 10:33 am Post subject: [gelöst] Apache und Virtualhosts |
|
|
Hallo,
habe folgendes Problem beim Konfigurieren meinen Vitualhosts:
Code: | <VirtualHost 192.168.2.101>
DocumentRoot /home/oleg/workspace/www/oleg-seifert
ServerName oleg-seifert
#Setenv VLOG /home/jmdault/logs
#ErrorLogs /home/jmdault/test2-error_log
</VirtualHost>
|
dieser Inhalt wird in apache2.conf includiert. Man kann auch sehen, dass Apache die Umleitung auf /home/oleg/workspace/www/oleg-seifert durchführt, denn wenn ich im Browser den Host oleg-seifert aufrufe, wird er auch gefunden, aber es liegt anscheinend ein permission to access Problem vor:
Code: | You don't have permission to access / on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. |
Die Rechte sollten aber auch stimmen: Code: | acer@oleg $ ll /home/oleg/workspace/www/
total 1
drwxr-xr-x 9 oleg users 664 Oct 29 11:01 oleg-seifert
acer@oleg $ ll /home/oleg/workspace/www/oleg-seifert/
total 196
...
-rwxrwxrwx 1 oleg users 1588 Feb 26 2003 index.html
...
acer@oleg $ |
Was kann es sein ? Wieso hat man über diesen Virtualhost kein Zugriff auf die Inhalte ? in /var/www/localhost/htdocs/ kopiere und über http://localhost/oleg-seifert aufrufe funktioniert alles wunderbar.
Last edited by misterxx on Wed Dec 01, 2004 1:24 pm; edited 2 times in total |
|
Back to top |
|
|
Chefpampel n00b
Joined: 20 Oct 2004 Posts: 16
|
Posted: Fri Oct 29, 2004 11:48 am Post subject: |
|
|
Das Verzeichnis selber sieht rechtemaessig ok aus. Aber was ist mit den uebergeordneten Verzeichnissen? Alle Verzeichnisse von / abwaerts muessen vom Apache-Prozess (also vom entsprechenden User) ausfuehrbar sein (execute bit).
Laeuft der Apache in irgendeiner Form chrooted? Dann wuerde mich auch nix mehr wundern. |
|
Back to top |
|
|
tph n00b
Joined: 27 Oct 2004 Posts: 39
|
Posted: Fri Oct 29, 2004 12:57 pm Post subject: |
|
|
Probier mal folgenden Code in Deine vhost Definition einzufügen:
Code: | <Directory />
Order allow,deny
allow from all
</Directory> |
Gruß, Tobi |
|
Back to top |
|
|
misterxx Guru
Joined: 18 Apr 2004 Posts: 515
|
Posted: Fri Oct 29, 2004 2:42 pm Post subject: |
|
|
Danke für eure Antworten ! Es lag wirklich daran, dass /home/oleg nur für user oleg ausführbar war. Jetzt läuft alles wie gewünscht ! Danke ! |
|
Back to top |
|
|
|