Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6749441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:41:26+00:00 2026-05-26T12:41:26+00:00

I’m working on setting up a pair of redmine instances on a single server

  • 0

I’m working on setting up a pair of redmine instances on a single server under apache.

The first worked fine and I have a virtualhost set up for it with the following vhost config:

<VirtualHost *:80>                                                                                        
  ServerName tickets.domain.com                                                                      
  DocumentRoot /var/www/redmine                                                                           
  RailsEnv production                                                                                     
  RailsBaseURI /                                                                                          
  PassengerResolveSymlinksInDocumentRoot on                                                               
</VirtualHost>  

The second I needed to setup as a subdirectory off of the main default site:

Alias /ops/ "/var/www/ops/"                                                                           
<Directory "/var/www/ops/">                                                                           
    RailsEnv ops                                                                                      
    RailsBaseURI /ops                                                                                 
    PassengerResolveSymlinksInDocumentRoot on                                                         
</Directory> 

So server/ops is the url for the second instance.

The trouble I’m having is that when I restart apache, whichever url you hit first seems to “win” and it breaks the other instance of the site. If I hit the /ops url then it loads just fine, but going to tickets. will cause me to get permission denied errors because all of the urls have /ops in them (for the JS and other files)

If I restart apache and hit the tickets. site first, it loads just fine but then I get 404 errors from Redmine on the /ops url.

This is on Ubuntu with a redmine PPA and both /var/www/ops and /var/www/redmine are symlinks to the shared redmine source code with their own environments defined (production and ops).

Any hints on how I can make these two live side by side successfully?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T12:41:26+00:00Added an answer on May 26, 2026 at 12:41 pm

    this is my apache configuration hosting multiple redmine instances (domain.tld/dev1, domain.tld/dev2, …).

    You also have to change :key and :session_path in config/initializers/session_store.rb of each redmine setup.

    <IfModule mod_ssl.c>
            <VirtualHost _default_:443>
              Servername domain.tld
              ServerAdmin webmaster@domain.tld
              DefaultInitEnv RAILS_ENV production
              DefaultInitEnv GEM_PATH /var/lib/gems/1.8
              DocumentRoot /var/www/default-ssl
              <Directory /var/www/default-ssl>
                AuthType Basic
                AuthName "secure section"
                AuthUserFile /etc/apache2/htpasswd
                Require valid-user
                Options +FollowSymLinks +ExecCGI
                RewriteEngine On
                RewriteRule ^$ index.html [QSA]
                RewriteRule ^([^.]+)$ $1.html [QSA]
                RewriteCond %{REQUEST_FILENAME} !-f
                RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
                ErrorDocument 500 "Application error Rails application failed to start properly"
                AllowOverride None
                Order allow,deny
                allow from all
              </Directory>
    
              LogLevel warn
              ErrorLog /ssl_error.log
              CustomLog /ssl_access.log combined
              ServerSignature Off
              SSLEngine on
              SSLCertificateFile    /etc/ssl/certs/domain.tld.crt
              SSLCertificateKeyFile /etc/ssl/private/domain.tld.key
              SSLCACertificateFile  /etc/ssl/certs/domain.tld.ca
    
              <FilesMatch "\.(cgi|shtml|phtml|php)$">
                SSLOptions +StdEnvVars
              </FilesMatch>
              BrowserMatch "MSIE [2-6]" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
              BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
    
              Alias /dev1 /var/www/default-ssl/dev1/public
              <Directory /var/www/default-ssl/dev1/public>
                PassengerAppRoot /var/www/default-ssl/dev1
                RailsBaseURI /dev1
                Require user user1 user2
              </Directory>
    
              Alias /dev2 /var/www/default-ssl/dev2/public
              <Directory /var/www/default-ssl/dev2/public>
                PassengerAppRoot /var/www/default-ssl/dev2
                RailsBaseURI /dev2
                Require user user1
              </Directory>
    
              ...
    
            </VirtualHost>
            </IfModule>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.