Hi guys, I have been trying to host web2py with mod_python on a shared hosting env. (as My provider doesnt support mod_wsgi)
So first i did what was given in the book - http://web2py.com/book/default/chapter/11#Shared-Hosting-with-mod_python I was getting the KeyError: 'SCRIPT_URL' . So I replaced the following line in web2py_modpython.py - req.subprocess_env['PATH_INFO'] = req.subprocess_env['SCRIPT_URL'] to req.subprocess_env['PATH_INFO'] = '/var/clients/ client75/web285/web/' --------Now i was getting invalid request error Then i modified some lines in modpythonhandler.py (as told by massimo in a similar post) given below if 'SCRIPT_NAME' in options: # Override SCRIPT_NAME and PATH_INFO if requested. env['SCRIPT_NAME'] = options['SCRIPT_NAME'] env['PATH_INFO'] = req.uri[len(options['SCRIPT_NAME']):] to if 'SCRIPT_NAME' in options: # Override SCRIPT_NAME and PATH_INFO if requested. env['SCRIPT_NAME'] = options['SCRIPT_NAME'] req.uri = env['SCRIPT_NAME'] env['PATH_INFO'] = req.uri[len(options['SCRIPT_NAME']):] m still getting the invalid request error Web2py Version 1.97.1 , Apache/2.2.3 (CentOS) Can ny1 pls tell me where m gng wrong? Is it a permission problem ? Any help would be greatly appreciated