login community faq

I am trying to configure webfaction to run a second app in a subdirectory, like so:

/ -> djangoapp

/nodeapp -> nodeapp

but the /nodeapp is not routing as I expected.

When the django app is running it intercepts the rout and issues a 404. When I stop apache I get a 500 error.

the node app is configured as a custom app (listening to port)

I have started the node server on the correct port assigned to the app. I can confirm that it is working by running

lynx localhost:$PORT

But I have not found any way to access the address externally

The node app is listening on http://0.0.0.0:$PORT

Any ideas what I an doing wrong?

asked Apr 27 '12 at 15:08

jisaacstone's gravatar image

jisaacstone
1


Most ports are blocked externally on our server via our firewall. Generally, a custom application is configured to redirect traffic to your domain to the application which it is assigned to, and in this case the Custom Application (listening on port) application would deliver all of the traffic to your node application. This is routing is explained here. The most common issue related is that the website record is configured incorrectly (for example, an application being mounted to the website record on the wrong URL path).

However, in some other cases (such as websockets) you do want a direct connection to the port externally rather than going through the front-end Nginx server on port 80. In these cases, we can provide a free IP address on your server which is used for open ports - just open a ticket and ask for an open-ports IP address, and tell us which port(s) you need open. Note that you will need a custom application (listening on port) for each opened port, and this "open ports" IP address will be shared with other users on the machine who also have other ports open.

answered Apr 27 '12 at 20:23

ryans's gravatar image

ryans ♦♦
28411420

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

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