Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Directory Security

Status
Not open for further replies.

Trancemission

Technical User
Oct 16, 2001
108
GB
Apologies if this is a simple question but I cannot see to get any help from documentation or google.

I am now working on a project which requires an intranet application where I can select a folder from our Lan [a mount drive on my BSD web server] and clients can browse the lan.

My problem here is security, I need to control access to this intranet, I have had a play with .htaccess but cannot get it wokring, and I am not sure if this will work with all my sub-directories.

Some of these directories are 10 folders deep so putting a htaccess file in each is not practical.

Is there a config I can setup that will ask for uname and password on a session basis.

I do not wish to create a per-directory acl, just an overal policy so basically if any body trys to hit my intranet [any folder within] they need a uname and password.

Writing thie post make's it seem even more simple but I script php :)

Cheers



Trancemission
=============
If it's logical, it'll work!
 
.htaccess works for the directory in which it resides, and all its subdirectories by default.

What OS are you running, and what is the exact difficulty in implementing?

Newposter
"Good judgment comes from experience. Experience comes from bad judgment."
 
BSD 4.9, Apache 1.3.?

Sorry no implementation yet, just prep work for the project. I have been trying to find the time to learn apache configs but had little luck yet so thought I would try and leech of somebody else's time and thought :-o

Thanks for the info, I have a couple of implementations of .htaccess but nothing that I have been able to play about with, plus I now know that .htaccess works under sub dirs ;)


Cheers

Trancemission
=============
If it's logical, it'll work!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top