host both test and development for the same app

0 views
Skip to first unread message

Yi Wen

unread,
Jul 21, 2010, 10:52:29 AM7/21/10
to Phusion Passenger Discussions
Hi,

I use passenger with nginx. I have multiple apps and they talk to each
other. I configure the passenger to host these same apps in both test
and dev environments.

Now the problem is sometimes when I go to the dev environment on app1,
and the app1 talks to the app2, but it hit the app2's test url. If I
use mongrel no such problem. Does anybody here have the same issue and
can share how to avoid the behavior? Thank you

Donovan Bray

unread,
Jul 21, 2010, 11:19:14 AM7/21/10
to phusion-...@googlegroups.com
Are you relying on named virtual hosts in your nginx config? If you are; you need to make sure your client library is setting the correct host headers in the request.

> --
> You received this message because you are subscribed to the Google Groups "Phusion Passenger Discussions" group.
> To post to this group, send email to phusion-...@googlegroups.com.
> To unsubscribe from this group, send email to phusion-passen...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/phusion-passenger?hl=en.
>

Yi Wen

unread,
Jul 21, 2010, 1:03:14 PM7/21/10
to Phusion Passenger Discussions
No. I use different ports for different env

On Jul 21, 10:19 am, Donovan Bray <donno...@gmail.com> wrote:
> Are you relying on named virtual hosts in your nginx config? If you are; you need to make sure your client library is setting the correct host headers in the request.
>

Hongli Lai

unread,
Jul 23, 2010, 8:15:38 AM7/23/10
to phusion-...@googlegroups.com

Phusion Passenger uses the application root path to distinguish
between different apps. If you want the same app to be run under
different environments, you need to make a symlink to the app and have
the other environment's virtual host point to the symlink.

--
Phusion | The Computer Science Company

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)

Yi Wen

unread,
Jul 23, 2010, 5:31:12 PM7/23/10
to Phusion Passenger Discussions
OK, thanks, I will try

On Jul 23, 7:15 am, Hongli Lai <hon...@phusion.nl> wrote:
> On Wed, Jul 21, 2010 at 4:52 PM, Yi Wen <hayafi...@gmail.com> wrote:
> > Hi,
>
> > I use passenger with nginx. I have multiple apps and they talk to each
> > other. I configure the passenger to host these same apps in both test
> > and dev environments.
>
> > Now the problem is sometimes when I go to the dev environment on app1,
> > and the app1 talks to the app2, but it hit the app2's test url. If I
> > use mongrel no such problem. Does anybody here have the same issue and
> > can share how to avoid the behavior? Thank you
>
> Phusion Passenger uses the application root path to distinguish
> between different apps. If you want the same app to be run under
> different environments, you need to make a symlink to the app and have
> the other environment's virtual host point to the symlink.
>
> --
> Phusion | The Computer Science Company
>
> Web:http://www.phusion.nl/
> E-mail: i...@phusion.nl
Reply all
Reply to author
Forward
0 new messages