Ernst-Magne Vindal wrote: <snip>
OK, now we are getting somewhere, thanks to Joseph
Glad I could be of help. :)
In the users home dir I have a .htaccess file, I didn't do anything with that on.
But for 'sites og pages' under /var/www/ I removed the .htaccess file and put the config in httpd.conf instead, and it worked like charm:)
Everything under /www is owned by www-data, but if I change the rights with chmod 600, wich also was suggested, i didn't get access at all.
But...
If I want more sites/pages under /www to have authentication, how to do that? Can I do:
<Directory "/var/www/na"> AuthType Basic AuthName "By Invitation Only" AuthUserFile /usr/local/apache/passwd/.htpasswd Require valid-user </directory> <Directory "/var/www/test"> AuthType Basic AuthName "Test site" AuthUserFile /usr/local/apache/passwd/.htpasswd Require valid-user </directory>
That would be the easiest way, although I wouldn't point to the htpasswd command, just the password file that you created.
Many thanks for help
Anytime. :) -- http://mc-luug.homelinux.org MC-LUUG Home Page http://www.hsv-hotspots.com/ Your hotspot for Wireless in HSV, AL
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]