I'm trying now for a few days to get web2py working with mod_python
(on a shared hosting). Because i have no other options of configuring
apache or anything else.

I did find a small tutorial on how to configure web2py with
mod_python. (http://www.web2py.com/AlterEgo/default/show/231).

So far i have the following:
.htaccess
===
SetHandler python-program
PythonHandler web2py_modpython
PythonPath "['/path/to/web2py/public_html/'] + sys.path"
PythonDebug On
SetEnv SITE_URL '/welcome'

I've also downloaded the web2py_modpython.py.
At first i had some problems with req.subprocess_env['SITE_URL']  in
web2py_modpython.py but found out that setting the enviroment variable
did solve the problem.
So right now i have set the SITE_URL by hand to 'welcome', which
workes, but only for the application. The static files aren't served.
(I only get the text back, links

I did read something that i have to use mod_rewrite, but can't find
information about this specific for web2py.
Does someone has the basic of web2py working with mod_python/apache?
Did i miss something to set? Or did i misconfigure something?

Reply via email to