# Proxy\_pass Cannot GET

**URL:** <https://www.ruby-forum.com/t/proxy-pass-cannot-get/237119>\
**Category:** NGINX\
**Created:** [October 25, 2013, 11:47am UTC](https://www.ruby-forum.com/t/proxy-pass-cannot-get/237119 "2013-10-25T11:47:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [October 25, 2013, 11:47am UTC](https://www.ruby-forum.com/t/proxy-pass-cannot-get/237119/1 "2013-10-25T11:47:22Z")

</div>

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](http://localhost/nodejs)

any ideas to fix it? web.js here is my node server:

> **[Plunker - Untitled](https://plnkr.co/edit/ZdQqulPp4ovZqR9zikYm?p=preview)**
>
> Created on https://plnkr.co: Helping you build the web.

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

Posted at Nginx Forum:

> **[proxy\_pass Cannot GET](https://forum.nginx.org/read.php?2,244100,244100#msg-244100)**
>
> 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

---

<div class="post-metadata">

**Author:** ![youreright](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/b487fb/32.png) [@youreright](https://www.ruby-forum.com/u/youreright)\
**Post date:** [October 25, 2013, 11:52am UTC](https://www.ruby-forum.com/t/proxy-pass-cannot-get/237119/2 "2013-10-25T11:52:38Z")

</div>

On 25 Oct 2013 10:47, “youreright” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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](http://nginx.org/r/proxy_pass)

J

---

<div class="post-metadata">

**Author:** ![youreright](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/b487fb/32.png) [@youreright](https://www.ruby-forum.com/u/youreright)\
**Post date:** [October 25, 2013, 11:56am UTC](https://www.ruby-forum.com/t/proxy-pass-cannot-get/237119/3 "2013-10-25T11:56:43Z")

</div>

sorry, copy/paste error: I have this:

#proxy\_pass [http://localhost:2345/](http://localhost:2345/);  
#proxy\_pass\_reverse [http://localhost:2345/](http://localhost:2345/);

location /nodejs {  
proxy\_pass [http://localhost:2345/](http://localhost:2345/);  
proxy\_pass\_reverse [http://localhost:2345/](http://localhost:2345/);  
}

Posted at Nginx Forum:

> **[Re: proxy\_pass Cannot GET](https://forum.nginx.org/read.php?2,244100,244102#msg-244102)**
>
> 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

---

<div class="post-metadata">

**Author:** ![youreright](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/b487fb/32.png) [@youreright](https://www.ruby-forum.com/u/youreright)\
**Post date:** [October 25, 2013, 12:27pm UTC](https://www.ruby-forum.com/t/proxy-pass-cannot-get/237119/4 "2013-10-25T12:27:41Z")

</div>

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:

> **[Re: proxy\_pass Cannot GET](https://forum.nginx.org/read.php?2,244100,244103#msg-244103)**
>
> 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
