Apache (httpd)
Learn how to run the apache server
Last updated
Was this helpful?
Learn how to run the apache server
Last updated
Was this helpful?
The original server.
Configured by /etc/httpd/conf/httpd.conf
or as snap-in under /etc/httpd/conf.d/
yum install -y httpd -> to install the httpd service.
systemctl enable --now httpd -> to enable the httpd service.
vim /etc/httpd/httpd.conf
echo "Hell world" > /var/www/index.html
systemctl restart httpd
curl localhost.
This all you need to know, just make sure the port 80 is open. "Listen 80".