I'm trying to run an instance of apache2 on an ubuntu server with two virtual hosts. One for redmine(phusion passenger), and one for ReviewBoard(mod_wsgi). I haven't created a single server configuration that will allow both of them to be available, and there are some curious things happening.
I am trying to get www.domain.com/redmine and www.domain.com/reviews. Depending on the initialization order of the two sites when I run
sudo service apache2 restart depends on which site I am able to get to. For instance if I have in apache2.conf:
Include sites-enabled/reviews Include sites-enabled/redmine
www.domain.com/reviews will be where I can get, but if they are reversed I can get to
The configurations in sites-enabled look like:
#sites-enabled/redmine <VirtualHost *:80> ServerName redmine.ts.com # !!! Be sure to point DocumentRoot to 'public'! DocumentRoot /var/www/tracking <Directory /var/www/tracking/redmine> Order allow,deny Allow from all Options -MultiViews FollowSymLinks Indexes PassengerResolveSymlinksInDocumentRoot on RailsBaseURI /redmine </Directory> </VirtualHost> #sites-enabled/reviews <VirtualHost *:80> ServerName reviews.ts.com DocumentRoot /var/www/reviews/htdocs # Error handlers ErrorDocument 500 /errordocs/500.html WSGIPassAuthorization On WSGIScriptAlias "/reviews" "/var/www/reviews/htdocs/reviewboard.wsgi/reviews" <Directory /var/www/reviews/htdocs> AllowOverride All Options -Indexes FollowSymLinks Allow from all </Directory> # Alias static media requests to filesystem Alias /reviews/media "/var/www/reviews/htdocs/media" Alias /reviews/errordocs "/var/www/reviews/htdocs/errordocs" Alias /reviews/favicon.ico "/var/www/reviews/htdocs/media/rbcommons/images/favicon.png" </VirtualHost>
Does anyone know why these two sites are hosing the other dependent on which is initialized first? This is very frustrating