Solved

How can I create a Regex for this DirectoryMatch directive?

Posted on 2004-10-15
3
252 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
  • 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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…
If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now