htaccess problem

gno

Verified User
Joined
Mar 21, 2005
Messages
10
I cannot set up a group access to a folder called job and would appreciate any input...
.htaccess file nominates
AuthGroupFile /home/.../.htpasswd/public_html/job/job_group
and
AuthUserFile /home/.../.htpasswd/public_html/job/job_passwrds
and set
require group some-users

although these files exist the apache error log gives me
user demo-test not found
file does not exist: /var/www/html/favicon.ico

Is there something I am missing here? Access for single user/password combination works ok using the DirectAdmin control panel. The above is created from a script.
 
Hey gno,

Sorry to hear about your .htaccess problems - double check your paths to make sure they are correct - maybe post the whole .htaccess file - that could possibly give us a better clue to what is happening.

Regards,

Vin Hardick
System Admin - Alwaysonline.net / Raqshaq.com
 
Thanks for the response Vin.
I have it working but I am by no means confident of it.
I have two folders one called job with an htaccess file and another called demo which lives within job and also has an htaccess file.
For demo it is...
AuthGroupFile /home/imagine/domains/imagineit.net.au/.htpasswd/public_html/job/.htdemogp
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /home/imagine/domains/imagineit.net.au/.htpasswd/public_html/job/.htpasswd
require valid-user

and for job folder...
AuthGroupFile /home/imagine/domains/imagineit.net.au/.htpasswd/public_html/job/.htjobgp
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /home/imagine/domains/imagineit.net.au/.htpasswd/public_html/job/.htpasswd
require valid-user

The domain name is not live.

They seem to work OK but on copying the files from one directory to another using direct admin some strange things happened. (Just makes me unsure thats all)

Also using php crypt($pswd) the resulting password seemed in error. Just have not got back to it see what is happening.

thks
Geoff
 
Hey Geoff,

Glad to hear that it is working for you (sort of) -

Anyway - your .htaccess files look pretty good.

Not sure how you setup your Authgroup file but here is a quick example. (This would allow group managers access)

.htaccess example

AuthUserFile /usr/home/lee/htpasswd
AuthGroupFile /usr/home/lee/htgroup
AuthName "Lee's Secret Area"
AuthType Basic
<Limit GET POST>
require group managers
</Limit>

AuthGroupFile example:

managers: cisco bob tim jeff kari
systems: lee joe cisco
sales: kari tonja

Good Luck Geoff.

Regards,

Vin Hardick
System Admin - Alwaysonline.net / Raqshaq.com
 
Back
Top