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:++https://www.apache.org/++[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
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/multi-user.target.wants/httpd.service'
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/multi-user.target.wants/httpd.service'
Restarting the Service
indexterm:[Apache HTTP Server,restarting] There are three different ways to restart a running `httpd` service:
To restart the service completely, enter the following command as `root`: