Service Httpd



HTTP Daemon is a software program that runs in the background of a web server and waits for the incoming server requests. The daemon answers the request automatically and serves the hypertext and multimedia documents over the Internet using HTTP.

HTTPd stands for (i.e. Web server).

Service httpd status

Service Httpd Restart

Some commonly used implementations are:

# systemctl start httpd or # systemctl start httpd.service. Stop Apache2 by running # systemctl stop httpd or # systemctl stop httpd.service. Restart Apache2 by running # systemctl restart httpd or # systemctl restart httpd.service. To verify/check the status of Apache2 # systemctl status httpd. /sbin/service httpd reload By default, the httpd process will not start automatically when your machine boots. You will need to configure the httpd service to start up at boot time using an initscript utility, such as /sbin/chkconfig, /sbin/ntsysv, or the Services Configuration Tool program.

  • BusyBox httpd
  • CERN HTTPd HTTP server
  • Cherokee HTTP server
  • Hiawatha HTTP server with Reverse proxy functionality
  • Lighttpd HTTP server
  • NCSA HTTPd HTTP server
  • Nginx HTTP and reverse proxy server
  • OpenBSD's httpd (since OpenBSD 5.6)
  • The abstract Web server concept
  • Thttpd HTTP server
  • TUX web server aka kHTTPd

See also[edit]

Retrieved from 'https://en.wikipedia.org/w/index.php?title=Httpd&oldid=972038697'

Note:

Httpd The NGINX Web Server provided with Session Monitor does not support the external authentication. To enable external authorization you are required to have NGINX Web Server that provides external authentication and is optional.

Service Httpd Graceful

The following procedure explains configuring external authentication using Apache Web Server as it is widely used.

What Is Httpd

To configure Apache in Session Monitor for authenticating with LDAP service:

  1. Login to Session Monitor.
  2. Click Admin and select Settings.
  3. Enable the setting, External authentication enabled and set it to True.
  4. Logout from Session Monitor.
  5. (Optional) If the current web service is NGINX, change to HTTPD by performing following steps:
    1. Run the following commands to install the Apache Web Server and mod_ssl packages:

      Note:

      If you have proxy server, to complete download, edit the proxy settings for the external downloads to be successful.

      Note:

      Install Apache Web Server and mod_ssl packages together as the httpd package executes a post-install script which uses mod_ssl for generating a localhost certificate. The certificate is required for the default httpd service configuration. If the certificate is not generated, enter the following lines in the /etc/httpd/conf.d/ssl.conf file to start the httpd server:

      Note:

      If you have installed Session Monitor using the ISO, then httpd and mod_ssl are pre-installed.
    If the localhost certificates are not generated, perform the following workaround to start the Apache server:
    • Remove the ssl.conf file from the etc/httpd/conf.d file.
    • Add the line Listen 443 at the beginning of the file, /opt/oracle/ocsm/etc/httpd/conf.d/pld.conf which has a symbolic soft link in the same folder.
  6. Run the following commands to install all additional packages:
  7. Run the following commands to install the required httpd modules and to enable external authentication in Apache:
  8. Edit the pld.conf file:
  9. Add following location section in <VirtualHost_default_:443>, after RequestHeader unset X-Forwarded-User:
    Where:
    • < LDAP_Server> is your LDAP server name
    • <LDAP authentication> is the AuthName for Session Monitor LDAP authentication.
    • <'ldap:///dc=LDAP_Server,dc=com?uid?one'> is your LDAP server IP address to which the authentication request is sent by Session Monitor. As DC and CN are LDAP specific, check the DC and CN values with your Local LDAP configuration.
    • <password> is the password for LDAP server to which authentication to the specific user is to be processed. It should be a Hashed Password.
  10. Uncomment following parameters:
  11. Change the AuthName directive in the Location /me/logout.html to AuthName 'LDAP authentication' or the 'AuthName' in the 'Location' tag, if in case of any change in it.
  12. Run the following commands to stop and disable the nginx server:
  13. Run the following command to switch the pld-webserver link to httpd:
  14. Run the following command to reload systemd for viewing the changes:
  15. Run the following command to start and enable the httpd
  16. Run the following command to start/re-start httpd server to enable external authentication:

Result: The httpd server of Session Monitor has been configured for external authentication.

When you open the Session Monitor in web browser, the external authentication pop-up appears. On providing the correct LDAP user credentials, the user will be logged in successfully.