Chapter 5. Installing the Apache HTTP Server on RHEL 9 by using Application Streams
The Red Hat Enterprise Linux (RHEL) Application Streams feature delivers and updates multiple versions of user-space components such as applications, runtime languages, and databases in an AppStream
repository. On RHEL 9, if you want to install the Apache HTTP Server from an RPM package, you must install the RHEL distribution of the Apache HTTP Server by using Application Streams.
Red Hat JBoss Core Services (JBCS) does not provide an RPM distribution of the Apache HTTP Server for RHEL 9. The Apache HTTP Server httpd
package that the RHEL AppStream
repository provides is the only supported RPM distribution of the Apache HTTP Server for RHEL 9 systems.
Installing the RHEL distribution of the Apache HTTP Server does not automatically install the mod_jk
and mod_proxy_cluster
packages. For more information about installing mod_jk
and mod_proxy_cluster
from RPM packages on RHEL 9, see the Apache HTTP Server Connectors and Load Balancing Guide.
5.1. Installation of the Apache HTTP Server when using Application Streams
You can install the RHEL 9 distribution of the Apache HTTP Server from an RPM package by using the standard dnf install
command. You can subsequently start and stop the Apache HTTP Server from the command line as the root user. Alternatively, you can enable the Apache HTTP Server to start automatically at system startup.
For more information about installing, starting, and stopping the RHEL distribution of the Apache HTTP Server, see Setting up the Apache HTTP web server.
Additional resources
5.2. SELinux policies for the Apache HTTP Server
You can use Security-Enhanced Linux (SELinux) policies to define access controls for the Apache HTTP Server. These policies are a set of rules that determine access rights to the product.
The Apache HTTP Server has an SELinux type name of httpd_t
. By default, the Apache HTTP Server can access files and directories in /var/www/html
and other web server directories that have an SELinux type context of httpd_sys_content_t
.
You can also customize the SELinux policy for the Apache HTTP Server if you want to use a non-standard configuration.