# \[Solved\] Dev instance with nginx: topic preview not working

**URL:** https://meta.discourse.org/t/solved-dev-instance-with-nginx-topic-preview-not-working/67738
**Category:** Development
**Created:** [August 9, 2017, 9:09pm UTC](https://meta.discourse.org/t/solved-dev-instance-with-nginx-topic-preview-not-working/67738 "2017-08-09T21:09:19Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [September 16, 2017, 5:34am UTC](https://meta.discourse.org/t/solved-dev-instance-with-nginx-topic-preview-not-working/67738/5 "2017-09-16T05:34:48Z")

</div>

You are missing the other proxy directives. You need all of these:

```plaintext
		# proxy_pass .....;
		proxy_set_header Host $http_host;
		proxy_http_version 1.1;
		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
		proxy_set_header X-Forwarded-Proto $scheme;
		#proxy_set_header Client-IP "";

```

> [@Run other websites on the same machine as Discourse](https://meta.discourse.org/t/running-other-websites-on-the-same-machine-as-discourse/17247):
>
> @pfaffman edited this heavily 2022.02.24. Blame me if it’s broken. If you want to run other websites on the same machine as Discourse, you need to set up an extra NGINX or HAProxy proxy in front of the Docker container. NOTE: This is for advanced admins This guide assumes you already have Discourse working - if you don’t, it may be hard to tell whether or not the configuration is working. You cannot use ./discourse-setup to set up Discourse if another server is using port 80 or 443. You will…

---

_[View the full topic](https://meta.discourse.org/t/solved-dev-instance-with-nginx-topic-preview-not-working/67738)._
