eNvizion
16.07.07, 21:27
Hallo,
ich habe meinen Server mit Debian 4.0 und mein Apache2 liefert folgenden Fehler in der error.log
Directory index forbidden by Options directive: /var/www/meineseite/
Jetzt habe ich schon heraus gefunden das es wohl an der Option "Options -Indexes" in der Datei /etc/apache2/sites-available/default liegt.
Meine /etc/apache2/sites-available/default sieht wie folgt aus:
NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options -Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
# RedirectMatch ^/$ /apache2-default/
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature Off
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
<VirtualHost *>
ServerName meineseite.de
ServerAlias www.meineseite.de meineseite.de *.meineseite.de
DocumentRoot /var/www/meineseite/
Options -Indexes
</VirtualHost>
Wenn ich aber jetzt die Option "Options -Indexes" bei VirtualHost (meineseite.de) raus nehme, habe ich wieder Directory Listing an, hat jemand eine Idee wie ich Directory Listing für den Ordner /var/www/meineseite/ ausschalte ohne den Fehler in der error.log von apache2?
Grüße
eNvizion
ich habe meinen Server mit Debian 4.0 und mein Apache2 liefert folgenden Fehler in der error.log
Directory index forbidden by Options directive: /var/www/meineseite/
Jetzt habe ich schon heraus gefunden das es wohl an der Option "Options -Indexes" in der Datei /etc/apache2/sites-available/default liegt.
Meine /etc/apache2/sites-available/default sieht wie folgt aus:
NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options -Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
# RedirectMatch ^/$ /apache2-default/
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature Off
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
<VirtualHost *>
ServerName meineseite.de
ServerAlias www.meineseite.de meineseite.de *.meineseite.de
DocumentRoot /var/www/meineseite/
Options -Indexes
</VirtualHost>
Wenn ich aber jetzt die Option "Options -Indexes" bei VirtualHost (meineseite.de) raus nehme, habe ich wieder Directory Listing an, hat jemand eine Idee wie ich Directory Listing für den Ordner /var/www/meineseite/ ausschalte ohne den Fehler in der error.log von apache2?
Grüße
eNvizion