Welcome! Log In Create A New Profile

Advanced

Re: basic-authentication and php?

May 22, 2009 01:36PM
On Fri, May 22, 2009 at 10:31 AM, Jim Ohlstein <jim.ohlstein@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.
Subject Author Posted

basic-authentication and php?

Ian Hobson May 22, 2009 11:56AM

Re: basic-authentication and php?

Jim Ohlstein May 22, 2009 12:30PM

Re: basic-authentication and php?

Ian Hobson May 22, 2009 01:12PM

Re: basic-authentication and php?

mike May 22, 2009 01:27PM

Re: basic-authentication and php?

Jim Ohlstein May 22, 2009 01:31PM

Re: basic-authentication and php?

mike May 22, 2009 01:36PM

Re: basic-authentication and php?

Jim Ohlstein May 22, 2009 01:45PM

Re: basic-authentication and php?

Igor Sysoev May 22, 2009 01:42PM

Re: basic-authentication and php?

Jim Ohlstein May 22, 2009 01:54PM

Re: basic-authentication and php?

Igor Sysoev May 22, 2009 01:21PM

Re: basic-authentication and php?

Ian Hobson May 22, 2009 05:52PM

Re: basic-authentication and php?

Igor Sysoev May 23, 2009 01:31AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 143
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready