PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : apache aber kein htaccess



rapmaster
11.02.04, 19:22
ich idiot ...
keiner ahnung was ich wieder gemacht habe
in httpd.conf unter etc/apache ist htaccess aktiviert

#
# 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>

und ich hab mithilfe http://www.topsubmit.de/dienste/tools/htaccess-generator/ eine htaccess file und eine htpasswd file createt
aber das verzeichnis wird einfach nicht geschützt !?!?!
woran liegt es?

mfg

LKH
11.02.04, 19:31
Hi,

such mal in deiner httpd.conf nach folgendem Eintrag:

AccessFileName .htaccess

Und wenn das auch so drinsteht dann post mal die betreffende .htaccess-Datei.

rapmaster
11.02.04, 19:40
der eintrag steht da oben :-)


AuthUserFile /var/www/test/.htpasswd
AuthType Basic
AuthName test
require valid-user

von .htaccess

test:dyZ.XNOcP9ENk von .htpasswd

LKH
11.02.04, 19:59
Hi,

möchtest du, dass sich der Benutzer "test" mit seinem Passwort anmelden muss? Dann versuchs mal damit:

AuthUserFile /var/www/test/.htpasswd
AuthGroupFile /dev/null
AuthName Streng geheim hier!
AuthType Basic
<Limit GET POST>
require user test
</Limit>

Hoffe es hilft,

rapmaster
11.02.04, 20:16
musste
AllowOveride none
auf
AllowOveride alll

setzen
problem gelöst :-)

mfg

D3R S3H@
11.02.04, 20:24
Versuchs mal damit in der httpd.conf:

<Directory "/www/deinverzeichnis/mit_htaccess">
Allowoverride All
</Directory>

Das bedeutet das die Standardeinstellungen des Apaches, mit der im angegebenen Directory enthalten htaccess, überschrieben werden und eben diese gelten.

D3R S3H@
11.02.04, 20:26
nööö zu spät!!! ;-) sorry

rapmaster
11.02.04, 20:34
LOL :P