Sub-domain setup for Redmine & mod_passenger

As someone who doesn’t use rail/mod_passenger much, I had issues getting redmine setup with mod_passenger as a sub-domain. ie.

Finally got it going - here is my working config

Important things are:

  • Make sure DocumentRoot points to the public folder in redmine
  • Set RailsBaseURI to /

refer example vhost file below


<VirtualHost *:80>
  # Admin email, Server Name (domain name) and any aliases
  DocumentRoot /usr/share/redmine/public
  # Custom log file locations
  LogLevel warn
  ErrorLog  /home/you/public_html/
  CustomLog /home/you/public_html/ combined
  RailsEnv production
  RailsBaseURI /
  PassengerDefaultUser www-data
  <Directory  /usr/share/redmine/public>
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Allow from all

Justin Kelly

Justin Kelly

Data Engineeer, Business Analytics, Web Developer, Library Technology specialising in PHP and Tableau

Based in Melbourne, Australia

Feel free to contact me or _justin_kelly