In a minimal configuration the following directive is all that is needed to
enable the thundering herd lock in the default system temp directory.
- It is also possible, when the quick handler is disabled, for the
administrator to choose the precise location within the filter chain where
caching is to be performed, by adding the CACHE filter to
the chain.
- If the CACHE filter is specified more than once, the last instance will
apply.
@@ -953,14 +979,14 @@ LastModified date.
server and was not served from cache.
-
X-Cache-Detail: "conditional cache hit: entity refreshed" from localhost
@@ -1024,10 +1050,10 @@ LastModified date.
should be cached beneath the same cache key, a new base URL can be specified
with this directive.
-
- # Override the base URL of the cache key.
- CacheKeyBaseURL http://www.example.com/
-
+
+# Override the base URL of the cache key.
+CacheKeyBaseURL http://www.example.com/
+
Take care when setting this directive. If two separate virtual
hosts are accidentally given the same base URL, entries from one virtual host
@@ -1056,10 +1082,10 @@ LastModified date.
and the raw 5xx responses returned to the client on request, the 5xx response so
returned to the client will not invalidate the content in the cache.
-
- # Serve stale data on error.
- CacheStaleOnError on
-
+
+# Serve stale data on error.
+CacheStaleOnError on
+
diff --git a/docs/manual/mod/mod_cache_disk.xml b/docs/manual/mod/mod_cache_disk.xml
index b159c6ad1d..69a65e724d 100644
--- a/docs/manual/mod/mod_cache_disk.xml
+++ b/docs/manual/mod/mod_cache_disk.xml
@@ -66,6 +66,9 @@
cache.
+mod_cache
+mod_cache_socache
+Caching Guide
CacheRoot
@@ -86,9 +89,9 @@ stored
module="mod_cache_disk">CacheDirLength directives define
the structure of the directories under the specified root directory.
-
+
CacheRoot c:/cacheroot
-
+
@@ -164,9 +167,9 @@ cache
minimum size, in bytes, for a document to be considered for storage
in the cache.
-
+
CacheMinFileSize 64
-
+
@@ -187,9 +190,9 @@ cache
maximum size, in bytes, for a document to be considered for storage in
the cache.
-
+
CacheMaxFileSize 64000
-
+
@@ -217,9 +220,9 @@ cache
This directive only takes effect when the data is being saved to the
cache, as opposed to data being served from the cache.
-
+
CacheReadSize 102400
-
+
@@ -251,9 +254,9 @@ cache
ensure that the server does not buffer excessively should data arrive faster
than expected.
-
+
CacheReadTime 1000
-
+
diff --git a/docs/manual/mod/mod_cern_meta.xml b/docs/manual/mod/mod_cern_meta.xml
index d5c5b9edaa..e25f75782b 100644
--- a/docs/manual/mod/mod_cern_meta.xml
+++ b/docs/manual/mod/mod_cern_meta.xml
@@ -81,18 +81,18 @@ files
accessed. Set to ".
" to look in the same directory
as the file:
- MetaDir .
+ MetaDir .
Or, to set it to a subdirectory of the directory containing the
files:
- MetaDir .meta
+ MetaDir .meta
MetaSuffix
-File name suffix for the file containg CERN-style
+File name suffix for the file containing CERN-style
meta information
MetaSuffix suffix
MetaSuffix .meta
diff --git a/docs/manual/mod/mod_cgi.xml b/docs/manual/mod/mod_cgi.xml
index 3a256010d5..b459c48bb6 100644
--- a/docs/manual/mod/mod_cgi.xml
+++ b/docs/manual/mod/mod_cgi.xml
@@ -168,7 +168,9 @@
Example
+
ScriptLog logs/cgi_log
+
This log will be opened as the user the child processes run
diff --git a/docs/manual/mod/mod_cgid.xml b/docs/manual/mod/mod_cgid.xml
index 01e660dd2f..75c5be58f3 100644
--- a/docs/manual/mod/mod_cgid.xml
+++ b/docs/manual/mod/mod_cgid.xml
@@ -90,7 +90,9 @@ the cgi daemon
write in the directory where the socket is located.
Example
+
ScriptSock /var/run/cgid.sock
+
diff --git a/docs/manual/mod/mod_charset_lite.xml b/docs/manual/mod/mod_charset_lite.xml
index 0fdcf1bc0c..31516532e2 100644
--- a/docs/manual/mod/mod_charset_lite.xml
+++ b/docs/manual/mod/mod_charset_lite.xml
@@ -102,12 +102,12 @@
supported by iconv.
Example
- <Directory /export/home/trawick/apacheinst/htdocs/convert>
-
- CharsetSourceEnc UTF-16BE
- CharsetDefault ISO-8859-1
-
- </Directory>
+
+<Directory /export/home/trawick/apacheinst/htdocs/convert>
+ CharsetSourceEnc UTF-16BE
+ CharsetDefault ISO-8859-1
+</Directory>
+
The character set names in this example work with the iconv
@@ -143,12 +143,12 @@
supported by iconv.
Example
- <Directory /export/home/trawick/apacheinst/htdocs/convert>
-
- CharsetSourceEnc UTF-16BE
- CharsetDefault ISO-8859-1
-
- </Directory>
+
+<Directory /export/home/trawick/apacheinst/htdocs/convert>
+ CharsetSourceEnc UTF-16BE
+ CharsetDefault ISO-8859-1
+</Directory>
+
diff --git a/docs/manual/mod/mod_data.xml b/docs/manual/mod/mod_data.xml
index 6de297478e..51b9b58e7f 100644
--- a/docs/manual/mod/mod_data.xml
+++ b/docs/manual/mod/mod_data.xml
@@ -56,11 +56,11 @@
module.
Configuring the filter
- <Location /data/images>
-
- SetOutputFilter DATA
-
- </Location>
+
+<Location /data/images>
+ SetOutputFilter DATA
+</Location>
+
diff --git a/docs/manual/mod/mod_dav.xml b/docs/manual/mod/mod_dav.xml
index ee56ec6b18..c85cb9f14e 100644
--- a/docs/manual/mod/mod_dav.xml
+++ b/docs/manual/mod/mod_dav.xml
@@ -45,7 +45,7 @@
To enable mod_dav, add the following to a
container in your httpd.conf
file:
- Dav On
+ Dav On
This enables the DAV file system provider, which is implemented
by the mod_dav_fs module. Therefore, that module
@@ -57,9 +57,9 @@
file using the DavLockDB
directive:
-
+
DavLockDB /usr/local/apache2/var/DavLock
-
+
The directory containing the lock database file must be
writable by the User
@@ -77,29 +77,24 @@
requests.
Full Example
- DavLockDB /usr/local/apache2/var/DavLock
-
- <Directory /usr/local/apache2/htdocs/foo>
-
- Require all granted
- Dav On
-
- AuthType Basic
- AuthName DAV
- AuthUserFile user.passwd
-
- <LimitExcept GET POST OPTIONS>
-
- Require user admin
-
- </LimitExcept>
-
- </Directory>
+
+DavLockDB /usr/local/apache2/var/DavLock
+
+<Directory /usr/local/apache2/htdocs/foo>
+ Require all granted
+ Dav On
+
+ AuthType Basic
+ AuthName DAV
+ AuthUserFile user.passwd
+
+ <LimitExcept GET POST OPTIONS>
+ Require user admin
+ </LimitExcept>
+</Directory>
+
- mod_dav is a descendent of Greg Stein's mod_dav for Apache 1.3. More
- information about the module is available from that site.
Security Issues
@@ -153,16 +148,14 @@
will run the script, and one of which will allow it to be
downloaded and manipulated with DAV.
-
-Alias /phparea /home/gstein/php_files
-Alias /php-source /home/gstein/php_files
+
+Alias /phparea /home/gstein/php_files
+Alias /php-source /home/gstein/php_files
<Location /php-source>
-
- DAV On
- ForceType text/plain
-
+ DAV On
+ ForceType text/plain
</Location>
-
+
With this setup, http://example.com/phparea
can be
used to access the output of the PHP scripts, and
@@ -181,13 +174,11 @@ Alias /php-source /home/gstein/php_files
Use the Dav directive to enable the
WebDAV HTTP methods for the given container:
-
- <Location /foo>
-
- Dav On
-
- </Location>
-
+
+<Location /foo>
+ Dav On
+</Location>
+
The value On
is actually an alias for the default
provider filesystem
which is served by the
the lock due to network latency.
Example
- <Location /MSWord>
-
- DavMinTimeout 600
-
- </Location>
+
+<Location /MSWord>
+ DavMinTimeout 600
+</Location>
+
diff --git a/docs/manual/mod/mod_dav_fs.xml b/docs/manual/mod/mod_dav_fs.xml
index 84d10184d2..ce04374974 100644
--- a/docs/manual/mod/mod_dav_fs.xml
+++ b/docs/manual/mod/mod_dav_fs.xml
@@ -38,7 +38,9 @@
directive:
Example
+
Dav filesystem
+
Since filesystem
is the default provider for
@@ -67,7 +69,9 @@
the server to display all locks in a lock database.
-->
Example
+
DavLockDB var/DavLock
+
The directory containing the lock database file must be
diff --git a/docs/manual/mod/mod_dav_lock.xml b/docs/manual/mod/mod_dav_lock.xml
index 5caaaf76ae..41532b0af9 100644
--- a/docs/manual/mod/mod_dav_lock.xml
+++ b/docs/manual/mod/mod_dav_lock.xml
@@ -72,7 +72,9 @@
locks.
Example
+
DavGenericLockDB var/DavLock
+
The directory containing the lock database file must be
diff --git a/docs/manual/mod/mod_dbd.xml b/docs/manual/mod/mod_dbd.xml
index 05de4a81ae..183bbd8d5d 100644
--- a/docs/manual/mod/mod_dbd.xml
+++ b/docs/manual/mod/mod_dbd.xml
@@ -59,8 +59,8 @@
mod_dbd exports five functions for other modules
to use. The API is as follows:
-
-typedef struct {
+
+typedef struct {
apr_dbd_t *handle;
apr_dbd_driver_t *driver;
apr_hash_t *prepared;
@@ -96,8 +96,7 @@ APR_DECLARE_OPTIONAL_FN(void, ap_dbd_close, (server_rec*, ap_dbd_t*));
APR_DECLARE_OPTIONAL_FN(ap_dbd_t*, ap_dbd_acquire, (request_rec*));
APR_DECLARE_OPTIONAL_FN(ap_dbd_t*, ap_dbd_cacquire, (conn_rec*));
APR_DECLARE_OPTIONAL_FN(void, ap_dbd_prepare, (server_rec*, const char*, const char*));
-
-
+
SQL Prepared Statements
diff --git a/docs/manual/mod/mod_deflate.xml b/docs/manual/mod/mod_deflate.xml
index ddef322900..fd4d228413 100644
--- a/docs/manual/mod/mod_deflate.xml
+++ b/docs/manual/mod/mod_deflate.xml
@@ -41,7 +41,9 @@ client
This is a simple sample configuration for the impatient.
Compress only a few types
+
AddOutputFilterByType DEFLATE text/html text/plain text/xml
+
The following configuration, while resulting in more compressed content,
@@ -49,29 +51,26 @@ client
all the configuration details.
Compress everything except images
- <Location />
-
- # Insert filter
- SetOutputFilter DEFLATE
-
- # Netscape 4.x has some problems...
- BrowserMatch ^Mozilla/4 gzip-only-text/html
-
- # Netscape 4.06-4.08 have some more problems
- BrowserMatch ^Mozilla/4\.0[678] no-gzip
-
- # MSIE masquerades as Netscape, but it is fine
- BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
- # Don't compress images
- SetEnvIfNoCase Request_URI \
-
- \.(?:gif|jpe?g|png)$ no-gzip dont-vary
-
-
- # Make sure proxies don't deliver the wrong content
- Header append Vary User-Agent env=!dont-vary
-
- </Location>
+
+<Location />
+ # Insert filter
+ SetOutputFilter DEFLATE
+
+ # Netscape 4.x has some problems...
+ BrowserMatch ^Mozilla/4 gzip-only-text/html
+
+ # Netscape 4.06-4.08 have some more problems
+ BrowserMatch ^Mozilla/4\.0[678] no-gzip
+
+ # MSIE masquerades as Netscape, but it is fine
+ BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
+ # Don't compress images
+ SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
+
+ # Make sure proxies don't deliver the wrong content
+ Header append Vary User-Agent env=!dont-vary
+</Location>
+
@@ -84,9 +83,9 @@ client
will enable compression for documents in the container where it
is placed:
-
+
SetOutputFilter DEFLATE
-
+
Some popular browsers cannot handle compression of all content
so you may want to set the gzip-only-text/html
note to
@@ -100,13 +99,11 @@ client
enabling compression only for the html files of the Apache
documentation:
-
- <Directory "/your-server-root/manual">
-
- AddOutputFilterByType DEFLATE text/html
-
- </Directory>
-
+
+<Directory "/your-server-root/manual">
+ AddOutputFilterByType DEFLATE text/html
+</Directory>
+
For browsers that have problems even with compression of all file
types, use the
excerpt from the configuration example
defined in the section above:
-
- BrowserMatch ^Mozilla/4 gzip-only-text/html
- BrowserMatch ^Mozilla/4\.0[678] no-gzip
- BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
-
+
+BrowserMatch ^Mozilla/4 gzip-only-text/html
+BrowserMatch ^Mozilla/4\.0[678] no-gzip
+BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
+
At first we probe for a User-Agent
string that
indicates a Netscape Navigator version of 4.x. These versions
@@ -159,14 +156,12 @@ client
>SetOutputFilter or AddOutputFilter, for example:
-
- <Location /dav-area>
-
- ProxyPass http://example.com/
- SetOutputFilter INFLATE
-
- </Location>
-
+
+<Location /dav-area>
+ ProxyPass http://example.com/
+ SetOutputFilter INFLATE
+</Location>
+
This Example will uncompress gzip'ed output from example.com, so other
filters can do further processing with it.
@@ -181,13 +176,11 @@ client
>SetInputFilter or AddInputFilter, for example:
-
- <Location /dav-area>
-
- SetInputFilter DEFLATE
-
- </Location>
-
+
+<Location /dav-area>
+ SetInputFilter DEFLATE
+</Location>
+
Now if a request contains a Content-Encoding:
gzip
header, the body will be automatically decompressed.
@@ -222,9 +215,9 @@ client
in a typical configuration where the addition of the DEFLATE
filter depends on the User-Agent
, you should add:
-
+
Header append Vary User-Agent
-
+
If your decision about compression depends on other information
than request headers (e.g. HTTP version), you have to set the
@@ -232,7 +225,9 @@ client
compliant proxies from caching entirely.
Example
+
Header set Vary *
+
@@ -253,10 +248,12 @@ client
>access log.
Example
- DeflateFilterNote ratio
-
- LogFormat '"%r" %b (%{ratio}n) "%{User-agent}i"' deflate
+
+ DeflateFilterNote ratio
+
+ LogFormat '"%r" %b (%{ratio}n) "%{User-agent}i"' deflate
CustomLog logs/deflate_log deflate
+
If you want to extract more accurate values from your logs, you
@@ -279,12 +276,14 @@ client
Thus you may log it this way:
Accurate Logging
- DeflateFilterNote Input instream
- DeflateFilterNote Output outstream
- DeflateFilterNote Ratio ratio
-
- LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate
- CustomLog logs/deflate_log deflate
+
+DeflateFilterNote Input instream
+DeflateFilterNote Output outstream
+DeflateFilterNote Ratio ratio
+
+LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate
+CustomLog logs/deflate_log deflate
+
mod_log_config
diff --git a/docs/manual/mod/mod_dialup.xml b/docs/manual/mod/mod_dialup.xml
index 4fefae82d3..c8fdf53808 100644
--- a/docs/manual/mod/mod_dialup.xml
+++ b/docs/manual/mod/mod_dialup.xml
@@ -36,11 +36,11 @@ the document to validate. -->
by the various old modem standards. So, you can browse your site with a 56k
V.92 modem, by adding something like this:
-
-<Location /mysite>
-ModemStandard V.92
+
+<Location /mysite>
+ ModemStandard V.92
</Location>
-
+
Previously to do bandwidth rate limiting modules would have to block an entire
thread, for each client, and insert sleeps to slow the bandwidth down.
@@ -58,11 +58,11 @@ once the timer hits. From there the handler can continue to send data to the cl
Specify what modem standard you wish to simulate.
-
-<Location /mysite>
-ModemStandard V.26bis
+
+<Location /mysite>
+ ModemStandard V.26bis
</Location>
-
+
diff --git a/docs/manual/mod/mod_dir.xml b/docs/manual/mod/mod_dir.xml
index 4762cabf42..8265dfde18 100644
--- a/docs/manual/mod/mod_dir.xml
+++ b/docs/manual/mod/mod_dir.xml
@@ -77,7 +77,9 @@ a directory
directory.
Example
+
DirectoryIndex index.html
+
then a request for http://example.com/docs/
would
@@ -87,9 +89,9 @@ a directory
Note that the documents do not need to be relative to the
directory;
-
+
DirectoryIndex index.html index.txt /cgi-bin/index.pl
-
+
would cause the CGI script /cgi-bin/index.pl
to be
executed if neither index.html
or index.txt
@@ -123,7 +125,9 @@ a directory
to instead be issued.
Example
+
DirectoryIndexRedirect on
+
A request for http://example.com/docs/
would
@@ -168,15 +172,13 @@ a directory
be aware that there are possible security implications to doing
this.
-
- # see security warning below!
- <Location /some/path>
-
- DirectorySlash Off
- SetHandler some-handler
-
- </Location>
-
+
+# see security warning below!
+<Location /some/path>
+ DirectorySlash Off
+ SetHandler some-handler
+</Location>
+
Security Warning
Turning off the trailing slash redirect may result in an information
@@ -204,9 +206,9 @@ a directory
Use this to set a handler for any URL that doesn't map to anything
in your filesystem, and would otherwise return HTTP 404 (Not Found).
For example
-
- FallbackResource /not-404.php
-
+
+ FallbackResource /not-404.php
+
will cause requests for non-existent files to be handled by
not-404.php
, while requests for files that exist
are unaffected.
@@ -218,22 +220,18 @@ a directory
mod_rewrite, and the use of the -f
and
-d
tests for file and directory existence. This now
requires only one line of configuration.
-
- FallbackResource /index.php
-
+
+ FallbackResource /index.php
+
Existing files, such as images, css files, and so on, will be
served normally.
In a sub-URI, such as http://example.com/blog/ this
sub-URI has to be supplied as local-url:
-
-
- <Directory /web/example.com/htdocs/blog>
-
- FallbackResource /blog/index.php
-
- </Directory>
-
-
+
+<Directory /web/example.com/htdocs/blog>
+ FallbackResource /blog/index.php
+</Directory>
+
diff --git a/docs/manual/mod/mod_dumpio.xml b/docs/manual/mod/mod_dumpio.xml
index 362fe7a23f..53add340a0 100644
--- a/docs/manual/mod/mod_dumpio.xml
+++ b/docs/manual/mod/mod_dumpio.xml
@@ -45,14 +45,14 @@
To enable the module, it should be compiled and loaded
in to your running Apache configuration. Logging can then
- be enabled or disabled seperately for input and output via
+ be enabled or disabled separately for input and output via
the below directives. Additionally, mod_dumpio
needs to be configured to LogLevel trace7
:
-
+
LogLevel dumpio:trace7
-
+
@@ -69,7 +69,9 @@ later.
Enable dumping of all input.
Example
+
DumpIOInput On
+
@@ -89,7 +91,9 @@ later.
Enable dumping of all output.
Example
+
DumpIOOutput On
+