Yes I did the trick for me locally where tomcat is behind nginx. Would be good if you can test on your environment.