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.

What'd I'd like to do is have a node.js program be hosted in public_html/<appname> and be accessible by heading to domainname.com:80/appname - the server is Ubuntu 10.04, I'm using Apache as my HTTP server. Is it even possible?

share|improve this question

1 Answer 1

up vote 5 down vote accepted

What you probably need is mod_proxy and ProxyPass for Apache.

Run Apache on port 80, and use the <Location> config in Apache to pass the query along to Node.js which would be on another port e.g. 8080.

<Location /<appname>/>
    ProxyPass http://nodejsip:8080/
</Location>
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.