跳到主要内容
版本:latest

set_404_config

为指定网站开启或关闭自定义 404 错误页面。

  • 路由POST /site
  • actionset_404_config

输入参数

参数名称必选类型描述
actionString固定值 set_404_config
siteNameString网站域名
statusString"1" 开启,"0" 关闭

输出参数

参数名称类型描述
statusBooleantrue 修改成功
msgString修改成功!

示例

请求

POST /site HTTP/1.1
Host: 192.168.168.213:8888
Content-Type: application/x-www-form-urlencoded

action=set_404_config&siteName=testapi.bt.local&status=1

响应

{"status": true, "msg": "修改成功!"}

相关接口