Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Bricolage: users

question about use of <location>

 

 

Bricolage users RSS feed   Index | Next | Previous | View Threaded


D-Beaudet at NGA

Nov 11, 2008, 10:31 AM

Post #1 of 7 (1998 views)
Permalink
question about use of <location>

Does anyone familiar with Apache's <location> directive know how to
exclude one or more directories from a particular configuration?



For example, in my httpd.conf, in order to lock down Bricolage to users
authenticated against Active Directory, I have:



<Location />

Options FollowSymLinks

AuthName "Bricolage"

AuthType Kerberos

KrbAuthRealm EXAMPLE.COM

KrbServiceName HTTP

Krb5Keytab /usr/local/bricolage/conf/auth_kerb.keytab

KrbMethodNegotiate off

KrbSaveCredentials off

KrbVerifyKDC off

Require valid-user

</Location>



But I don't want to require any authentication for the /dist URL that
bric_dist_mon uses except perhaps that it only be accepted from
localhost or the server's own IP address.



But it seems that using the syntax above forces authentication for ALL
URLs regardless of whether I include a separate <Location /dist>
directive.



Any help or ideas appreciated.



- Dave


denny at digitalcraftsmen

Nov 11, 2008, 10:40 AM

Post #2 of 7 (1930 views)
Permalink
Re: question about use of <location> [In reply to]

On Tue, 2008-11-11 at 13:31 -0500, Beaudet, David wrote:
>
> Does anyone familiar with Apache's <location> directive know how to
> exclude one or more directories from a particular configuration?

http://httpd.apache.org/docs/2.0/mod/core.html#locationmatch


--
Denny de la Haye Digital Craftsmen
Analyst Programmer www.digitalcraftsmen.net

Exmouth House, 3 Pine Street, London, EC1R 0JH
Tel: 020 7183 1410 Fax: 020 7099 5140


D-Beaudet at NGA

Nov 11, 2008, 10:54 AM

Post #3 of 7 (1920 views)
Permalink
RE: question about use of <location> [In reply to]

Yeah, I tried that too with no luck. Maybe it's time to try again with
a fresh cup of coffee.

-----Original Message-----
From: Denny de la Haye [mailto:denny [at] digitalcraftsmen]
Sent: Tuesday, November 11, 2008 1:40 PM
To: users [at] lists
Subject: Re: question about use of <location>

On Tue, 2008-11-11 at 13:31 -0500, Beaudet, David wrote:
>
> Does anyone familiar with Apache's <location> directive know how to
> exclude one or more directories from a particular configuration?

http://httpd.apache.org/docs/2.0/mod/core.html#locationmatch


--
Denny de la Haye Digital Craftsmen
Analyst Programmer www.digitalcraftsmen.net

Exmouth House, 3 Pine Street, London, EC1R 0JH
Tel: 020 7183 1410 Fax: 020 7099 5140


D-Beaudet at NGA

Nov 11, 2008, 11:00 AM

Post #4 of 7 (1937 views)
Permalink
RE: question about use of <location> [In reply to]

>http://httpd.apache.org/docs/2.0/mod/core.html#locationmatch

Basically, what I'd like to do is an inverted LocationMatch like this

<LocationMatch ! "/dist">
</LocationMatch>

but I cannot find the proper syntax if one exists.


denny at digitalcraftsmen

Nov 11, 2008, 11:02 AM

Post #5 of 7 (1922 views)
Permalink
RE: question about use of <location> [In reply to]

On Tue, 2008-11-11 at 14:00 -0500, Beaudet, David wrote:
> >http://httpd.apache.org/docs/2.0/mod/core.html#locationmatch
>
> Basically, what I'd like to do is an inverted LocationMatch like this
>
> <LocationMatch ! "/dist">
> </LocationMatch>
>
> but I cannot find the proper syntax if one exists.

I believe it's something like...

<LocationMatch "/(?!dist)">
...
</LocationMatch>

...but I've never had to do it myself. Good luck!

Regards,
Denny


--
Denny de la Haye Digital Craftsmen
Analyst Programmer www.digitalcraftsmen.net

Exmouth House, 3 Pine Street, London, EC1R 0JH
Tel: 020 7183 1410 Fax: 020 7099 5140


D-Beaudet at NGA

Nov 11, 2008, 11:04 AM

Post #6 of 7 (1928 views)
Permalink
RE: question about use of <location> [In reply to]

> <LocationMatch ! "/dist">
> </LocationMatch>

I'll give that a shot... I ran across a suggestion to try something like
this as well:

<LocationMatch "([^[.thisfile.]]|[^[.thatDir.]]|[^[.whatever.]]).*">

so I'll cross my fingers that one of these will do the trick...

Thanks.


D-Beaudet at NGA

Nov 11, 2008, 11:05 AM

Post #7 of 7 (1936 views)
Permalink
RE: question about use of <location> [In reply to]

Oops... wrong <snip>... should have been:

<LocationMatch "/(?!dist)">
...
</LocationMatch>

-----Original Message-----
From: Beaudet, David [mailto:D-Beaudet [at] NGA]
Sent: Tuesday, November 11, 2008 2:05 PM
To: users [at] lists
Subject: RE: question about use of <location>


> <LocationMatch ! "/dist">
> </LocationMatch>

I'll give that a shot... I ran across a suggestion to try something like
this as well:

<LocationMatch "([^[.thisfile.]]|[^[.thatDir.]]|[^[.whatever.]]).*">

so I'll cross my fingers that one of these will do the trick...

Thanks.

Bricolage users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.