Hi,
I was setting up Sycamore for a friend, and I was following the SCGI
instructions for apache.  I found it kind of silly that it was using SCGI to
use something that already created a WSGI server.  It's so much easier to
use mod_wsgi with apache.  I made a file called index.wsgi with the
contents:

#!/usr/bin/python -OO
# -*- coding: iso-8859-1 -*-
"""
    Sycamore - WSGI Driver Script

    @copyright: 2006 Philip Neustrom
    @license: GNU GPL, see COPYING for details.
"""

import sys, logging, os
__directory__ = os.path.dirname(__file__)
sys.path.extend([os.path.abspath(os.path.join(__directory__, '..', '..'))]),

os.environ['PYTHON_EGG_CACHE'] = '/var/egg_cache' #you probably have to
change this
from Sycamore.request import basic_handle_request
application = basic_handle_request



#####


and in my apache vhost files in apache  I did this:

    <VirtualHost *:80>
        ServerName buffwiki.org
        ServerAlias www.buffwiki.org
        RewriteEngine On
        WSGIScriptAliasMatch ^/
var/www/buffwiki.org/htdocs/sycamore_base/share/web/index.wsgi

        <Directory /var/www/buffwiki.org/htdocs/sycamore_base/>
            WSGIApplicationGroup %{GLOBAL}
            Order deny,allow
            Allow from all
        </Directory>
    </VirtualHost>



It's sooo much more practical then the mod_scgi setup and mod_wsgi seems to
be a lot more supported.  You don't have to deal with starting the script
seperately and all that crap.

I'm not really doing this for myself and I'm a bit lazy to modify the setup
wiki and commit the source, so somebody might want to do it for me.


Cheers,
Mike
_______________________________________________
Sycamore-Dev mailing list
[EMAIL PROTECTED]
http://www.projectsycamore.org/
https://tools.cernio.com/mailman/listinfo/sycamore-dev

Reply via email to