In most situations, a web server is publicly available so everyone can access all of its offered information. In some situations, though, you might need to add an extra layer of security and protect some directories on your web server. Without using additional modules, Apache offers two methods to restrict access: user-based and host-based. In this section, you'll learn how to configure both of them.
If you think these methods are too limited, you have to include other modules that offer more advanced user authentication (check http://modules.apache.org for a complete list of modules). To include other modules, first make sure that the module you want to use is installed. Make a symbolic link to activate the module, include it in the configuration of your (virtual) Apache server, and tune the specific configuration for that module.
Was this article helpful?