chris-taylor
New Pleskian
The environment:
Ubuntu 8.04 LTS
Plesk 9.5.4
PHP as FCGI
The situation:
Block access for a directory by setting up an .htaccess file with the following content:
BUT php- and pl-files are still accessible!!!
This is an absolutely unexpected behaviour...(Deny means DENY !?)
The Parallels support was not able to fix this problem!!!
(I reported it and they only came along with no-working "solutions"...)
By trial and error I figured out that the problem is caused by the following lines in the domain specific httpd.include file:
The problem is invoked by the folowing line:
How can I get rid of this line???
I also tried to setup additional lines in vhost.conf like:
I urgently need a solution for this sh.t problem!!!
My clients expect that all files in a protected directory are blocked!!!
All help appreciated
Many thanks in advance
Christian
Ubuntu 8.04 LTS
Plesk 9.5.4
PHP as FCGI
The situation:
Block access for a directory by setting up an .htaccess file with the following content:
This implies that all files in the directory are NOT accessible.deny from all
BUT php- and pl-files are still accessible!!!
This is an absolutely unexpected behaviour...(Deny means DENY !?)
The Parallels support was not able to fix this problem!!!
(I reported it and they only came along with no-working "solutions"...)
By trial and error I figured out that the problem is caused by the following lines in the domain specific httpd.include file:
<Files ~ (\.php)>
SetHandler fcgid-script
FCGIWrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper .php
Options +ExecCGI
allow from all
</Files>
The problem is invoked by the folowing line:
Removing this line would be the solution for the problem...allow from all
How can I get rid of this line???
I also tried to setup additional lines in vhost.conf like:
But this does not override the given line:<Files ~ (\.php)>
SetHandler fcgid-script
FCGIWrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper .php
Options +ExecCGI
</Files>
allow from all
I urgently need a solution for this sh.t problem!!!
My clients expect that all files in a protected directory are blocked!!!
All help appreciated
Many thanks in advance
Christian