# Onion link is redirected by nginx

**URL:** https://meta.discourse.org/t/onion-link-is-redirected-by-nginx/283700
**Category:** Self-hosting
**Created:** [October 27, 2023, 4:07pm UTC](https://meta.discourse.org/t/onion-link-is-redirected-by-nginx/283700 "2023-10-27T16:07:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![joerogan](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@joerogan](https://meta.discourse.org/u/joerogan)
#### Post date: [October 27, 2023, 4:07pm UTC](https://meta.discourse.org/t/onion-link-is-redirected-by-nginx/283700/1 "2023-10-27T16:07:49Z")

</div>

Is it recommended to disable the redirect in nginx or simply change the port of the onion and listen on the new port on nginx.

I set up tor daemon, got me link, added the onion template and DISCOURSE\_ONION but something is not working
