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

Last change on this file since 82 was 38, checked in by Nishi, on Sep 16, 2024 at 10:58:15 PM

set svn:keywords

  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
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
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 "MIMEType"
22Specifies 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.
24Later rules will override the MIME.
25
26Example:
27
28.Vb 1
29\& MIMEType all application/octet-stream
30
31\& MIMEType .html text/html
32.Ve
33
34.It Pa "BeginVirtualHost"
35Begins the virtual host section.
36.It Pa "EndVirtualHost"
37Ends the virtual host section.
38.El
39.Ss "TLS/SSL settings"
40.Bl -tag -width 20 -compact
41.It Pa "ListenSSL"
42Specifies the port(s) to be listened on, but with TLS/SSL.
43.It Pa "SSLKey"
44Specifies the TLS/SSL private key.
45This works in the virtual host section too, and can be used to switch key depending on the virtual host.
46.It Pa "SSLCertificate"
47Specifies the TLS/SSL certificate.
48This 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
52Default access is "Deny all".
53
54.It Pa "BeginDirectory"
55Begins the directory section.
56.It Pa "EndDirectory"
57Ends the directory section.
58.It Pa "Allow"
59Allows the connection. Only works with \fBall\fR for now.
60Will not work outside of the directory section.
61.It Pa "Deny"
62Denies the connection. Only works with \fBall\fR for now.
63Will not work outside of the directory section.
64.El
65.Ss "Directory settings"
66.Bl -tag -width 20 -compact
67.It Pa "DirectoryIndex"
68Specifies the directory index.
69.It Pa "Readme"
70Specifies the README file for directory listing.
71.It Pa "Icon"
72Sets 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.
74Later rules will override the icon.
75
76Example:
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
87Default path for the config
88.El
89.Sh AUTHORS
90.An Nishi Aq Mt nishi@nishi.boats
Note: See TracBrowser for help on using the repository browser.