login community faq

I need to setup test environment for rails application in nginx. It could be done in two ways 1. open a port 8000 and run the application on this 2. setup subdomain for test environment.

I tried first way by adding this line in nginx.conf server { listen 5000; server_name test.mydomain.com; root /home/brcweb/webapps/passenger/project/mydomain/public; passenger_enabled on; }

but it doesn't work. I need help to setup my test environment.

asked Sep 15 '12 at 16:00

ranjan's gravatar image

ranjan
1


You need to assign a port using a 'custom app listening on port' application or use an SSH tunnel to directly connect.

answered Sep 15 '12 at 18:04

johns's gravatar image

johns ♦♦
340427

Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×127
×25
×11

Asked: Sep 15 '12 at 16:00

Seen: 377 times

Last updated: Sep 15 '12 at 18:04

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited