| Issue 1136: | Support for apache/mod_wsgi | |
| 7 people starred this issue and may be notified of changes. | Back to list |
This was required to get review-board running with mod_wsgi under apache
reviewboard.wsgi::
#!/usr/bin/env python
import os, sys
sys.path.insert(0, "path/to/conf")
os.environ["DJANGO_SETTINGS_MODULE"] = "reviewboard.settings"
os.environ["PYTHON_EGG_CACHE"] = "path/to/egg_cache"
import django.core.handlers.wsgi
_application = django.core.handlers.wsgi.WSGIHandler()
def application(environ, start_response):
environ['PATH_INFO'] = environ['SCRIPT_NAME'] + environ['PATH_INFO']
return _application(environ, start_response)
Comment
1
by
plaes...@gmail.com,
May 29, 2009
,
Aug 5, 2009
(No comment was entered for this change.)
Status: Confirmed
Labels: Milestone-Release1.1 Component-Deployment
,
Aug 6, 2009
That WSGI script file is only correct if using Django < 1.0 and the application is mounted at a sub URL and the urls.py is setup in a specific way. If the application is mounted at the root of the site, it would be done differently and you wouldn't need the fiddles at all if using Django 1.0 or later. Thus, you are going to need a lot of qualifications on this if you are going to promote it as the deployment method.
,
Dec 20, 2009
(No comment was entered for this change.)
Labels: Milestone-Release1.5
,
Jun 13, 2010
Fixed in 9fe599c. Thanks!
Status: Fixed
,
Sep 28, 2010
For the record, I think the revisions this was fixed in really were http://github.com/reviewboard/reviewboard/commit/e4aa4ff94fef7745fc1e137575e9ebe6b61fa88d http://github.com/reviewboard/reviewboard/commit/c4355f102f7a5766f45c54245670a0009df8f660 |
|
| ► Sign in to add a comment |