Basic Auth + PHP

Bubulino Werty lists at
Fri Jul 25 19:41:51 MSD 2008

Hi guys,
I've already been browsing this forum, but all other solutions don't
work so far.

I have a simple nginx + fastcgi setup.

location ~ \.php$ {
            fastcgi_index  index.php;
            include        /usr/local/nginx/conf/fastcgi_params;

I now want the /admin/ directory, including all .php files, to be
secure, but couldn't manage to do that. The rewrite tricks from older
threads didn't work.

Anyone got a configuration example?

Posted via

More information about the nginx mailing list