atom feed12 messages in ru.sysoev.nginxRe: basic-authentication and php?
FromSent OnAttachments
Ian HobsonMay 22, 2009 8:56 am 
Jim OhlsteinMay 22, 2009 9:29 am 
Ian HobsonMay 22, 2009 10:12 am 
Igor SysoevMay 22, 2009 10:21 am 
Michael ShadleMay 22, 2009 10:26 am 
Jim OhlsteinMay 22, 2009 10:30 am 
Michael ShadleMay 22, 2009 10:36 am 
Igor SysoevMay 22, 2009 10:42 am 
Jim OhlsteinMay 22, 2009 10:45 am 
Jim OhlsteinMay 22, 2009 10:54 am 
Ian HobsonMay 22, 2009 2:51 pm 
Igor SysoevMay 22, 2009 10:30 pm 
Subject:Re: basic-authentication and php?
From:Michael Shadle (mike@gmail.com)
Date:May 22, 2009 10:36:27 am
List:ru.sysoev.nginx

On Fri, May 22, 2009 at 10:31 AM, Jim Ohlstein <jim.@gmail.com> wrote:

location ^~ /ppg/ {   auth_basic "Hello, Please login";   auth_basic_user_file /var/www/site.com/passwords;       location ~ .\php$  {           include /etc/nginx/fastcgi_params;           fastcgi_pass 127.0.0.1:9000;       } }

That way only your php scripts would be passed to php and others served directly by nginx.

Igor, is that possible?

not only is it possible, i've been doing it that way for a long time.

in fact, i think igor is the one who originally gave me the example.