I have several Node applications (build on Express).
Now I put them like this:
/var/www/app1/var/www/app2/var/www/app3
Now I want to run these 3 applications on the same port (say, 8080). Is it possible?
It should be noted that each application has such common routes as these -
app.get('/', func...);app.get('/about', func...);app.post('/foo', func...);app.post('/bar', func...);
I basically want to do this, as you can do with installing Apache / PHP.
So, when you have the LAMP stack,
/var/www/app1/var/www/app2/var/www/app3
You can easily access them in the form of different applications -
localhost/app1localhost/app2localhost/app3
user1437328 Jun 27 '12 at 12:16 2012-06-27 12:16
source share