I've installed RB twice, in 2 separate subdirectories, each using a 
separate run of rb-site.  One is in /local/reviews, and a test/debug one is 
in /local/reviews-test.  I have set up an Apache config. to set up each of 
these as separate sub-URLs on the same server (no virtual servers).

I am finding that I can get into one OK, but when I try to get into the 
other, it gives errors trying to access the other!  I can see nothing in 
the DB or settings in either that refer to the other.  An example error I 
get when accessing the main one (/reviews/) is:

Page not found (404)  Request Method: GET  Request URL: 
http://localhost/reviews/dashboard/  
 
Using the URLconf defined in djblets.util.rooturl, Django tried these URL 
patterns, in this order: 

   1. ^reviews-test/ 

The current URL, reviews/dashboard/, didn't match any of these.
 
You're seeing this error because you have DEBUG = True in your Django 
settings file. Change that to False, and Django will display a standard 404 
page. 
Where did the ref. to /reviews-test/ come from?  I had been getting it the 
other way around (reviews-test failed accessing reviews) until I restarted 
httpd, and could log into the test one.  But now the main one fails.

Here's the config:

# RB access itself
WSGIScriptAlias "/reviews" "/local/reviews/htdocs/reviewboard.wsgi/reviews"

<Directory /local/reviews/htdocs>
    # Error handlers
    ErrorDocument 500 /errordocs/500.html

    WSGIPassAuthorization On

    AllowOverride All
    Options -Indexes FollowSymLinks
    Allow from all
</Directory>

# Alias static media requests to filesystem
Alias /reviews/media "/local/reviews/htdocs/media"
Alias /reviews/errordocs "/local/reviews/htdocs/errordocs"
Alias /reviews/favicon.ico 
"/local/reviews/htdocs/media/rbcommons/images/favicon.png"


# TEST
# RB access itself
WSGIScriptAlias "/reviews-test" 
"/local/reviews-test/htdocs/reviewboard.wsgi/reviews-test"
## NB - I guessed at the argument above also including '-test', that may be 
wrong to do

<Directory /local/reviews-test/htdocs>
    # Error handlers
    ErrorDocument 500 /errordocs/500.html

    WSGIPassAuthorization On

    AllowOverride All
    Options -Indexes FollowSymLinks
    Allow from all
</Directory>

# Alias static media requests to filesystem
Alias /reviews-test/media "/local/reviews-test/htdocs/media"
Alias /reviews-test/errordocs "/local/reviews-test/htdocs/errordocs"
Alias /reviews-test/favicon.ico 
"/local/reviews-test/htdocs/media/rbcommons/images/favicon.png"

I had to fiddle with the script-generated one to get it to work outside of 
a virtual server setting.

And the site settings for the main one:

# Site-specific configuration settings for Review Board
# Definitions of these settings can be found at
# http://docs.djangoproject.com/en/dev/ref/settings/

# Database configuration
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'reviewboard',
        'USER': 'review_board_user',
        'PASSWORD': 'xxx',
        'HOST': 'localhost',
        'PORT': '',
    },
}

# Unique secret key. Don't share this with anybody.
SECRET_KEY = 'xxx'

# Cache backend settings.
CACHE_BACKEND = 'memcached://localhost:11211/'

# Extra site information.
SITE_ID = 1
SITE_ROOT = '/reviews/'
FORCE_SCRIPT_NAME = ''
DEBUG = True

The test settings have equiv. values, with a diff. NAME (d/b name) value.

Full disclosure:  I originally had the test one installed in 
/local/reviews-test but using the reviews d/b and /reviews/ path, and have 
moved it (renamed the d/b) while updating the d/b and Apache settings.  I 
then created the 'main' one in /local/reviews/ using the right values.

-- 
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


Reply via email to