npm_create_redirection_host
Create a redirection host in Nginx Proxy Manager to redirect domains to a target URL, with custom nginx rules, SSL, and HTTP options.
Instructions
Create a new redirection host. Supports advanced_config for custom nginx configuration.
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": {
"domain_names": "<domain_names>",
"forward_scheme": "<forward_scheme>",
"forward_http_code": "<forward_http_code>",
"forward_domain_name": "<forward_domain_name>"
},
"name": "npm_create_redirection_host"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ssl_forced | No | Force HTTPS | |
| domain_names | Yes | List of domain names | |
| hsts_enabled | No | Enable HSTS | |
| http2_support | No | Enable HTTP/2 | |
| preserve_path | No | Preserve original path | |
| block_exploits | No | Block common exploits | |
| certificate_id | No | SSL certificate ID | |
| forward_scheme | Yes | Forwarding scheme | |
| advanced_config | No | Custom nginx configuration (advanced_config) | |
| hsts_subdomains | No | Include subdomains in HSTS | |
| forward_http_code | Yes | HTTP redirect code (300-308) | |
| forward_domain_name | Yes | Target domain to redirect to |