View Single Post
  #7  
Old 29th October 2012, 09:17
BPuma BPuma is offline
Junior Member
 
Join Date: Oct 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for nothing!!!
I'm sorry, but that's not relevant to me. No time to wait!
The solution:

/etc/nginx/sites-available/your.site.vhost

location ^~ /admin/ {
auth_basic "Members Only";
auth_basic_user_file /var/www/clients/client2/web3/web/admin/.htpasswd;

location ~ \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_pass 127.0.0.1:9012;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_script_name;
fastcgi_intercept_errors on;
}
Reply With Quote