Welcome! Log In Create A New Profile

Advanced

Re: Rewrite or proxy_pass to internal ip ?

October 30, 2012 04:51AM
I get real html from internal server with curl and is exact what I expect. Over the nginx I fix the problem with bad gateway, but the problem that I now see: nginx does not access remote directories after / for example:

https://www.mydomain.com/server1 I see the html page, but if I organize my page with jquery for example and is included from different directory js/jquery.js I see is not loaded in html ie nginx does not sub directories, only top level dir. For example if I try to access direct js file over the web like: http://www.mydomain1.com/server1/js/jsquery.js I get error 404 file not found. I think nginx does not forward this request to internal serve and trying to find the js file on local directory.

How to resolve this issue ?
SubjectAuthorPosted

Rewrite or proxy_pass to internal ip ?

hristocOctober 29, 2012 04:03AM

Re: Rewrite or proxy_pass to internal ip ?

Francis DalyOctober 29, 2012 05:52AM

Re: Rewrite or proxy_pass to internal ip ?

hristocOctober 29, 2012 06:43AM

Re: Rewrite or proxy_pass to internal ip ?

Francis DalyOctober 29, 2012 05:06PM

Re: Rewrite or proxy_pass to internal ip ?

hristocOctober 30, 2012 04:51AM

Re: Rewrite or proxy_pass to internal ip ?

Francis DalyOctober 30, 2012 03:50PM

Re: Rewrite or proxy_pass to internal ip ?

hristocOctober 31, 2012 05:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 93
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready