How can I create a Regex for this DirectoryMatch directive?

Hello all,

I am trying to protect all my coldfusion administrator directories that looks like this: "CFIDE/administrator" in their path.
I thought that using DirectoryMatch with regex.  What would the Regular Expression look like?

<DirectoryMatch CFIDE/administrator>
  #Other directive here...
</DirectoryMatch>

How would I so this.

Thanks,
Troy
tdsimpsoAsked:
Who is Participating?
 
umbraeConnect With a Mentor Commented:
<DirectoryMatch "^/CFIDE/administrator/.*">
[stuff]
</DirectoryMatch>

Would probably work.

-Umbrae
0
 
umbraeCommented:
Addendum: You could probably just as easily accomplish this with a directory tag, of the format:

<Directory /absolute/path/to/CFIDE/administrator>
[stuff]

</Directory>

-Umbrae
0
 
tdsimpsoAuthor Commented:
umbrae,

Thanks for you input.

Troy
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.