在VPS上配置IIS的FTP站点,从零开始指南
卡尔云官网
www.kaeryun.com
如果你正在使用VPS(虚拟专用服务器)和IIS(Internet Information Services)搭建一个FTP站点,可能会遇到一些问题,你可能在配置IIS时发现,即使在VPS里安装了FTP功能,也无法访问或管理FTP站点,别担心,我们来一步步详细讲解如何在VPS上配置IIS的FTP站点。
什么是IIS的FTP功能?
IIS(Internet Information Services)是微软为Windows服务器开发的一个Web服务器,它内置了FTP功能,允许你在Web服务器上配置FTP站点,这个功能特别适合需要将FTP站点托管在Web服务器上的情况,因为这样可以方便地通过Web浏览器访问FTP站点。
配置IIS的FTP站点
配置FTP服务器
我们需要在IIS的配置文件中启用FTP功能,IIS默认不启用FTP功能,所以需要通过配置文件进行启用。
进入IIS管理器:
- 打开命令提示符,输入
wshimp /enable-feature vssftpd
,然后按回车键,这会启用FTP功能。
进入配置文件目录:
2. 输入cd %ProgramFiles(IED)/MicrosoftInternetInformationServices/IE8/config/
,然后按回车键。
3. 进入config/
目录后,找到index.php
文件。
4. 如果没有这个文件,输入cp -r %ProgramFiles(IED)/MicrosoftInternetInformationServices/IE8/config/index.php.* .
,然后按回车键,这会复制所有配置文件到index.php
目录下。
5. 编辑index.php
文件,找到以下内容:
<VirtualServerName *.htaccess>
<ServerName *.htaccess>
<Port 80>
<ProtocolVersion 1.3>
<Directory "$ documents">
<Option AutoCreateDirectory>
<Option PermittedHosts>
<Host>
<Name *.htaccess>
</Name>
</Host>
<Option PermittedPaths>
<Path>/(.*\.php|/.*.asp|/.*.cfm|/.*.cfml|/.*.aspx|/.*.cfmls|/.*.aspxs|/.*.cfmlp|/.*.cfmr|/.*.aspxs)|
<Path>/(.*\.php|/.*.asp|/.*.cfm|/.*.cfml|/.*.aspx|/.*.cfmls|/.*.aspxs|/.*.cfmlp|/.*.cfmr|/.*.aspxs)
</Option>
<Option SslEnabled>
<Value True>
</Option>
<Option SslProtocol>
<Value TLS>
</Option>
<Option SslEnabledOnRequest>
<Value True>
</Option>
<Option SslCipher>
<Value>
<NameList>
<Name Aes-128-Gcm>
<Name Aes-192-Gcm>
<Name Aes-256-Gcm>
<Name Rijndael-256>
</NameList>
</NameList>
</Option>
<Option SslProtocol>
<Value TLS>
</Option>
<Option SslCipher>
<Value>
<NameList>
<Name Aes-128-Gcm>
<Name Aes-192-Gcm>
<Name Aes-256-Gcm>
<Name Rijndael-256>
</NameList>
</NameList>
</Option>
<Option SslEnabledOnRequest>
<Value True>
</Option>
<Option SslCipher>
<Value>
<NameList>
<Name Aes-128-Gcm>
<Name Aes-192-Gcm>
<Name Aes-256-Gcm>
<Name Rijndael-256>
</NameList>
</NameList>
</Option>
<Option SslEnabledOnRequest>
<Value True>
</Option>
<Option SslCipher>
<Value>
<NameList>
<Name Aes-128-Gcm>
<Name Aes-192-Gcm>
<Name Aes-256-Gcm>
<Name Rijndael-256>
</NameList>
</NameList>
</Option>
<Option SslEnabledOnRequest>
<Value True>
</Option>
<Option SslCipher>
<Value>
<NameList>
<Name Aes-128-Gcm>
<Name Aes-192-Gcm>
<Name Aes-256-Gcm>
<Name Rijndael-256>
</NameList>
</NameList>
</Option>
<Option SslEnabledOnRequest>
<Value True>
</Option>
<Option SslCipher>
<Value>
<NameList>
<Name Aes-128-Gcm>
<Name Aes-192-Gcm>
<Name Aes-256-Gcm>
<Name Rijndael-256>
</NameList>
</NameList>
</Option>
<Option SslEnabledOnRequest>
<Value True>
</Option>
<Option SslCipher>
<Value>
<NameList>
<Name Aes-128-Gcm>
<Name Aes-192-Gcm>
<Name Aes-256-Gcm>
<Name Rijndael-256>
</NameList>
</NameList>
</Option>
<Option SslEnabledOnRequest>
<Value True>
</Option>
<Option SslCipher>
<Value>
<NameList>
<Name Aes-128-Gcm>
<Name Aes-192-Gcm>
<Name Aes-256-Gcm>
<Name Rijndael-256>
</NameList>
</NameList>
</Option>
<Option SslEnabledOnRequest>
<Value True>
</Option>
<Option SslCipher>
<Value>
<NameList>
<Name Aes-128-Gcm>
<Name Aes-192-Gcm>
<Name Aes-256-Gcm>
<Name Rijndael-256>
</NameList>
</NameList>
</Option>
<Option SslEnabledOnRequest>
<Value True>
</Option>
<Option SslCipher>
<Value>
<NameList>
<Name Aes-128-Gcm>
<Name Aes-192-Gcm>
<Name Aes-256-Gcm>
<Name Rijndael-256>
</NameList>
</NameList>
</Option>
<Option SslEnabledOnRequest>
<Value True>
</Option>
<Option SslCipher>
<Value>
<NameList>
<Name Aes-128-Gcm>
<Name Aes-192-Gcm>
<Name Aes-256-Gcm>
<Name Rijndael-256>
</NameList>
</NameList>
</Option>
<Option SslEnabledOnRequest>
<Value True>
</Option>
<Option SslCipher>
<Value>
<NameList>
<Name Aes-128-Gcm>
<Name Aes-192-Gcm>
<Name Aes-256-Gcm>
<Name Rijndael-256>
</NameList>
</NameList>
</Option>
<Option SslEnabledOnRequest>
<Value True>
</Option>
<Option SslCipher>
<Value>
<NameList>
<Name Aes-128-Gcm>
<Name Aes-192-Gcm>
<Name Aes-256-Gcm>
<Name Rijndael-256>
</NameList>
</NameList>
</Option>
<Option SslEnabledOnRequest>
<Value True>
</Option>
<Option SslCipher>
<Value>
<NameList>
<Name Aes-128-Gcm>
<Name Aes-192-Gcm>
<Name Aes-256-Gcm>
<Name Rijndael-256>
</NameList>
</NameList>
</Option>
<Option SslEnabledOnRequest>
<Value True>
</Option>
<Option SslCipher>
<Value>
<NameList>
<Name Aes-128-Gcm>
<Name Aes-192-Gcm>
<Name Aes-256-Gcm>
<Name Rijndael-256>
</NameList>
</NameList>
</Option>
<Option SslEnabledOnRequest>
<Value True>
</Option>
<Option SslCipher>
<Value>
<NameList>
<Name Aes-128-Gcm>
<Name Aes-192-Gcm>
<Name Aes-256-Gcm>
<Name Rijndael-256>
</NameList>
</NameList>
</Option>
<Option SslEnabledOnRequest>
<Value True>
</Option>
<Option SslCipher>
<Value>
<NameList>
<Name Aes-128-Gcm>
<Name Aes-192-Gcm>
<Name Aes-256-Gcm>
<Name Rijndael-256>
</NameList>
</NameList>
</Option>
<Option SslEnabledOnRequest>
<Value True>
</Option>
<Option SslCipher>
<Value>
<NameList>
<Name Aes-128-Gcm>
<Name Aes-192-Gcm>
<Name Aes-256-Gcm>
<Name Rijndael-256>
</NameList>
</NameList>
</Option>
<Option SslEnabledOnRequest>
<Value True>
</Option>
<Option SslCipher>
<Value>
<NameList>
<Name Aes-128-Gcm>
<Name Aes-192-Gcm>
<Name Aes-256-Gcm>
<Name Rijndael-256>
</NameList>
</NameList>
</Option>
<Option SslEnabledOnRequest>
<Value True>
</Option>
<Option SslCipher>
<Value>
<NameList>
<Name Aes-128-Gcm>
<Name Aes-192-Gcm>
<Name Aes-256-Gcm>
<Name Rijndael-256>
</NameList>
</NameList>
</Option>
<Option SslEnabledOnRequest>
<Value True>
</Option>
<Option SslCipher>
<Value>
<NameList>
<Name Aes-128-Gcm>
<Name Aes-192-Gcm>
<Name Aes-256-Gcm>
<Name Rijndael-256>
</NameList>
</NameList>
</Option>
<Option SslEnabledOnRequest>
<Value True>
</Option>
<Option SslCipher>
<Value>
<NameList>
<Name Aes-128-Gcm>
<Name Aes-192-Gcm>
<Name Aes-256-Gcm>
<Name Rijndael-256>
</NameList>
</NameList>
</Option>
<Option SslEnabledOnRequest>
<Value True>
</Option>
<Option SslCipher>
<Value>
<NameList>
<Name Aes-128-Gcm>
<Name Aes-192-Gcm>
<Name Aes-256-Gcm>
<Name Rijndael-256>
</NameList>
</NameList>
</Option>
<Option SslEnabledOnRequest>
<Value True>
</Option>
<Option SslCipher>
<Value>
<NameList>
<Name Aes-128-Gcm>
<Name Aes-192-Gcm>
<Name Aes-256-Gcm>
<Name Rijndael-256>
</NameList>
</NameList>
</Option>
<Option SslEnabledOnRequest>
<Value True>
</Option>
<Option SslCipher>
<Value>
<NameList>
<Name Aes-128-Gcm>
<Name Aes-192-Gcm>
<Name Aes-256-Gcm>
<Name Rijndael-256>
</NameList>
</NameList>
</Option>
<Option SslEnabledOnRequest>
<Value True>
</Option>
<Option SslCipher>
<Value>
<NameList>
<Name Aes-128-Gcm>
<Name Aes-192-Gcm>
<Name Aes-256-Gcm>
<Name Rijndael-256>
</NameList>
</NameList>
</Option>
<Option SslEnabledOnRequest>
<Value True>
</Option>
<Option SslCipher>
<Value>
<NameList>
<Name Aes-128-Gcm>
<Name Aes-192-Gcm>
<Name Aes-256-Gcm>
<Name Rijndael-256>
</NameList>
</NameList>
</Option>
<Option SslEnabledOnRequest>
<Value True>
</Option>
<Option SslCipher>
<Value>
<NameList>
<Name Aes-128-Gcm>
<Name Aes-192-Gcm>
<Name Aes-256-Gcm>
<Name Rijndael-256>
</NameList>
</NameList>
</Option>
<Option SslEnabledOnRequest>
<Value True>
</Option>
<Option SslCipher>
<Value>
<NameList>
<Name Aes-128-Gcm>
<Name Aes-192-Gcm>
<Name Aes-256-Gcm>
<Name Rijndael-256>
</NameList>
</NameList>
</Option>
<Option SslEnabledOnRequest>
<Value True>
</Option>
<Option SslCipher>
<Value>
<NameList>
<Name Aes-128-Gcm>
<Name Aes-192-Gcm>
<Name Aes-256-Gcm>
<Name Rijndael-256>
</NameList>
</NameList>
</Option>
<Option SslEnabledOnRequest>
<Value True>
</Option>
<Option SslCipher>
<Value>
<NameList>
<Name Aes-128-Gcm>
<Name Aes-192-Gcm>
<Name Aes-256-Gcm>
<Name Rijndael-256>
</NameList>
</NameList>
</Option>
<Option SslEnabledOnRequest>
<Value True>
</Option>
<Option SslCipher>
<Value>
<NameList>
<Name Aes-128-Gcm>
<Name Aes-192-Gcm>
<Name Aes-256-Gcm>
<Name Rijndael-256>
</NameList>
</NameList>
</Option>
<Option SslEnabledOnRequest>
<Value True>
</Option>
<Option SslCipher>
<Value>
<NameList>
<Name Aes-128-Gcm>
<Name Aes-192-Gcm>
<Name Aes-256-Gcm>
<Name Rijndael-256>
</NameList>
</NameList>
</Option>
<Option SslEnabledOnRequest>
<Value True>
</Option>
<Option SslCipher>
<Value>
<NameList>
<Name Aes-128-Gcm>
<Name Aes-192-Gcm>
<Name Aes-256-Gcm>
<Name Rijndael-256>
</NameList>
</NameList>
</Option>
<Option SslEnabledOnRequest>
<Value True>
</Option>
<Option SslCipher>
<Value>
<NameList>
<Name Aes-128-Gcm>
<Name Aes-192-Gcm>
<Name Aes-256-Gcm>
<Name Rijndael-256>
</NameList>
</NameList>
</Option>
<Option SslEnabledOnRequest>
<Value True>
</Option>
<Option SslCipher>
<Value>
<NameList>
<Name Aes-128-Gcm>
<Name Aes-192-Gcm>
<Name Aes-256-Gcm>
<Name Rijndael-256>
</NameList>
</NameList>
</Option>
<Option SslEnabledOnRequest>
<Value True
卡尔云官网
www.kaeryun.com