2018年8月

1、服务器开启 options方法

通过web.config文件禁止WEB服务启用OPTIONS方法

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
   <security>
      <requestFiltering>
        <verbs allowUnlisted="true">
          <add verb="OPTIONS" allowed="false"/>
        </verbs>
      </requestFiltering>
    </security>
  </system.webServer>
</configuration>

- 阅读剩余部分 -

如果出现这个错误,解决方法如下:

When I tried to restart iptables from vps , I got the following error.
Iptables encountered such a problem to save the iptables rules:

“iptables: Saving firewall rules to /etc/sysconfig/iptables: /etc/init.d/iptables: line 268: restorecon: command not foundiptables: Saving firewall rules to /etc/sysconfig/iptables: /etc/ init.d/iptables: line 268: restorecon: command not found”

- 阅读剩余部分 -