xref: /openbsd/usr.sbin/httpd/httpd.8 (revision 3bef86f7)
1.\"	$OpenBSD: httpd.8,v 1.54 2022/10/24 15:02:01 jmc Exp $
2.\"
3.\" Copyright (c) 2014 Reyk Floeter <reyk@openbsd.org>
4.\"
5.\" Permission to use, copy, modify, and distribute this software for any
6.\" purpose with or without fee is hereby granted, provided that the above
7.\" copyright notice and this permission notice appear in all copies.
8.\"
9.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16.\"
17.Dd $Mdocdate: October 24 2022 $
18.Dt HTTPD 8
19.Os
20.Sh NAME
21.Nm httpd
22.Nd HTTP daemon
23.Sh SYNOPSIS
24.Nm
25.Op Fl dnv
26.Op Fl D Ar macro Ns = Ns Ar value
27.Op Fl f Ar file
28.Sh DESCRIPTION
29The
30.Nm
31daemon is an HTTP server with FastCGI and TLS support.
32.Pp
33The FastCGI implementation has optional socket support.
34.Nm
35can log to
36.Xr syslog 3
37or per-server files with several standard formats.
38.Pp
39.Nm
40rereads its configuration file when it receives
41.Dv SIGHUP
42and reopens log files when it receives
43.Dv SIGUSR1 .
44.Pp
45The options are as follows:
46.Bl -tag -width Dssmacro=value
47.It Fl D Ar macro Ns = Ns Ar value
48Set a
49.Ar macro
50to a
51.Ar value .
52Macros can be referenced in the configuration files.
53.It Fl d
54Debug mode.
55Create one server and don't detach or become a daemon.
56This allows for easy monitoring of
57.Nm .
58.It Fl f Ar file
59Specifies the configuration file.
60The default is
61.Pa /etc/httpd.conf .
62.It Fl n
63Check that the configuration is valid, but don't start any servers.
64.It Fl v
65Verbose mode.
66Multiple
67.Fl v
68options increase the verbosity.
69.El
70.Sh FILES
71.Bl -tag -width "/etc/ssl/private/server.key" -compact
72.It Pa /etc/httpd.conf
73Default configuration file.
74.It Pa /etc/ssl/private/server.key
75Default SSL/TLS server key.
76.It Pa /etc/ssl/server.crt
77Default SSL/TLS server certificate.
78.It Pa /var/www/logs/access.log
79Default access log file.
80.It Pa /var/www/logs/error.log
81Default error log file.
82.El
83.Sh SEE ALSO
84.Xr acme-client 1 ,
85.Xr httpd.conf 5 ,
86.Xr slowcgi 8
87.Sh HISTORY
88The
89.Nm
90program first appeared in
91.Ox 5.6 .
92.Nm
93is based on
94.Xr relayd 8 .
95.Sh AUTHORS
96.An -nosplit
97The
98.Nm
99program was written by
100.An Reyk Floeter Aq Mt reyk@openbsd.org .
101