LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 11-18-2003, 07:13 AM   #1
yapp
Member
 
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, 08:00 AM   #2
jcookeman
Member
 
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.

http://httpd.apache.org/docs/mod/cor...#allowoverride
 
Old 11-18-2003, 01:37 PM   #3
yapp
Member
 
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, 08:24 PM   #4
chenglim
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-14-2005, 12:22 AM   #5
Demonbane
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
</Directory>
 
  


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


All times are GMT -5. The time now is 03:56 PM.

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