httpd.conf File


The httpd.conf file


Traditionally, Apache was configured by three(3) files:


httpd.conf

    • defines configuration settings for the http protocol and operation of the server

srm.conf

    • handles server request, defines where the http documents and scripts are stored

access.conf

    • defines access control for the server and the information it provides

Loading (DSO) Dynamic Shared Objects

 

  • mostly in RedHat httpd.conf are load modules and Addmode statements
  • DSO modules can be compiled into Apache or loaded at runtime
  • check what was included or compiled into Apache or related modules loaded at runtime
    • $ httpd -l
    • the most common two(2) source code compiled are as follows:
      • http_core.c
      • mod_so.c

For example to request the modules that handles the user agent log file, enter the statements or commands below:


loadmodule agent_log_module modules/mod_log_agent.so


addmodule  mod_log_agent.c


Note:

DSO modules loaded in the RedHat 7.3 configuration (common list)


  • mod_php - provides support for the PHP language
  • mod_php3 - for ver. 3.x
  • mod_php4 - for ver. 4.x
  • mod_rewrite - enables URI-to-filename mapping
  • mod_ci   - enables execution of CGI programs
  • mod_so   - provides runtime support for shared objects (SO)