Main | Name:

TEWI(8)                     System Manager's Manual                    TEWI(8)



NAME
     tewi, tewi.conf - Tewi HTTPd

DESCRIPTION
     tewi is a simple public domain HTTP daemon written in C.

CONFIGURATION
   General settings
     Listen
         Specifies the port(s) to be listened on.
     ServerRoot
         Specifies the server root.
     ServerAdmin
         Specifies the server admin.
     DocumentRoot
         Specifies the document root.
     LoadModule
         Loads the module.
     HidePort ShowPort
         Shows/Hides the port in directory listing, and the default error
         page.
     MIMEType
         Specifies the MIME type for files.  all can be used instead of the
         extension if you want to make all extensions appear as same MIME.
         Later rules will override the MIME.

         Example:

             MIMEType all application/octet-stream

             MIMEType .html text/html

     BeginVirtualHost
         Begins the virtual host section.
     EndVirtualHost
         Ends the virtual host section.

   TLS/SSL settings
     ListenSSL
         Specifies the port(s) to be listened on, but with TLS/SSL.
     SSLKey
         Specifies the TLS/SSL private key.  This works in the virtual host
         section too, and can be used to switch key depending on the virtual
         host.
     SSLCertificate
         Specifies the TLS/SSL certificate.  This works in the virtual host
         section too, and can be used to switch certificate depending on the
         virtual host.

   Access settings
     Default access is "Deny all".

     BeginDirectory
         Begins the directory section.
     EndDirectory
         Ends the directory section.
     Allow
         Allows the connection. Only works with all for now.  Will not work
         outside of the directory section.
     Deny
         Denies the connection. Only works with all for now.  Will not work
         outside of the directory section.

   Directory settings
     DirectoryIndex
         Specifies the directory index.
     Readme
         Specifies the README file for directory listing.
     Icon
         Sets the icon for the MIME type.  all can be used instead of the MIME
         if you want to make all MIMEs appear as same icon.  Later rules will
         override the icon.

         Example:

             Icon all /icons/unknown.png

             Icon text/* /icons/text.png

FILES
     /usr/local/etc/tewi.conf  Default path for the config

AUTHORS
     Nishi <nishi@nishi.boats>

NetBSD 10.0                      2024 Sep 16th                     NetBSD 10.0

Generated by Keine 1.00