Welcome! Log In Create A New Profile

Advanced

Re: Nginx 1.7.0: location @php

Francis Daly
May 31, 2014 06:00AM
On Sat, May 31, 2014 at 01:59:18AM -0400, TECK wrote:

Hi there,

> > Answer #1: what does "does not work" mean?
> When I process an URI request, it downloads the file instead of executing
> the PHP code.

Perhaps the request that you made did not match the location blocks that
you showed?

That's the way I can get the specific unwanted response that you
report here.

> What I try to achieve is very simple, use @php as location to execute PHP
> code instead of repeating it over and over in various locations. Here it is
> a better example of a functional setup:
> http://pastie.org/private/5gkl1pti1co0onzhgb8jpg

If it matters to the question, can you include the (minimal) configuration
in the mail directly? That way, it will be available for the next person
who searches the archives.

Thanks.

I'm guessing that you may want something like

try_files i-dislike-macro-include @php;

Good luck with it,

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx 1.7.0: location @php

TECK May 25, 2014 05:49AM

Re: Nginx 1.7.0: location @php

Francis Daly May 25, 2014 09:30AM

Re: Nginx 1.7.0: location @php

TECK May 31, 2014 01:59AM

Re: Nginx 1.7.0: location @php

Francis Daly May 31, 2014 06:00AM

Re: Nginx 1.7.0: location @php

TECK May 31, 2014 06:31AM

Re: Nginx 1.7.0: location @php

Francis Daly May 31, 2014 07:28AM

Re: Nginx 1.7.0: location @php

TECK June 01, 2014 11:47PM

Re[2]: Nginx 1.7.0: location @php

artem June 02, 2014 02:26AM

Re: Nginx 1.7.0: location @php

support June 02, 2014 02:32AM

Re: Nginx 1.7.0: location @php

TECK June 04, 2014 11:36PM

Re: Nginx 1.7.0: location @php

Jonathan Matthews June 02, 2014 07:52AM

Re: Nginx 1.7.0: location @php

TECK June 04, 2014 11:41PM

Re: Nginx 1.7.0: location @php

Reinis Rozitis June 05, 2014 04:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 47
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready