Butterthlies, Inc., Gets Going
The httpd.conf file (to be found in ... /site.first) contains the following:
User webuser Group webgroup ServerName my586 DocumentRoot /usr/www/APACHE3/APACHE3/site.first/htdocs TransferLog logs/access_log #Listen is needed for Apache2 Listen 80
In the first edition of this book, we mentioned the directives
AccessConfig
and ResourceConfig
here. If set with /dev/null
(NUL under Win32), they disable the
srm.conf and access.conf
files, and they were formerly required if those files were absent.
However, new versions of Apache ignore these files if they are not
present, so the directives are no longer required. However, if they
are present, the files mentioned will be included in the Config file.
In Apache Version 1.3.14 and later, they can be given a directory
rather than a filename, and all files in that directory and its
subdirectories will be parsed as configuration files.
In Apache v2 the directives AccessConfig
and
ResourceConfig
are abolished and will cause an
error. However, you can write: Include
conf/srm.conf
Include
conf/access.conf
in that order, and at the end of the Config file.
Apache v2 also, rather oddly, insists on a
Listen
directive. If you
don’t include it in your Config file, you will get
the error message:
...no listening sockets available, shutting down.
If you are using Win32, note that the User
and
Group
directives are not supported, ...
Get Apache: The Definitive Guide, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.