From af3a6b9524b1be4506b0eaa73cf472e9d0f286b0 Mon Sep 17 00:00:00 2001
From: Ken Coar
- $Revision: 1.80 $ ($Date: 1997/07/05 17:33:34 $)
+ $Revision: 1.81 $ ($Date: 1997/07/06 14:54:47 $)
The latest version of this FAQ is always available from the main
@@ -227,8 +227,6 @@
-
These configuration parameters control the core Apache features, and are
always available.
-
-
+ See Also: documentation of customizable
responses.
SECURITY: See User for a discussion of the security
considerations. char *
arguments, the last of which must be
of the strings, as a unit; for instance:
- pstrcat (r->pool, "foo", "/", "bar", NULL);
+ pstrcat (r->pool, "foo", "/", "bar", NULL);
returns a pointer to 8 bytes worth of memory, initialized to
@@ -614,7 +614,7 @@ the same as the typical arguments to fopen
, e.g.,
...
- FILE *f = pfopen (r->pool, r->filename, "r");
+ FILE *f = pfopen (r->pool, r->filename, "r");
if (f == NULL) { ... } else { ... }
@@ -933,22 +933,22 @@ the get_module_config
function.
int find_ct(request_rec *r)
{
int i;
- char *fn = pstrdup (r->pool, r->filename);
+ char *fn = pstrdup (r->pool, r->filename);
mime_dir_config *conf = (mime_dir_config *)
- get_module_config(r->per_dir_config, &mime_module);
+ get_module_config(r->per_dir_config, &mime_module);
char *type;
- if (S_ISDIR(r->finfo.st_mode)) {
- r->content_type = DIR_MAGIC_TYPE;
+ if (S_ISDIR(r->finfo.st_mode)) {
+ r->content_type = DIR_MAGIC_TYPE;
return OK;
}
if((i=rind(fn,'.')) < 0) return DECLINED;
++i;
- if ((type = table_get (conf->encoding_types, &fn[i])))
+ if ((type = table_get (conf->encoding_types, &fn[i])))
{
- r->content_encoding = type;
+ r->content_encoding = type;
/* go back to previous extension to try to use it as a type */
@@ -957,9 +957,9 @@ int find_ct(request_rec *r)
++i;
}
- if ((type = table_get (conf->forced_types, &fn[i])))
+ if ((type = table_get (conf->forced_types, &fn[i])))
{
- r->content_type = type;
+ r->content_type = type;
}
return OK;
@@ -989,7 +989,7 @@ per-directory config data):
char *add_redirect(cmd_parms *cmd, void *dummy, char *f, char *url)
{
- server_rec *s = cmd->server;
+ server_rec *s = cmd->server;
alias_server_conf *conf = (alias_server_conf *)
get_module_config(s->module_config,&alias_module);
alias_entry *new = push_array (conf->redirects);
diff --git a/docs/manual/misc/API.html b/docs/manual/misc/API.html
index ad539e2abb..b81c20ec7a 100644
--- a/docs/manual/misc/API.html
+++ b/docs/manual/misc/API.html
@@ -561,7 +561,7 @@ int my_handler(request_rec *r)
struct my_structure *foo;
...
- foo = (foo *)palloc (r->pool, sizeof(my_structure));
+ foo = (foo *)palloc (r->pool, sizeof(my_structure));
}
@@ -598,7 +598,7 @@ at least two char *
arguments, the last of which must be
of the strings, as a unit; for instance:
- pstrcat (r->pool, "foo", "/", "bar", NULL);
+ pstrcat (r->pool, "foo", "/", "bar", NULL);
returns a pointer to 8 bytes worth of memory, initialized to
@@ -614,7 +614,7 @@ the same as the typical arguments to fopen
, e.g.,
...
- FILE *f = pfopen (r->pool, r->filename, "r");
+ FILE *f = pfopen (r->pool, r->filename, "r");
if (f == NULL) { ... } else { ... }
@@ -933,22 +933,22 @@ the get_module_config
function.
int find_ct(request_rec *r)
{
int i;
- char *fn = pstrdup (r->pool, r->filename);
+ char *fn = pstrdup (r->pool, r->filename);
mime_dir_config *conf = (mime_dir_config *)
- get_module_config(r->per_dir_config, &mime_module);
+ get_module_config(r->per_dir_config, &mime_module);
char *type;
- if (S_ISDIR(r->finfo.st_mode)) {
- r->content_type = DIR_MAGIC_TYPE;
+ if (S_ISDIR(r->finfo.st_mode)) {
+ r->content_type = DIR_MAGIC_TYPE;
return OK;
}
if((i=rind(fn,'.')) < 0) return DECLINED;
++i;
- if ((type = table_get (conf->encoding_types, &fn[i])))
+ if ((type = table_get (conf->encoding_types, &fn[i])))
{
- r->content_encoding = type;
+ r->content_encoding = type;
/* go back to previous extension to try to use it as a type */
@@ -957,9 +957,9 @@ int find_ct(request_rec *r)
++i;
}
- if ((type = table_get (conf->forced_types, &fn[i])))
+ if ((type = table_get (conf->forced_types, &fn[i])))
{
- r->content_type = type;
+ r->content_type = type;
}
return OK;
@@ -989,7 +989,7 @@ per-directory config data):
char *add_redirect(cmd_parms *cmd, void *dummy, char *f, char *url)
{
- server_rec *s = cmd->server;
+ server_rec *s = cmd->server;
alias_server_conf *conf = (alias_server_conf *)
get_module_config(s->module_config,&alias_module);
alias_entry *new = push_array (conf->redirects);
diff --git a/docs/manual/misc/FAQ.html b/docs/manual/misc/FAQ.html
index 5525499f60..070ab0d1ac 100644
--- a/docs/manual/misc/FAQ.html
+++ b/docs/manual/misc/FAQ.html
@@ -15,7 +15,7 @@
Apache Server Frequently Asked Questions
The Answers
-
Background
diff --git a/docs/manual/mod/core.html b/docs/manual/mod/core.html
index 6e4d5f0ced..34e49f476e 100644
--- a/docs/manual/mod/core.html
+++ b/docs/manual/mod/core.html
@@ -15,11 +15,11 @@
Apache Core Features
-
+Directives
-AccessConfig directive
+AccessConfig directive
Syntax: AccessConfig filename
Default: AccessConfig conf/access.conf
@@ -92,7 +92,7 @@ Historically, this file only contained
contain any server directive allowed in the server config context.
-AccessFileName directive
+AccessFileName directive
Syntax: AccessFileName filename
Default: AccessFileName .htaccess
@@ -113,7 +113,7 @@ for directives, unless they have been disabled with
AllowOverride None
</Directory>
-AddModule directive
+AddModule directive
Syntax: AddModule module module ...
Context: server config
@@ -126,7 +126,7 @@ server comes with a pre-loaded list of active modules; this list can
be cleared with the ClearModuleList
directive.
-AllowOverride directive
+AllowOverride directive
Syntax: AllowOverride override override ...
Default: AllowOverride All
@@ -188,7 +188,7 @@ Allow use of the directives controlling specific directory features
XBitHack).
-AuthName directive
+AuthName directive
Syntax: AuthName auth-domain
Context: directory, .htaccess
@@ -203,7 +203,7 @@ It must be accompanied by AuthType and
AuthUserFile and
AuthGroupFile to work.
-AuthType directive
+AuthType directive
Syntax: AuthType type
Context: directory, .htaccess
@@ -218,7 +218,7 @@ It must be accompanied by AuthName and
AuthUserFile and
AuthGroupFile to work.
-BindAddress directive
+BindAddress directive
Syntax: BindAddress saddr
Default: BindAddress *
@@ -249,7 +249,7 @@ This option can be used as an alternative method for supporting
-ClearModuleList directive
+ClearModuleList directive
Syntax: ClearModuleList
Context: server config
@@ -260,7 +260,7 @@ The server comes with a built-in list of active modules. This
directive clears the list. It is assumed that the list will then be
re-populated using the AddModule directive.
-DefaultType directive
+DefaultType directive
Syntax: DefaultType mime-type
Default: DefaultType text/html
@@ -278,7 +278,7 @@ example:
would be appropriate for a directory which contained many gif images
with filenames missing the .gif extension.
-<Directory> directive
+<Directory> directive
Syntax: <Directory directory> ... </Directory>
Context: server config, virtual host
@@ -356,7 +356,7 @@ may appear in any configuration file. <Directory> directives cannot
nest, and cannot appear in a <Limit> section.
-DocumentRoot directive
+DocumentRoot directive
Syntax: DocumentRoot directory-filename
Default: DocumentRoot
@@ -378,7 +378,7 @@ please avoid that.
-ErrorDocument directive
+ErrorDocument directive
Syntax: ErrorDocument error-code document
Context server config, virtual host, directory, .htaccess
@@ -427,7 +427,7 @@ from the nature of the HTTP basic authentication scheme.
-ErrorLog directive
+ErrorLog directive
Syntax: ErrorLog filename
Default: ErrorLog logs/error_log
@@ -448,7 +448,7 @@ than the user that starts the server.
-<Files>
+<Files> directive
Syntax: <Files filename>
... </Files>
Context: server config, virtual host, htaccess
@@ -489,7 +489,7 @@ the directory being applied will be prefixed automatically.
-Group directive
+Group directive
Syntax: Group unix-group
Default: Group #-1
@@ -523,7 +523,7 @@ as the group specified in the main Group directive.
-HostNameLookups directive
+HostNameLookups directive
Syntax: HostNameLookups boolean
Default: HostNameLookups on
@@ -539,7 +539,7 @@ lookups can take considerable amounts of time. The utility logresolve,
provided in the /support directory, can be used to look up host names
from logged IP addresses offline.
-IdentityCheck directive
+IdentityCheck directive
Syntax: IdentityCheck boolean
Default: IdentityCheck off
@@ -561,7 +561,7 @@ of latency to each hit. So in general this is not very useful on public
servers accessible from the Internet.
-<IfModule>
+<IfModule> directive
Syntax: <IfModule [!]module-name> ...
</IfModule>
Default: None
@@ -601,7 +601,7 @@ simple multiple-module tests.
-KeepAlive
+KeepAlive directive
Syntax: (Apache 1.1) KeepAlive max-requests
Default: (Apache 1.1) KeepAlive 5
Syntax: (Apache 1.2) KeepAlive on/off
@@ -624,7 +624,7 @@ server resources. Set this to 0
to disable support.
persistent connections, "Off" to disable. See also the MaxKeepAliveRequests directive.
KeepAliveTimeout 15
Timeout
directive
applies.
ListenBacklog 511
listen(2)
system call.
-LockFile logs/accept.lock
MaxClients 256
MaxKeepAliveRequests 100
0
", unlimited requests will be
allowed. We recommend that this setting be kept to a high value for
maximum server performance.
-MaxRequestsPerChild 0
MaxSpareServers 10
See also MinSpareServers and StartServers.
MinSpareServers 5
See also MaxSpareServers and StartServers.
FollowSymLinks
and Includes
are set for the /web/docs/spec directory.
PidFile logs/httpd.pid
Port 80
ResourceConfig conf/srm.conf
Unset uses operating system defaults
See also RLimitMEM or RLimitNPROC.
Unset uses operating system defaults
See also RLimitCPU or RLimitNPROC.
Unset uses operating system defaults
ScoreBoardFile logs/apache_status
ServerAdmin www-admin@foo.bar.com
as users do not always mention that they are talking about the server!monster.wibble.com
.
ServerRoot /usr/local/etc/httpd
conf/
and
as relative to this directory.-d
option to httpd.ServerType standalone
StartServers 5
See also MinSpareServers and MaxSpareServers.
TimeOut 300
User #-1
root
unless you know exactly what you are doing, and what the
dangers are.