Proxy_pass Cannot GET

nginx is working, but, when doing proxy_pass, gives me: Cannot GET
/nodejs

here are the lines I’ve added to nginx.conf

ProxyPass nodejs localhost:2345
ProxyPassReverse nodejs localhost:2345

2345 is where my node server is listening

I’m pointing chrome browser here:
http://localhost/nodejs

any ideas to fix it? web.js here is my node server:
http://plnkr.co/edit/ZdQqulPp4ovZqR9zikYm?p=preview

with apache ProxyPass[Reverse] this was working, but I’m trying nginx to
see
performance gains

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,244100,244100#msg-244100

On 25 Oct 2013 10:47, “youreright” [email protected] wrote:

nginx is working, but, when doing proxy_pass, gives me: Cannot GET /nodejs

here are the lines I’ve added to nginx.conf

ProxyPass nodejs localhost:2345
ProxyPassReverse nodejs localhost:2345

You need to read the documentation, as those aren’t valid nginx config
statements.

http://nginx.org/r/proxy_pass

J

sorry, copy/paste error: I have this:

#proxy_pass http://localhost:2345/;
#proxy_pass_reverse http://localhost:2345/;

location /nodejs {
proxy_pass http://localhost:2345/;
proxy_pass_reverse http://localhost:2345/;
}

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,244100,244102#msg-244102

Nevermind, solved. I was looking at my httpd.conf instead of nginx.conf
and
then was able to fix from there.

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,244100,244103#msg-244103

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs