summarylogtreecommitdiffstats
path: root/bozohttpd.service
blob: d0c44911397edce273017389bd88700d92ad5b48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[Unit]
Description=the bozotic HTTP server
After=syslog.target
After=network.target

[Service]
PIDFile=/run/bozohttpd.pid
StandardOutput=null
# Simplest use:
ExecStart=/usr/bin/bozohttpd -b -f -s -U nobody -P /run/bozohttpd.pid /srv/http
# Enable directory index:
#ExecStart=/usr/bin/bozohttpd -b -f -s -U nobody -P /run/bozohttpd.pid -X /srv/http
# Enable CGI:
#ExecStart=/usr/bin/bozohttpd -b -f -s -U nobody -P /run/bozohttpd.pid -c /usr/lib/cgi-bin /srv/http
# Enable PHP and set default to index.php (instead of index.html):
#ExecStart=/usr/bin/bozohttpd -b -f -s -U nobody -P /run/bozohttpd.pid -x index.php -C .php /usr/bin/php-cgi /srv/http

[Install]
WantedBy=multi-user.target