LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-02-2008, 01:32 PM   #1
minhcao123
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Rep: Reputation: 0
Unhappy Apache help !


Hi,

I try to use both require user and require group in .htaccess file.
My configuration only work with ONE directive "require user jan" or
"require group staff", but not both.


What I have done wrong here ?
Thanks
Minh


# cat .htaccess
AuthType Basic
AuthName "Password Required"
AuthUserFile /etc/httpd/conf/password.file
AuthGroupFile /etc/httpd/conf/group.file
require group staff
require user jen


# cat /etc/httpd/conf/password.file
joe:rxXCdbTQqmbYA
jen:xyVSuHLjceD92
jeff:bR0J3kdW2NuGA


# cat /etc/httpd/conf/group.file
staff:joe jeff


# cat httpd.conf
..
..
<VirtualHost 192.168.1.5:80>
DocumentRoot /var/www/html/example
ServerName www.example.com
<Directory "/var/www/html/example/data">
Options Indexes Includes
AllowOverride AuthConfig
</Directory>
</VirtualHost>
 
Old 02-02-2008, 08:25 PM   #2
baldur_the_god
Member
 
Registered: Feb 2007
Posts: 54

Rep: Reputation: 15
apache

there is no reason to do this...you use the group configuration to readily eliminate/add access to people...you should not be using both at once...it is redundant.

apache

baldur

Last edited by reddazz; 02-10-2008 at 03:25 PM.
 
Old 02-02-2008, 08:28 PM   #3
baldur_the_god
Member
 
Registered: Feb 2007
Posts: 54

Rep: Reputation: 15
apache

by the way, it is much more secure instead of using a .htaccess file to put your access configuration into your httpd.conf file...you can find that info on

apache

baldur

Last edited by reddazz; 02-08-2008 at 06:36 PM.
 
Old 02-03-2008, 12:33 AM   #4
minhcao123
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by baldur_the_god View Post
there is no reason to do this...you use the group configuration to readily eliminate/add access to people...you should not be using both at once...it is redundant.

apache

baldur

That's good point ...
Thank you

Last edited by reddazz; 02-08-2008 at 06:36 PM.
 
  


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
apache program writes files in the apache group, how can I change? muskiediver Linux - Security 5 01-17-2007 12:27 PM
Mail from Apache being rejected - Cannot route to sender apache@localhost.localdomain jimwillsher Linux - Networking 2 01-19-2006 12:41 AM
Apache 1.3.33 (debian built) and Apache SSL does not respond to the proper ports lqorg_user Linux - Networking 0 11-06-2005 04:11 PM
Apache Webserver 403 Forbidden Errors (User not in apache group?) Mankind75 Mandriva 4 07-08-2004 05:30 AM
apache benchmarks (apache v13 / apache v20) ; large differences between benchmarking markus1982 Linux - Software 0 02-08-2003 10:53 AM

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

All times are GMT -5. The time now is 12:49 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