Directory index forbidden

Apache, Lighttpd, nginx, Cherokee
Post Reply
umbroboy
Posts: 258
Joined: 2005-05-11 11:49
 

Directory index forbidden

Post by umbroboy »

Hallo,

woran kann es liegen dass ich diese Meldung noch im Apache2 Errorlog habe:

Code: Select all

Directory index forbidden by rule: /home/httpd/vhosts/horde/
Die Verzeichnisrechte passen nämlich.

Dankeschöööön
flo
Posts: 2223
Joined: 2002-07-28 13:02
Location: Berlin
 

Re: Directory index forbidden

Post by flo »

Verzeichnisrechte sind dem Apachen da relativ egal, wenn er erst einmal soweit ist - Directive "options" ist nicht gesetzt, das findest Du aber unter den Begriffen über die httpd.apache.org . ;-)

flo.
umbroboy
Posts: 258
Joined: 2005-05-11 11:49
 

Re: Directory index forbidden

Post by umbroboy »

Hallo Flo,

ja bei mir sieht das jetzt mal wie folgt aus:

Code: Select all

#####
# phpMyAdmin
#####
<VirtualHost XXX:80>

DocumentRoot /home/httpd/vhosts/horde/horde
ServerName webmailer
ServerAlias webmailer.*
UseCanonicalName Off
<Directory /home/httpd/vhosts/horde/horde>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag magic_quotes_gpc off
php_admin_flag safe_mode off
php_admin_value open_basedir "/home/httpd/vhosts/horde/horde:/usr/share/php:/tmp:/usr/local/psa/admin/plib:/usr/local/psa/admin/javascripts:/usr/local/psa/admin/plib/locales:/usr/local/psa/admin/auto_prepend:."
php_admin_value include_path "/home/httpd/vhosts/horde/horde:/usr/share/php:/tmp:/usr/local/psa/admin/plib:/usr/local/psa/admin/javascripts:/usr/local/psa/admin/plib/locales:/usr/local/psa/admin/auto_prepend:."
</IfModule>
Options -All +Includes +ExecCGI +FollowSymLinks
		Order allow,deny
		Allow from all
</Directory>
</VirtualHost>
<IfModule mod_ssl.c>
Diesen Code habe ich von meiner subdomain phpmyadmin.
Habe nur demenstprechend die Pfade abgeändert und schon geht es nicht mehr.

Das Verzeichnis ist jetzt unter:

/home/httpd/vhosts/horde/horde

Nur der Apache schaut immer laut dem Error log unter:

Code: Select all

[Wed Aug 24 18:18:53 2005] [error] [client 82.135.5.25] File does not exist: /home/httpd/vhosts/horde/horde/horde
Nur irgendwie versteh ich das einfach nicht mehr

:(

:(
umbroboy
Posts: 258
Joined: 2005-05-11 11:49
 

Re: Directory index forbidden

Post by umbroboy »

kleiner nachtrag noch:

wenn ich allerdings:

webmailer.XXX.de

Eingebe und eine Datei aufrufe, zeigt er mir sie aber an.

Also muss ja der Pfad schonmal stimmen und die rechte auch irgendwie...
umbroboy
Posts: 258
Joined: 2005-05-11 11:49
 

Re: Directory index forbidden

Post by umbroboy »

Hallo Flo,

hab jetzt einen Symbolischen Link gesetzt von:

/home/httpd/vhosts/horde/horde/horde der auf /home/httpd/vhosts/horde/horde zeigt.

Aber irgendwie ist da doch der wurm drin.

Warum will der Apache immer auf /home/httpd/vhosts/horde/horde/horde, wenn ich ihm in der Direktive sage:

/home/httpd/vhosts/horde/horde

*grübel*
flo
Posts: 2223
Joined: 2002-07-28 13:02
Location: Berlin
 

Re: Directory index forbidden

Post by flo »

Code: Select all

##### 
# phpMyAdmin 
##### 
<VirtualHost XXX:80> 

DocumentRoot /home/httpd/vhosts/horde/horde 
ServerName webmailer 
ServerAlias webmailer.* 
UseCanonicalName Off 
<Directory /home/httpd/vhosts/horde/horde> 
<IfModule sapi_apache2.c> 
php_admin_flag engine on 
php_admin_flag magic_quotes_gpc off 
php_admin_flag safe_mode off 
php_admin_value open_basedir "/home/httpd/vhosts/horde/horde:/usr/share/php:/tmp:/usr/local/psa/adm in/plib:/usr/local/psa/admin/javascripts:/usr/local/psa/admin/plib/loc ales:/usr/local/psa/admin/auto_prepend:." 
php_admin_value include_path "/home/httpd/vhosts/horde/horde:/usr/share/php:/tmp:/usr/local/psa/adm in/plib:/usr/local/psa/admin/javascripts:/usr/local/psa/admin/plib/loc ales:/usr/local/psa/admin/auto_prepend:." 
</IfModule> 
Options -All +Includes +ExecCGI +FollowSymLinks 
      Order allow,deny 
      Allow from all 
</Directory> 
</VirtualHost> 
<IfModule mod_ssl.c>
Das ist aber allerwildestes Gestöpsel ...

Mein vhost:

Code: Select all

#
# HORDE 3
#
<VirtualHost 000.000.000.000>
        ServerName webmail-3.domain.de
        ServerAlias webmail-3.*
        ErrorLog /var/log/http_fkt/horde_err.log
        CustomLog /var/log/http_fkt/horde_acc.log common
        DocumentRoot /home/horde-3.0.5/imp
        Alias /horde "/home/horde-3.0.5/"

        php_admin_value safe_mode off
        php_value include_path '/usr/local/lib/php'
</VirtualHost>

#
# Allgemeines, nicht im vhost:
#
Options Indexes FollowSymLinks
DirectoryIndex index.php index.phtml index.php3 index.php4 index.html index.htm default.htm Index.htm Default.htm
Wobei in dem Horde-Vhost noch ein kleiner Fehler sein muß - habe recht viel installiert in den letzten Tagen und es war immer sehr spät. ;-)

Grüße,

flo.

P.S.: Bitte keine PNs, dafür ist das Forum da - ich komm deswegen auch nicht öfter und kann auch nicht besser helfen als andere. :-)
umbroboy
Posts: 258
Joined: 2005-05-11 11:49
 

Re: Directory index forbidden

Post by umbroboy »

Hallo Flo,

vielen Dank schonmal.

Zwei fragen hab ich dazu:
DocumentRoot /home/horde-3.0.5/imp
Warum ist imp dein Document root? Normal doch das Verzeichnis horde?

Und der Alias, das hordeverzeichnis?:
Alias /horde "/home/horde-3.0.5/"
Kannst du mir dann auch sagen, wo genau deine Daten liegen, also Horde? und IMP?

Ein Directory hast du nicht angegeben?


VIele Grüße udn Danke
flo
Posts: 2223
Joined: 2002-07-28 13:02
Location: Berlin
 

Re: Directory index forbidden

Post by flo »

Meine Horde-Installation liegt in "/home/horde-3.0.5", darin ist der Imp und damit dieser eben auch die Horde-Installation unter "/horde" findet, ist dieser Alias da.

Die DocumentRoot ist deshalb gesetzt, weil IMP bei mir die Standardanwendung ist.

flo.
Post Reply