For Lighttpd support, simply add the following to the postinst file:

if [ -e /etc/lighttpd/lighttpd.conf ]; then
        lighty-enable-mod iipsrv || true
        touch /var/log/iipsrv.log
        chown www-data:www-data /var/log/iipsrv.log
fi

See attached postinst patch.

And include the attached 20-iipsrv.conf file in
/etc/lighttpd/conf-available/

# Lighttpd configuration of the iipimage-server package.

server.modules   += ( "mod_fastcgi" )

fastcgi.server += (
        "/fcgi-bin/iipsrv.fcgi" =>
        ((
                "host" => "127.0.0.1",
                "port" => 9000,
                "check-local" => "disable",
                "min-procs" => 1,
                "max-procs" => 1,
                "bin-path" => "/usr/lib/iipimage-server/iipsrv.fcgi",

                # IIPImage server parameters.
                # See iipimage manpage for more details.
                "bin-environment" => (
                        "LOGFILE" => "/var/log/iipsrv.log",
                        "VERBOSITY" => "1",
                        "JPEG_QUALITY" => "90",
                        "MAX_IMAGE_CACHE_SIZE" => "10",
                        "MAX_CVT" => "5000",
                        "MEMCACHED_SERVERS" => "localhost"
                )
        ))
)
14a15,20
> if [ -e /etc/lighttpd/lighttpd.conf ]; then
> 	lighty-enable-mod iipsrv || true
> 	touch /var/log/iipsrv.log
> 	chown www-data:www-data /var/log/iipsrv.log
> fi
> 

Reply via email to