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 3876908
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T22:26:11+00:00 2026-05-19T22:26:11+00:00

I am trying different ways of deploying Rails app (redmine, to be specific) with

  • 0

I am trying different ways of deploying Rails app (redmine, to be specific) with nginx and Passenger. Let’s say that I have it installed in /var/local/railapps/redmine-1.1.

When I deploy as sub-uri, I can make the soft link just to public folder:

sudo ln -s /var/local/railapps/redmine-1.1/public /var/www/rails/redmine

and add to server block in nginx.conf:

root /var/www/rails;
passenger_enabled on;
passenger_base_uri /redmine;

With this, redmine can access folders on the same level as public, for example, /var/local/railapps/redmine-1.1/config.

On the other hand, Passenger does not resolve soft links when it is installed to a host root (according to this guide):

sudo ln -s /var/local/railapps/redmine-1.1/public /var/www/rails/redmine

root /var/www/rails/redmine;
passenger_enabled on;

I am getting the error from Passenger: No such file or directory - config/environment.rb in root /var/www/rails, which means that it tries to get relative paths not from the link target, but from the link itself. If I make the link to the main redmine folder, the whole thing works:

sudo ln -s /var/local/railapps/redmine-1.1 /var/www/rails/redmine

root /var/www/rails/redmine/public;
passenger_enabled on;

So, the question is, why is Passenger able to resolve softlinks in “sub-uri” mode, but is not in “host root” mode? Are there some additional settings?

  • 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-19T22:26:11+00:00Added an answer on May 19, 2026 at 10:26 pm

    It does not do that in “host root mode” in order to support Capistrano-style deployment directories. This is documented in detail in this section of the documentation of the Apache version. The Apache version allows customizing the symlink resolving behavior (for backward compatibility reasons), while the Nginx version only supports one type of behavior.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an app, and I'd need custom UITableViewCells, I've been trying different ways,
I have been trying out some different ways to organize my code in my
I've been trying this a few different ways, but I'm reaching the conclusion that
I'm trying to fetch some HTML from various blogs and have noticed that different
I've been trying a few different ways to filter finding of specific nodes within
I've been messing around with this for hours trying different ways of ordering by
just a quick question, was trying different ways to accomplish this, but ended with
I have been trying different things and still have been able to get exactly
I'm trying to find information on different ways to traverse an object tree in
I am trying to make a loop that loops through all different integers where

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.