Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[gelöst] Apache und Virtualhosts
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
misterxx
Guru
Guru


Joined: 18 Apr 2004
Posts: 515

PostPosted: Fri Oct 29, 2004 10:33 am    Post subject: [gelöst] Apache und Virtualhosts Reply with quote

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
View user's profile Send private message
Chefpampel
n00b
n00b


Joined: 20 Oct 2004
Posts: 16

PostPosted: Fri Oct 29, 2004 11:48 am    Post subject: Reply with quote

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
View user's profile Send private message
tph
n00b
n00b


Joined: 27 Oct 2004
Posts: 39

PostPosted: Fri Oct 29, 2004 12:57 pm    Post subject: Reply with quote

Probier mal folgenden Code in Deine vhost Definition einzufügen:
Code:
<Directory />
Order allow,deny
allow from all
</Directory>


Gruß, Tobi
Back to top
View user's profile Send private message
misterxx
Guru
Guru


Joined: 18 Apr 2004
Posts: 515

PostPosted: Fri Oct 29, 2004 2:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum