Re: [OT]: Apache config

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2006-03-01 at 12:55 +0000, Dan Track wrote:
> I've run out of ideas on how to get this done, so I'm hoping that
> someone can help.
> 
> I have url: stats.foo.com

Really?  Is "foo.com" yours?  It's a real domain name, even if its a
cybersquatter or bogus wildcard result.  Don't confuse things, nor get
domain names indexed in search engines, by using bogus domains.  Use
example.com for examples, that's what it's meant for.

> inside I have anumber of locations:
> location1
> location2
> etc..

What do you mean by "locations"?  Files, directories, URIs that produce
something that's not directly referring to filespace?

Probably <Location> directives might be what you need, but you've not
provided enough information.  <Directory> could be what you want.

> What I'd like to do is allow person1 to access everything but only
> allow person2 to access location1. The site currently is protected
> with htaccess, but I'm struggling to creat a rule or location or
> directory tag to allow this to happen.

Adapt to suit (read the manual for more information) something like the
following:

-------- below here ---------
AuthType Basic
AuthUserFile /web/users

<Directory /location1>
AuthName "Restricted location 1"
Require person1 person2
</Directory>

<Directory /location2>
AuthName "Restricted location 2"
Require person1
</Directory>
--------- above here --------

It starts with the stuff that can be common, then has individual
sections.  The AuthName is what'll appear in the browsers authentication
GUI, make it short and sensible.

-- 
(Currently running FC4, in case that's important to the thread)

Don't send private replies to my address, the mailbox is ignored.
I read messages from the public lists.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux