Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am working with node.js and I am trying to figure out a way to have a rather different server configuration.

I would like to have three "apps" run.

  • index
  • app1
  • app2

Index can run on port 80, and would assume the root domain name domain.com.

I want app1 and app2 to appear domain.com/app1 and domain.com/app2 respectively.

I was thinking it might be possible for app1 and app2 to run on different ports (e.g. 81, 82) and somehow mask domain.com/app1 over domain.com:81.

Is there anyway to do this configuration?

Full disclosure, I added this question (worded very differently) to stackoveflow and I've been told that the sub-domain route is the easiest, and I understand, but I would really like to try to get this working.

share|improve this question

1 Answer 1

HAPROXY was my solution. Its really great at doing exactly what I need.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.