LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-25-2004, 10:11 AM   #1
Sherpa
Member
 
Registered: Mar 2004
Distribution: Gentoo
Posts: 67

Rep: Reputation: 15
Apache authorization


i have my DocumentRoot password protected via a .htaccess file. i have a folder within my DocumentRoot that i want to restrict to myself, however i want other users to be able to access the rest of the files within the DocumentRoot, when i put a seperate .htaccess file in the second folder, it made it dissappear when i tried to access it over the internet, how would i go about password protecting this folder within my password protected document root??
 
Old 04-25-2004, 10:25 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
When you password protect a directory, all of its subdirectories under it will use that same authentication as well. I say if you want only access by you to the root directory, create your access but then make your users you want to have access in a different directory outside of your root directory, using a virtual server or something to get around this so they have their own authentication.

You could however create a redirect on login if you added the users to the main htaccess file for the root directory.. after they login, they are redirected to the directory you want them to have access to, etc. But they might be wise and know once authenticated they could gain access to the root directory, etc.
 
Old 04-25-2004, 10:28 AM   #3
Sherpa
Member
 
Registered: Mar 2004
Distribution: Gentoo
Posts: 67

Original Poster
Rep: Reputation: 15
ok i see, i am new at this, so i kinda like this virtual directory, how would i make one? then how would i address it?
 
Old 04-25-2004, 10:36 AM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by Sherpa
ok i see, i am new at this, so i kinda like this virtual directory, how would i make one? then how would i address it?
http://httpd.apache.org/docs/vhosts/index.html for version 1.3.x of apache

http://httpd.apache.org/docs-2.0/vhosts/ for 2.x version of apache

Those should get your started, whichever version your currently using.

Last edited by trickykid; 04-25-2004 at 10:40 AM.
 
Old 04-25-2004, 10:38 AM   #5
Sherpa
Member
 
Registered: Mar 2004
Distribution: Gentoo
Posts: 67

Original Poster
Rep: Reputation: 15
thx
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Network Authorization inescapeableus Linux - Networking 10 08-05-2005 01:35 PM
apache authorization problem (im a newbie) plz help very urgent ruslan40321 Linux - Networking 6 06-17-2005 10:00 PM
Apache question....authorization and multiple servers geekdevil Linux - Software 3 01-13-2005 02:11 PM
authorization varunk123456 Linux - Newbie 2 03-31-2004 02:44 PM
Help with Apache 1.3 and Proxy-Authorization registering Linux - Security 2 09-16-2003 01:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration