Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 http://myserver.com/foo/bar/bar.html might look something like:

Allow from 192.168.0.3  <-- From <Location /foo/bar> in myserver.com 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

 
discard

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

Browse other questions tagged or ask your own question.