Probleme mit .htaccess

Apache, Lighttpd, nginx, Cherokee
Post Reply
nebu
Posts: 11
Joined: 2003-07-03 07:40
 

Probleme mit .htaccess

Post 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.
bungeebug
Posts: 187
Joined: 2004-04-14 10:08
 

Re: Probleme mit .htaccess

Post by bungeebug »

Dann zeig doch mal nen Link auf die Datei.
static
Posts: 437
Joined: 2002-10-27 19:56
Location: Schweiz
 

Re: Probleme mit .htaccess

Post by static »

Hi,
ich tippe spontan einfach mal auf AllowOverride.

.static
nebu
Posts: 11
Joined: 2003-07-03 07:40
 

Re: Probleme mit .htaccess

Post 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?
wirsing
Posts: 604
Joined: 2002-11-20 21:32
Location: Vaihingen und Karlsruhe
 

Re: Probleme mit .htaccess

Post by wirsing »

Code: Select all

fgrep -A 20 '<Directory ' httpd.conf
Ergebnis posten.
static
Posts: 437
Joined: 2002-10-27 19:56
Location: Schweiz
 

Re: Probleme mit .htaccess

Post 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
nebu
Posts: 11
Joined: 2003-07-03 07:40
 

Re: Probleme mit .htaccess

Post 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
nebu
Posts: 11
Joined: 2003-07-03 07:40
 

Re: Probleme mit .htaccess

Post by nebu »

Also was fehlt dem jetzt sorry für doppelpost aber ich brauch echt langsam mal ne Lösung für das Problem.
duergner
Posts: 923
Joined: 2003-08-20 11:30
Location: Pittsburgh, PA, USA
 

Re: Probleme mit .htaccess

Post by duergner »

In welchem Verzeichnis geht die .htaccess nicht?
static
Posts: 437
Joined: 2002-10-27 19:56
Location: Schweiz
 

Re: Probleme mit .htaccess

Post 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
Post Reply