[manual index][section index]

NAME

httpd - HTTP server

SYNOPSIS

svc/httpd

DESCRIPTION

svc/httpd

FILES & PATHS

/services/httpd/root/_default/
default docroot
/services/httpd/root/example.com/
example vhost
/services/httpd/config.db
config file

EXAMPLE config.db

debug
#nodebug
vhost
ctlchan=shttpd
accesslog=/services/httpd/access.log
announce=net!www.example.com!80

mime    ext=.text       type='text/plain; charset=utf-8'
mime    ext=.mov        type='video/quicktime'
mime    ext=.erl        type='text/plain; charset=utf-8'

# port=80 is not necessary, it's the default
host=www.example.com port=80
        listings path=''
        cachesecs=60
        index   file=index.html file=index.htm file=index.txt
        redir   src='^/oldfile$'        dst=/newfile
        redir   src='^/oldpath/(.*)$'   dst=/newpath/$1

alias
        host=example.com port=80 usehost=www.example.com useport=80
For complete documentation see shttpd(8), attrdb(6) A cluster setup can export a file like this to support distributing work over a grid. A grid-specific svc script may be provided in the future to facilitate this use-case.

SOURCE

/appl/svc/httpd.sh

SEE ALSO

svc(8)

HTTPD(8 ) Rev:  Wed Feb 22 04:14:06 GMT 2023