# Remote server static content is not getting loaded

**URL:** <https://www.ruby-forum.com/t/remote-server-static-content-is-not-getting-loaded/242653>\
**Category:** NGINX\
**Created:** [July 12, 2015, 11:09pm UTC](https://www.ruby-forum.com/t/remote-server-static-content-is-not-getting-loaded/242653 "2015-07-12T23:09:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [July 12, 2015, 11:09pm UTC](https://www.ruby-forum.com/t/remote-server-static-content-is-not-getting-loaded/242653/1 "2015-07-12T23:09:45Z")

</div>

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:

> **[remote server static content is not getting loaded](https://forum.nginx.org/read.php?2,260231,260231#msg-260231)**
>
> 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...

---

<div class="post-metadata">

**Author:** ![smsmaddy1981](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/919ad9/32.png) [@smsmaddy1981](https://www.ruby-forum.com/u/smsmaddy1981)\
**Post date:** [July 12, 2015, 11:44pm UTC](https://www.ruby-forum.com/t/remote-server-static-content-is-not-getting-loaded/242653/2 "2015-07-12T23:44:48Z")

</div>

On Sun, Jul 12, 2015 at 05:09:09PM -0400, smsmaddy1981 wrote:

Hi there,

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

[http://forum.nginx.org/read.php?2,259786,259821](http://forum.nginx.org/read.php?2,259786,259821)

You do not want to use “root”.

You do want to use “proxy\_pass”.

Exactly what “proxy\_pass” to use, depends on what the answers to the  
questions in that mail are.

## f

Francis D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![smsmaddy1981](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/919ad9/32.png) [@smsmaddy1981](https://www.ruby-forum.com/u/smsmaddy1981)\
**Post date:** [August 2, 2015, 1:34am UTC](https://www.ruby-forum.com/t/remote-server-static-content-is-not-getting-loaded/242653/3 "2015-08-02T01:34:07Z")

</div>

Hi Francis.,  
I have updated my old request

> **[Re: Static Content on Different Server Isn't Loaded??](https://forum.nginx.org/read.php?2,259786,260695#msg-260695)**
>
> 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 appl

Awaiting for your response pls.

Best regards,  
Maddy

Posted at Nginx Forum:

> **[Re: remote server static content is not getting loaded](https://forum.nginx.org/read.php?2,260231,260696#msg-260696)**
>
> 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...
