What is the base url returned by a rails app deployed to a sub uri with passenger_base_uri?
172 views
Skip to first unread message
emc_lab
unread,
May 16, 2013, 6:48:12 PM5/16/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to phusion-...@googlegroups.com
We are kind of puzzled by the base url on our rails 3.2.12 app deployed to sub uri 'nbhy' with passenger and nginx. We following the instruction http://www.modrails.com/documentation/Users%20guide%20Nginx.html#deploying_rack_to_sub_uri. This is the 2nd rails app deployed to a ubuntu 12.04 server and the first rails app is running fine. However we notice that for 2nd rails app the base uri nbhy is carried over to next url and sometimes it is not and this behavior drives us crazy. What's the base url the rails app constantly returns?
thanks. -emclab
Hongli Lai
unread,
May 23, 2013, 10:51:25 AM5/23/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to phusion-passenger
Are those two apps the same app, just running under a different base
URI? If so you also need to specify a different passenger_app_group
for each app, otherwise Phusion Passenger thinks they're the same app
and will run map both URIs to the same set of processes, but a Rails
app can only have 1 base URI which is fixed at startup.