httpdallows a number of options and an optional directory argument:
httpd [-opt -opt -opt ...] [directory]The directory argument, if present, indicates the directory to be exported. If not present, either a rule file is be used, to export combinations of directories, or else the default is to export the
/etc/httpd.conf. All the other options can be given as directives in the configuration file.
httpdassumes that it has been run by
inetd, and uses
stdoutas its communication channel. Note that port numbers under 1024 are privileged.
httpdfinds the out the process number of the running server from
PidFileand sends it the
HUPsignal (HangUP). This will cause
httpdto reload its configuration files and reopen its log files. Important: To find out the
httpdwill have to read the same configuration file as the running
httpdhas, so you have to specify the same
-roptions on the command line as for the actual
cronto do garbage collection on a cache that is used by
httpdrun from the
inetddaemon rather than standalone. When
httpdis not running standalone it cannot monitor the cache, nor perform automatic garbage collection.
libwww(the WWW Common Library).
READMEinto a directory containing instructions or notices to be read by anyone new to the directory.
httpdwill by default embed any
READMEfile in the hypertext version of a directory.
You can set these also with the
READMEfile, include the text of the
READMEfile at the top of the document before the listing. Default.
-dtbut put the
READMEat the bottom, after the listing. The
-dtoptions may be combined with
httpd -r /usr/etc/httpd.conf -p 80This is a standalone server running on port 80. Configuration file is
/usr/etc/httpd.confinstead of the default,
Note that if the
Port directive is given in the
configuration file the
-p option is not necessary (it
can be used to override the value set in the configuration file).
httpduses its default configuration file
/etc/httpd.conf. If that file doesn't exist,
/Publicdirectory tree. This tree may contain soft links to other directory trees.
If the configuration file
/etc/httpd.conf didn't define
the port number to listen to
this is an
httpd reading its
writing to its
stdout, so it is run by
httpd -r /usr/local/lib/httpd.confThe same as before, but uses
/usr/local/lib/httpd.confas a rule file instead of the default