get_nginx_config
Retrieve the Nginx configuration file for a specific domain to inspect reverse proxy, SSL, and location rules.
Instructions
读取指定网站的 Nginx 配置文件(/www/server/panel/vhost/nginx/<域名>.conf)。适合查看反代、SSL、location 规则等配置。只读,不修改。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>",
"site_name": "<site_name>"
},
"name": "get_nginx_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | get:读取 Nginx 配置文件内容 | save:保存修改后的配置内容(谨慎操作,保存后即生效) | |
| site_name | Yes | 网站名称(主域名),对应 /www/server/panel/vhost/nginx/<site_name>.conf | |
| content | No | 【save】新的配置文件内容,完整替换原文件 |