Link to home
Start Free TrialLog in
Avatar of tdsimpso
tdsimpso

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of umbrae
umbrae

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of umbrae
umbrae

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
Avatar of tdsimpso

ASKER

umbrae,

Thanks for you input.

Troy