From 3bb4649a7d20fa7cea115bf41f3adb12f3e80c14 Mon Sep 17 00:00:00 2001
From: Ken Coar
-$Revision: 1.37 $ ($Date: 1997/04/22 03:01:25 $)
+$Revision: 1.38 $ ($Date: 1997/04/22 10:26:39 $)
If you are reading a text-only version of this FAQ, you may find numbers
@@ -17,27 +17,27 @@ reference URLs to be found at the end of the document. These references
do not appear, and are not needed, for the hypertext version.
Apache was originally based on code and ideas found in the most
popular HTTP server of the time.. NCSA httpd 1.3 (early 1995). It has
@@ -331,6 +332,15 @@ do not appear, and are not needed, for the hypertext version.
fix the problem yourself (such as file permissions or the like).
+ The latest version of the Apache Frequently-Asked Questions list can
+ always be found at the main Apache web site.
+
Most problems that get reported to The Apache Group are recorded in
@@ -392,8 +402,8 @@ do not appear, and are not needed, for the hypertext version.
(Substitute the appropiate locations for your
ServerRoot and your httpd and
- core files. You may have to use gdb
- instead of dbx.)
+ core files. You may have to use
-
It means just what it says: the server was expecting a complete set of
HTTP headers (one or more followed by a blank line), and didn't get
them. The most common cause of this is Perl scripts which haven't
disabled buffering; if you insert the following statements before your
- first print statement, this will probably go away.
+ first
If your script isn't written in Perl, do the equivalent thing for
whatever language you are using (e.g., for C, call
- fflush() after writing the headers).
+ Apache Server Frequently Asked Questions
The Questions
-
-
-
-
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -76,7 +76,8 @@ do not appear, and are not needed, for the hypertext version.
in directories other than the ScriptAlias?
ErrorDocument
+ 401
work?
-
@@ -471,18 +481,16 @@ do not appear, and are not needed, for the hypertext version.
gdb
+ instead of dbx
.)
- print
statement, this will probably go away.
@@ -499,7 +507,7 @@ do not appear, and are not needed, for the hypertext version.
fflush()
after writing the headers).
mod_include
+ >mod_include
module. This is normally compiled in by default.
Content-Length
or
- Last-Modified
headers. Caches commonly work by comparing
- the Last-Modified
of what's in the cache with that being
+ This means that it can't generate Content-Length or
+ Last-Modified headers. Caches commonly work by comparing
+ the Last-Modified of what's in the cache with that being
delivered by the server. Since the server isn't sending that header
for a parsed document, whatever's doing the caching can't tell whether
the document has changed or not - and so fetches it again to be on the
@@ -575,11 +583,11 @@ do not appear, and are not needed, for the hypertext version.
You can work around this in some cases by causing an
- Expires
header to be generated. (See the
+ Expires header to be generated. (See the
mod_expires
+ >mod_expires
documentation for more details.) Another possibility is to use the
file descriptors, and that's almost always the
cause of problems seen when adding virtual hosts. In this
case, it is often not actually Apache that's encountering the problem, but
- some library routine (such as gethostbyname())
+ some library routine (such as gethostbyname()
)
which needs file descriptors and doesn't complain intelligibly when it
can't get them.
mod_log_config
+ >mod_log_config
to log all requests to a single log file while including the name
of the virtual host in the log file.
limit
or
+ ulimit
commands). For some systems, information on
how to do this is available in the
ErrorDocument 401
work?
You need to use it with a URL in the form "/foo/bar" and not one @@ -798,8 +806,8 @@ do not appear, and are not needed, for the hypertext version.
Your @@ -812,15 +820,15 @@ do not appear, and are not needed, for the hypertext version.
Apache does not send automatically send a cookie on every
response, unless you have re-compiled it with the
This is definitely a bug in the JDK, but it's unclear when (or
@@ -969,41 +977,48 @@ do not appear, and are not needed, for the hypertext version.
and then follow with your normal non-nph headers.
mod_cookies
+ >mod_cookies
module.
This module was distributed with Apache prior to 1.2.
This module may help track users, and uses cookies to do this. If
@@ -829,7 +837,7 @@ do not appear, and are not needed, for the hypertext version.
more correct name
mod_usertrack
,
+ >mod_usertrack,
and cookies
have to be specifically enabled with the
-
- $HTTP_headers =
- "HTTP/1.1 200 OK\015\012";
+
+ $HTTP_headers =
+ "HTTP/1.1 200 OK\015\012";
+
+
+ $HTTP_headers .=
+ "Connection: close\015\012";
-
- $HTTP_headers .=
- "Connection: close\015\012";
+
+ printf ($HTTP_headers);
-
- printf ($HTTP_headers);
-
- };
+ };
This is a conflict between your C library includes and your kernel
includes. You need to make sure that the versions of both are matched
- properly. There are two workarounds. One is to remove the definition
- of struct iovec from your C library includes. Another is to add
- -DNO_WRITEV
to the EXTRA_CFLAGS
line in
- your Configuration
and reconfigure/rebuild.
+ properly. There are two workarounds:
+
struct iovec
from your C
+ library includes. Or,
+ -DNO_WRITEV
to the EXTRA_CFLAGS
+ line in your Configuration and reconfigure/rebuild.
+