Hi Team,
I have static content available on the remote server (say NODE 02) and PATH: ../livetest/WEB-INF/static/classes/
under which I have /image, /js, /styles folders
I have installed nginx-1.8.0 on server (Say Node 01).
While accessing the application, the static contents are not getting loaded.
Pls. suggest?
I tried below option:
location ~*\.(js|jpg|png|css)$ {
root /WEB-INF/classes/static/;
http://<DNS_NODE_02>/livetest/WEB-INF/classes/static/classes;
expires 30d;
}
The resultant in access.log shows that the path is weird
/var/gvp/Nginx/nginx-1.8.0/http://<DNS_NODE_02>/livetest/WEB-INF/classes/static/classes/livetest/....
Best regards,
Maddy