# Putting a discourse development server behind proxy seems to mess up some (but not most) URLs

**URL:** <https://meta.discourse.org/t/putting-a-discourse-development-server-behind-proxy-seems-to-mess-up-some-but-not-most-urls/40829>\
**Category:** Development\
**Created:** [Março 9, 2016, 9:14pm UTC](https://meta.discourse.org/t/putting-a-discourse-development-server-behind-proxy-seems-to-mess-up-some-but-not-most-urls/40829 "2016-03-09T21:14:49Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![ryantm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ryantm/32/134063_2.png) [@ryantm](https://meta.discourse.org/u/ryantm)\
**Post date:** [Março 9, 2016, 9:14pm UTC](https://meta.discourse.org/t/putting-a-discourse-development-server-behind-proxy-seems-to-mess-up-some-but-not-most-urls/40829/1 "2016-03-09T21:14:49Z")

</div>

I’m running nginx in front of Discourse with

```
upstream discourse {
  server localhost:3000;
}

server {
  listen 80 default_server;

  location / {
    proxy_set_header Host $http_host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_pass http://discourse;
  }

}

```

The avatar that appears to the left of the post has a url like:

`http://192.168.1.23/letter_avatar/ryantm/90/5_a4c6c7825becdf9b31d9ea60fd0b5bf6.png`

but the avatar that appears in quotes in posts is a url like:

`http://localhost:3000/letter_avatar_proxy/v2/letter/r/9fc29f/40.png`

It seems like the URLs for the quote avatars are being generated in a different way than the other avatars.

---

_[View the full topic](https://meta.discourse.org/t/putting-a-discourse-development-server-behind-proxy-seems-to-mess-up-some-but-not-most-urls/40829)._
