Options +Indexes Problem

Apache, Lighttpd, nginx, Cherokee
Post Reply
root
Posts: 42
Joined: 2002-12-10 18:24
 

Options +Indexes Problem

Post 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:
dodolin
Posts: 3840
Joined: 2003-01-21 01:59
Location: Sinsheim/Karlsruhe
Contact:
 

Re: Options +Indexes Problem

Post by dodolin »

aber wenn ich die seite aufrufe kommt ein server error 500.
error.log?!
root
Posts: 42
Joined: 2002-12-10 18:24
 

Re: Options +Indexes Problem

Post 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
root
Posts: 42
Joined: 2002-12-10 18:24
 

Re: Options +Indexes Problem

Post 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
dodolin
Posts: 3840
Joined: 2003-01-21 01:59
Location: Sinsheim/Karlsruhe
Contact:
 

Re: Options +Indexes Problem

Post by dodolin »

Du brauchst AllowOverride Options, nicht AllowOverride Indexes. Das ist zweierlei. Siehe http://httpd.apache.org/docs/mod/core.html#options
Override: Options
root
Posts: 42
Joined: 2002-12-10 18:24
 

Re: Options +Indexes Problem

Post by root »

danke, jetzt gehts!
Post Reply