APACHE禁用OPTION方法

未禁用OPTION方法火狐访问

APACHE禁用OPTION方法

 

禁用APACHE,OPTION方法

编辑httpd.conf

<VirtualHost *:60081>
    ServerAdmin [email protected]
    ServerName 192.168.15.63
    DocumentRoot /home/w/html/zt2878
    <Directory /home/w/html/zt2878>

#禁用OPTION方法,添加以下几行代码
        <Limit OPTION>
            Order deny,allow
            Deny from all
        </Limit>

    </Directory>
    ErrorLog "logs/zt2878-error_log"
    CustomLog "logs/zt2878-access_log" combined
</VirtualHost>

重启apache生效

 

再次使用火狐访问如下:

APACHE禁用OPTION方法