durusmail: quixote-users: unix sockets/ lighttpd
unix sockets/ lighttpd
2005-06-29
Jon (3 parts)
unix sockets/ lighttpd
Jon
2005-06-29
Hi

Intrigued by the revelation that lighttpd (www.lighttpd.net) does scgi out of
the box and would also do file based socket connections (AF_UNIX).
I quickly produced modified scgi_server.py and quixote_handler.py scripts
which allow a unix socket to be used instead. These are mods on top of
scgi-1.4.

I attach those below; they are not perfect, but currently it works for me.
I think it could be made a bit cleaner....

The quixote handler script takes an extra argument -s to specify the socket
file.
The scgi_server script (when run standalone) assumes that if the 2nd arg is an
int then it's to run on a tcp port; if it is a string it assumes it's a file
name.

comments welcome

Jon
reply