Location, LocationMatch combinations

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

 



Hi.

Apache 2.2.x, configuration.
I have read this : http://httpd.apache.org/docs/2.2/sections.html
but some aspect is still not very clear to me.

If I have :

<Location "/zone1/private">
  .. some directives A ..
</Location>

<Location "/zone2/private">
  .. some directives B ..
</Location>

<LocationMatch "/private$">
  .. some directives C ..
</LocationMatch>

(The above URIs do not reside on the filesystem.)

If I access "http://myhost.company.com/zone1/private";,
are the above directives A and C combined ?

Similarly if I access "http://myhost.company.com/zone2/private";,
are the above directives B and C combined ?

If not, is there a way to combine them, more or less in the way indicated above ?

I guess that the basic question is : does Apache finally select one and only one Location/LocationMatch which applies, and then apply only the directives within that section, or does it accumulate/merge all that applies ? From the doc, I believe the latter, but it would be nice to have a definite confirmation by an expert.


Thanks for enlightenment.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux