由 ralf 在 03-07-2003 12:48 发表:
Linux的proftp/apache不支持flashget?
我开了一个apache服务和一个proftp服务。同学上我的网站,发现每次上我的匿名FTP我的电脑就会试图连接他电脑的113端口。接下来的问题就是他不能用flashget(网际快车)下载我FTP上的东西。然后就是发现他通过我网页上指向我FTP文件夹的超链接可以由IE访问我的FTP,但是他不能通过我网页上指向我FTP某个文件的超链接来直接下载这个文件——无论使用什么方式都无法打开该链接。至于什么flashget就根本不能下载到我的任何资源——虽然可以连接但是不能下载,哪怕只是开一个线程。难道linux不支持flashget?
多谢各位指教。
以下是我的proftp配置文件:
This is a basic ProFTPD configuration file (rename it to
'proftpd.conf' for actual use. It establishes a single server
and a single anonymous login. It assumes that you have a user/group
"nobody" and "ftp" for normal operation and anon.
ServerName "Welcome"
ServerType standalone
DefaultServer on
Port 21 is the standard FTP port.
Port 21
Umask 022 is a good standard umask to prevent new dirs and files
from being group and world writable.
Umask 022
If you don't want normal users logging in at all, uncomment this
next section
1<limit login="">
2
3# DenyAll
4
5#</limit>
To prevent DoS attacks, set the maximum number of child processes
to 30. If you need to allow more than 30 concurrent connections
at once, simply increase this value. Note that this ONLY works
in standalone mode, in inetd mode you should use an inetd server
that allows you to limit maximum number of processes per service
(such as xinetd)
MaxInstances 30
Set the maximum number of seconds a data connection is allowed
to "stall" before being aborted.
TimeoutStalled 300
Set the user and group that the server normally runs at.
User nobody
Group nobody
The PersistentPasswd directive controls how proftpd handles authentication
Note: NIS or NIS+ users will most likely want to disable this feature,
regardless of proftpd's detected configuration defaults.
Failure to disable this will make your NIS/NIS+ maps not work!
PersistentPasswd off
The ExtendedLog directive allows customizable logfiles to be generated,
either globally or per VirtualHost. The filename argument must contain
an absolute pathname to a logfile which will be appended to when proftpd starts.
Multiple logfiles (potentially with different command classes and formats) can be
created.
ExtendedLog /var/log/proftpd.log
Normally, we want files to be overwriteable.
1<directory *="">
2
3AllowOverwrite on
4
5</directory>
A basic anonymous configuration, no upload directories.
1<anonymous ftp="" opt="">
2
3User ftp
4
5Group ftp
6
7
8
9# We want clients to be able to login with "anonymous" as well as "ftp"
10
11UserAlias anonymous ftp
12
13
14
15# If you want to provide anonymous ftp service, please
16
17# uncomment following line - "RequireValidShell off".
18
19
20
21RequireValidShell off
22
23
24
25# Limit the maximum number of anonymous logins
26
27MaxClients 20 "Sorry, max %m users -- try again later"
28
29
30
31# We want 'welcome.msg' displayed at login, and '.message' displayed
32
33# in each newly chdired directory.
34
35DisplayLogin welcome.msg
36
37DisplayFirstChdir .message
38
39
40
41# Limit WRITE everywhere in the anonymous chroot
42
43<limit write="">
44
45DenyAll
46
47</limit>
48
49
50
51# Uncomment this next section for enable upload directory that allows -
52
53# storing files but not retrieving or creating directories.
54
55#<directory *="" incoming="">
56
57# <limit read="">
58
59# DenyAll
60
61# </limit>
62
63#
64
65# <limit stor="">
66
67# AllowAll
68
69# </limit>
70
71#</directory>
72</anonymous>
由 ralf 在 03-07-2003 13:00 发表:
问题描述补充
比如我的FTP有一个文件redhat.pdf,通过IE可以这样访问它所在的文件夹(x代表数字):
然后使用“复制到文件夹”就可以下载这个东西。但是用“网际快车”里“新建下载任务”输入地址 ftp://xxx.xx.xx.xx/Linux/redhat.pdf
然后下载。不管几个线程,总是可以连接上,但就是不能下载。而在我的网页里有一个超链接也是指向这个文件,地址就是上头这样,结果每次都是无法打开。但是如果这个超链接是指向这个文件所在的目录,那么就可以用IE打开这个FTP文件夹——打开的过程中我的系统会不断尝试连接客户端的113端口。
由 ralf 在 03-10-2003 12:18 发表:
问题比想像的麻烦
而且我在描述上有问题。
我今天再在其他同学的电脑上试过了。文件夹是可以自由打开和复制,但是文件只能复制到本地以后才能使用——如果想直接在IE中点击某个文件,那就是不能够执行或者有下载的对话窗口弹出来。
不知道我的proftp到底是哪里有问题。我的ftp文件权限对于其它用户已经是可读和可执行的了。
由 小野九九震 在 03-10-2003 14:42 发表:
你的proftpd的下载目录和权限在哪里设?说清楚点,可能设成不支持多线程吧。
1<limit write="">
2
3DenyAll
4
5</limit>
这里是设成不能写吧?
由 ralf 在 03-10-2003 17:07 发表:
似乎是不支持多线程
应该怎么设定呢?和“设成不能写”没有什么吧?多谢了!
由 ralf 在 03-10-2003 22:47 发表:
哪位可以把自己的proftp配置文件发送给我
只要是正常使用的就行,多谢了!
由 ralf 在 03-12-2003 23:12 发表:
up
各位请帮忙!
由 ralf 在 03-15-2003 09:18 发表:
没有人会吗?
请各位看看
由 ralf 在 03-19-2003 22:40 发表:
help
请各位帮忙!
由 ralf 在 03-30-2003 12:08 发表:
!!!!!!!!
问题解决了。以下是我的proftp配置文件:
This is a basic ProFTPD configuration file (rename it to
'proftpd.conf' for actual use. It establishes a single server
and a single anonymous login. It assumes that you have a user/group
"nobody" and "ftp" for normal operation and anon.
ServerName "ProFTPD Default Installation"
ServerType standalone
DefaultServer on
Port 21 is the standard FTP port.
Port 21
Umask 022 is a good standard umask to prevent new dirs and files
from being group and world writable.
Umask 022
If you don't want normal users logging in at all, uncomment this
next section
1<limit login="">
2
3# DenyAll
4
5#</limit>
To prevent DoS attacks, set the maximum number of child processes
to 30. If you need to allow more than 30 concurrent connections
at once, simply increase this value. Note that this ONLY works
in standalone mode, in inetd mode you should use an inetd server
that allows you to limit maximum number of processes per service
(such as xinetd)
MaxInstances 40