HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Feature Requests (http://www.howtoforge.com/forums/forumdisplay.php?f=31)
-   -   Protected folders not PHP support (http://www.howtoforge.com/forums/showthread.php?t=59091)

dupcantx 14th October 2012 18:19

Nginx Protected folders nothing PHP support (solved)
 
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. :eek:

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

falko 15th October 2012 13:13

This was fixed in SVN and will be part of ISPConfig 3.0.5.

dupcantx 15th October 2012 13:29

Nginx Protected folders nothing PHP support (solved)
 
Quote:

Originally Posted by falko (Post 286763)
This was fixed in SVN and will be part of ISPConfig 3.0.5.

Thank you Falko, I make now upgrade.

best regards

till 15th October 2012 13:33

3.0.5 is currently a alpha version, you might want to wait for the final release with your update if this is a production server.

dupcantx 16th October 2012 13:21

Quote:

Originally Posted by till (Post 286768)
3.0.5 is currently a alpha version, you might want to wait for the final release with your update if this is a production server.

Till thank you for warning,
I've done this update and I am happy :)

best regards


All times are GMT +2. The time now is 19:59.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.