![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| copying directories from NT server to Unix server (solaris 5.8) | jhmr7 | UNIX for Dummies Questions & Answers | 4 | 08-08-2008 01:53 AM |
| Does unix has password protection for zip files? | p_prathaban | UNIX for Advanced & Expert Users | 6 | 02-19-2004 10:46 AM |
| Apache Server | ppychu | UNIX for Dummies Questions & Answers | 1 | 09-10-2002 06:46 PM |
| Apache Web Server | anent | UNIX for Dummies Questions & Answers | 9 | 11-16-2001 05:11 PM |
| Apache Server | cfir | UNIX for Dummies Questions & Answers | 4 | 07-04-2001 08:17 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Directories and Files Protection in Apache Server
Hi everyone, I'm a newbie at this. We have a unix web server which has redhat 7.2 on it. It has apache server hosting our website at the moment. This is what I'm trying to do.
Goal: I'm trying to put reports online so when clients come they can read it and what not. I want only clients viewing their particular folders only and not read others. On the server, there will be a directories of folders of groups number and in those directories are the files. I want a link on the website so that when they click on it, it tells them to put in their user name and password, once they do that, it will take them to their group number. From there, they can do whatever they want, print the file, download the file, etc.... I tried using the .htaccess method but aren't very successful. If someone can help me out with this, I would really appreciate it. I created a .htaccess file in the directory that I want to protect...this is what is in the file: AuthType Basic AuthUserFile /var/www/html/test2/.htpasswd AuthGroupFile /dev/null AuthName Testing require valid-user <Limit GET> require user temp </Limit> and then I created a user name and password and put it inside that folder also. This is what i did next: htpasswd -c /var/www/html/test2/.htpasswd temp <enter password twice> then i place stuff in the folder like a couple of text file, then open up my browser, i could see all the stuff in the folder, it didn't prompt me for a user name/password. Well thats what I did, hopefully someone can help me out. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|