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 *>
    ServerAdmin email@domain.com
    ServerName roundup.domain.com
    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/roundup.domain.com-error.log
    CustomLog /opt/logs/roundup.domain.com-access.log combined
    ServerSignature Off
</VirtualHost>

Set web = directive in my roundup config.ini to http://roundup.domain.com/

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