Nginx + tomcat and static files

Hi. I’m trying to perform static files like js css and other with nginx. I’ve read this article https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Installation/NginX/ Here uses glassfish and folder like /user/local/glassfish/glassfish/domains/default_domain/applications/j2ee-modules But in my case with tomcat static files drop on different foldefs along /opt/tomcat/webapps/xwiki/ Is there way to get all static files in same folder with tomcat to setup nginx location properly? Thanks.