Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 05-24-2005, 10:02 PM   #1
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 you get prompted for a password, thats what i want. but say i go to it then turns around asking for a password and it shouldn't.

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

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

fletchers: member


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

Rep: Reputation: 15

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

<Directory "/www/docs/" >
AuthType Basic
AuthName "Only I May Login"
AuthUserFile /etc/httpd/webpass
Require user maj
Old 05-26-2005, 05:27 PM   #3
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?


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 / openSUSE 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 08:28 PM.

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