With a custom origin server, you can route traffic from your domain names to specific endpoints. This allows you to choose different endpoints for each domain, giving you more control over how traffic is routed.
Example:
- customer1.example.com goes to origin1.com
- customer2.example.com goes to origin2.com
Availability
This feature is available to all customers across all plans
Using a custom origin
To use a custom origin, include the "target": "your_target_endpoint" parameter when adding a domain name using the API
Sample Request
Replace the API_KEY with your BrandSSL token. You can get your authorization token from the settings page of your dashboard.
curl -XPOST -H "Content-type: application/json" -d '{
"domain": "www.example.com",
"target": "{CUSTOM_ORIGIN_SERVER}"
}' 'https://www.brandssl.io/api/{API_KEY}/tls'
If the request is successful, you will get an HTTP status 201 response.