source: Main/trunk/Manpage/tewi.8.tmpl@ 145

Last change on this file since 145 was 145, checked in by Nishi, on Sep 24, 2024 at 3:18:27 AM

fix path

  • Property svn:keywords set to Id
File size: 2.4 KB
RevLine 
[38]1\" $Id: tewi.8.tmpl 145 2024-09-23 18:18:27Z 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
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.
[133]17.It Pa "ServerRoot"
18Specifies the server root.
19.It Pa "ServerAdmin"
20Specifies the server admin.
[37]21.It Pa "DocumentRoot"
22Specifies the document root.
23.It Pa "LoadModule"
24Loads the module.
[123]25.It Pa "HidePort" "ShowPort"
26Shows/Hides the port in directory listing, and the default error page.
[37]27.It Pa "MIMEType"
28Specifies 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.
30Later rules will override the MIME.
31
32Example:
33
34.Vb 1
35\& MIMEType all application/octet-stream
36
37\& MIMEType .html text/html
38.Ve
39
40.It Pa "BeginVirtualHost"
41Begins the virtual host section.
42.It Pa "EndVirtualHost"
43Ends the virtual host section.
44.El
45.Ss "TLS/SSL settings"
46.Bl -tag -width 20 -compact
47.It Pa "ListenSSL"
48Specifies the port(s) to be listened on, but with TLS/SSL.
49.It Pa "SSLKey"
50Specifies the TLS/SSL private key.
51This works in the virtual host section too, and can be used to switch key depending on the virtual host.
52.It Pa "SSLCertificate"
53Specifies the TLS/SSL certificate.
54This 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
58Default access is "Deny all".
59
60.It Pa "BeginDirectory"
61Begins the directory section.
62.It Pa "EndDirectory"
63Ends the directory section.
64.It Pa "Allow"
65Allows the connection. Only works with \fBall\fR for now.
66Will not work outside of the directory section.
67.It Pa "Deny"
68Denies the connection. Only works with \fBall\fR for now.
69Will not work outside of the directory section.
70.El
71.Ss "Directory settings"
72.Bl -tag -width 20 -compact
73.It Pa "DirectoryIndex"
74Specifies the directory index.
75.It Pa "Readme"
76Specifies the README file for directory listing.
77.It Pa "Icon"
78Sets 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.
80Later rules will override the icon.
81
82Example:
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
93Default path for the config
94.El
95.Sh AUTHORS
96.An Nishi Aq Mt nishi@nishi.boats
Note: See TracBrowser for help on using the repository browser.