remote server static content is not getting loaded

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


Hi,

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 nginx.corp.stel.no)

Proxy pass to another server (workspace.corp.stel.no) for an webrequest

Below configurations made:

    server {
        listen 80;
        server_name workspace.corp.stel.no;

        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 (nginx.corp.test.no) and not
from the remote server (workspace.corp.stel.no) where application is
deployed

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,
Maddy

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



More information about the nginx mailing list