Forum Discussion
Nginx Reverse Proxy issue for port other than 81
From what it seems the tomcat page has in its response body links to other content that is still on port 80, so you will need to rewrite the response body:
Module ngx_http_sub_module (nginx.org)
How to Modify Webpage Content on NGINX Proxy Using SUBS and Substitution Module ★ VSYS Tutorials
Hey Nikoolayy1,
Here Nginx is doing a reverse proxy to my backend application hosted on Tomcat. I can access the application directly when I hit the Application URL and port 8080. The pages are not defined with any ports (like 8080, 80, 443 etc).
Also, when I access via Nginx URL everything works fine with port 80 and 443. idk, what is happening with custom ports, since there is no explicit declaration in my pages anywhere regarding ports specifically. I checked with Apache HTTP server with custom port, but everything was working as expected. I suspect some configuration is missing in my config file of Nginx
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com