Welcome! Log In Create A New Profile

Advanced

Re: Nginx и .htpasswd

February 06, 2013 12:07PM
Убираю это:
location ^~ /simpla/ {
auth_basic "Administrator Login";
auth_basic_user_file $document_root/simpla/.htpasswd;

try_files $uri $uri/ /index.php;

index index.php;

location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include /etc/nginx/fastcgi_params;
fastcgi_intercept_errors on;
fastcgi_pass unix:/var/lib/php5-fpm/web11.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
}
}

Пробовал оставить просто так:

location ^~ /simpla/ {
auth_basic "Administrator Login";
auth_basic_user_file $document_root/simpla/.htpasswd;
try_files $uri $uri/ /index.php;
index index.php;
}
Subject Author Posted

Nginx и .htpasswd

kosgtx February 06, 2013 11:52AM

Re: Nginx и .htpasswd

Daniel Podolsky February 06, 2013 12:04PM

Re: Nginx и .htpasswd

kosgtx February 06, 2013 12:07PM

Re: Nginx и .htpasswd

Daniel Podolsky February 06, 2013 12:32PM

Re: Nginx и .htpasswd

kosgtx February 06, 2013 12:50PM

Re: Nginx и .htpasswd

Daniel Podolsky February 06, 2013 02:24PM

Re: Nginx и .htpasswd

kosgtx February 06, 2013 05:09PM

Re: Nginx и .htpasswd

kosgtx February 06, 2013 08:16PM

Re: Nginx и .htpasswd

kosgtx February 06, 2013 08:55PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 310
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready