Desktop icon indicating copy to clipboard operation
Desktop copied to clipboard

Cannot change host

Open joelworsham opened this issue 6 years ago • 2 comments

  1. I created a new site with name "jacksoncollege".
  2. The host was automatically set to vagrant.local. I thought this a bit odd. I would have rather it be jacksoncollege.local or jacksoncollege.dev.
  3. I went to settings for the box, changed "Hosts:" to jacksoncollege.dev. I hit "Done" to save.
  4. Hit "Open" but get "Site cannot be reached".
  5. So I go back to settings, verify new host is still present, and hit "Refresh Details". Same problem.
  6. I then totally shut down and restart the box. Same problem.

joelworsham avatar Aug 16 '17 15:08 joelworsham

Follow up: I made 2 more testing sites, just curious to see if they all would get vagrant.local. They do. This can't be right :P

joelworsham avatar Aug 16 '17 16:08 joelworsham

This should definitely be clearer in the UI.

I went to settings for the box, changed "Hosts:" to jacksoncollege.dev. I hit "Done" to save. Hit "Open" but get "Site cannot be reached".

For automatic host resolution to work, you have to use <name>.local. Any other TLD will require manually adding to your /etc/hosts. We should warn in the UI if you attempt to set this.

Follow up: I made 2 more testing sites, just curious to see if they all would get vagrant.local. They do. This can't be right :P

This is right; so long as they aren't running at the same time, there's no issue (I have about 10 boxes all using vagrant.local, but I only run one at a time, so it's not an issue). We should warn in the UI if you try to launch a box using the same hostname as an existing one.

rmccue avatar Aug 19 '17 05:08 rmccue