DEV Community

sylvia
sylvia

Posted on

1

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 www.example.com:80 with 192.168.0.2

  • 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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay