Welcome! Log In Create A New Profile

Advanced

Re: Questions about proxy_pass and internal directives

October 18, 2012 06:48PM
hmm, so adding '^~' to the front of location /foo/bar/ makes "internal" directive work correctly. All direct access to "/foo/bar/sth/sth.html" are blocked with 404 now.

However, the proxy_pass inside '/foo/bar/' location still doesn't work. I even put debugging echo inside all the location blocks, and only the /foo/bar one appears in the log file. But there is still no request proxied to the other server. In the debugging log, I see:

2012/10/18 18:27:57 [debug] 6983#0: *3 http script if
2012/10/18 18:27:57 [debug] 6983#0: *3 http script if: false
2012/10/18 18:27:57 [debug] 6983#0: *3 test location: "/game/play/"
2012/10/18 18:27:57 [debug] 6983#0: *3 http finalize request: 404, "/foo/bar/test-sth?" a:1, c:1
2012/10/18 18:27:57 [debug] 6983#0: *3 http special response: 404, "/foo/bar/test-sth?"
2012/10/18 18:27:57 [debug] 6983#0: *3 internal redirect: "/404.html?"
2012/10/18 18:27:57 [debug] 6983#0: *3 rewrite phase: 1

Then I get 404 in the requesting browser obviously. Any other guess?
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: 89
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