Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 05-27-2004, 08:53 AM   #1
Registered: Mar 2004
Posts: 519

Rep: Reputation: 35
apache, complex .htaccess control with ip/pass, is this possible?

As a side note to this, I'm actually editing httpd.conf <Directory/> rather than using an .htaccess file, but its contents can be the same (can't they?)

What I would like to do is have a directory on a web server with the following restrictions:

Allow 192.168.0.* without a password
Allow with a groupfile
Allow with a different groupfile (obviously!)
Allow another...customers etc etc
Deny others

It seems fairly simple to do if I only have one customer with:

AuthUserFile /www/test
AuthName "test"
AuthType Basic
Satisfy Any

<Limit GET POST>

order deny,allow
deny from all
allow from 192.168.0
require valid-user


I guess the best way to do this would be this:

AuthUserFile /www/user
AuthGroupFile /www/group
AuthName "test"
AuthType Basic
Satisfy Any

but from there I'm stuck, is it possible to link a user group (require group customer1) to allowing a certain IP, require group customer2 to a second set of IP.

is this possible or are there any other solutions that anyone can see?

Any help would be appreciated,



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
Apache and .htaccess jamluv Linux - Security 9 06-03-2005 03:53 PM
BIOS doesn't pass control to OS for boot up tireseas Linux - Hardware 6 01-18-2005 04:27 PM
apache .htaccess linuxanswer Linux - General 1 05-01-2004 05:20 PM
is htaccess on apache 2.0 not the same as in 1.3 abd_bela Linux - General 3 07-23-2003 06:17 AM
Directory listing control with .htaccess quincy56 Linux - Security 0 02-09-2002 11:50 AM > Forums > Linux Forums > Linux - Software

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