# How to install discourse with nginx as proxy on specific path?

**URL:** <https://meta.discourse.org/t/how-to-install-discourse-with-nginx-as-proxy-on-specific-path/150918>\
**Category:** Self-hosting\
**Created:** [May 9, 2020, 4:36pm UTC](https://meta.discourse.org/t/how-to-install-discourse-with-nginx-as-proxy-on-specific-path/150918 "2020-05-09T16:36:37Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![ftpd](https://avatars.discourse-cdn.com/v4/letter/f/9f8e36/32.png) [@ftpd](https://meta.discourse.org/u/ftpd)\
**Post date:** [May 9, 2020, 4:36pm UTC](https://meta.discourse.org/t/how-to-install-discourse-with-nginx-as-proxy-on-specific-path/150918/1 "2020-05-09T16:36:37Z")

</div>

Hi. I was able to successfully install and run discourse on my Linux machine with nginx as ssl terminator and with proxy\_pass directive.

The problem is, I was able to do it just as `discourse.example.com` and I’m trying to achieve it to work as `example.com/discourse`. I’ve tried changing DISCOURSE\_HOSTNAME and putting it straight there, but the result is a standard ‘ops, page not found’ site without any css formatting. I’ve tried to grep soure and documentation in search for ‘baseurl’ directive (as it’s a common thing to name it this way in other apps) but no luck.

Is it even possible? If so, please point me to any link describing how to do it.

---

_[View the full topic](https://meta.discourse.org/t/how-to-install-discourse-with-nginx-as-proxy-on-specific-path/150918)._
