How to stop OOD rewriting the address?

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

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.

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.

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