Closing as won't fix since it's not an XWiki issue per see. It's a configuration issue for nginx. Note that there's a doc page on xwiki.org for using ngingx but it's not been contributed by the core devs as we don't use it. It would be good that users with knowledge of nginx validate it: https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Installation/NginX/