18

Having many configuration files, I put up one file but I don't see its effects.

Either my config is WRONG, OR the config files are NOT LOADED by Apache.

Is there a command I can fire to see wether a specific config file got loaded by Apache or not?

apachectl configtest

Does not print errors. Server restarts without error.

MadHatter
  • 80,590
Daniel W.
  • 1,749

3 Answers3

25

From command line you can also run the following arguments with the Apache binary to get additional information:

-t -D DUMP_VHOSTS  : show parsed vhost settings
-t -D DUMP_RUN_CFG : show parsed run settings
-t -D DUMP_MODULES : show all loaded modules

Hope this helps!

billabongrob
  • 376
  • 2
  • 3
7

If you have the mod_info module activated, simply access

http://[you server's IP]/server-info

There you'll see the entire Apache configuration.

Mxx
  • 2,382
andreszs
  • 709
  • 1
    I have info_module and the address results in a 404. I think your solution generally works but not in my case.. – Daniel W. Feb 25 '14 at 13:41
  • 3
    @DanFromGermany make sure that you also have appropriate handlers configured as per that link. If you get 404 that means Apache is not treating it as mod_info request but rather a regular one. – Mxx Feb 25 '14 at 13:46
4

You can do this with apachectl.

apachectl -D DUMP_INCLUDES

or

apachectl -D DUMP_INCLUDES -f /path/to/your/httpd.conf