Page 1 of 1

Probleme mit .htaccess

Posted: 2004-07-03 07:23
by nebu
Also bei meinem Apache Webserver gehen einfach einige wichtige dinge nicht. Der Apache is vorkunfiguriert gewesen vom Anbieter. Zum einen gehen keine .htaccess Dateien. Ich hab mir das mal in der httpd.conf angeschaut und sieht auch korrekt aus. Kann mich natürlich irren. Jedenfalls erkennt er irgendwie die .htaccess Dateien nicht.

Vielleicht hat ja jemand eine Lösung.

Re: Probleme mit .htaccess

Posted: 2004-07-03 09:54
by bungeebug
Dann zeig doch mal nen Link auf die Datei.

Re: Probleme mit .htaccess

Posted: 2004-07-03 11:22
by static
Hi,
ich tippe spontan einfach mal auf AllowOverride.

.static

Re: Probleme mit .htaccess

Posted: 2004-07-03 11:33
by nebu
Also die htaccess Zeile in der Config sieht wie folgt aus:

Code: Select all

AccessFileName .htaccess
<Files ~ "^.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>
muss ich da AllowOverride All noch dazu einfügen?

Re: Probleme mit .htaccess

Posted: 2004-07-03 12:49
by wirsing

Code: Select all

fgrep -A 20 '<Directory ' httpd.conf
Ergebnis posten.

Re: Probleme mit .htaccess

Posted: 2004-07-03 12:52
by static
Hi,
nein, das gehört in ein Directory - lies bitte die Manpage:

http://httpd.apache.org/docs/mod/core.h ... owoverride

AllowOverride AuthConfig sollte reichen.

.static

Re: Probleme mit .htaccess

Posted: 2004-07-03 13:00
by nebu

Code: Select all

<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>
<Directory "/usr/virtualweb">
  Options -Indexes FollowSymLinks MultiViews Includes
  AllowOverride All
  Order allow,deny
  Allow from all
</Directory>

<IfModule mod_dir.c>
 DirectoryIndex index.html index.htm index.shtml index.cgi index.php index.php4 index.php3
</IfModule>

AccessFileName .htaccess
<Files ~ "^.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>

UseCanonicalName On
<IfModule mod_mime.c>
    TypesConfig /usr/apache_29/conf/mime.types
--
    <Directory "/usr/apache_29/icons">
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
</IfModule>

<IfModule mod_autoindex.c>
    IndexOptions FancyIndexing
    AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
    AddIconByType (TXT,/icons/text.gif) text/*
    AddIconByType (IMG,/icons/image2.gif) image/*
    AddIconByType (SND,/icons/sound2.gif) audio/*
    AddIconByType (VID,/icons/movie.gif) video/*
    AddIcon /icons/binary.gif .bin .exe
    AddIcon /icons/binhex.gif .hqx
    AddIcon /icons/tar.gif .tar
    AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
    AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
    AddIcon /icons/a.gif .ps .ai .eps

Re: Probleme mit .htaccess

Posted: 2004-07-11 09:17
by nebu
Also was fehlt dem jetzt sorry für doppelpost aber ich brauch echt langsam mal ne Lösung für das Problem.

Re: Probleme mit .htaccess

Posted: 2004-07-11 11:50
by duergner
In welchem Verzeichnis geht die .htaccess nicht?

Re: Probleme mit .htaccess

Posted: 2004-07-11 17:07
by static
Hi,
hast du die Manpage überhaupt gelesen und verstanden?

Du musst für das Verzeichnis, in dem die .htaccess liegt eine Directory Direktive einrichten und dort AllowOverride AuthConfig reinschreiben.

Wenn der passwortgeschützte Ordner bspw. /home/www.yourdomain.com/public_html/private/ ist, muss folglich in der httpd.conf

Code: Select all

<Directory "/home/www.yourdomain.com/public_html/private">
AllowOverride AuthConfig
</Directory>
drinstehen.

.static