Because some historical reason, i cant change the server5 port:9514. and server3 use the 9514 in local ,also cant change.
So caddy could recognize the in port? so that i could not differ the two , like my config. In fact my config is wrong , caddy cant set a server with port
You can remove header_up X-Forwarded-Host {host}, see the docs linked above.
I’m not sure I understand. Do you mean HTTP traffic on port 9514 and HTTPS traffic on port 443?
Are you actually serving that site over HTTP as well, or do you intend for it to be only HTTPS? If only HTTPS, why does it matter what the HTTP port is?
This implies to me that you already have another server on the same machine listening on port 9514. It’s impossible to have two programs listening on the same port, so Caddy would not be able to listen on that port unless your program is moved away from that port, or you run Caddy on a separate machine.
Because some link(with 9514 port) has been used in other server, i cant change them.And there may be a lot links use it by someone i don’t konw, i dont want to break their link.
Thank you ,I konw choosing 9514 non universal port is wrong