thttpd – instalacija; par primjera datoteke “thttpd.conf”

Instalacija  thttpd

Download: https://www.acme.com/software/thttpd/   (https://www.acme.com/software/thttpd/thttpd-2.29.tar.gz)

  • tar -xvf thttpd-2.29.tar.gz
  • cd thttpd-2.29
  • ./configure
  • make
  • make install
  • mkdir /var/www/thttpd
  • (po potrebi:chown -R nešto:nešto /var/www/thttpd)
  • nano /root/thttpd.conf
  • (uredi, spremi)
  • sudo /usr/local/sbin/thttpd -C /root/thttpd.conf

Primjeri thttpd.conf

Primjer 1

port=80
user=nobody
dir=/var/www/thttpd
nochroot
cgipat=/cgi-bin/**
logfile=/var/log/thttpd.log
pidfile=/var/run/thttpd.pid

Primjer 2

dir=/var/www/thttpd
chroot
user=root# default = nobody
logfile=/var/log/thttpd.log
pidfile=/var/run/thttpd.pid
# This section _documents_ defaults in effect
port=88
# nosymlink# default = !chroot
# novhost
# nocgipat
# nothrottles
host=0.0.0.0
# charset=iso-8859-1
charset=utf-8

hxxps://www.acme.com/software/thttpd/notes.html#samples


thttpdconf xthttpd xconf sample example primjer xsample xexample xprimjer instalacija installation xinstalacija xinstallation xthttpdconf

image_pdfimage_print