# Nginx configuration for discourse

**URL:** <https://meta.discourse.org/t/nginx-configuration-for-discourse/59962>\
**Category:** Self-hosting\
**Created:** [27.Март.2017 12:53:05 UTC](https://meta.discourse.org/t/nginx-configuration-for-discourse/59962 "2017-03-27T12:53:05Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Alavi1412](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alavi1412/32/67721_2.png) [@Alavi1412](https://meta.discourse.org/u/Alavi1412)\
**Post date:** [27.Март.2017 12:53:05 UTC](https://meta.discourse.org/t/nginx-configuration-for-discourse/59962/1 "2017-03-27T12:53:05Z")

</div>

I have isntalled discourse on a VPS. Now I want to run a nodeJS app running on port 3030 on the vps.  
I have added the following to the `/etc/nginx/sites-available/default`:

```plaintext
location /recommender/ {
	
	proxy_pass http://localhost:3030; 
	
	}

```

after that, when I goto `myPublicIP/recommender` I received the rails error that the page does not exist. But I want to receive the nginx error.  
The configuration worked well on my local but didn’t work well on vps.

---

_[View the full topic](https://meta.discourse.org/t/nginx-configuration-for-discourse/59962)._
