httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carsten Wiedmann <carsten_st...@gmx.de>
Subject Re: [users@httpd] [mod_ftp] accessing root path with firefox
Date Sun, 13 Feb 2011 22:17:39 GMT
Am 10.02.2011 12:40, schrieb Carsten Wiedmann:
> Then I've found my next problem:
> I can't download any cgi/pl/php file... e.g. Firefox shows me:
> | 550 /phpinfo.php: Not a directory
>
> This happens for all files I have defined a handler somewhere. Of
> course, I've added this to my ftpd.conf:
> | <Files "*">
> | ForceType None
> | SetHandler None
> | </Files>
> Still the same problem.

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">
|     DirectoryIndex none
|     Options None
|
|     Order Allow,Deny
|     Allow from all
|
|     <FilesMatch "(desktop\.ini|folder\.jpg|Thumbs\.db)">
|         Deny from all
|     </FilesMatch>
|
|     <Files "*">
|         ForceType None
|         SetHandler None
|     </Files>
|
|     AuthName "Use 'anonymous' and email address for guest entry"
|     AuthType basic
|     AuthBasicProvider anon
|
|     Anonymous *
|     Anonymous_MustGiveEmail Off
|     Anonymous_LogEmail Off
|     Anonymous_VerifyEmail Off
|     Anonymous_NoUserId On
|
|     require valid-user
| </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

BTW:
I also get this error message, if "perlinfo.pl" not exists...


If I remove:
| AddHandler cgi-script .pl .php

from my "httpd.conf", I can download the file. But should "SetHandler 
None" in my ftpd.conf not doing the same? Or how must I configure my 
"ftpd.conf" to be able to download .pl files (without removing the entry 
from "httpd.conf")?


Regards,
Carsten



Mime
View raw message