Hack 80. Show all accepted directives inside httpd.conf

by Ramesh

This is like an extended help for httpd, which will display all the httpd.conf directives and the places where they are valid. For a specific directive, it tells all the possible values and where it can be used inside the httpd.conf. This can be very helpful, when you want to quickly know about a particular Apache directive.

  1. # httpd –L
  2.  
  3. HostnameLookups (core.c)
  4. on to enable, off to disable reverse DNS lookups, or double to enable double-reverse DNS lookups
  5. Allowed in *.conf anywhere
  6.  
  7. ServerLimit (prefork.c)
  8. Maximum value of MaxClients for this run of Apache
  9. Allowed in *.conf only outside , or
  10. KeepAlive (http_core.c)
  11. Whether persistent connections should be On or Off
  12. Allowed in *.conf only outside , or
  13. LoadModule (mod_so.c)
  14. a module name and the name of a shared object file to load it from
  15. Allowed in *.conf only outside , or