Virtual Hosts
In order to start forwarding the incoming traffic to your backend servers, you need to configure and link a Virtual Host to an existing Upstream. The Virtual Hosts are the domains that will be used to connect to your servers.
Configuring a Virtual Host
To configure a new Virtual Host, go to the Virtual Hosts page, and click on the ADD button, after that you'll be presented with a modal asking for the following information:
| Field | Description |
|---|---|
| Virtual Host | The domain name that will be used to connect to your server, and later configured in your DNS records. |
| Upstream | The upstream that will be used to forward traffic to your backend servers. Refer to Upstreams section for more info. |
After filling the virtual host information, v4Guard will attempt to verify the ownership of the domain, by checking if the root domain has been verified, and if the CNAME record has been properly configured.
Ownership Verification: Root Domain
When creating your v4Guard commpany, you were asked to verify the ownership of your root domain, by adding a TXT record to your DNS records. If you have not done this yet, you'll be prompted to do so when attempting to create a new virtual host.
You can easily verify the root domain by adding the information provided in the modal to your DNS records, for example:
Ownership Verification: CNAME Record
If your root domain has been verified, you'll be prompted to add a CNAME record to your DNS records pointing to your protected Ingress CNAME, this will automatically verify the ownership of the subdomain and will route the traffic to the user's closest edge location.
You can easily verify the CNAME record by adding the information provided in the modal to your DNS records, for example:
If you use Cloudflare, make sure to set the Proxy status option to DNS only, otherwise the connections will not reach our network.
After verifying both root domain and CNAME record, you'll be able to save the virtual host.
Wildcard Domains
We allow you to use wildcard domains, so you can use a single domain to forward traffic from multiple subdomains instead of creating a new virtual host for each different subdomain.
To use a wildcard domain, it is necessary to create a new virtual host with the root domain. Any connection from an unknown subdomain will be forwarded to the upstream configured in the wildcard virtual host.

How is this guide?