5

i have a website running on, let's say, example.com that uses apache. i'm writing an app in node.js that i would like to be accessed through example.com/app, and have my node.js server think that example.com/app is / and example.com/app/users is /users. i tried to do this via ProxyPass using some tutorial i found online, but that doesn't quite give me exactly what i'm looking for (unless i don't have it set up right).

here's the ProxyPass I'm using:

ProxyPass /app/ http://127.0.0.1:3000/
ProxyPassReverse /app/ http://127.0.0.1:3000/

but when I go to example.com/app/users my node server thinks that i'm trying to access //users which obviously throws a 404. any help would be appreciated. thanks.

Paul Sweatte
  • 24,148
  • 7
  • 127
  • 265
gr3co
  • 893
  • 1
  • 7
  • 15
  • possible duplicate of [How to use vhosts alongside node-http-proxy?](http://stackoverflow.com/questions/9368794/how-to-use-vhosts-alongside-node-http-proxy) – Paul Sweatte Jun 30 '14 at 21:38

0 Answers0