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 any way to display the effective configuration values that Apache is using?

I have a cPanel server that uses multiple include files and there are some server-wide settings that are defined in multiple places. I'd like to find a way of confirming which value Apache is actually using while it's running.

share|improve this question
up vote 17 down vote accepted

mod_info provides what you need, I think.

<Location /server-info>
   SetHandler server-info
   Order deny,allow
   Deny from all
   Allow from # your IP, subnet, whatever

More here:

You can also list the configuration of your VirtualHosts (less info than using the above) using the command sudo httpd -S.

share|improve this answer
Lucky me, mod_info was already compiled in too. – Dave Forgac Jul 18 '09 at 18:37
+1 It works like a charm! For the beginners like me, I would also remember to load the mod_info module in httpd.conf by adding the line: LoadModule info_module modules/ – Marco Demaio Nov 20 '15 at 11:39

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.