source: Main/trunk/Manpage/tewi.conf.5.tmpl@ 127

Last change on this file since 127 was 123, checked in by Nishi, on Sep 22, 2024 at 10:43:47 PM

add ShowPort/HidePort

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