Static Content on Different Server Isn't Loaded??

smsmaddy1981 nginx-forum at nginx.us
Mon Jun 22 12:35:32 UTC 2015


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

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,259786,259786#msg-259786



More information about the nginx mailing list