I have an Ubuntu 14.04 x86 droplet on DigitalOcean with Apache 2.4.7 (the default from Ubuntu repositories). Also, I have a Node.js app running on port 3000, and want to map /node* path on root to /* the Node.js server (using Express).
What I tried:
- Enabled
mod_proxywitha2enmod proxy. - Modify
/etc/apache2/sites-available/000-default.confand added a line withProxyPass /node http://localhost:3000/to the end ofVirtualHost.
What I get:
/nodeproxied tohttp://localhost:3000/./node/helpproxied tohttp://localhost:3000/(which is not right).
Are there any other modifications I should do in order to do that? Thanks in advance!