Problem mit Directorys und .htaccess

Apache, Lighttpd, nginx, Cherokee
Post Reply
freakindahouse
Posts: 17
Joined: 2003-01-18 15:35
Location: Karlsruhe
 

Problem mit Directorys und .htaccess

Post by freakindahouse »

Hi,

Ich hab 2 Probleme mit meinem Apache:

1: Wenn man eine URL wie z.B. http://xxx.de/ordner aber kein / zum Schluss macht, kommt Error #404, wenn man allerdings ein / dranmacht geht es ohne Probs...

2: Mein Apache ignoriert .htaccess files. Sie werden nich angezeigt bei Directory Listing aber auch nicht beachtet.

MFG
[tom]
Posts: 656
Joined: 2003-01-08 20:10
Location: Berlin
 

Re: Problem mit Directorys und .htaccess

Post by [tom] »

freakindahouse wrote: Ich hab 2 Probleme mit meinem Apache:
Andere haben mehr. ;-)

freakindahouse wrote: 1: Wenn man eine URL wie z.B. http://xxx.de/ordner aber kein / zum Schluss macht, kommt Error #404, wenn man allerdings ein / dranmacht geht es ohne Probs...
Hast du irgendwas in der httpd.conf geändert? Redirect, RewriteRule oder so?

freakindahouse wrote: 2: Mein Apache ignoriert .htaccess files. Sie werden nich angezeigt bei Directory Listing aber auch nicht beachtet.
Die sollen auch nicht angezeigt werden. Wär übel, wenn doch.

Was heißt nicht beachtet? Hat der Apache Leserechte in dem entsprechenden Verzeichnis? Schreib mal Blödsinn (z. B. Buchstabensalat) in die .htaccess. Wenn du dann eine Datei aus dem Verzeichnis aufrufst, muß es nen 500er geben.

Was steht denn unter AccessFileName in deiner httpd.conf. Wie sind die Options gesetzt?

[TOM]
freakindahouse
Posts: 17
Joined: 2003-01-18 15:35
Location: Karlsruhe
 

Re: Problem mit Directorys und .htaccess

Post by freakindahouse »

Hi,

Zu 1. hab ich nix in der httpd.conf geändert (ich hab' auch weder Redirect noch RewriteRule in der httpd.conf gefunden) und zu 2. sollte eigentlich eine Authentification kommen, was sie aber nich tut, sprich jeder kann in jedes Verzeichnis...
AccessFileName .htaccess
Und wenn man Buchstabensalat reinschreibt kommt trotzdem kein #500 die Datei wird einfach ignoriert...
wirsing
Posts: 604
Joined: 2002-11-20 21:32
Location: Vaihingen und Karlsruhe
 

Re: Problem mit Directorys und .htaccess

Post by wirsing »

Wie siehts mit der AllowOverride-Einstellung für das Docroot aus? Da muss nämlich noch aktiviert sein, was mit der .htaccess eingestellt werden darf.
freakindahouse
Posts: 17
Joined: 2003-01-18 15:35
Location: Karlsruhe
 

Re: Problem mit Directorys und .htaccess

Post by freakindahouse »

AllowOverride None
[tom]
Posts: 656
Joined: 2003-01-08 20:10
Location: Berlin
 

Re: Problem mit Directorys und .htaccess

Post by [tom] »

Dann setz das mal auf "all" oder explizit so wie du es haben willst, und dann geht es auch (sofernn es das Globale ist und keine anderen per Directory existieren). ;-)

Apache Restart nicht vergessen.

[TOM]
freakindahouse
Posts: 17
Joined: 2003-01-18 15:35
Location: Karlsruhe
 

Re: Problem mit Directorys und .htaccess

Post by freakindahouse »

hi, ich habs jetzt mal geändert und den Apache neu gestartet, hat aber nix geholfen...
Post Reply