Welcome! Log In Create A New Profile

Advanced

Re: Nginx 1.7.0: location @php

June 04, 2014 11:41PM
Jonathan Matthews Wrote:
-------------------------------------------------------
> Fortunately, this being a *public* *mailing* *list*, and Francis
> (along with almost every other subscriber) giving his time, experience
> and opinions for free, you are definitely no worse off than when you
> started.
>
> Actually, however, you're demonstrably better off, as Francis has both
> attempted to help you go through the kind of troubleshooting process
> that will serve you well if you apply it (Message-ID
> 20140525132809.GN16942@daoine.org) and ...
>
> > I think what I asked is
> > very clear and simple:
> > How do I avoid repeating a segment of configuration code assigned to
> @php
> > into various locations:
>
> .... he has given you the answer to this question - that you clearly
> thought you began by asking, but didn't. In Message-ID
> 20140531112745.GZ16942@daoine.org.
>
> HTH.

I'm sorry, I did not understood nothing. Can you provide an example of how to avoid repeating the php configuration through @php location?
IMO the logic presented is clear: define a @php location and call it in other locations with try_files, like explained into Nginx documentation. In my case the end result is unexpected, the php file contents will be downloaded, instead of being executed. This works:
http://pastie.org/private/5gkl1pti1co0onzhgb8jpg

This does not:
http://pastie.org/private/iuz58naozk6xo92ukqmwsg
SubjectAuthorPosted

Nginx 1.7.0: location @php

TECKMay 25, 2014 05:49AM

Re: Nginx 1.7.0: location @php

Francis DalyMay 25, 2014 09:30AM

Re: Nginx 1.7.0: location @php

TECKMay 31, 2014 01:59AM

Re: Nginx 1.7.0: location @php

Francis DalyMay 31, 2014 06:00AM

Re: Nginx 1.7.0: location @php

TECKMay 31, 2014 06:31AM

Re: Nginx 1.7.0: location @php

Francis DalyMay 31, 2014 07:28AM

Re: Nginx 1.7.0: location @php

TECKJune 01, 2014 11:47PM

Re[2]: Nginx 1.7.0: location @php

artemJune 02, 2014 02:26AM

Re: Nginx 1.7.0: location @php

supportJune 02, 2014 02:32AM

Re: Nginx 1.7.0: location @php

TECKJune 04, 2014 11:36PM

Re: Nginx 1.7.0: location @php

Jonathan MatthewsJune 02, 2014 07:52AM

Re: Nginx 1.7.0: location @php

TECKJune 04, 2014 11:41PM

Re: Nginx 1.7.0: location @php

Reinis RozitisJune 05, 2014 04:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 77
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 184 on July 08, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready