From a2b535121ebc90b35a0f95d83529d8cf7f4fc69b Mon Sep 17 00:00:00 2001
From: Daniel Gruno
- # Turn on caching
- CacheSocache shmcb
- CacheSocacheMaxSize 102400
- <Location /foo>
-
- CacheEnable socache
-
- </Location>
-
- # Fall back to the disk cache
- CacheSocache shmcb
- CacheSocacheMaxSize 102400
- <Location /foo>
-
- CacheEnable socache
- CacheEnable disk
-
- </Location>
-
+# Turn on caching +CacheSocache shmcb +CacheSocacheMaxSize 102400 +<Location /foo> + CacheEnable socache +</Location> + +# Fall back to the disk cache +CacheSocache shmcb +CacheSocacheMaxSize 102400 +<Location /foo> + CacheEnable socache + CacheEnable disk +</Location> ++
mod_cache_socache
requires the services of
@@ -105,9 +102,10 @@ stored
implementations of shared object caches are available to choose
from.
+
CacheSocache shmcb
-
mod_cache_socache
.
-
+
CacheSocacheMaxSize 102400
-
+
CacheSocacheMaxTime 86400
-
+
CacheSocacheMinTime 600
-
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
-
+
CacheSocacheReadTime 1000
-
.
" 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+ diff --git a/docs/manual/mod/mod_cgi.html.en b/docs/manual/mod/mod_cgi.html.en index 32108f4409..096c8591dc 100644 --- a/docs/manual/mod/mod_cgi.html.en +++ b/docs/manual/mod/mod_cgi.html.en @@ -178,7 +178,10 @@
+
ScriptLog logs/cgi_log
+
+
This log will be opened as the user the child processes run diff --git a/docs/manual/mod/mod_cgid.html.en b/docs/manual/mod/mod_cgid.html.en index b91c02b42b..bbc1d05e01 100644 --- a/docs/manual/mod/mod_cgid.html.en +++ b/docs/manual/mod/mod_cgid.html.en @@ -93,7 +93,10 @@ the cgi daemon write in the directory where the socket is located.
+
ScriptSock /var/run/cgid.sock
+
+
- <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>
+
+
- <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 diff --git a/docs/manual/mod/mod_data.html.en b/docs/manual/mod/mod_data.html.en index 091f41beec..5fca0fd6de 100644 --- a/docs/manual/mod/mod_data.html.en +++ b/docs/manual/mod/mod_data.html.en @@ -59,11 +59,12 @@ module.
- <Location /data/images>
-
- SetOutputFilter DATA
-
- </Location>
+
+<Location /data/images>
+ SetOutputFilter DATA
+</Location>
+
+
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
@@ -76,9 +77,10 @@
file using the DavLockDB
directive:
+
DavLockDB /usr/local/apache2/var/DavLock
-
The directory containing the lock database file must be
writable by the User
@@ -93,24 +95,23 @@
requests.
- 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>
+
+
-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
@@ -192,13 +192,12 @@ 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 mod_dav_fs
module. Note, that once you have DAV enabled
@@ -251,11 +250,12 @@ a DAV resource
the lock due to network latency.
- <Location /MSWord>
-
- DavMinTimeout 600
-
- </Location>
+
+<Location /MSWord>
+ DavMinTimeout 600
+</Location>
+
+
+
Dav filesystem
+
+
Since filesystem
is the default provider for
@@ -75,7 +78,10 @@
+
DavLockDB var/DavLock
+
+
The directory containing the lock database file must be diff --git a/docs/manual/mod/mod_dav_lock.html.en b/docs/manual/mod/mod_dav_lock.html.en index 4002103876..53dceff865 100644 --- a/docs/manual/mod/mod_dav_lock.html.en +++ b/docs/manual/mod/mod_dav_lock.html.en @@ -80,7 +80,10 @@ locks.
+
DavGenericLockDB var/DavLock
+
+
The directory containing the lock database file must be diff --git a/docs/manual/mod/mod_dialup.html.en b/docs/manual/mod/mod_dialup.html.en index c46c5ec021..e6a329e938 100644 --- a/docs/manual/mod/mod_dialup.html.en +++ b/docs/manual/mod/mod_dialup.html.en @@ -36,11 +36,12 @@ 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. @@ -65,11 +66,12 @@ 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>
-
+
DirectoryIndex index.html
+
+
then a request for http://example.com/docs/
would
@@ -103,9 +106,10 @@ 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
@@ -138,7 +142,10 @@ a directory
to instead be issued.
+
DirectoryIndexRedirect on
+
+
A request for http://example.com/docs/
would
@@ -181,15 +188,14 @@ 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> ++
Turning off the trailing slash redirect may result in an information @@ -218,9 +224,10 @@ 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.
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> ++
mod_dumpio
needs to be configured to LogLevel
trace7
:
-
+
LogLevel dumpio:trace7
-
Enable dumping of all input.
+
DumpIOInput On
+
+
Enable dumping of all output.
+
DumpIOOutput On
+
+