Hi, I used apache2 + mod_wsgi + reviewboard 1.0.8 and got "page not found" error.
The error message when accessing http://my-host/reviews/: ------------------------------------------------------------------------------------------------------------- Request Method: GET Request URL: http://my-host/ Using the URLconf defined in djblets.util.rooturl, Django tried these URL patterns, in this order: 1. ^reviews/ The current URL, , didn't match any of these. ------------------------------------------------------------------------------------------------------------- Here are my settings. /home/www/reviews/conf/settings_local.py: ------------------------------------------------------------------------------------------------------------- # Database configuration DATABASE_ENGINE = 'sqlite3' DATABASE_NAME = '/home/www/reviews/db/reviewboard.db' # Unique secret key. Don't share this with anybody. SECRET_KEY = 'xfz0q=%#febniyl-c+1v*(kwiu0r!xnhnodc-5)cn41#sb7kdr' # Cache backend settings. CACHE_BACKEND = 'file:///tmp/reviewboard_cache' # Extra site information. SITE_ID = 1 SITE_ROOT = '/reviews/' FORCE_SCRIPT_NAME = '' DEBUG = True ------------------------------------------------------------------------------------------------------------- apache conf: ------------------------------------------------------------------------------------------------------------- WSGIPythonHome /home/www/pythonenv/empty # a virtualenv without any package. WSGIDaemonProcess site-1 processes=2 threads=10 display-name=%{GROUP} WSGIProcessGroup site-1 WSGIScriptAlias /reviews /home/www/wsgi/reviews.wsgi <Location "/reviews/media"> SetHandler None </Location> <Location "/reviews/errordocs"> SetHandler None </Location> Alias /reviews/media /home/www/reviews/htdocs/media/ Alias /reviews/errordocs /home/www/pythonenv/reviews/lib/python2.5/ site-packages/reviewboard/htdocs/errordocs/ ------------------------------------------------------------------------------------------------------------- /home/www/wsgi/reviews.wsgi ------------------------------------------------------------------------------------------------------------- import os import sys import site sys.path.insert(0, '/home/www/reviews/conf') site.addsitedir('/home/www/pythonenv/reviews/lib/python2.5/site- packages') # the virtualenv that has reviewboard os.environ['DJANGO_SETTINGS_MODULE'] = 'reviewboard.settings' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler() ------------------------------------------------------------------------------------------------------------- If I modify the codes of djblets/util/rooturl.py: change line 40: (r'^%s' % settings.SITE_ROOT[1:], include(settings.SITE_ROOT_URLCONF)) to: (r'', include(settings.SITE_ROOT_URLCONF)) Then I can view the homepage by accessing http://my-host/reviews/, but all links in that page are incorrect. They miss the "/reviews/" path. Thanks. chlo -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~----------~----~----~----~------~----~------~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en