durusmail: quixote-users: problems with mod_scgi, Quixote 2 and Apache 2
problems with mod_scgi, Quixote 2 and Apache 2
2005-05-13
2005-05-13
2005-05-13
problems with mod_scgi, Quixote 2 and Apache 2
Matt Patterson
2005-05-13
On 13 May 2005, at 12:18, David Binger wrote:


> This reminds me of the following thread:
>
> http://mail.mems-exchange.org/durusmail/quixote-users/4554/
>

Aha. Yes, that's the fellow.

My googling had turned up an earlier thread...

So, for Apache 2 configuration:


> 
>         ServerName kalendar.8fp.net
>         ServerAdmin webmaster@localhost
>
>         
>                 SCGIServer localhost:3001
>                 SCGIHandler On
>         
>
>         ErrorLog /var/log/apache2/error.log
>
>         # Possible values include: debug, info, notice, warn,
> error, crit,
>         # alert, emerg.
>         LogLevel warn
>
>         CustomLog /var/log/apache2/access.log combined
>         ServerSignature On
>
> 
>

I needed this driver script:


> from quixote.server.scgi_server import run
> from quixote.publish import Publisher
> from kalendar import Root
>
> def create_my_publisher():
>     return Publisher(Root())
>
> if __name__ == '__main__':
>     run(create_my_publisher, port=3001, script_name='')
>

And, hey presto, it works!

Thanks David!

Matt

--
   Matt Patterson | Design & Code
    | http://www.emdash.co.uk/
    | http://www.reprocessed.org/


reply