Root Server .htaccess Problem

Apache, Lighttpd, nginx, Cherokee
Post Reply
lordbogami
Posts: 13
Joined: 2004-10-29 10:30
 

Root Server .htaccess Problem

Post by lordbogami »

Hallo Leute,

ich hab einen 1&1 Root Server mit Confixx und bin noch ein
absoluter n00b in dem Bereich.

Ich habe folgendes Problem:
In Confixx möchte ich für einen Benutzer das Directory Listing deaktivieren.
Klappt auch, aber für ein bestimmtes Verzeichnis möchte ich
1.) einen Auth Eintrag machen
2.) das Listing aktivieren

Nun mein Problem.
Ich lege in diesen Ordner eine .htaccess Datei:
------------------------------------------------------
AuthName "Portal"
AuthType Basic
AuthUserFile /home/htdocs/web1/html/myfolder/.htpasswd
require valid-user
------------------------------------------------------

Das funktionert - beim öffnen des Ordners werde ich nach Benutzer und Passwort gefragt.

Jetzt die Ergänzung für das Dir Listing
------------------------------------------------------
FancyIndexing On
[ oder => Options +Indexes]
[ oder => IndexOptions +ScanHTMLTitles -IconsAreLinks FancyIndexing]
AuthName "Portal"
AuthType Basic
AuthUserFile /home/htdocs/web1/html/myfolder/.htpasswd
require valid-user
------------------------------------------------------

Ich hab irgendwie alle varianten getestet aber nix geht.
Es kommt immer beim aufruf des Ordners: Error 500

Hat jemand eien Tipp für mich ?

Gruß
LordBoGaMi
ryukia
Posts: 58
Joined: 2004-07-16 14:40
Location: Karlsruhe
 

Re: Root Server .htaccess Problem

Post by ryukia »

Du mußt als Admin in Confixx unter http-Spezial oder wie das heißt ein "allowoverride options" (oder "all") für das Verzeichnis setzen, sonst darfst Du das nicht überschreiben. Also z.B:

<Directory "/home/htdocs/web1/html/myfolder">
AllowOverride Options
</Directory>

Ciao
Ryukia
lordbogami
Posts: 13
Joined: 2004-10-29 10:30
 

Re: Root Server .htaccess Problem

Post by lordbogami »

Hi,

das klappt immer noch nicht. Error 500
Der Eintrag ist gemacht.
Meine .htaccess sieht so aus.
----------------------------------------------
Options +Indexes
AuthName "Portal"
AuthType Basic
AuthUserFile /home/htdocs/web1/html/myfolder/.htpasswd
require valid-user
----------------------------------------------
lordbogami
Posts: 13
Joined: 2004-10-29 10:30
 

Re: Root Server .htaccess Problem

Post by lordbogami »

Hi,

alles zurück !!
Es geht Danke !!!

Aber beim Directory Index fehlt mir irgend wie der Eintrag
[..] Parent Directory
ryukia
Posts: 58
Joined: 2004-07-16 14:40
Location: Karlsruhe
 

Re: Root Server .htaccess Problem

Post by ryukia »

Das liegt am Eintrag
IndexIgnore .?* *~ *# HEADER* RCS CVS *,v *,t

in /etc/apache2/mod_autoindex-defaults.conf

Das ".?*" löschen oder den eigenen Wünschen anpassen und den Apache neustarten, dann siehst Du auch wieder Parent Directories

Ciao
Ryukia
lordbogami
Posts: 13
Joined: 2004-10-29 10:30
 

Re: Root Server .htaccess Problem

Post by lordbogami »

Hi,
danke
gibt es keine andere Möglichkeit ?
Ich wollte diese Dateien nach Möglichkeit nicht verändern.
Kann ich sowas auch im httpd Spezial Bereich in Confixx eintragen ?

Gruß
LordBoGaMi
ryukia
Posts: 58
Joined: 2004-07-16 14:40
Location: Karlsruhe
 

Re: Root Server .htaccess Problem

Post by ryukia »

LordBoGaMi wrote:Hi,
Kann ich sowas auch im httpd Spezial Bereich in Confixx eintragen ?
Nein, denn Inhalte können nur angehängt, nicht jedoch überschrieben werden:
The IndexIgnore directive adds to the list of files to hide when listing a directory. File is a shell-style wildcard expression or full filename. Multiple IndexIgnore directives add to the list, rather than the replacing the list of ignored files. By default, the list contains . (the current directory).

Example: IndexIgnore README .htaccess *.bak *~
Ciao
Ryukia
Post Reply