Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to see all the current Apache rules in effect?

share|improve this question

migrated from Jul 11 '10 at 2:40

This question came from our site for professional and enthusiast programmers.

There are a bunch of flags for:


Otherwise you need to cat the httpd.conf in apache's directory (and all the other files it includes).

To find it:

ps -ef | grep httpd

And look in the directory in which httpd lives and start from there.

However, this doesn't tell you which rules are in effect for a specific given directory or URL. That gets pretty complicated, given rewrite rules and such. I have never seen a "dump all the rules that affect me if I'm in spot X" tool, though that would be pretty neat.

share|improve this answer

If reading the configuration files is too problematic, you might be able to get their contents in a slightly more script-friendly form from mod_info. That reads the configuration files and outputs the parsed results to a web-page at a designated location. You could then run something like lynx --dump and might keep it in a fairly regular format.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.