Solved

How can I create a Regex for this DirectoryMatch directive?

Posted on 2004-10-15
3
259 Views
Last Modified: 2010-07-27
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
0
Comment
Question by:tdsimpso
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
umbrae earned 500 total points
ID: 12326111
<DirectoryMatch "^/CFIDE/administrator/.*">
[stuff]
</DirectoryMatch>

Would probably work.

-Umbrae
0
 
LVL 5

Expert Comment

by:umbrae
ID: 12326121
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
 

Author Comment

by:tdsimpso
ID: 12410448
umbrae,

Thanks for you input.

Troy
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…
Suggested Courses

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question