From: Rich Bowen See Also: AllowOverride
AddDefaultCharset
On enables Apache's internal default charset of
iso-8859-1 as required by the directive. You can
- also specify an alternate charset to be used; e.g.
- AddDefaultCharset utf-8.
+ also specify an alternate charset to be used. For
+ example:
+
+
+ AddDefaultCharset utf-8
+
+
For example:
+ +
+ AddDefaultCharset utf-8
+
+
Example:
+ +AllowOverride AuthConfig Indexes
+
See Also: AccessFileName
+ href="#accessfilename">AccessFileName and Configuration FilesFor example:
+ +AuthName "Top Secret"
+
+ The string provided for the AuthRealm is what will
+ appear in the password dialog provided by most browsers.
See also: Authentication, Authorization, and + Access Control
+See also: Authentication, Authorization, and + Access Control
Include points to a directory, rather than a
file, Apache will read all files in that directory, and any
subdirectory, and parse those as configuration files.
+
+ The file path specified may be a fully qualified path (i.e.
+ starting with a slash), or may be relative to the
+ ServerRoot directory.
Examples:
+ +
+ Include /usr/local/apache/conf/ssl.conf
+ Include /usr/local/apache/conf/vhosts/
+
+
+ Or, providing paths relative to your ServerRoot
+ directory:
+ Include conf/ssl.conf
+ Include conf/vhosts/
+
+
+ Make sure that an included directory does not contain any stray
+ files, such as editor temporary files, for example, as Apache will
+ attempt to read them in and use the contents as configuration
+ directives, which may cause the server to fail on start up.
+ Running apachectl configtest will give you a list of
+ the files that are being processed during the configuration
+ check:
+ +
+ root@host# apachectl configtest + Processing config directory: /usr/local/apache/conf/vhosts + Processing config file: /usr/local/apache/conf/vhosts/vhost1 + Processing config file: /usr/local/apache/conf/vhosts/vhost2 + Syntax OK ++ +
This will help in verifying that you are getting only the files + that you intended as part of your configuration.
+ +See also: apachectl
+ +KeepAlive OnExample:
+ +
+ <VirtualHost *>
+ ServerName server.domain.com
+ ServerAlias server server2.domain.com server2
+ ...
+ </VirtualHost>
+
See also: Apache
Virtual Host documentation