Welcome! Log In Create A New Profile

Advanced

Re: Nginx 1.7.0: location @php

May 31, 2014 06:31AM
Francis,

> I'm guessing that you may want something like
> try_files i-dislike-macro-include @php;
What you posted is some deprecated configuration available on Google.

> Perhaps the request that you made did not match the location blocks that you showed?
If that would be the case, the proper code posted earlier would not work, so this is not the case. I'm very familiar with Nginx and I understand the try_files concept very well. My original question was how to avoid repeating a segment of configuration code endless times, more exactly this:
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass fastcgi;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_script_name;
include fastcgi.conf;

Using logic and the examples provided into Nginx documentation what I posted previously should work. Can you provide a solution to my question?
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: 54
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