top of page
Recent Posts

How to configure HTTP Server In Red Hat Enterprise Linux 7

The HTTP (Hypertext Transfer Protocol) is the foundation of the World Wide Web, and is used to load web pages using hypertext links. HTTP is an application layer protocol designed to transfer information between networked devices and runs on top of other layers of the network protocol stack. The Apache HTTP server is the most widely-used web server in the world.


Let's install and configure the basic Apache HTTP server.


Step:1 To install required packages for the Apache HTTP server

# yum install httpd  curl -y

Step:2 To start the HTTP service and set it to launch when the system boots.

# systemctl start httpd
# systemctl enable httpd

Step:3 If Firewalld service is running, we need to open the ports in the OS firewall using following firewall-cmd commands.

# firewall-cmd --permanent --add-service=http
# firewall-cmd --reload
Note: The behavior of the HTTP service can be customized by editing the /etc/httpd/conf/httpd.conf configuration file. and the default location for the web containt is /var/www/html/

we will have more articles on how to customize the HTTP server. hope this post will help to start and play around with the HTTP server.

19 views0 comments

Recent Posts

See All
Log In to Connect With Members
View and follow other members, leave comments & more.
bottom of page