[ LUGOS ] Apache in access restrictions

Stojan Rancic stojan na vector.nevtron.si
Pon Jul 20 23:53:48 CEST 1998


Zivjo

Imam en problemcek z Apache 1.2.6 . Na htdocs/blah/ imam neke stvari,
za katere hocem, da ima do njih dostop kdorkoli iz masin x.x.x.x in
y.y.y.y, ostali pa morajo vpisati username/password . Kako zadevo
narediti ?

Naredil sem .htaccess v tistem direktoriju in v njega dal tole:

<Limit GET POST>
order deny,allow
deny from all
allow from x.x.x.x y.y.y.y
</Limit>
#AuthName blah
#AuthUserFile /home/httpd/user.pwd
#AuthGroupFile /home/httpd/group.pwd

Pri cemer je v user.pwd onih par usernameov/passwordov. Zadeva ne dela
s tem, da ce se priklapljam zunaj tistih dveh masin, mi enostavno
napise 403 Access Denied, in me noce vprasati za username/pwd .

V access.conf imam tole: 

<Directory /home>
Options Indexes IncludesNOEXEC
AllowOverride None
</Directory>
<Directory /home/httpd/html>
Options Indexes Includes ExecCGI FollowSymLinks
AllowOverride None
order allow,deny
allow from all
</Directory>

<Directory /home/httpd/html/blah>
AllowOverride All
AuthName blah
AuthUserFile /home/httpd/user.pwd
AuthGroupFile /home/httpd/group.pwd
</Directory>


Kako bi se dala zadeva resit ?


					GreetZ, Stojan




Dodatne informacije o seznamu Starilist