This is very useful on a system that hosts multiple sites that are each owned by a different Unix user, rather than on a system with only one website that is set up by the server's owner. Often these files will be created by regular users, so that they can configure their own websites without needing full access to the master configuration file. htaccess that resides in the directory itself. These are often used to deny access to certain files on your system, to password protect them, or to control the way that they are displayed to clients.Īnother method of creating directives that apply to only to a single directory is to put them in a special configuration file named. Similarly, and sections can be defined in the configuration file to contain directives that apply to only a certain directory or to files matching some pattern. All directives inside this virtual host section apply only to requests that match its IP address or hostname. Each one of these sites is called a virtual host, and is defined in the configuration file with a special section. Apache can be configured to use a different configuration depending on the web site that was requested by a browser. Often, you will want to host more that one website on a single server. Most modules add support for several directives to configure the functions they provide. The directives that Apache recognizes are dependant on the modules in use. Each directive has a name and one or more values, and sets an option such as the path to a log file or the MIME type for some file. This modular architecture can be used to save memory by avoiding the need to load modules that do not provide any useful functionality for a particular system.Īpache takes its configuration from multiple text files, each of which contains a series of directives, usually one per line. Modules can be compiled into the webserver executable, or dynamically loaded from shared libraries at run time. There are several standard modules that are included with almost every install of Apache, and many more that are optional or have to be downloaded separately. The basic webserving functionality and configuration file layout has remained essentially the same throughout, even though the internal implementation has changed significantly.Īpache has a modular design, in which each module is responsible for some part of its overall feature set. Starting with 1.0 and moving through to the current 1.3 and 2.2 series, each version has included more features and options. Over the years since it was first introduced, many versions of Apache have been released. However, it has a very large number of option directives defined in a text configuration file, and so can be hard for an inexperienced administrator to set up. All Linux distributions include it as a standard package, and it can be installed on or compiled for every other Unix variant supported by Webmin. 18 Configuring Apache as a proxy serverĪpache is the Internet's most popular HTTP server, due to its zero cost, wide availability and large feature set.15 Encodings, character sets and languages.14 Restricting access by client address.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |