The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



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

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 07-23-2002
crazycelicagts crazycelicagts is offline
Registered User
  
 

Join Date: Jul 2002
Posts: 6
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
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:45 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0