0

Is it possible to exclude certain paths from a location?

# first location
<Location /folder1>

# second location
<Location /folder1/folder2>

Locations are merged and this causes problems for my configuration.

What I want to achieve is that the first or the second Location is used to prevent merging.

Can I do this using LocationMatch?

onknows
  • 6,151
  • 12
  • 65
  • 109

1 Answers1

0

Maybe this:

(taken more or less from LocationMatch to allow a main url excluding specific sub folder)

# first location
<LocationMatch ^/folder1/(?!folder2).*>

# second location
<Location /folder1/folder2>
Chris Lear
  • 6,592
  • 1
  • 18
  • 26