# Infinite 301 redirect with reverse proxy setup

**URL:** https://meta.discourse.org/t/infinite-301-redirect-with-reverse-proxy-setup/221268
**Category:** Self-hosting
**Created:** [March 17, 2022, 7:05pm UTC](https://meta.discourse.org/t/infinite-301-redirect-with-reverse-proxy-setup/221268 "2022-03-17T19:05:12Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![powi](https://avatars.discourse-cdn.com/v4/letter/p/ecb155/32.png) [@powi](https://meta.discourse.org/u/powi)
#### Post date: [March 18, 2022, 8:20am UTC](https://meta.discourse.org/t/infinite-301-redirect-with-reverse-proxy-setup/221268/3 "2022-03-18T08:20:48Z")

</div>

Do you mean non-standart port is not supported on host or guest?  
I was following this tutorial:

> [@Run other websites on the same machine as Discourse](https://meta.discourse.org/t/running-other-websites-on-the-same-machine-as-discourse/17247?replies_to_post_number=422):
>
> @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…

Where it says:

> If you are using some other reverse proxy that cannot use a web socket, you can instead expose a different port in the section above like `- 8080:80` .

---

_[View the full topic](https://meta.discourse.org/t/infinite-301-redirect-with-reverse-proxy-setup/221268)._
