Virtualhost setup for Ruby on Rails application (mod passenger)

438

Point DocumentRoot at your Redmine public directory, and RailsBaseURI to point at /.

Here's an example from my working Ubuntu server:

<VirtualHost *:80>
  ServerName redmine.int.example.com
  ServerAlias redmine
  DocumentRoot /var/www/redmine/public

  RailsBaseURI /
  RailsEnv production

  PassengerMaxPoolSize 4

  <Directory /var/www/redmine/public>
    Options FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
  </Directory>

  LogLevel info
  ErrorLog /var/log/apache2/redmine-error.log
  CustomLog /var/log/apache2/redmine-access.log combined
</VirtualHost>
Share:
438
Betamakz
Author by

Betamakz

Updated on September 17, 2022

Comments

  • Betamakz
    Betamakz over 1 year

    I have made the app in the larger resolution for iPhone4, and when I test it in 3GS it works/looks fine, the app scales DOWN accordingly. But when I test app on iPhone 4 it appears for reason to scale it down and then back up again creating a pixelated look. This applies to vector assets and text within the flash project as well which is even weirder in my opinion. My SWF is 640x920px.

    • madmik3
      madmik3 over 13 years
      how are you running flash on an iPhone?
  • Ingo86
    Ingo86 over 14 years
    Yes, it's not working. Internal server errror.
  • Maxwell
    Maxwell over 14 years
    Could you tell what's the error report in your error.log?
  • Ingo86
    Ingo86 over 14 years
    I have other directory here: ip_addr/redmine ip_addr/docs With your suggestion how can I access my docs directory?
  • jtimberman
    jtimberman over 14 years
    redmine.int.example.com/projects/myproject/documents accesses the documents directory of the 'myproject' project.
  • Ingo86
    Ingo86 over 14 years
    How can i access my other directories with your setup? for example http :// lan_ip_add/ other_dir
  • jtimberman
    jtimberman over 14 years
    Is 'other_dir' another web application? You'd need to set up virtualhosts for them, or specify them with <Directory> directives.
  • danny
    danny over 13 years
    Hi, I have a wiki (php mediawiki base url /wiki ), and a django app (base url /) in the same virtual host, now we'd like to add redmine at /bugs - using passenger. Is it possible to set all of that up in the same virtualhost?
  • jtimberman
    jtimberman over 13 years
    Evgeny you should probably ask that as a new question :)
  • Betamakz
    Betamakz over 13 years
    Very useful information. I've been googling but cannot find any ETA in terms of when Adobe would launch an updated packager. Has anybody found/seen/heard any indication?