Hi, I'm actually using ISPConfig 3.0.4.6 with NginX and php-fpm on Centos 5.
I want to report a little bug in "Protected Folders".
When I add new "Protected Folder", the nginx configuration do not write PHP section, so when i try to run the /Protected-Folder/index.php, it will be downloaded and not interpreted.
solved
file /etc/nginx/sites-available/domain.tld.vhost
Quote:
location ^ ~ /Protected-Folder/ {
auth_basic "Members Only";
auth_basic_user_file /var/www/clients/client1/web5/web/Protected-Folder/.htpasswd;
}
|
to
Quote:
location ^ ~ /Protected-Folder/ {
auth_basic "Members Only";
auth_basic_user_file / var/www/clients/client1/web5/web/Protected-Folder/.htpasswd;
include /etc/nginx/fastcgi_params;
fastcgi_pass unix :/var/lib/php5-fpm/web5.sock; - or fastcgi_pass 127.0.0.1:9010;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $ document_root $ fastcgi_script_name;
fastcgi_param PATH_INFO $ fastcgi_script_name;
fastcgi_intercept_errors one;
}
|
changed
best regards
Recent comments
11 hours 8 min ago
20 hours 35 min ago
21 hours 25 min ago
1 day 58 min ago
1 day 5 hours ago
1 day 5 hours ago
1 day 7 hours ago
1 day 17 hours ago
1 day 22 hours ago
2 days 21 min ago