[38] | 1 | \" $Id: tewi.conf.5.tmpl 133 2024-09-23 10:35:52Z nishi $
|
---|
[37] | 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.
|
---|
[133] | 17 | .It Pa "ServerRoot"
|
---|
| 18 | Specifies the server root.
|
---|
| 19 | .It Pa "ServerAdmin"
|
---|
| 20 | Specifies the server admin.
|
---|
[37] | 21 | .It Pa "DocumentRoot"
|
---|
| 22 | Specifies the document root.
|
---|
| 23 | .It Pa "LoadModule"
|
---|
| 24 | Loads the module.
|
---|
[123] | 25 | .It Pa "HidePort" "ShowPort"
|
---|
| 26 | Shows/Hides the port in directory listing, and the default error page.
|
---|
[37] | 27 | .It Pa "MIMEType"
|
---|
| 28 | Specifies the MIME type for files.
|
---|
| 29 | \fBall\fR can be used instead of the extension if you want to make all extensions appear as same MIME.
|
---|
| 30 | Later rules will override the MIME.
|
---|
| 31 |
|
---|
| 32 | Example:
|
---|
| 33 |
|
---|
| 34 | .Vb 1
|
---|
| 35 | \& MIMEType all application/octet-stream
|
---|
| 36 |
|
---|
| 37 | \& MIMEType .html text/html
|
---|
| 38 | .Ve
|
---|
| 39 |
|
---|
| 40 | .It Pa "BeginVirtualHost"
|
---|
| 41 | Begins the virtual host section.
|
---|
| 42 | .It Pa "EndVirtualHost"
|
---|
| 43 | Ends the virtual host section.
|
---|
| 44 | .El
|
---|
| 45 | .Ss "TLS/SSL settings"
|
---|
| 46 | .Bl -tag -width 20 -compact
|
---|
| 47 | .It Pa "ListenSSL"
|
---|
| 48 | Specifies the port(s) to be listened on, but with TLS/SSL.
|
---|
| 49 | .It Pa "SSLKey"
|
---|
| 50 | Specifies the TLS/SSL private key.
|
---|
| 51 | This works in the virtual host section too, and can be used to switch key depending on the virtual host.
|
---|
| 52 | .It Pa "SSLCertificate"
|
---|
| 53 | Specifies the TLS/SSL certificate.
|
---|
| 54 | This works in the virtual host section too, and can be used to switch certificate depending on the virtual host.
|
---|
| 55 | .El
|
---|
| 56 | .Ss "Access settings"
|
---|
| 57 | .Bl -tag -width 20 -compact
|
---|
| 58 | Default access is "Deny all".
|
---|
| 59 |
|
---|
| 60 | .It Pa "BeginDirectory"
|
---|
| 61 | Begins the directory section.
|
---|
| 62 | .It Pa "EndDirectory"
|
---|
| 63 | Ends the directory section.
|
---|
| 64 | .It Pa "Allow"
|
---|
| 65 | Allows the connection. Only works with \fBall\fR for now.
|
---|
| 66 | Will not work outside of the directory section.
|
---|
| 67 | .It Pa "Deny"
|
---|
| 68 | Denies the connection. Only works with \fBall\fR for now.
|
---|
| 69 | Will not work outside of the directory section.
|
---|
| 70 | .El
|
---|
| 71 | .Ss "Directory settings"
|
---|
| 72 | .Bl -tag -width 20 -compact
|
---|
| 73 | .It Pa "DirectoryIndex"
|
---|
| 74 | Specifies the directory index.
|
---|
| 75 | .It Pa "Readme"
|
---|
| 76 | Specifies the README file for directory listing.
|
---|
| 77 | .It Pa "Icon"
|
---|
| 78 | Sets the icon for the MIME type.
|
---|
| 79 | \fBall\fR can be used instead of the MIME if you want to make all MIMEs appear as same icon.
|
---|
| 80 | Later rules will override the icon.
|
---|
| 81 |
|
---|
| 82 | Example:
|
---|
| 83 |
|
---|
| 84 | .Vb 1
|
---|
| 85 | \& Icon all /icons/unknown.png
|
---|
| 86 |
|
---|
| 87 | \& Icon text/* /icons/text.png
|
---|
| 88 | .Ve
|
---|
| 89 | .El
|
---|
| 90 | .Sh FILES
|
---|
| 91 | .Bl -tag -width @PREFIX@/etc/tewi.conf -compact
|
---|
| 92 | .It Pa @PREFIX@/etc/tewi.conf
|
---|
| 93 | Default path for the config
|
---|
| 94 | .El
|
---|
| 95 | .Sh AUTHORS
|
---|
| 96 | .An Nishi Aq Mt nishi@nishi.boats
|
---|