DEV Community


Posted on

WEB375 Week 5

Understanding and configuring web servers

Web servers are responsible for sending the content you view every day on the Internet. An organization's web server is the backbone of the company's Internet presence. Apache is by far the most popular web server on the Internet and is included with all major Linux distributions and macOS.

How I configured the Apache web server on a Linux system.

  • Checked to see if Apache was installed. You can install using dnf install -y httpd

  • Set up the name of the web server to match the name of the computer using vi /etc/httpd/conf/httpd.conf

  • Changed the name at about line 95

  • Deleted the hashtag from the beginning of the line to uncomment and replaced the with

  • Replaced the localhost with the IP address

  • Saved the file and started the Apache server and then checked the status

  • Setup a rule for iptables to allow HTTP traffic to our server and then saved the rule

  • Tested for installation using links to display web pageson both systems

  • Once on the web server, created a web page and saved it. In the file entered "APACHE IS COOL!!!" and sent the message

  • Logged in to different client to display the message

Top comments (0)