Probleme mit .htaccess
Probleme mit .htaccess
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.
Vielleicht hat ja jemand eine Lösung.
Re: Probleme mit .htaccess
Dann zeig doch mal nen Link auf die Datei.
Re: Probleme mit .htaccess
Hi,
ich tippe spontan einfach mal auf AllowOverride.
.static
ich tippe spontan einfach mal auf AllowOverride.
.static
Re: Probleme mit .htaccess
Also die htaccess Zeile in der Config sieht wie folgt aus:
muss ich da AllowOverride All noch dazu einfügen?
Code: Select all
AccessFileName .htaccess
<Files ~ "^.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>
Re: Probleme mit .htaccess
Code: Select all
fgrep -A 20 '<Directory ' httpd.confRe: Probleme mit .htaccess
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
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
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
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
In welchem Verzeichnis geht die .htaccess nicht?
Re: Probleme mit .htaccess
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
drinstehen.
.static
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>
.static