Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache: Directory index forbidden by rule [solved]
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
gentop
l33t
l33t


Joined: 29 Nov 2004
Posts: 639

PostPosted: Mon Dec 13, 2004 9:55 pm    Post subject: Apache: Directory index forbidden by rule [solved] Reply with quote

Hi,

hab folgendes Problem: Ich habe mir ne .htaccess Datei und eine .htusers Datei in ein Verzeichnis kopiert, welches geschützt werden soll. Diese Dateien sehen wie folgt aus:

Hier die .htaccess
Code:

AuthType Basic
AuthName "Authentication Required"
AuthUserFile /var/www/htdocs/files/.htusers
AuthGroupFile /dev/null
require valid-user


Hier die .htusers
Code:

username:verschluesseltes_passwort


In der /etc/apache2/conf/apache2.conf habe ich "AllowOverride None" gesetzt. Trotzdem kommt folgender Fehler im errorlog von apache:

Code:

Directory index forbidden by rule :/var/www/htdocs/files, referer: http://mein.host/menu.html


Hat jemand nen Tip?

Gruß gentop


Last edited by gentop on Tue Dec 14, 2004 2:13 pm; edited 1 time in total
Back to top
View user's profile Send private message
gentop
l33t
l33t


Joined: 29 Nov 2004
Posts: 639

PostPosted: Tue Dec 14, 2004 11:17 am    Post subject: Reply with quote

Hat keiner ne Idee?
Back to top
View user's profile Send private message
borlander
Apprentice
Apprentice


Joined: 10 Jan 2004
Posts: 160
Location: Gummersbach

PostPosted: Tue Dec 14, 2004 1:31 pm    Post subject: Reply with quote

"AllowOverride" sollte doch gerade auf z.B. All gesetzt sein, sonst kann doch die .htaccess die Rechte nicht überschreiben.
Back to top
View user's profile Send private message
gentop
l33t
l33t


Joined: 29 Nov 2004
Posts: 639

PostPosted: Tue Dec 14, 2004 1:33 pm    Post subject: Reply with quote

Hab ich - funzt trotzdem nicht. Der gleiche Effekt tritt auf.
Back to top
View user's profile Send private message
Anarcho
Advocate
Advocate


Joined: 06 Jun 2004
Posts: 2970
Location: Germany

PostPosted: Tue Dec 14, 2004 2:03 pm    Post subject: Reply with quote

Kann es sein das in dem Verzeichnis keine index.* datei gibt? Standardmässig erlaubt der Apache keine Anzeige eines Ordnerinhalts. Dieser würde aber angezeigt werden, wenn keine index.{html|php|...} vorhanden ist.
Leider weiss ich jetzt nicht genau die Einstellung. Da musst du mal suchen.
Und AllowOverride muss auf All bzw. Auth stehen.
_________________
...it's only Rock'n'Roll, but I like it!
Back to top
View user's profile Send private message
gentop
l33t
l33t


Joined: 29 Nov 2004
Posts: 639

PostPosted: Tue Dec 14, 2004 2:05 pm    Post subject: Reply with quote

Dass soll ja grade nicht der Fall sein. Ich möchte ja dort ein Verzeichnislisting sehen können.
Back to top
View user's profile Send private message
Anarcho
Advocate
Advocate


Joined: 06 Jun 2004
Posts: 2970
Location: Germany

PostPosted: Tue Dec 14, 2004 2:06 pm    Post subject: Reply with quote

Ja, das ist mir schon klar. Daher musst du die Einstellung finden, die dieses Verhalten aufhebt. Leider weiss ich die jetzt nicht auswendig und bin nicht zuhause.
Default ist eben: dir-inhalt nicht anzeigen.

Du musst also in deine htaccess eintragen das es angezeigt werden soll.
_________________
...it's only Rock'n'Roll, but I like it!
Back to top
View user's profile Send private message
gentop
l33t
l33t


Joined: 29 Nov 2004
Posts: 639

PostPosted: Tue Dec 14, 2004 2:09 pm    Post subject: Reply with quote

Du meinst wahrscheinlich
Code:

Options +Indexes

Das funzt dann auch - aber dann wird überhaupt nicht mehr eine Benutzerauthentifizierung gefordert...
Back to top
View user's profile Send private message
hirnstrudel.de
n00b
n00b


Joined: 17 Nov 2004
Posts: 40

PostPosted: Tue Dec 14, 2004 2:12 pm    Post subject: Reply with quote

gentop wrote:
Du meinst wahrscheinlich
Code:

Options +Indexes

Das funzt dann auch - aber dann wird überhaupt nicht mehr eine Benutzerauthentifizierung gefordert...

Sicher dass du nicht einfach schon eingeloggt bist und deshalb keine Abfrage mehr kommt?
Back to top
View user's profile Send private message
gentop
l33t
l33t


Joined: 29 Nov 2004
Posts: 639

PostPosted: Tue Dec 14, 2004 2:13 pm    Post subject: Reply with quote

Argh - es funktioniert jetzt doch mit der Indexoption - habe einfach mal apache neu gestartet ... (peinlich) ;)

Danke trotzdem für die Hilfe

Gruß gentop
Back to top
View user's profile Send private message
amne
Bodhisattva
Bodhisattva


Joined: 17 Nov 2002
Posts: 6378
Location: Graz / EU

PostPosted: Tue Dec 14, 2004 7:59 pm    Post subject: Reply with quote

gentop wrote:
Hat keiner ne Idee?


Bitte mindestens 24h mit dem Bumpen warten.
_________________
Dinosaur week! (Ok, this thread is so last week)
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