Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 tool available (or a debug mode built into Apache) that will allow me to interactively test and explain an Apache configuration for a given request?

In particular, I'd like to be able to see which directives will apply when requesting a specific URL.

For example, the output for the URL might look something like:

Allow from  <-- From <Location /foo/bar> in vhost
Require valid user      <-- From <Directory /var/www/foo> in global configuration
Satisfy any             <-- From <File bar.html> in global configuration

[Background: why do I want this? The apache merging rules for configuration directives are quite complex to get right. It would be great to have a tool which allows you to check that your rules are doing exactly what you want, and would be a good learning tool].

If there isn't such a tool, is there a debug option in Apache that will log such information for each incoming request?

share|improve this question

Your Answer


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

Browse other questions tagged or ask your own question.