Nginx not redirecting to my Tomcat app - what is wrong with this config file? -


My app is online:

I use port 8090 because 8080 is used by the same glassfish Server is done on.

The NGN config file says:

  server {80 says; server_name realtimeopinion.com www.realtimeopinion.com; # Charset ko 8-r; #access_log/var/log/nginx/log/host.access.log Main; Location / {proxy_pass http: // localhost: 8090 / RTO /; #proxy_set_header X-real-IP $ remote_addr; }}   

Still redirecting to a 404?

With the debugger, your real-time feedback link from Google Chrome shows that NGN 404 Forwarding the response that was generated by the glassfish (which is at Port 8080) is not Tomcat (which is 8090 and where you really want to go)

So I think your config file is correct , Except that the nginx is currently running from a different config file or perhaps config files There is a previous version of L, which specifies the first 8080 port. In this second case, maybe you just have to restart nginx?

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -