I have the following content in my nginx.conf and everything else is as is
server { listen 8081; server_name localhost; #charset koi8-r; #access_log logs/host.access.log main; #location / { #root html; #index index.html index.htm; #} location = /console { proxy_pass http://localhost:7001/main/console; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; auth_basic "Admin Area"; auth_basic_user_file /etc/apache2/.htpasswd; } } Now when I launch http://localhost:8081/console it successfully launches the webpage and even asks me for password.
But there are some static content in this location /main/resources/org/nett/main/images/jquery-3.1.1.min.js
When I click on this it throws 404. What should be in my nginx.conf to serve the static content inside /main/resources/org/nett/main/images/ folder?