The vhost tool allows you to view and update the Nginx configuration on your deployment. This can be used to add an additional domain to the deployment.
vhost info displays the current configuration:
root@i-a5469846a993a5469:~# vhost info example.com
KEY VALUE
state: enabled
template_hash: 6f05802
input_hash: d87c0f9
output_hash: 967094e
domain_name: example.com
additional_domain: b2e5e3ea-f4a4-403e-a050-572abcc7f0cb.jetrails.net
site_name: example.comBy default, your AutoPilot deployment will include a preview domain ending in jetrails.net. You can change this to any other domain with vhost modify:
vhost modify example.com additional_domain=example2.comThe above command will add example2.com to the Nginx configuration for example.com.
If you are hosting multiple stores on a Magento deployment, you will also need to update /etc/nginx/http.d/multistore-map.conf with the store codes for each store.
The tool currently cannot change the primary domain displayed in the AutoPilot interface. If you need this to be changed, please submit a ticket with us here.
Comments
0 comments
Article is closed for comments.