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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:29:24+00:00 2026-06-17T06:29:24+00:00

I followed these instructions to deploy my rails app to a suburi: http://www.modrails.com/documentation/Users%20guide%20Apache.html#deploying_rails_to_sub_uri On

  • 0

I followed these instructions to deploy my rails app to a suburi:

http://www.modrails.com/documentation/Users%20guide%20Apache.html#deploying_rails_to_sub_uri

On Dec. 23 my application was deployed under a suburi and working fine. When I tried it on dec. 26 I noticed that url helpers like stylesheet_link_tag were no longer using the RackBaseURI. So instead of requesting //myapp.com/suburi/app/assets/application.css my browser was requesting //myapp.com/assets/application.css Of course that’s a 404. I looked at all my logs from both the app and apache, and didn’t see anything suspicious.

Restarting apache made the suburi suddenly start working again.

Here is my vhost.conf https://gist.github.com/4382822

Anyone have any ideas what I might be doing wrong?

  • 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-06-17T06:29:26+00:00Added an answer on June 17, 2026 at 6:29 am

    So I finally figured this out. The problem was that if you have a passenger app set to use a sub-uri like http://local-webservice.localhost/sub/uri/route, but the first request after restart hits the app via the root like http://local-webservice.localhost/route then passenger will essentially throw away your sub-uri configuration until you restart the app.

    The solution to this was given to me in the passenger google group, but i’m including it here in the hopes it helps somebody else. Here is the answer i got there:

    This is due to the way Phusion Passenger currently uniquely identifies
    applications. It currently does so only through the application root.
    Suppose you have /webapps/foo deployed on foo.com, bar.com and
    baz.com/suburi. Phusion Passenger will recognize them all as being the
    same application, just under different domains and sub-URIs.

    This is something we want to fix in future versions. But for now, to
    make it work as you expect, set a different PassengerAppGroupName for
    your sub-URI deployment. For example:

    <Location /suburi/app> 
      PassengerAppGroupName suburi_app 
    </Location> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing simple CUDA app. I followed steps given on http://www.ademiller.com/blogs/tech/2010/10/visual-studio-2010-adding-intellisense-support-for-cuda-c/ but still there
I mostly followed these instructions to get things spun up: http://lindsaar.net/2010/5/9/Getting-Rails-3-Edge-with-jQuery-RSpec-and-Cucumber-using-RVM If I create
I followed these instructions: http://proteus-tech.com/blog/cwt/install-pil-in-snow-leopard/ And everything went as described. However, at the end,
I followed these instructions here: http://w3schools.com/razor/razor_example.asp NOTE: I'm using Web Matrix The example said
I have problem with uploading files. I followed these instructions: http://symfony.com/doc/current/cookbook/doctrine/file_uploads.html and everything is
I followed these instructions here: http://logback.qos.ch/consolePlugin.html I have the correct and found logback.xml, it
I am new at android. I followed tutorials from http://www.youtube.com/watch?v=1JyC_xv20yE There is no error
I've followed these instructions in Amazon's AWS Documentation to forward a new domain name
I have followed these instructions: https://developers.google.com/console/help/#generatingdevkeys/ . I registered the freebase service and added
Documentation on MD5 in HSQLDB is somewhat scarce, but I have followed these instructions

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.