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

  • Home
  • SEARCH
  • 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 3876864
In Process

The Archive Base Latest Questions

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

On my public-facing Apache2 server access to my Rails 3 app is via a

  • 0

On my public-facing Apache2 server access to my Rails 3 app is via a sub-URI, like

https://www.myserver.com/myapp/controller...

that server is configured for reverse proxy to another Apache2 server hosting the Rails app via Passenger:

http://intranet.server.com/myapp

In my VirtualHost settings for the intranet server I have

SetEnv RAILS_RELATIVE_URL_ROOT "/myapp"

In my config/environments/production.rb file I uncommented the line

config.log_level = :debug

This way, the very first executing method in my app issues:

logger.debug { "The environment variable RAILS_RELATIVE_URL_ROOT is presently #{ENV['RAILS_RELATIVE_URL_ROOT']}" }

and sure enough, in the production log file you see:

The environment variable RAILS_RELATIVE_URL_ROOT is presently /myapp

However, the next line in the log is, which is obviously what the browser goes to:

Redirected to https://www.myserver.com/controller/action

I learned about this environment variable here on Stackoverflow, so that’s one person for whom it worked, but one other person chimed it didn’t to which another said it did. So with my experience, we’re now at a tie. Am I missing something?

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

    I figured out my error. The reverse proxy settings on the external server referenced just the hostname of the internal server and left off the path to my RoR3 app.

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

Sidebar

Related Questions

We have a site that is public facing, let's say it's http://www.example.com . When
I have a public facing web page in .Net that I would like to
We're creating a new consumer/public-facing ASP.Net web app. There are two concerns: --Use cookie
My base controller class, BaseController , is inherited by public-facing controllers to access a
I used Passenger to deploy a RoR app to a sub URI on my
We have 2 public facing internet servers in our company. (serverA.mycompany.com & serverB.myCompany.com) We
I have two apps in my Django project: a public-facing app, and a management
On our public facing web server we have an administration area for our website
Why would you not use https on your public facing website? For SEO purposes?
I have a public facing app that is based on Postgres and PostGIS. I

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.