vSever, Directory Listing, 403 Error

xliff

New Member
Hallo,

Ich hätte gerne das:

MOD : Siehe Anhang.

Im Confixx "res" und "web" ist DirectoryListing Activiert. Hab eine .htacces mit
Options +Indexes in den Ordner in dem das Index angezeigt werden soll.
Die .htaccess ist mit chown auf root:root und chmod 750

So nun wenn ich auf das verzeichniss gehe http://meinedomain/irgendwas/

Dann bekomm ich jedes mal Error 403 - Zugriff verweigert!

Woran kanns liegen? Oder ist das was ich gemacht hab falsch?
Im Hauptverzeichniss liegt allerdings noch eine .htaccess die die Fehlerseiten steuert, ist das ein Problem?

Danke vorab
 

Attachments

  • apache_dirlist.jpg
    apache_dirlist.jpg
    30.8 KB · Views: 206
Last edited by a moderator:
Hallo!
Was steht zum Zeitpunkt des Zugriffs in error_log und access_log?

mfG
Thorsten
 
Hier der letzte Auszug.

Code:
access_log
84.56.102.194 - - [15/Sep/2006:15:37:59 +0200] "GET /sonstiges HTTP/1.1" 403 1123 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"

error_log
[Fri Sep 15 15:37:59 2006] [crit] [client 84.56.102.194] (13)Permission denied: /srv/www/web2/html/xliff/sonstiges/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

Auszug der .htaccess in Ordner /sonstiges/

Code:
Options +Indexes
 
Last edited by a moderator:
Hallo,

Permission denied: /srv/www/web2/html/xliff/sonstiges/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

sagt doch eigentlich alles.

Permission denied bedeutet, dass er nicht auf das File zugreifen kann und danach gibt er dir ja sogar noch 'nen Tipp.
ensure it is readable

Vorhin sagtest du, es gehört root:root somit ist es für den Apache auch nicht lesbar!

Also Rechte ändern (schau einfach mal, was die Files in dem Ordner sonst so für Owner haben) und gut ist.

Sonst probier doch mal, das ganze in die .htaccess Datei zu schreiben, die die Error_Docs regelt.

Lg
Free
 
Sonst probier doch mal, das ganze in die .htaccess Datei zu schreiben, die die Error_Docs regelt.

wo finde ich diese .htaccess die die error_docs regelt?

Bin jetzt aber schon ein stück weiter hab den chown auf wwwrun:www auf den Ordner sonstiges(777) mit -R gelegt jetzt bekomme ich:

Error 500 - Serverfehler

error_log schreibt:

Code:
[Fri Sep 15 16:50:33 2006] [alert] [client 84.56.102.194] /srv/www/web2/html/xliff/sonstiges/.htaccess: Options not allowed here
[Fri Sep 15 16:50:57 2006] [alert] [client 84.56.102.194] /srv/www/web2/html/xliff/sonstiges/.htaccess: Options not allowed here
[Fri Sep 15 16:54:19 2006] [alert] [client 84.56.102.194] /srv/www/web2/html/xliff/sonstiges/.htaccess: Options not allowed here
[Fri Sep 15 16:54:43 2006] [alert] [client 84.56.102.194] /srv/www/web2/html/xliff/sonstiges/.htaccess: Options not allowed here

access_log

Code:
84.56.102.194 - - [15/Sep/2006:16:54:19 +0200] "GET /sonstiges/ HTTP/1.1" 500 1152 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"
84.56.102.194 - - [15/Sep/2006:16:54:43 +0200] "GET /sonstiges/ HTTP/1.1" 500 1152 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"
 
Hallo,

hab den chown auf wwwrun:www auf den Ordner sonstiges(777) mit -R gelegt

*schluck*, da stehen ja alle sicherheitsbewußten Haare zu Berge.

Owner auf web2, Group vermutlich auf ftponly (ist es zumindest bei Confixx 2.x), Chmod für alle Dateien 644 und für alle Verzeichnisse 755.
srv/www/web2/html/xliff/sonstiges/.htaccess: Options not allowed here
Fehler in der .htaccess, zeige die mal komplett.
 
Code:
Options +Indexes

Das ist meine .htaccess für das verzeichniss /sonstiges/

Im verzeichniss davor liegt allerdings auch eine .htaccess mit fehlerseitenbeschreibung

und in wieder einem davor liegt ebenfalls eine .htaccess mit fehlerseitenbeschreibung


Mir ist klar das die methode chown wwwrun:www mit chmod 777 sehr unsicher ist. war nur zum testen
 
Hallo,

also nur die eine Zeile, ok.

Dann bitte
<Directory "...">
</Directory>
für das Verzeichnis
und
<VirtualHost ...>
</VirtualHost>
für die Domain.

Wo die stehen kommt darauf an, welche Administrationshilfe eingesetzt wird, bei Confixx in confixx_vhost.conf.
 
Back
Top