My company is working with a legacy program that listens on port 80. Were trying to meet security requirements by placing an NGINX in front of it to support HTTPS requests that will proxy to the (fire walled) http port.
Our current problem is that the legacy program also has hard coded URLS which point to http port 80. I want to place a redirect on port 80 that will catch these http requests and redirect them to https, but I can't do that as long as the legacy program is bound to port 80.
I can't reconfigure the legacy program's default bind port. Is there a way within centos to force the program to bind to another port when it requests port 80 to bind to?
I'm running on centos 6.9 (like I said, legacy systems).