Chapter 6

Running Apache

IN THIS CHAPTER

Bullet Getting Apache up and running

Bullet Working with Apache’s configuration files

Bullet Restricting access

Bullet Creating virtual hosts

All the popular Linux distributions come with Apache, the most popular web server on the Internet today. In many cases, Apache is installed and configured automatically when you install Linux. Then setting up a web server for the Internet or an intranet is simply a matter of tweaking a few Apache configuration settings and copying your HTML document files to Apache’s home directory.

Installing Apache

Although you can install Apache by itself (the package is named httpd), I recommend you install the entire suite of web server applications that are defined by the package group called Web Server. You can do that by running the following command:

sudo dnf groupinstall "Web Server"

This command installs Apache plus a number of companion packages, including the following:

  • httpd-manual: Provides a web-based user manual for Apache. (You can access it at http://yourhost/manual, where yourhost is the name or IP address of the web server. ...

Get Networking All-in-One For Dummies, 8th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.