pywwetha is a webserver with a small footprint.
# Get the debian packet dpkg -i pywwetha*.deb
# copy files to /etc/pywwetha/, /etc/init.d/ and /usr/share/pywwetha insserv pywwetha /etc/init.d/pywwetha check-config /etc/init.d/pywwetha start /etc/init.d/pywwetha status
Each file with the pattern /etc/pywwetha/*.conf will be treated as a configuration file.
# /etc/pywwetha/pywwetha.conf: # # Port where pywwetha is listen port=8086 # pywwetha is running under this user: user=www-data # pywwetha is running under this group: group=www-data # Logging if pywwetha is running as daemon: daemon-log=false
# /etc/pywwetha/localhost.conf: # # default virtual host is localhost: # Definitions of localhost are the default definitions for the other vhosts. # The path where the documents are lying localhost:documentRoot=/var/www # The program to build dynamic content localhost:cgiProgram=/usr/bin/php-cgi # Arguments for the cgi program: separated by | # Possible placeholder: ${file} (the input for the cgi program) localhost:cgiArgs=${file}|-C|-c|/etc/wywetha/php.ini # File extensions of the CGI scripts, separated by | localhost:cgiExt=php|php5
pywwetha supports virtual hosts:
Each virtual host has its own properties: documentRoot cgiProgram ...
Note: Don't forget to define the virtual host in the DNS, e.g. in /etc/host.
--daemon | Start as daemon process. |
--check-config | Tests and shows the configuration data. |
--verbose | Shows additional info. |
--log | Writes the requests to /tmp/pywwetha.log. |