PDA

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



neeoo
12.11.01, 18:20
hi!

ich total am verzweifeln.


ich habe einen webserver (suse 7.1). alles funzt außer passwort-geschütze verzeichnisse. ich kriege es irgendwie nicht hin. :(

in httpd.conf habe ich folgendes gesetzt:

AllowOverride AuthConfig Options

folgende module sind geladen:

mod_throttle, mod_gzip, mod_dynvhost, mod_random, mod_ticket, mod_cgisock, mod_layout, mod_auth_mysql, mod_macro, mod_ip_forwarding, mod_roaming, mod_cvs, mod_fastcgi, mod_session, mod_qs2ssi, mod_put, mod_peephole, mod_lock, mod_disallow_id, mod_urlcount, mod_cache, mod_bandwidth, mod_eaccess, mod_auth_system, mod_auth_inst, mod_auth_external, mod_auth_cookie_file, mod_auth_cookie, mod_sxnet, mod_ssl, mod_php4, mod_setenvif, mod_so, mod_unique_id, mod_usertrack, mod_headers, mod_expires, mod_cern_meta, mod_proxy, mod_digest, mod_auth_db, mod_auth_dbm, mod_auth_anon, mod_auth, mod_access, mod_rewrite, mod_alias, mod_userdir, mod_speling, mod_actions, mod_imap, mod_asis, mod_cgi, mod_dir, mod_autoindex, mod_include, mod_info, mod_status, mod_negotiation, mod_mime, mod_mime_magic, mod_log_referer, mod_log_agent, mod_log_config, mod_define, mod_env, mod_vhost_alias, mod_mmap_static, http_core


in meinem geschützten verzeichnis habe ich die .htaccess und .htpasswd

.htaccess:

AuthType Basic
AuthName Login
AuthUserFile /home/www/htdocs/login/.htpasswd
require valid-user


das verzeichnis wird aber angezeigt! keine passwort - abfrage!

kann mir bitte jemand helfen!!


mfg


neeoo

netzmeister
12.11.01, 19:36
Hallo,

schae mal

hier (http://sdb.suse.de/de/sdb/html/daniel_mod_auth_nds.html)

und

hier (http://sdb.suse.de/de/sdb/html/htaccess72.html)

wahrscheinlich ists der erste Link!

Grüsse

Eicke

neeoo
13.11.01, 09:17
es bezieht sich auf suse 7.2. ich habe suse 7.1 :(

ich kämpfe jetzt weiter ....


mfg


neeoo

Pingu
13.11.01, 09:40
Hi,

also bei mir steht sowas in der .htaccess:


AuthUserFile /var/net/www/domain/html/intern/.htpasswd
AuthGroupFile /dev/null
AuthName .
AuthType BASIC

<Limit GET>
require user admin
require user jeder
require user ich
</Limit>


Und es laufen volgende Module auf dem Apache:


mod_php4, mod_ssl, mod_setenvif, mod_so, mod_unique_id, mod_usertrack, mod_expires, mod_auth, mod_access, mod_rewrite, mod_alias, mod_userdir, mod_speling, mod_actions, mod_imap, mod_asis, mod_cgi, mod_dir, mod_autoindex, mod_include, mod_info, mod_status, mod_negotiation, mod_mime, mod_log_referer, mod_log_agent, mod_log_config, mod_env, http_core


Das ist zwar jetzt von unserem offiziellem Server (auf einer Sun), denn ich hab grad mein Linux niocht zur hand.

Gruß

-= Pingu =-

neeoo
13.11.01, 13:36
es funktioniert! :D

ich habe das

AllowOverride AuthConfig Options

in der httpd.conf - datei an der falschen stelle gesetzt! :p


danke für die antworten!


mfg


neeoo