LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 05-24-2005, 10:02 PM   #1
Braytac
LQ Newbie
 
Registered: Jul 2003
Location: Sydney, Aus
Distribution: Debian (Prefered), Ubuntu, Redhat, Fedora
Posts: 22

Rep: Reputation: 15
.htaccess restricting parent directory


Hi All
I have an issue where i set up htaccess on a folder ona virtual server i'm hosting. i'll use the following as the example. lets say the root directory for the virtual server is /home/user/htdocs/

in that directory there is a frequent_foto folder. this is not to be password protected but it is. inside frequent_foto is a folder called members which is password protected and works a treat. but what happens is when you access
http://virtualsite.com/freequent_foto/members you get prompted for a password, thats what i want. but say i go to http://virtualsite.com/freequent_foto it then turns around asking for a password and it shouldn't.

the config files are below. any help would be great.

.htaccess
AuthUserFile /home/user/htdocs/frequent_foto/members/.htpasswd
AuthName "Authentication Required"
AuthGroupFile /home/user/htdocs/frequent_foto/members/.htgroup
AuthType basic
require group fletchers

.htgroup
fletchers: member

.htpasswd
member:RKWrUeZDkltRY

htaccess works fine on the webserver as other virtual servers use it and no problems are encountered.
the only change i made to httpd.conf is as follows.


<Directory />
Options SymLinksIfOwnerMatch
AllowOverride None
</Directory>
<Directory "/home/user/htdocs/frequent_foto/members">
AllowOverride AuthConfig
Options Indexes FollowSymLinks Includes
Order allow,deny
Allow from all
</Directory>
 
Old 05-25-2005, 12:52 AM   #2
majeztik
Member
 
Registered: Apr 2003
Location: Sydney
Distribution: Gentoo
Posts: 56

Rep: Reputation: 15
Hi,

Here is the configuration from my virtual host, im not sure what you are doing wrong but its worth a try.

<Directory "/www/docs/myhost.nametakenaway.com" >
AuthType Basic
AuthName "Only I May Login"
AuthUserFile /etc/httpd/webpass
Require user maj
</Directory>
 
Old 05-26-2005, 05:27 PM   #3
Braytac
LQ Newbie
 
Registered: Jul 2003
Location: Sydney, Aus
Distribution: Debian (Prefered), Ubuntu, Redhat, Fedora
Posts: 22

Original Poster
Rep: Reputation: 15
i tried what majeztik suggested but those settings did not make any changes at all. all it did was take away the authentication window and give me an empty page saying i'm not authorised to view the page. is anyone else able to shed some ideas?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to check if a parent directory is a symbolic link compnovice Linux - Newbie 11 10-06-2005 05:59 PM
'cp -rv .*' recurses into the parent directory??? stefanlasiewski Suse/Novell 5 02-02-2005 05:36 PM
java - parent directory problem ludeKing Programming 8 10-07-2004 07:25 PM
List only the parent directory scottrell Linux - General 6 11-07-2003 09:10 AM
mv the contents of one directory to the parent directory warkrime Linux - Newbie 4 07-14-2003 07:03 PM


All times are GMT -5. The time now is 04:58 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration