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
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
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.
> --
> You received this message because you are subscribed to the Google Groups
> "Phusion Passenger Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to phusion-passen...@googlegroups.com.
> To post to this group, send email to phusion-...@googlegroups.com.
> Visit this group at
> http://groups.google.com/group/phusion-passenger?hl=en-US.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--
Phusion | Ruby & Rails deployment, scaling and tuning solutions

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)
Reply all
Reply to author
Forward
0 new messages