Learn how to manage domains in Laravel Vapor.
domain
CLI command. When adding a domain to Vapor, always add the root domain, even if you plan to serve your application from a subdomain:
domain:list
CLI command:
record
command:
record
command functions as an “UPSERT” operation. If an existing record exists with the given type and name, its value will be updated to the given value. If no record exists with the given type or name, the record will be created.record:delete
command:
cert
CLI command:
record:list example.com
command. Then, you can update your DNS records at the external domain registrar accordingly.Please note that some DNS providers will automatically append the domain name to the CNAME name. In these instances, you can remove the domain name from the CNAME name.cert:list
CLI command:
cert:delete
CLI command. After running the command, Vapor will prompt you to select the specific certificate you want to delete for the given domain:
domain
configuration option in your application’s vapor.yml
file. When attaching a domain to an environment, you don’t need to include the “www” subdomain:
record:list example.com
command. Then, you can update your DNS records at the external domain registrar accordingly.vapor.yml
file to include each domain:
*
as the subdomain:
v1.api.example.com
. To make use of this functionality, a certificate must be requested which explicitly includes the full multi-level subdomain.
The certificate can be requested from the Vapor CLI:
domain
section of your vapor.yml
configuration file and carrying out a full deployment from the Vapor CLI:
vapor.yml
file.vanity-domain:delete <environment>
commmand: