跳到主要内容
版本:latest

delete

删除指定反向代理站点,包括 Nginx 配置、日志、数据库记录。

  • 路由POST /mod/proxy/com/delete/stype
  • actiondelete

输入参数

参数名称必选类型描述
idint站点 ID
site_namestring站点名称
remove_path/dint是否同时删除网站目录,1 删除,0 保留(默认)
reload/dint是否重载 Nginx,1 重载(默认),0 不重载

输出参数

参数名称类型描述
statusbool操作结果
msgstring提示信息

示例

请求

curl -X POST "http://192.168.168.213:8888/mod/proxy/com/delete/stype" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "id=1&site_name=example.com&remove_path=0&request_time=...&request_token=..."

响应

{
"status": true,
"msg": "反向代理项目删除成功!"
}