LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1878|回复: 10

Linux的proftp/apache不支持flashget?

[复制链接]
发表于 2003-3-7 12:48:09 | 显示全部楼层 |阅读模式
我开了一个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
#<Limit LOGIN>
#  DenyAll
#</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.
<Directory /*>
  AllowOverwrite                on
</Directory>

# A basic anonymous configuration, no upload directories.
<Anonymous /opt/ftp>
  User                                ftp
  Group                                ftp

  # We want clients to be able to login with "anonymous" as well as "ftp"
  UserAlias                        anonymous ftp

  # If you want to provide anonymous ftp service, please
  # uncomment following line - "RequireValidShell off".

  RequireValidShell           off

  # Limit the maximum number of anonymous logins
  MaxClients                        20 "Sorry, max %m users -- try again later"

  # We want 'welcome.msg' displayed at login, and '.message' displayed
  # in each newly chdired directory.
  DisplayLogin                        welcome.msg
  DisplayFirstChdir                .message

  # Limit WRITE everywhere in the anonymous chroot
  <Limit WRITE>
    DenyAll
  </Limit>

  # Uncomment this next section for enable upload directory that allows -
  # storing files but not retrieving or creating directories.
  #<Directory incoming/*>
  #  <Limit READ>
  #    DenyAll
  #  </Limit>
  #
  #  <Limit STOR>
  #    AllowAll
  #  </Limit>
  #</Directory>

</Anonymous>
 楼主| 发表于 2003-3-7 13:00:12 | 显示全部楼层

问题描述补充

比如我的FTP有一个文件redhat.pdf,通过IE可以这样访问它所在的文件夹(x代表数字):
ftp://xxx.xx.xx.xx/Linux/
然后使用“复制到文件夹”就可以下载这个东西。但是用“网际快车”里“新建下载任务”输入地址ftp://xxx.xx.xx.xx/Linux/redhat.pdf
然后下载。不管几个线程,总是可以连接上,但就是不能下载。而在我的网页里有一个超链接也是指向这个文件,地址就是上头这样,结果每次都是无法打开。但是如果这个超链接是指向这个文件所在的目录,那么就可以用IE打开这个FTP文件夹——打开的过程中我的系统会不断尝试连接客户端的113端口。
 楼主| 发表于 2003-3-10 12:18:37 | 显示全部楼层

问题比想像的麻烦

而且我在描述上有问题。
我今天再在其他同学的电脑上试过了。文件夹是可以自由打开和复制,但是文件只能复制到本地以后才能使用——如果想直接在IE中点击某个文件,那就是不能够执行或者有下载的对话窗口弹出来。
不知道我的proftp到底是哪里有问题。我的ftp文件权限对于其它用户已经是可读和可执行的了。
发表于 2003-3-10 14:42:33 | 显示全部楼层
你的proftpd的下载目录和权限在哪里设?说清楚点,可能设成不支持多线程吧。

<Limit WRITE>
DenyAll
</Limit>这里是设成不能写吧?
 楼主| 发表于 2003-3-10 17:07:51 | 显示全部楼层

似乎是不支持多线程

应该怎么设定呢?和“设成不能写”没有什么吧?多谢了!
 楼主| 发表于 2003-3-10 22:47:28 | 显示全部楼层

哪位可以把自己的proftp配置文件发送给我

只要是正常使用的就行,多谢了!
 楼主| 发表于 2003-3-12 23:12:15 | 显示全部楼层

up

各位请帮忙!
 楼主| 发表于 2003-3-15 09:18:05 | 显示全部楼层

没有人会吗?

请各位看看
 楼主| 发表于 2003-3-19 22:40:50 | 显示全部楼层

help

请各位帮忙!
 楼主| 发表于 2003-3-30 12:08:37 | 显示全部楼层

!!!!!!!!

问题解决了。以下是我的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                        "roFTPD 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
#<Limit LOGIN>
#  DenyAll
#</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

# Set the maximum number of seconds a data connection is allowed
# to "stall" before being aborted.
TimeoutStalled                  120

# 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.
<Directory /*>
  AllowOverwrite                on
</Directory>

# A basic anonymous configuration, no upload directories.
<Anonymous /home/service/http/download>
  User                                ftp
  Group                                ftp

  # We want clients to be able to login with "anonymous" as well as "ftp"
  UserAlias                        anonymous ftp

  # If you want to provide anonymous ftp service, please
  # uncomment following line - "RequireValidShell off".

   RequireValidShell           off

  # Limit the maximum number of anonymous logins
  MaxClients                        25 "Sorry, max %m users -- try again later"

  # We want 'welcome.msg' displayed at login, and '.message' displayed
  # in each newly chdired directory.
  DisplayLogin                        welcome.msg
  DisplayFirstChdir                .message

  # Limit WRITE everywhere in the anonymous chroot
  <Limit WRITE>
    DenyAll
  </Limit>

  # Uncomment this next section for enable upload directory that allows -
  # storing files but not retrieving or creating directories.
  #<Directory incoming/*>
  #  <Limit READ>
  #    DenyAll
  #  </Limit>
  #
  #  <Limit STOR>
  #    AllowAll
  #  </Limit>
  #</Directory>

</Anonymous>
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表