Am 13.02.2011 23:17, schrieb Carsten Wiedmann:
Just some more Infos on this. In my "httpd.conf" I have:
| AddHandler cgi-script .pl .php
My "ftpd.conf" is:
| <VirtualHost _default_:21>
| DocumentRoot "C:/Users/Public/Downloads"
| FTP On
| <Directory "C:/Users/Public/Downloads">
|
| <Files "*">
| ForceType None
| SetHandler None
| </Files>
|
| </Directory>
| </VirtualHost>
Now if I try to access "ftp://localhost/perlinfo.pl", I get this in
"ftp_error.log":
| [Sun Feb 13 22:59:22 2011] [error] [client 127.0.0.1] \
| Options ExecCGI is off in this directory: \
| C:/Users/Public/Downloads/perlinfo.pl
Ok, If I change my "httpd.conf" (and other "AddHandler") to:
| <FilesMatch "\.(pl|php)$">
| SetHandler cgi-script
| </FilesMatch>
it's working. But I still think it should also work with AddHandler.
In addition, instead of
| <Files "*">
| ForceType None
| SetHandler None
| </Files>
I now using:
| <Location />
| ForceType None
| SetHandler None
| </Location>
because I also don't want thinks like "ftp://localhost/server-info" are
working.
BTW:
Why is there no "SetOutputFilter None"? At the moment, every time I
download a .shtml file through ftp, I get a [warn] in my "ftp_error.log".
It would also be nice to have something like "IndexIgnore" for mod_ftp.
Regards,
Carsten