From: Ken Coar
- $Revision: 1.63.2.5 $ ($Date: 1997/06/28 21:51:43 $)
+ $Revision: 1.63.2.6 $ ($Date: 1997/07/05 15:37:37 $)
The latest version of this FAQ is always available from the main
@@ -162,6 +162,9 @@
Apache Server Frequently Asked Questions
/usr/local/etc/httpd/logs/error_log
, but see the
+ /usr/local/etc/httpd/logs/error_log, but see the
ErrorLog
@@ -1133,6 +1136,20 @@
+ This is a normal message and nothing about which to be alarmed. It simply + means that the client cancelled the connection before it had been + completely set up - such as by the end-user pressing the "Stop" + button. People's patience being what it is, sites with response-time + problems or slow network links may experiences this more than + high-capacity ones or those with large pipes to the network. +
+-lbind
to the
- EXTRA_LFLAGS
line in your Configuration
- file, then re-running Configure
, should resolve the
- problem.
+ EXTRA_LDFLAGS
line in your Configuration
+ file, then re-running Configure, should resolve the
+ problem. (Apache versions 1.2.* and earlier use
+ EXTRA_LFLAGS
instead.)
- Note: As of BIND 8.1.1, the bind libraries and files are
- installed under /usr/local/bind
by default. So you
+
+ Note:As of BIND 8.1.1, the bind libraries and files are + installed under /usr/local/bind by default, so you should not run into this problem. Should you want to use the bind resolvers you'll have to add the following to the respective lines: -
+ +- EXTRA_CFLAGS=-I/usr/local/bind/include - EXTRA_LFLAGS=-L/usr/local/bind/lib - EXTRA_LIBS=-lbind -
+
EXTRA_CFLAGS=-I/usr/local/bind/include
+
+ EXTRA_LDFLAGS=-L/usr/local/bind/lib
+
+ EXTRA_LIBS=-lbind
+
deny from all
- allow from .domain.com
- AuthType Basic
- AuthUserFile /usr/local/etc/httpd/conf/htpasswd.users
- AuthName special directory
- require valid-user
+ deny from all
+
+ allow from .domain.com
+
+ AuthType Basic
+
+ AuthUserFile /usr/local/etc/httpd/conf/htpasswd.users
+
+ AuthName special directory
+
+ require valid-user
+
satisfy any
- Your kernel has been built without SysV IPC support. You will have to
- rebuild the kernel with that support enabled (it's under the
- "General Setup" submenu). Documention for
- kernel building is beyond the scope of this FAQ, you should consult
- the Kernel
- HOWTO, or the documentation provided with your distribution,
- or a Linux
- newsgroup/mailing list. As a last resort workaround, you can
- comment out the #define HAVE_SHMGET
definition in the
- LINUX
section of
- src/conf.h
and rebuild the server. This will produce
- a server which is slower and less reliable.
+ Your kernel has been built without SysV IPC support. You will have to
+ rebuild the kernel with that support enabled (it's under the
+ "General Setup" submenu). Documentation for
+ kernel building is beyond the scope of this FAQ; you should consult
+ the
+ Kernel HOWTO,
+ or the documentation provided with your distribution, or a
+ Linux newsgroup/mailing list.
+ As a last-resort workaround, you can
+ comment out the #define HAVE_SHMGET
definition in the
+ LINUX section of
+ src/conf.h and rebuild the server. This will produce
+ a server which is slower and less reliable.
- Under normal circumstances, the apache access control modules will - pass unrecognized userids on to the next access control module in - line. Only if the userid is recognized, the password is validated - (or not) will it give the usual success or authentification failed - messages. -
-- However if the last access module in line 'declines' the validation - request (because it has never heard of the userid or because it is not - configured) the http_request handler will give one of the following, - confusing, errors: + Under normal circumstances, the Apache access control modules will + pass unrecognized user IDs on to the next access control module in + line. Only if the user ID is recognized and the password is validated + (or not) will it give the usual success or "authentification + failed" messages. +
++ However, if the last access module in line 'declines' the validation + request (because it has never heard of the user ID or because it is not + configured), the http_request handler will give one of + the following, confusing, errors: +
check access
- check user. No user file?
- check access. No groups file?
-
- The solution is to ensure that at least the last module is authoritative
- and CONFIGURED. By default mod_auth
is authoritative
- and will give an OK/Denied, but only if it is configured with the
- proper AuthUserFile. Likewise if a valid group is required. (Remember
- that the modules are processed in the reverse order they appear in
- your compile-time Configuration file.)
+
+ This does not mean that you have to add an + 'AuthUserFile /dev/null' line as some magazines suggest! +
++ The solution is to ensure that at least the last module is authoritative + and CONFIGURED. By default, mod_auth is + authoritative and will give an OK/Denied, but only if it is configured + with the proper AuthUserFile. Likewise, if a valid group + is required. (Remember that the modules are processed in the reverse + order from that in which they appear in your compile-time + Configuration file.) +
++ A typical situation for this error is when you are using the + mod_auth_dbmmod_auth_msql, + , mod_auth_anon or + mod_auth_cookie modules on their own. These are by + default not authoritative, and this will pass the + buck on to the (non-existent) next authentification module when the + user ID is not in their respective database. Just add the appropriate + 'XXXAuthoritative yes' line to the configuration. +
++ In general it is a good idea (though not terribly efficient) to have the + file-based mod_auth a module of last resort. This allows + you to access the web server with a few special passwords even if the + databases are down or corrupted. This does cost a + file open/seek/close for each request in a protected area.
-- A typical situation for this error is when you are using the - mod_auth_dbm, mod_auth_msql, mod_auth_mysql, mod_auth_anon or - mod_auth_cookie on their own. These are by default not - authoritative, and this will pass the buck on to the (non-existent) next - authentification module when the user ID is not in their respective - database. Just add the appropriate 'XXXAuthoritative yes' line to - the configuration. -
-- In general it is a good idea (though not terribly efficient) to have the - file based mod_auth a module of last resort. This allows you to access - the web server with a few special passwords even if the databases are - down or corrupted. This does cost a file-open/seek/close for each - request in a protected area. -
- Some organizations feel very strongly about keeping the authentification - information on a different machine than the webserver. With the - mod_auth_msql, mod_auth_mysql and other SQL modules connecting to - (R)DBMses this is quite well possible. Just configure an explicit host - to contact. -
-- Be aware that with mSQL and Oracle, opening and closing these database - connections is very expensive and time consuming. You might want to - look at the code in the auth_modules and play with the compile time - flags to alleviate this somewhat; if your RDBMS licences alows for it. -
++ Some organizations feel very strongly about keeping the authentification + information on a different machine than the webserver. With the + mod_auth_msql, mod_auth_mysql, and other SQL + modules connecting to (R)DBMses this is quite possible. Just configure + an explicit host to contact. +
++ Be aware that with mSQL and Oracle, opening and closing these database + connections is very expensive and time consuming. You might want to + look at the code in the auth_* modules and play with the + compile time flags to alleviate this somewhat, if your RDBMS licences + allow for it. +
- You have probably configured the Host by specificing a FQHN, - and thus the libmsql will use a full blown tcp/ip socket to talk to - the database, rather than a fast internal device. Both the libmsql, - the mSQL faq and the mod_auth_msql documentation warn you about this. If - you have to use different hosts, check out the mod_auth_msql code for - some compile time flags which might, or might not suit you. -
++ You have probably configured the Host by specificing a FQHN, + and thus the libmsql will use a full blown tcp/ip socket to talk to + the database, rather than a fast internal device. The + libmsql, the mSQL FAQ, and the mod_auth_msql + documentation warn you about this. If you have to use different + hosts, check out the mod_auth_msql code for + some compile time flags which might - or might not - suit you. +