Ludwig Ruderstaller: Apache ignoriert .htaccess ?!?

Beitrag lesen

Hallo,

check mal die httpd.conf

This controls which options the .htaccess files in directories can

override. Can also be "All", or any combination of "Options", "FileInfo",

"AuthConfig", and "Limit"

#    AllowOverride All

das muss zumindest auf

AllowOverride AuthConfig

stehen

und weiter unten nach:

AccessFileName: The name of the file to look for in each directory

for access control information.

AccessFileName .htaccess

The following lines prevent .htaccess files from being viewed by

Web clients.  Since .htaccess files often contain authorization

information, access is disallowed for security reasons.  Comment

these lines out if you want Web visitors to see the contents of

.htaccess files.  If you change the AccessFileName directive above,

be sure to make the corresponding changes here.

Also, folks tend to use names such as .htpasswd for password

files, so this will protect those as well.

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

lg
Ludwig