title: how to make NGINX serve static content like .js, .css, .html?
body: <p>Recently I have started using NGINX, I found that we can use it for reverse proxy, serving static content from itself which can reduce load time. I have a Tomcat/JBoss server on my local machine and I want to put NGINX in front of it so that static content will be served from NGINX and rest all by Tomcat/JBoss. My Tomcat/JBoss application is running on <code>http://localhost:8081/Test</code> my NGINX configuration worked properly but it is not able to load <code>css/js/jpg</code> file. Here is my war strcuture wehere static contents are</p>
  
  <p>Test.war</p>
  
  <pre><code>TEST
    |
    |---&gt;Resources
    |       |-------&gt;CSS
    |       |         |----&gt; style.css
    |       |
    |       |--------&gt;Images
    |                  |----&gt; a.jpg
    |                  |----&gt; b.jpg
    |   
    |---&gt;WEB-INF
    |        |-----&gt;Web.xml
    |        |-----&gt;spring-servlet.xml
    |
    |---&gt;JSP
           |----&gt;login.jsp
  </code></pre>
  
  <p>I think the problem is because of absolute path, so should I copy resources folder and put it in some folder in NGINX and configure my NGINX to pick file from its own directory rather going to Tomcat/JBoss? I am new so I dont have any idea of doing this can anyone pls help me in this. This is my conf file for NGINX(windows)</p>
  
  <pre><code>server {
          listen 80;
          server_name localhost;
  
          #charset koi8-r;
  
          #access_log  logs/host.access.log  main;
  
          location / {
               proxy_pass http://127.0.0.1:8081/Test/;
          }
  </code></pre>