OK, so we have done this before but now cannot figure out how we did this. 
 Here's the setup.

Our system is Ubuntu 12.04.02 32-Bit
Installed application versions:
ReviewBoard 1.6.15
mysql  Ver 14.14 Distrib 5.5.29
Apache2 http 2.2

We have one host we use to serve up review Board sites through apache2. 
 Each Review Board site has its own database, users and repository.

For example the two site we would like served up would be :
   http://tpareviewboard01/petro1/
   http://tpareviewboard01/petro2/

We ran the following to create each site:
rb-site install --debug --domain-name=tpareviewboard01.verifone.com
 --site-root=/petro1/ --db-type=mysql --db-name=petro1 \
    --db-host=localhost --db-user=root --db-pass=12345678
 --cache-type=memcached --web-server-type=apache --python-loader=wsgi \
    --admin-user=admin --admin-password=12345678
 --admin-email=ad...@verifone.com  /var/www/petro1

rb-site install --debug --domain-name=tpareviewboard01.verifone.com
 --site-root=/petro2/ --db-type=mysql --db-name=petro2 \
    --db-host=localhost --db-user=root --db-pass=12345678
 --cache-type=memcached --web-server-type=apache --python-loader=wsgi \
    --admin-user=admin --admin-password=12345678
 --admin-email=ad...@verifone.com  /var/www/petro2

We changed owners on the required directories after each site creation and 
copied the configuration files to apache2 configuration:
  cp /var/www/petro1/conf/apache-wsgi.conf 
/etc/apache2/sites-available/petro1.conf
  cp /var/www/petro2/conf/apache-wsgi.conf 
/etc/apache2/sites-available/petro2.conf

Here are the content of the configuration files for apache:
 /etc/apache2/sites-available/petro1.conf:
<VirtualHost *:80>
ServerName tpareqviewboard01.verifone.com
DocumentRoot "/var/www/petro1/htdocs"

# Error handlers
ErrorDocument 500 /errordocs/500.html

WSGIPassAuthorization On
WSGIScriptAlias "/petro1" "/var/www/petro1/htdocs/reviewboard.wsgi/petro1"

<Directory "/var/www/petro1/htdocs">
AllowOverride All
Options -Indexes FollowSymLinks
Allow from all
</Directory>

# Alias static media requests to filesystem
Alias /petro1/media "/var/www/petro1/htdocs/media"
Alias /petro1/errordocs "/var/www/petro1/htdocs/errordocs"
Alias /petro1/favicon.ico 
"/var/www/petro1/htdocs/media/rbcommons/images/favicon.png"
</VirtualHost>

 /etc/apache2/sites-available/petro1.conf:
<VirtualHost *:80>
ServerName tpareqviewboard01.verifone.com
DocumentRoot "/var/www/petro2/htdocs"

# Error handlers
ErrorDocument 500 /errordocs/500.html

WSGIPassAuthorization On
WSGIScriptAlias "/petro2" "/var/www/petro2/htdocs/reviewboard.wsgi/petro2"

<Directory "/var/www/petro2/htdocs">
AllowOverride All
Options -Indexes FollowSymLinks
Allow from all
</Directory>

# Alias static media requests to filesystem
Alias /petro2/media "/var/www/petro2/htdocs/media"
Alias /petro2/errordocs "/var/www/petro2/htdocs/errordocs"
Alias /petro2/favicon.ico 
"/var/www/petro2/htdocs/media/rbcommons/images/favicon.png"
</VirtualHost>

And created the symbolic links in  /etc/apache2/sites-enabled

After restarting the apache server we get the following behavior when 
trying to access the reviewboard sites through a browser

Access to http://tpareviewboard01/petro1/ works
Access to http://tpareviewboard01/petro2/ shows "URL Not found.  The 
requested URL /petro2/ was not found on this server."

Each site, if they are the only configuration in the sites-enabled 
directory, works flawlessly.

We have searched for possible solutions to this problem and have not been 
able to resolve it with any suggestions found on other threads or web sites.

Any help would be much appreciated. Thanks, Sassan

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to