Overclockers Australia Forums
OCAU News - Wiki - QuickLinks - Pix - Sponsors  

Go Back   Overclockers Australia Forums > Software Topics > Other Operating Systems

Notices


Sign up for a free OCAU account and this ad will go away!
Search our forums with Google:
Reply
 
Thread Tools
Old 20th December 2007, 5:38 PM   #1
leighr Thread Starter
Member
 
leighr's Avatar
 
Join Date: Feb 2002
Location: Mitcham, Melbourne
Posts: 413
Default Apache authentication

I've got a linux web server running apache2 that's been serving up pages for a few months, no problems there.

Now, I've got a request to secure a number of the folders/files scattered around the site. There will probably be around 100 users who will have access to these pages. And while it's not a requirement at the moment, it may need to extend to allowing only specific users access to specific pages.

I am, to put it bluntly, an apache noob. And I have no idea where to start on this one.

Any suggestions?

Thanks,

Leigh.
__________________
Shameless plug....
Need toys/lego? Check out http://www.peedeetoys.com.au
leighr is offline   Reply With Quote

Join OCAU to remove this ad!
Old 20th December 2007, 7:19 PM   #2
Iroquois
Member
 
Iroquois's Avatar
 
Join Date: Jun 2001
Location: Brisbane
Posts: 1,960
Default

You'll want to look at something called .htaccess

Found this guide which is quite well written:

http://www.reallylinux.com/docs/htaccess.shtml

That should at least get you going.
Iroquois is offline   Reply With Quote
Old 20th December 2007, 7:32 PM   #3
checkers
Member
 
checkers's Avatar
 
Join Date: Jan 2007
Location: Perth
Posts: 613
Default

The simple solution is mod_auth. This lets you implement basic http authentication. If you want more complicated authentication that is integrated into a site, you will need to do it with PHP or whatever HTML pre-processor you use.
__________________
CCCP
checkers is offline   Reply With Quote
Old 21st December 2007, 12:51 PM   #4
memnoch
Member
 
Join Date: Jan 2002
Location: San Francisco, California
Posts: 508
Default

+1 to mod_auth or some other mod_foo module

You can use a number or back ends databases for your user accounts.
ldap (windows AD), user accounts, mysql, postgresql, htaccess users, pam accounts plus a few others.

http://httpd.apache.org/docs/2.0/mod/mod_auth.html
http://httpd.apache.org/docs/2.0/mod/mod_auth_ldap.html
http://httpd.apache.org/docs/2.0/mod...th_digest.html
http://httpd.apache.org/docs/2.0/mod/mod_auth_dbm.html
http://httpd.apache.org/docs/2.0/mod/mod_access.html
memnoch is offline   Reply With Quote
Old 21st December 2007, 3:21 PM   #5
stalin
(Taking a Break)
 
stalin's Avatar
 
Join Date: Jun 2001
Location: On the move
Posts: 4,584
Default

If you have an existing directory service that has your users in, use mod_something

have it authenticate to LDAP or Active Directory, it reduces confusion and massively reduces ongoing administrative costs.


I would recommend AGAINST .htaccess simply because you have full access to the server. If you have access to the config files, the access controls should be done from within http.conf etc, as its more secure than in .htaccess files.
.htaccess are only used in hosting environments because they dont want to give rw users access to the main apache config file.
stalin is offline   Reply With Quote
Reply

Bookmarks

Sign up for a free OCAU account and this ad will go away!

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +10. The time now is 6:14 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. -
OCAU is not responsible for the content of individual messages posted by others.
Other content copyright Overclockers Australia.
OCAU is hosted by Internode!