I have a server behind the corporate firewall with only port 80 open. Is there any way to run Apache and Node.js separately on the same domain, but different urls? For example, can I run Apache on mydamain.com and Node on mydomain.com/vcard?
|
| ||||
|
feedback
|
|
You can. You have 3 possible setups:
Given that Apache is your corporate server, the second way is the safest. Read the documentation on Apache mod_proxy module (http://httpd.apache.org/docs/2.1/mod/mod_proxy.html) on how to do so. You can have either a separate "folder" for Node (e.g. all requests to http://yourcompany.com/node/blabla are served by node while all other requests are served by Apache, or you can have a separate virtual host for Node. | |||
|
feedback
|