The translation is temporarily closed for contributions due to maintenance, please come back later.
English Spanish
The Apache HTTP Server
indexterm:[httpd,Apache HTTP Server] The web server available in {MAJOROS} is the Apache HTTP server daemon, `httpd`, an open source web server developed by the link:++[Apache Software Foundation]. This section describes the basic configuration of the `httpd` service, and covers some advanced topics such as adding server modules, setting up virtual hosts, or configuring the secure HTTP server.
Running the httpd Service
This section describes how to start, stop, restart, and check the current status of the Apache HTTP Server. To be able to use the `httpd` service, make sure you have the [package]*httpd* installed. You can do so by using the following command:
#{nbsp}dnf install httpd
For more information on the concept of targets and how to manage system services in {MAJOROS} in general, see
xref:infrastructure-services/Services_and_Daemons.adoc#ch-Services_and_Daemons[Services and Daemons].
Starting the Service
indexterm:[Apache HTTP Server,starting] To run the `httpd` service, type the following at a shell prompt as `root`:
#{nbsp}systemctl start httpd.service
If you want the service to start automatically at boot time, use the following command:
#{nbsp}systemctl enable httpd.service
ln -s '/usr/lib/systemd/system/httpd.service' '/etc/systemd/system/'
Using the secure server
If running the Apache HTTP Server as a secure server, a password may be required after the machine boots if using an encrypted private SSL key.
Stopping the Service
indexterm:[Apache HTTP Server,stopping] To stop the running `httpd` service, type the following at a shell prompt as `root`:
#{nbsp}systemctl stop httpd.service
To prevent the service from starting automatically at boot time, type:
#{nbsp}systemctl disable httpd.service
rm '/etc/systemd/system/'
Restarting the Service
indexterm:[Apache HTTP Server,restarting] There are three different ways to restart a running `httpd` service: