.htaccess wird ignoriert

Apache, Lighttpd, nginx, Cherokee
Post Reply
hahni
Posts: 165
Joined: 2003-06-20 13:07
Location: Regensburg
Contact:
 

.htaccess wird ignoriert

Post by hahni »

hallo zusammen,

meine apache-konfig sieht auszugsweise so aus:

rewrite.conf
---
<VirtualHost *>

<Directory /home/web/errors/>
Options FollowSymlinks ExecCGI
</Directory>

Alias /errors/ "/home/web/errors/"
ErrorDocument 400 /errors/error.cgi?code=400& # Bad Request
ErrorDocument 401 /errors/error.cgi?code=401& # Authorization Required
ErrorDocument 403 /errors/error.cgi?code=403& # Forbidden
ErrorDocument 404 /errors/error.cgi?code=404& # Not Found
ErrorDocument 500 /errors/error.cgi?code=500& # Internal Server Error
ErrorDocument 501 /errors/error.cgi?code=501& # Not Implemented

UseCanonicalName Off

<Directory /home/web/allocation/>
Options FollowSymLinks IncludesNoExec ExecCGI
</Directory>

RewriteEngine On
RewriteMap lowercase int:tolower

RewriteCond %{REQUEST_URI} !^/icons/
RewriteCond %{REQUEST_URI} !^/errors
#RewriteCond %{REQUEST_URI} !^/cgi-bin
RewriteRule ^(.+) ${lowercase:%{SERVER_NAME}}$1 [C]
RewriteRule ^(www.)*([^/]*)/(.*)$ /home/web/allocation/$2/$3

<Directory /srv/www/htdocs/>
Options FollowSymlinks ExecCGI Indexes
AllowOverride All
DirectoryIndex cgi-bin/qmailadmin
</Directory>

Alias /images/ "/srv/www/htdocs/images/"

</VirtualHost>
---

suse_public_html.conf
---
<IfModule mod_userdir.c>
# Note that the name of the user directory ("public_html") cannot easily be
# changed here, since it is a compile time setting. The apache package
# would have to be rebuilt. You could work around by deleting
# /usr/sbin/suexec, but then all scripts from the directories would be
# executed with the UID of the webserver.
UserDir htdocs
</IfModule>

<Directory /home/web/domains/*/htdocs>
#AllowOverride FileInfo AuthConfig Limit
AllowOverride All
#Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec ExecCGI
Options MultiViews Indexes FollowSymlinks IncludesNoExec ExecCGI
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
---

woran könnte dies liegen? wäre super, wenn mir trotzdem jemand helfen würde, auch wenn es suse linux ist... :oops:
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: .htaccess wird ignoriert

Post by Joe User »

Wo liegt die .htaccess? Was steht in der .htaccess? Was steht im error_log?
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
hahni
Posts: 165
Joined: 2003-06-20 13:07
Location: Regensburg
Contact:
 

Re: .htaccess wird ignoriert

Post by hahni »

die .htaccess-datei liegt im zu schützenden verzeichnis und sollte an und für sich richtig aufgebaut sein.

im error.log unter /var/log/httpd ist diesbezüglich kein einziger eintrag. htaccess wird - wie schon geschrieben - ignoriert. :?
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: .htaccess wird ignoriert

Post by Joe User »

Auch auf die Gefahr hin mich zu wiederholen: Wo liegt die .htaccess (den exakten Pfad bitte) und was steht in der .htaccess?
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
hahni
Posts: 165
Joined: 2003-06-20 13:07
Location: Regensburg
Contact:
 

htaccess

Post by hahni »

den inhalt der dateien habe ich nicht zur hand. aber nachdem 2 reseller dieses problem unabhängig voneinander haben und diesbezüglich ziemlich fit sind, würde ich def. auf ein config-prob tippen.

wenn mir jemand so eine htaccess anfertigen könnte/will, würde ich es mit der in einem user-account von mir testen.
kenzo
Posts: 526
Joined: 2003-07-15 20:30
 

Re: .htaccess wird ignoriert

Post by kenzo »

(...) würde ich def. auf ein config-prob tippen.
Ich vermute, darauf zielte die vorherige Frage von Joe User ab.
wenn mir jemand so eine htaccess anfertigen könnte/will, würde ich es mit der in einem user-account von mir testen.
Wozu sollte das dienen, wenn du davon ausgehst, dass die bestehende .htaccess richtig ist?
hahni
Posts: 165
Joined: 2003-06-20 13:07
Location: Regensburg
Contact:
 

htaccess

Post by hahni »

ich lasse euch die htaccess zukommen und stelle sie nachher ins netz. allerdings dürfe - wie schon erwähnt - dies nicht das problem sein. was könnte an der konfiguration nicht stimmen?
hahni
Posts: 165
Joined: 2003-06-20 13:07
Location: Regensburg
Contact:
 

.htaccess wird ignoriert

Post by hahni »

.htaccess
---
AuthName "Protected Area"
AuthType Basic
AuthUserFile /home/web/domains/***.de/htdocs/admin/.htpasswd
require valid-user
---

.htpasswd
---
user:$8$rKvJzV4K$xopA8wWwSguV7SknKfPQH9
---

das waren die .htaccess-dateien, die leider ignoriert werden. woran kann es also noch liegen?
Anonymous
 

Re: .htaccess wird ignoriert

Post by Anonymous »

Ist in deiner HTTPD.CONF diese Sektion vorhanden ?

Code: Select all

#
# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives.  See also the AllowOverride
# directive.
#
AccessFileName .htaccess

#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<Files ~ "^.ht">
    Order allow,deny
    Deny from all
</Files>
hahni
Posts: 165
Joined: 2003-06-20 13:07
Location: Regensburg
Contact:
 

.htaccess wird ignoriert

Post by hahni »

@DeepSurfer
leider ja. also das war das problem bedauerlicherweise nciht :(
timeless2
Posts: 415
Joined: 2005-03-04 14:45
Location: Paris
 

Re: .htaccess wird ignoriert

Post by timeless2 »

Darf man im <directory>-Tag * verwenden?
Mach doch ein extra <directory /pfad/zum/verzeichnis> speziell für dieses eine Verzeichnis mit dem "AllowOverride All". Schau auch mal hier: http://httpd.apache.org/docs/2.0/howto/htaccess.html
hahni
Posts: 165
Joined: 2003-06-20 13:07
Location: Regensburg
Contact:
 

.htaccess wird ignoriert

Post by hahni »

leider immer noch nix rausgefunden. die httpd.conf eintragungen sind korrekt. echt zum kotzen...
timeless2
Posts: 415
Joined: 2005-03-04 14:45
Location: Paris
 

Re: .htaccess wird ignoriert

Post by timeless2 »

hat der apache leserechte?
hahni
Posts: 165
Joined: 2003-06-20 13:07
Location: Regensburg
Contact:
 

.htaccess wird ignoriert

Post by hahni »

wo schaut man das nach?
Post Reply