remote server static content is not getting loaded

smsmaddy1981 nginx-forum at
Sun Jul 12 21:09:09 UTC 2015


ISSUE: Static content is not loaded from remote server where application is
deployed, rather it is reading from the server where NGinx is installed.

Nginx-1.8.0 is installed (on the server

Proxy pass to another server ( for an webrequest

Below configurations made:

    server {
        listen 80;

        location /{
              proxy_pass http://stelworkspace/workspace/agentLogin/;

        location ~* \.(js|jpg|png|css|woff|svg|gif|eot|ttf)$ {
                root /var/gvp/Nginx/nginx-1.8.0/ser_static_info;
                expires 30d;

This is reading data from local Nginx server ( and not
from the remote server ( where application is

Tried below option too..

    location ~"*\.(js|jpg|png|css)$" {
        root http://workspace123/workspace/;
        expires 30d;

Nothing seems working

Pls. assist here? If given an example...would be appreciated

Best regards,

Posted at Nginx Forum:,260231,260231#msg-260231

More information about the nginx mailing list