Welcome! Log In Create A New Profile

Advanced

Re: URI re-mapping using try_files

October 11, 2012 05:22PM
Hi Francis,

>I guess (without testing):
>
>if ($arg_para != data) { return 404; }
>
>inside that location{} would probably work

Hmm, I read on nginx website and elsewhere that if statement may not work consistently within a location directive, and is generally discouraged. Should I worry in this case?

>The above rewrite does that; but which html file should it look for here?
>
>/home/www/example/public/doc/one/two/two.html, or
>/home/www/example/public/doc/one/two/one/two.html?
>
>(As in: do you repeat everything after /public/doc, or do you repeat
>just the final after-slash part?)

I only want to repeat the final after-slash part, so any '/public/doc/blahA/blahB' should only look for '/public/doc/blahA/blahB/blahB.html'. Would that change anything in the config proposed here?

Thanks again!


Mrtn
SubjectAuthorPosted

URI re-mapping using try_files

mrtnOctober 11, 2012 09:19AM

Re: URI re-mapping using try_files

Francis DalyOctober 11, 2012 12:58PM

Re: URI re-mapping using try_files

mrtnOctober 11, 2012 03:59PM

Re: URI re-mapping using try_files

Francis DalyOctober 11, 2012 04:34PM

Re: URI re-mapping using try_files

mrtnOctober 11, 2012 05:22PM

Re: URI re-mapping using try_files

Francis DalyOctober 11, 2012 06:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 84
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 165 on April 21, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready