Virtual hosting is a method for hosting multiple domain names (with separate handling of each name) on a single server (or pool of servers). This allows one server to share its resources, such as memory and processor cycles, without requiring all services provided to use the same host name.
Tag Archives: Apache
Apache CheckSpelling
This directive enables or disables the spelling module. When enabled, keep in mind that
- the directory scan which is necessary for the spelling correction will have an impact on the server’s performance when many spelling corrections have to be performed at the same time.
- the document trees should not contain sensitive files which could be matched inadvertently by a spelling “correction”.
- the module is unable to correct misspelled user names (as in http://my.host/~apahce/), just file names or directory names.
- spelling corrections apply strictly to existing files, so a request for the <Location /status> may get incorrectly treated as the negotiated file “/stats.html”.
mod_speling should not be enabled in DAV enabled directories, because it will try to “spell fix” newly created resource names against existing filenames, e.g., when trying to upload a new document doc43.html it might redirect to an existing document doc34.html, which is not what was intended.
Apache AliasMatch
This directive is equivalent to Alias, but makes use of regular expressions, instead of simple prefix matching. The supplied regular expression is matched against the URL-path, and if it matches, the server will substitute any parenthesized matches into the given string and use it as a filename. For example, to activate the /icons directory, one might use:
AliasMatch ^/icons(.*) /usr/local/apache/icons$1
Apache Alias
The Alias directive allows documents to be stored in the local filesystem other than under the DocumentRoot. URLs with a (%-decoded) path beginning with URL-path will be mapped to local files beginning with directory-path. The URL-path is case-sensitive, even on case-insensitive file systems.
Example:
Alias /image /ftp/pub/image
Apache Host Two Web Sites On Server With One IP Address
It can be done with the help of Name Based Virtual hosting.
ServerName 127.0.0.1
NameVirtualHost *:80
ServerName web1.test.com
DocumentRoot /var/www/html/web1
ServerName web2.test2.com
DocumentRoot /var/www/html/web2
Apache Loglevel Debug
Loglevel debug will give you more information in the error log in order to debug a problem.
Apache mod_perl
mod_perl scripting module to allow better Perl script performance and easy integration with the web server.
Apache Restart And Graceful Restart
During a normal restart, the server is stopped and then started, causing some requests to be lost. A graceful restart allows Apache children to continue to serve their current requests until they can be replaced with children running the new configuration.
Apache Sections
- Directory sections : refer to file system objects.
- Location sections : refer to elements in the address bar of the Web Page.
Apache Main Configuration File
The main configuration file of Apache server is httpd.conf