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 without PHP support (http://www.howtoforge.com/forums/showthread.php?t=57244)

r00t.ati 10th May 2012 18:33

Protected folders without PHP support
 
Hello, i'm actually using ISPConfig3 with NginX on Debian 6.
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 /admin/index.php, it will be downloaded and not interpreted.

Is it in the TODO LIST?

Thanks

falko 11th May 2012 10:05

I've added this to our bugtracker, so we will check that.

I've improved the folder protection for nginx in SVN, but will check again for the PHP location. Maybe it's fixed already.

r00t.ati 11th May 2012 11:27

Thank you falko.
I'll check SVN!

Have a good day! ;)

falko 13th June 2012 17:01

I've fixed this in SVN. :)

BPuma 27th October 2012 20:36

Quote:

Originally Posted by falko (Post 280623)
I've fixed this in SVN. :)

Please help! How can I solve this problem?

falko 28th October 2012 11:56

Wait for the final release of ISPConfig 3.0.5. It won't be long. :)

BPuma 29th October 2012 09:17

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;
}


All times are GMT +2. The time now is 22:42.

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