In Railo you can access some environment and client vars within a struct called cgi. If I hit my site with plain ssl it shows cgi.server_port = 80. Should be 443, shouldn't it? Hitting Tomcat directly shows cgi.server_port=8888 which is fine. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,247692,247836#msg-247836