Re: Nginx 1.7.0: location @php

2014-06-05 Thread Reinis Rozitis
I'm sorry, I did not understood nothing. Can you provide an example of how to avoid repeating the php configuration through @php location? As someone said in earlier mails you can always use include and put the repeating parts in seperate files. For example put this into php.conf: location

Re: Nginx 1.7.0: location @php

2014-06-04 Thread TECK
support Wrote: --- yes. update and test 02.06.2014 10:24, wishmaster пишет: I have the same problem in my php-application. Admin folder is protected with auth_basic and the rest folders - without auth. I have not found any solution

Re: Nginx 1.7.0: location @php

2014-06-04 Thread TECK
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.

Re[2]: Nginx 1.7.0: location @php

2014-06-02 Thread wishmaster
I have the same problem in my php-application. Admin folder is protected with auth_basic and the rest folders - without auth. I have not found any solution except code duplication for php location. --- Original message --- From: TECK nginx-fo...@nginx.us Date: 2 June 2014, 06:47:47

Re: Nginx 1.7.0: location @php

2014-06-02 Thread support
yes. update and test 02.06.2014 10:24, wishmaster пишет: I have the same problem in my php-application. Admin folder is protected with auth_basic and the rest folders - without auth. I have not found any solution except code duplication for php location. --- Original message ---

Re: Nginx 1.7.0: location @php

2014-06-02 Thread Jonathan Matthews
On 2 June 2014 04:47, TECK nginx-fo...@nginx.us wrote: Francis, We are going in circles without reaching a solution 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

Re: Nginx 1.7.0: location @php

2014-05-31 Thread TECK
Hi Francis, Answer #1: what does does not work mean? When I process an URI request, it downloads the file instead of executing the PHP code. 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

Re: Nginx 1.7.0: location @php

2014-05-31 Thread Francis Daly
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

Re: Nginx 1.7.0: location @php

2014-05-31 Thread TECK
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

Nginx 1.7.0: location @php

2014-05-25 Thread TECK
Hi all, I'm trying to understand why the use of this configuration code does not work: location ^~ /setup { auth_basic Restricted Access; auth_basic_user_filehtpasswd; try_files $uri $uri/ /setup/index.php?$uri$args;

Re: Nginx 1.7.0: location @php

2014-05-25 Thread Francis Daly
On Sun, May 25, 2014 at 05:49:33AM -0400, TECK wrote: Hi there, I'm trying to understand why the use of this configuration code does not work: Answer #1: what does does not work mean? What request do you make; what response do you get; what response do you want? try_files