eccentric blog

[ Home | RSS 2.0 | ATOM 1.0 ]

Tue, 12 Jun 2012

running roundup tracker under mod_wsgi

I recently setup a Roundup tracker and wanted to host it through mod_wsgi. There is an example in the installation document, but it didn't work for me, so here is what I ended up doing.

Setup my apache2 virtualhost:

<VirtualHost *>
    DocumentRoot /opt/roundup/site/html
    AddDefaultCharset utf-8

    WSGIScriptAlias /   /opt/roundup/site.wsgi
    # create some wsgi daemons - use these parameters for a simple setup
    WSGIDaemonProcess site-roundup user=useraccount group=useracounnt processes=5 threads=10 maximum-requests=200 umask=0007
    # use the daemons we defined above to process requests!
    WSGIProcessGroup site-roundup

    LogLevel warn
    ErrorLog /opt/logs/
    CustomLog /opt/logs/ combined
    ServerSignature Off

Set web = directive in my roundup config.ini to

Created my site.wsgi file:

from roundup.cgi.wsgi_handler import RequestDispatcher
tracker_home = '/opt/roundup/site'
application = RequestDispatcher(tracker_home)

And that seemed to do the trick.

posted at: 13:23 | path: /python | permanent link to this entry

Made with Pyblosxom