1 | \" $Id: tewi.conf.5.tmpl 38 2024-09-16 13:58:15Z nishi $
|
---|
2 | .Dd 2024 Sep 16th
|
---|
3 | .Dt TEWI 8
|
---|
4 | .Os
|
---|
5 | .Sh NAME
|
---|
6 | .Nm tewi ,
|
---|
7 | .Nm tewi.conf
|
---|
8 | .Nd Tewi HTTPd
|
---|
9 | .Sh DESCRIPTION
|
---|
10 | .Nm
|
---|
11 | is a simple public domain HTTP daemon written in C.
|
---|
12 | .Sh CONFIGURATION
|
---|
13 | .Ss "General settings"
|
---|
14 | .Bl -tag -width 20 -compact
|
---|
15 | .It Pa "Listen"
|
---|
16 | Specifies the port(s) to be listened on.
|
---|
17 | .It Pa "DocumentRoot"
|
---|
18 | Specifies the document root.
|
---|
19 | .It Pa "LoadModule"
|
---|
20 | Loads the module.
|
---|
21 | .It Pa "MIMEType"
|
---|
22 | Specifies the MIME type for files.
|
---|
23 | \fBall\fR can be used instead of the extension if you want to make all extensions appear as same MIME.
|
---|
24 | Later rules will override the MIME.
|
---|
25 |
|
---|
26 | Example:
|
---|
27 |
|
---|
28 | .Vb 1
|
---|
29 | \& MIMEType all application/octet-stream
|
---|
30 |
|
---|
31 | \& MIMEType .html text/html
|
---|
32 | .Ve
|
---|
33 |
|
---|
34 | .It Pa "BeginVirtualHost"
|
---|
35 | Begins the virtual host section.
|
---|
36 | .It Pa "EndVirtualHost"
|
---|
37 | Ends the virtual host section.
|
---|
38 | .El
|
---|
39 | .Ss "TLS/SSL settings"
|
---|
40 | .Bl -tag -width 20 -compact
|
---|
41 | .It Pa "ListenSSL"
|
---|
42 | Specifies the port(s) to be listened on, but with TLS/SSL.
|
---|
43 | .It Pa "SSLKey"
|
---|
44 | Specifies the TLS/SSL private key.
|
---|
45 | This works in the virtual host section too, and can be used to switch key depending on the virtual host.
|
---|
46 | .It Pa "SSLCertificate"
|
---|
47 | Specifies the TLS/SSL certificate.
|
---|
48 | This works in the virtual host section too, and can be used to switch certificate depending on the virtual host.
|
---|
49 | .El
|
---|
50 | .Ss "Access settings"
|
---|
51 | .Bl -tag -width 20 -compact
|
---|
52 | Default access is "Deny all".
|
---|
53 |
|
---|
54 | .It Pa "BeginDirectory"
|
---|
55 | Begins the directory section.
|
---|
56 | .It Pa "EndDirectory"
|
---|
57 | Ends the directory section.
|
---|
58 | .It Pa "Allow"
|
---|
59 | Allows the connection. Only works with \fBall\fR for now.
|
---|
60 | Will not work outside of the directory section.
|
---|
61 | .It Pa "Deny"
|
---|
62 | Denies the connection. Only works with \fBall\fR for now.
|
---|
63 | Will not work outside of the directory section.
|
---|
64 | .El
|
---|
65 | .Ss "Directory settings"
|
---|
66 | .Bl -tag -width 20 -compact
|
---|
67 | .It Pa "DirectoryIndex"
|
---|
68 | Specifies the directory index.
|
---|
69 | .It Pa "Readme"
|
---|
70 | Specifies the README file for directory listing.
|
---|
71 | .It Pa "Icon"
|
---|
72 | Sets the icon for the MIME type.
|
---|
73 | \fBall\fR can be used instead of the MIME if you want to make all MIMEs appear as same icon.
|
---|
74 | Later rules will override the icon.
|
---|
75 |
|
---|
76 | Example:
|
---|
77 |
|
---|
78 | .Vb 1
|
---|
79 | \& Icon all /icons/unknown.png
|
---|
80 |
|
---|
81 | \& Icon text/* /icons/text.png
|
---|
82 | .Ve
|
---|
83 | .El
|
---|
84 | .Sh FILES
|
---|
85 | .Bl -tag -width @PREFIX@/etc/tewi.conf -compact
|
---|
86 | .It Pa @PREFIX@/etc/tewi.conf
|
---|
87 | Default path for the config
|
---|
88 | .El
|
---|
89 | .Sh AUTHORS
|
---|
90 | .An Nishi Aq Mt nishi@nishi.boats
|
---|