Visit Jeremy's Blog.
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 11-18-2003, 06:13 AM   #1
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613

Rep: Reputation: 30
[apache] disable htpasswd in subtrees?

Hi there.

I'm wondering how I can turn of the http-authorization for sub-directories.

My workstation runs an https site I use for personal things. (like my mail) Because I don't anyone else to look at it, I've enabled an htpasswd file on the website root directory. But is there any way I can disable this authorization for certain sub-directories, if I want to show something to a friend of mine?
Old 11-18-2003, 07:00 AM   #2
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417

Rep: Reputation: 33
How do you have authorization set up? Through the main server config file?

Read up on this if you haven't already.
Old 11-18-2003, 12:37 PM   #3
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613

Original Poster
Rep: Reputation: 30
My authorization is working.. that is not the problem here. I've used the Auth... directives to place enable an htpasswd file, and this part is working. (and indeed, to allow these commands in an .htaccess file, you need the AllowOverride; I know about this)

My question is a little different. If I've enabled an password on the website root folder, how can I disable it for a certain sub folder? ..something like "AuthType None" Right now, I've solved my problem temporary by playing with the require user directives, and allowing another user in the subfolder.
Old 01-13-2005, 07:24 PM   #4
LQ Newbie
Registered: Jan 2005
Posts: 18

Rep: Reputation: 0
use apache container

use a second container <></> to modify as you favourite security setting.
Old 01-13-2005, 11:22 PM   #5
LQ Guru
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Put something like this in your Apache config file:

<Directory "/my/sub/folder">
Allow from all
Satisfy Any


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
moving /subtrees to their own partitions on new installation John Velman Slackware - Installation 3 08-26-2005 04:39 PM
htaccess -- Apache can't find account exactly in htpasswd -- please help b:z Linux - Networking 7 05-16-2005 05:47 AM
apache .htaccess and htpasswd - can't lock directory jordanthompson Linux - Software 9 02-07-2005 11:12 PM
Disable all Apache 2.x logging hakcenter Linux - Networking 2 12-05-2003 12:34 AM
Apache .htpasswd use windows authentication? meeshka Linux - Networking 1 07-14-2003 10:14 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:11 AM.

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