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 Apache running on a public-facing Debian server, and am a bit worried
I used Passenger to deploy a RoR app to a sub URI on my
I have a public facing web page in .Net that I would like to
I am working on a basic app that has a public facing form (for
After an IISRESET on my public facing webserver, the initialization of my app seems
I have a public facing website that has been receiving a number of SQL
How can I find the public facing IP for my net work in Python?
I'm starting a project that will be public facing using asp.net mvc. I know
I'm working with a client to plan the topology for a public facing SharePoint

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.