Welcome! Log In Create A New Profile

Advanced

Re: Questions about proxy_pass and internal directives

October 18, 2012 03:54PM
A correction to my earlier post: the request in my first question above should be for "mysite.com/foo/bar/sth/sth.html", and there is a corresponding file on the filesystem: "/home/www/mysite/static/foo/bar/sth/sth.html".

Just tried something different, with this config:

root /home/www/mysite/static;

location /foo/bar/ {
internal;
proxy_pass http://127.0.0.1:8080;
proxy_redirect off;
}

request to "mysite.com/foo/bar/sth" will return 404, and I can see that the request does not even get proxied to the application server. In addition, this access is not logged in error log but in the access log of nginx. However, request to "mysite.com/foo/bar/sth/sth.html" is served fine, despite of using "internal" directive.
SubjectAuthorPosted

Questions about proxy_pass and internal directives

mrtnOctober 18, 2012 03:28PM

Re: Questions about proxy_pass and internal directives

mrtnOctober 18, 2012 03:54PM

Re: Questions about proxy_pass and internal directives

VBartOctober 18, 2012 04:24PM

Re: Questions about proxy_pass and internal directives

mrtnOctober 18, 2012 04:32PM

Re: Questions about proxy_pass and internal directives

Reinis RozitisOctober 18, 2012 04:56PM

Re: Questions about proxy_pass and internal directives

mrtnOctober 18, 2012 06:18PM

Re: Questions about proxy_pass and internal directives

mrtnOctober 18, 2012 06:48PM

Re: Questions about proxy_pass and internal directives

Reinis RozitisOctober 18, 2012 07:38PM

Re: Questions about proxy_pass and internal directives

mrtnOctober 18, 2012 08:08PM

Re: Questions about proxy_pass and internal directives

mrtnOctober 18, 2012 08:38PM

Re: Questions about proxy_pass and internal directives

VBartOctober 18, 2012 08:40PM

Re: Questions about proxy_pass and internal directives

Reinis RozitisOctober 18, 2012 09:34PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 95
Record Number of Users: 4 on November 24, 2014
Record Number of Guests: 377 on November 23, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready