Book Image

Learning RHEL Networking

By : Andrew Mallett, Adam Miller
Book Image

Learning RHEL Networking

By: Andrew Mallett, Adam Miller

Overview of this book

Table of Contents (18 chapters)
Learning RHEL Networking
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Loading modules


Red Hat has moved away from loading modules in the standard httpd.conf file. In the previous release of Red Hat (version 6), the configuration file would have been littered with many LoadModule directives.

These modules are now loaded via the configuration files in /etc/httpd/conf.modules.d/. In this way, the main configuration file is less cluttered and it's easier to drop additional configuration files as and when required.

To view the currently loaded modules from Command Prompt, use the following command:

$ sudo httpd -M

We can see that we have many modules loaded. We can pipe the output to the wc command to count the lines. Using the RHEL 7.1 demonstration system, the output is 82:

$ sudo httpd -M | wc -l

With the original output, we should be able to see that the userdir_module is loaded. If we do not need to support user home directories on the web server, we do not need this module. To load this module, the LoadModule directive referencing this Apache module is set...