Child pages
  • Configuring Apache Settings
Skip to end of metadata
Go to start of metadata

Once Apache has been installed,  follow the instructions to make sure the Apache configuration file contains the correct settings. The httpd.conf file is the main configuration file for the Apache web server. It stores information on various functions of the server, which can be edited by removing or adding a number sign "#" at the beginning of the line, thus setting values for each directive.

  1. Check whether the following lines are in httpd.conf file. To do that, open a console and execute the following command.

    cat /etc/httpd/conf/httpd.conf

    Find the following entries in this file.

    LoadModule proxy_module modules/mod_proxy.so
    LoadModule proxy_connect_module modules/mod_proxy_connect.so
    LoadModule proxy_http_module modules/mod_proxy_http.so




  2. If SELinux is used, this command enables usage of a network request from inside Apache and Apache modules (including libcurl).

    setsebool -P httpd_can_network_connect 1

    -P - This key means that it will be saved across reboots.

  3. If you are not planning to build from sources, install shared libraries that will be used in Apache module.

    Then install apache r-proxy module using rpms:

    For CentOS 6:

    yum install mod_iam_authn-3.5.0-6.el7.centos.x86_64.rpm

    For CentOS 7:

    yum install mod_iam_authn-3.5.0-6.el6.x86_64.rpm  
  4. Alternatelly, instead of installing rpms using yum, You can install dependencies and copy modules to apache modules directory:

    yum install libxml2
    yum install libcurl
    yum install openssl

    Execute the following commands.

    For CentOS 6:

    cp mod_iam_authn_el6.so /etc/httpd/modules/mod_iam_authn.so
    

    For CentOS 7:

    cp mod_iam_authn_el7.so /etc/httpd/modules/mod_iam_authn.so