Page 1 of 1

Options +Indexes Problem

Posted: 2003-10-01 16:18
by root
hallo, ich habe ein problem mit de directory listing.

habe schon die suche benutzt aber nix gefunden.

n paar infos:

directory eintrag in der confixx_vhost.conf
<Directory "/home/www">
<Files ~ "^.ht">
deny from all
</Files>
#AllowOverride None
AllowOverride Indexes AuthConfig Limit FileInfo
#Options None
Options -FollowSymLinks -SymLinksIfOwnerMatch +Includes
</Directory>

mit dem AllowOverride Indexes ermögliche ich es doch eigentlich dass ich das dann mit einer htaccess datei überschreiben kann, oder?

so sieht die htaccess datei im /fotos verzeichnis aus:
Options +Indexes


so, in fotos sind nur bilder und ich möchste dann man nun den directory index bekommt, aber wenn ich die seite aufrufe kommt ein server error 500.

lasse ich die htaccess weg und mache in der confixx_vhost folgenden eintrag:

Options -FollowSymLinks -SymLinksIfOwnerMatch +Includes +Indexes

geht es natürlich, aber jetzt geht es leider in allen verzeichnissen und das will ich nicht!


was mache ich falsch?

pls help! :wink:

Re: Options +Indexes Problem

Posted: 2003-10-01 16:42
by dodolin
aber wenn ich die seite aufrufe kommt ein server error 500.
error.log?!

Re: Options +Indexes Problem

Posted: 2003-10-01 17:37
by root
[Wed Oct 1 17:36:28 2003] [alert] [client 217.230.xXx.xXx] /home/www/web1/html/fotos/.htaccess: Options not allowed here

Re: Options +Indexes Problem

Posted: 2003-10-01 17:46
by root
dsa ist echtkomisch, setzt ich
AllowOverride auf All geht es perfekt, setze ich es jedoch auf
AllowOverride Indexes AuthConfig Limit FileInfo

geht es wieder nicht und es kommt wieder folgende fehlermeldung:
[Wed Oct 1 17:44:41 2003] [alert] [client 217.230.166.4] /home/www/web1/html/fotos/.htaccess: Options not allowed here

Re: Options +Indexes Problem

Posted: 2003-10-01 19:09
by dodolin
Du brauchst AllowOverride Options, nicht AllowOverride Indexes. Das ist zweierlei. Siehe http://httpd.apache.org/docs/mod/core.html#options
Override: Options

Re: Options +Indexes Problem

Posted: 2003-10-02 02:08
by root
danke, jetzt gehts!