# How to stop OOD rewriting the address?

**URL:** <https://discourse.openondemand.org/t/how-to-stop-ood-rewriting-the-address/4523>\
**Category:** Get Help\
**Created:** [September 16, 2025, 9:11am UTC](https://discourse.openondemand.org/t/how-to-stop-ood-rewriting-the-address/4523 "2025-09-16T09:11:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![VincentCoulson](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/vincentcoulson/32/3010_2.png) [@VincentCoulson](https://discourse.openondemand.org/u/VincentCoulson)\
**Post date:** [September 16, 2025, 9:11am UTC](https://discourse.openondemand.org/t/how-to-stop-ood-rewriting-the-address/4523/1 "2025-09-16T09:11:07Z")

</div>

Hello everyone,

I have just set up OOD in a server, which can be accessed and logined via in a browser on this computer. For certain reanson, directly exposing port 80 is not an option. So I set up port mapping on my router. I have a simple schematic as shown below.

[User] —\> Router (Port Mapping: → 80) —\> [Server: port 80]

User can ping the router with . Here is the problem I encounter. On the User end, I tried to access :/pun/sys/dashboard, but Chrome shows it is redirected to /pun/sys/dashboard, which is not accessible. How can I keep the url starting with :.

Thanks for your help.

Vincent

---

<div class="post-metadata">

**Author:** ![VincentCoulson](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/vincentcoulson/32/3010_2.png) [@VincentCoulson](https://discourse.openondemand.org/u/VincentCoulson)\
**Post date:** [September 16, 2025, 10:41am UTC](https://discourse.openondemand.org/t/how-to-stop-ood-rewriting-the-address/4523/2 "2025-09-16T10:41:38Z")

</div>

Sorry, I just noticed that part of the question got filtered.

[User] —\> Router (Port Mapping: **Port** → 80) —\> [Server: port 80]

User can ping the router with Domain. Here is the problem I encounter. On the User end, I tried to access **Domain** : **Port** /pun/sys/dashboard, but Chrome shows it is redirected to **Domain** /pun/sys/dashboard, which is not accessible. How can I keep the url starting with **Domain** : **Port**.

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [September 16, 2025, 1:34pm UTC](https://discourse.openondemand.org/t/how-to-stop-ood-rewriting-the-address/4523/3 "2025-09-16T13:34:59Z")

</div>

Hi and welcome!

I think the `use_rewrites` setting in `ood_portal.yml` is redirecting you. That or you need to set the port in the `ood_portal.yml` as well.

That said, I’d try SSL certificates and booting on port 443. That will work without the port in the URL if the scheme is https.

---

<div class="post-metadata">

**Author:** ![VincentCoulson](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/vincentcoulson/32/3010_2.png) [@VincentCoulson](https://discourse.openondemand.org/u/VincentCoulson)\
**Post date:** [September 17, 2025, 1:05pm UTC](https://discourse.openondemand.org/t/how-to-stop-ood-rewriting-the-address/4523/4 "2025-09-17T13:05:22Z")

</div>

Thank you so much! I’ve set the port in `ood_portal.yml` and it is serving on the port I want.😄

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/b/bae70bd0ed39a3ae769c2108155f4cb3e9da8385.png) [@system](https://discourse.openondemand.org/u/system)\
**Post date:** [March 16, 2026, 1:06pm UTC](https://discourse.openondemand.org/t/how-to-stop-ood-rewriting-the-address/4523/5 "2026-03-16T13:06:06Z")

</div>

Closed on March 16, 2026, 1:06pm UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
