Moderator: Moderators
Well, for a script I require some files' permissions to be set to 777, yes, within the PUBLIC_HTML directory. Can I protect directories using the .htaccess/.htpasswd files?
http://www.polarhome.com:763/manual/howto/auth.html#basic
AuthUserFile .httpassword
; must point to the password file you've created
$htpassword :== $APACHE$ROOT:[000000]HTPASSWD.EXE_ALPHA
$htpassword -c .htpasswd miker
%DCL-W-ACTIMAGE, error activating image APACHE$ROOT:[000000]HTPASSWD.EXE_ALPHA
-CLI-E-IMGNAME, image file ALPHA$DKA0:[SYS0.SYSCOMMON.APACHE.][000000]HTPASSWD.EXE_ALPHA;
-RMS-E-PRV, insufficient privilege or file protection violation
AuthUserFile /dka200/home/m/miker/public_html/.htpassword
aladin:LgpeHXALVaZ7I
AuthType Basic
AuthName "Testing...Try: aladin (lowercase)"
AuthUserFile /dka???/username/public_html/.htpasswd
Require valid-user
<Directory /dka0/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
</Directory>
<Directory /home/*/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
</Directory>
<Directory /dka200/home/*/*/public_html>
add "Options +Indexes" in .htaccess and you should get the password prompt prior to getting the dir listing.
Options +Indexes
AuthType Basic
AuthName "Testing...Try: aladin / SESAME"
AuthUserFile /dka200/home/m/miker/public_html/test/.htpasswd
Require valid-user
maybe httpd.conf is overriding the +Indexes?
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
</Directory>
<Directory /home/*/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
</Directory>
http://www.polarhome.com:763/~miker/cgi-bin/seeacc.com
AddHandler cgi-script .com
Users browsing this forum: No registered users and 7 guests