Passenger+nginx: Hosting a Rails application in a subdirectory -


I try to apply an application in the www under a subdirectory / a Myserver.com , follow the steps given in the passenger docks here:

It starts working, but the rail route is now all the additional subdirectory / a , As if trying to reach root www.myserver.com/a gives me a routing error I tried setting relative_url_root is, But nothing changes from this. Do I have to add the prefix / a to each route in my root file?

hmmm ... all worked well for me just trying to do it

Are you sure that you followed the Nginx instructions instead of the Apache instructions?

Make sure you do soft links and change the 'root' application ... the instructions say that it makes the full path minus 'public' part:

Http {...

  server {listen 80; Server_name g.local; Root / house / burney / development / testing; & Lt; - I forgot to change it for the first time on passenger_enabled; Passenger_base_uri / Rail; } ...  

}

Here is an image of the end result ... no road modifications are required:

Here are the Nginx instructions:


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -