1. README of Unguent

    Unguent

    This tool is written in Python as an application of CherryPy.

    In winter, I use some unguent for our children to keep their skin smooth.

    My web process has been not that smooth. It was basically unmaintained, a kind of put only. For my new web, I wish to …

    more »
  2. Running CherryPy

    I put following lines in /etc/rc.local

    (cd /home/gniibe/www.gniibe.org &&
     su gniibe -c "./run-unguent.sh production")
    

    The shell script run-ungent.sh goes background by itself.

    more »
  3. Running port 8080 but accessing through port 80

    I run CherryPy on port 8080 with no root privilege. On the server, I also need to support access to port 80.

    Thus, I create a file named under /etc/network/if-up.d.

    # cat > /etc/network/if-up.d/system-iptables
    #!/bin/sh
    if [ $METHOD = "loopback" ]; then
      iptables -t nat -A PREROUTING …
    more »