[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] Qube2 - Restricting Access to Home Page



I've changed the home page for our Qube2, and I'd like to restrict access to users with accounts on the box. However, I located a .htaccess file in the /home/groups/home/public directory restricting access to /usr/admserv/html/.cobalt/public (where the default home page is located). I'd like to keep access to this directory restricted too so that non-users can't go to http://my.site.com/cobalt/ to access the default home page.

Is it possible to restrict access to both /home/groups/home as well as to /usr/admserv/html/.cobalt/public? Do I do this with the one .htaccess file?

Actually, I'd really like to restrict all http access (including user pages) on the box to users with accounts. Can I do this with a global .htaccess file? If so, where do I place it and how would I write it?

Thanks,

Peter


My guess as to a global .htaccess file, which I assume I'd place in the / directory:

# Access file for / (valid  )
order allow,deny
allow from all
require valid-user
Authname CobaltServer
Authtype Basic
AuthUserFile /etc/htpasswd
AuthGroupFile /etc/htgroup