Well some days ago I was really struggling to get Nginx and Hawtio working together. I encountered nginx for the first time and had to add a proxy configuration to allow nginx to route the traffic to Hawtio. The initial configuration seemed obvious and should work. However once you came to the login page and entered your credentials it would simply reload and you get a 403 error.
Eventually after lots of fiddler snooping I saw this:
There is a cookie called JSESSIONID which wasn’t being passed along. So eventually I had to add this to nginx as well. Here is the final configuration:
Hope this helps someone else as well!