What's new

URL rewrite?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

banz

Regular Contributor
I don't know if the topic is correct. I have a lot of applications and docker on my internal network. What I'm looking at is this.

Say I have a plex server on http://hostA:32400/web. I want to access it via http://plex. Is there something on the router that can do this? It's kinda hard when I have over 40 devices and trying to remember the port number the application is running on. Especially when my wife is like where is the server that is storing our photos? I give her some absurd server name and port that she is never gonna remember and keeps asking me.

Or I could just setup nginx to do rewrite or perhaps do a simple html landing page and put all of them on one page?
 
This has been asked many times. As you surmised the only practical way of doing this is with a proxy server like nginx.
 
The only *rewrite* capability (if you want to call it that) is to use DNSMasq to change the name resolution. But even that is limited to the domain name, and not the port, or any other part of the URL. Such rewrites, as suggested, need to be handled by a proxy server. Even then, the portion beyond the destination IP and port is going to be encrypted if using https, since it's part of the http headers, which are part of the payload. So things can get complicated.

Or else find a public URL shortener that allows user-defined shortcuts, if they even exist.
 
P.S. Still think creating a simple landing page is the best solution. Doesn't even require a webserver, but just a file:// reference to some shared folder. Simple.
 
I don't know if the topic is correct. I have a lot of applications and docker on my internal network. What I'm looking at is this.

Say I have a plex server on http://hostA:32400/web. I want to access it via http://plex. Is there something on the router that can do this? It's kinda hard when I have over 40 devices and trying to remember the port number the application is running on. Especially when my wife is like where is the server that is storing our photos? I give her some absurd server name and port that she is never gonna remember and keeps asking me.

Or I could just setup nginx to do rewrite or perhaps do a simple html landing page and put all of them on one page?
i use nginx and Heimdall / Organizr as a "homepage". I used to run nginx on the router but since migrated it to Docker on a Linux box
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top