<p>You can't use the domain .dev anymore, it's Google's gTLD (<a href="https://icannwiki.org/.dev" rel="nofollow noreferrer">https://icannwiki.org/.dev</a>) and they don't want to share. See <a href="https://medium.engineering/use-a-dev-domain-not-anymore-95219778e6fd" rel="nofollow noreferrer">https://medium.engineering/use-a-dev-domain-not-anymore-95219778e6fd</a> for a detailed backstory.</p>

<p>Instead, you should use <a href="https://en.wikipedia.org/wiki/.test" rel="nofollow noreferrer">the TLDs reserved by the IETF</a> for this purpose, like <code>.test</code>.</p>

<p>For reference, this is <a href="https://www.chromium.org/hsts" rel="nofollow noreferrer">the HSTS List maintained by Chromium</a> which is in turn the basis for the lists used by <a href="https://wiki.mozilla.org/SecurityEngineering/HTTP_Strict_Transport_Security_(HSTS)_Preload_List" rel="nofollow noreferrer">Firefox</a>, Opera, Safari, <a href="https://support.microsoft.com/en-us/help/3071338/internet-explorer-11-adds-support-for-http-strict-transport-security-s" rel="nofollow noreferrer">Internet Explorer and Edge</a></p>

CC BY-SA 3.0
2017-12-13T15:08:21.457Z
I didn't set up my environment for SSL but for some reason when I type in the browser ttp.craft.dev it gets the https added automatically. Would that might be some hint?
LessMore Creative Studio
CC BY-SA 3.0
2017-12-13T15:26:33.960Z
Please try the solution on this question https://stackoverflow.com/a/28586593
hashtagerrors
CC BY-SA 3.0
2017-12-13T15:33:20.473Z
@hashtagerrors Not really? Chrome 63 (out since December 2017), forces all domains ending on .dev (and .foo) to be redirected to HTTPS via a preloaded HTTP Strict Transport Security (HSTS) header. This behaviour will be extended to other browsers over the coming weeks. Good luck with continuing to use .dev.
Seth Warburton
CC BY-SA 3.0
2017-12-13T15:37:08.440Z
@hashtagerrors You are also ignoring the fact that this is a legit gTLD that you should not be using for local dev. There are specific domains defined for local dev, this is not one of them. It may have worked in the past, that does not mean it was ever the right thing to do; it wasn't.
Seth Warburton
CC BY-SA 3.0
2017-12-13T15:38:25.607Z
@SethWarburton Yes you are right. I support you on this, that's why I thanked you for the information.
hashtagerrors
CC BY-SA 3.0
2017-12-13T17:05:50.417Z
So my problem was a browser issue as mentioned above. Works still in safari, fire fox and opera (the ones I have tested)
LessMore Creative Studio
CC BY-SA 3.0
2017-12-14T10:20:21.463Z
@LessandMoreCollective It won't work for long in those other browsers, when they are updated they'll include the updated HSTS preload list too, all major browsers use the same Chromium list.
Seth Warburton
CC BY-SA 3.0
2017-12-14T14:35:45.383Z
@SethWarburton I've heard that, but haven't been able to find any documentation/verification of it. Do you happen to have a link or two?
Brad Bell
CC BY-SA 3.0
2017-12-14T16:16:42.630Z
@BradBell Answer updated with some links :)
Seth Warburton
CC BY-SA 3.0
2017-12-14T17:04:04.493Z
@SethWarburton brilliant... thank you!
Brad Bell
CC BY-SA 3.0
2017-12-13T13:09:37.173Z
2017-12-14T16:16:08.107Z
2017-12-14T16:16:08.107Z
Seth Warburton
<p>I am running into problems with virtual hosts while trying to run Craft locally.
My setup was working perfectly and after a restart of my mac I get error messages and I don't understand why.</p>

<p>I am using Mamp to run Apache and MySQL.
When I am going to one of my virtual host url I get the following error:</p>

<p><a href="https://i.sstatic.net/fkvFm.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/fkvFm.png" alt="enter image description here"></a></p>

<p>And when I type 'localhost' I get the following:</p>

<p><a href="https://i.sstatic.net/4YU0V.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/4YU0V.png" alt="enter image description here"></a></p>

<p>I have double checked the <strong>httpd.conf</strong> and the virtual hosts is enabled and my <strong>httpd-vhosts.conf</strong> is set up correctly as well.</p>

<p>I assume there is a certain issue with the virtual hosts as but I just cannot figure it out and it stop working without any changes/updates form my side so I'm really loosing it...</p>

<p>Does any one has an idea where to start searching for the problem?</p>

CC BY-SA 3.0
2017-12-13T14:59:26.760Z
Please check if http://ttp.craft.dev/phpmyadmin is working
hashtagerrors
CC BY-SA 3.0
2017-12-13T15:09:54.540Z
Not working. http://localhost/phpmyadmin works
LessMore Creative Studio
CC BY-SA 3.0
2017-12-13T15:12:25.947Z
Then there is an issue with your virtualhost. Please double check it. Or try creating a new one.
hashtagerrors
<server><apache>
Problems setting up a local site
# Problems setting up a local site

(Asked by: username_0 on 2017-12-13)

I am running into problems with virtual hosts while trying to run Craft locally.
My setup was working perfectly and after a restart of my mac I get error messages and I don't understand why.

I am using Mamp to run Apache and MySQL.
When I am going to one of my virtual host url I get the following error:

[![enter image description here](https://i.sstatic.net/fkvFm.png)](https://i.sstatic.net/fkvFm.png)

And when I type 'localhost' I get the following:

[![enter image description here](https://i.sstatic.net/4YU0V.png)](https://i.sstatic.net/4YU0V.png)

I have double checked the **httpd.conf** and the virtual hosts is enabled and my **httpd-vhosts.conf** is set up correctly as well.

I assume there is a certain issue with the virtual hosts as but I just cannot figure it out and it stop working without any changes/updates form my side so I'm really loosing it...

Does any one has an idea where to start searching for the problem?

**Tags:** server, apache
> **Comments:**
> **username_1**: Please check if http://ttp.craft.dev/phpmyadmin is working  
> **username_0**: Not working. http://localhost/phpmyadmin works  
> **username_1**: Then there is an issue with your virtualhost. Please double check it. Or try creating a new one.  

---

## 1 answers

### Answer by username_2 on 2017-12-13. Score: 5 | Accepted answer

You can't use the domain .dev anymore, it's Google's gTLD (<https://icannwiki.org/.dev>) and they don't want to share. See <https://medium.engineering/use-a-dev-domain-not-anymore-95219778e6fd> for a detailed backstory.

Instead, you should use [the TLDs reserved by the IETF](https://en.wikipedia.org/wiki/.test) for this purpose, like `.test`.

For reference, this is [the HSTS List maintained by Chromium](https://www.chromium.org/hsts) which is in turn the basis for the lists used by [Firefox](https://wiki.mozilla.org/SecurityEngineering/HTTP_Strict_Transport_Security_(HSTS)_Preload_List), Opera, Safari, [Internet Explorer and Edge](https://support.microsoft.com/en-us/help/3071338/internet-explorer-11-adds-support-for-http-strict-transport-security-s)

> **Comments:**
> **username_0**: I didn't set up my environment for SSL but for some reason when I type in the browser ttp.craft.dev it gets the https added automatically. Would that might be some hint?  
> **username_1**: Please try the solution on this question https://stackoverflow.com/a/28586593  
> **username_2**: @hashtagerrors Not really? Chrome 63 (out since December 2017), forces all domains ending on .dev (and .foo) to be redirected to HTTPS via a preloaded HTTP Strict Transport Security (HSTS) header. This behaviour will be extended to other browsers over the coming weeks. Good luck with continuing to use .dev.  
> **username_2**: @hashtagerrors You are also ignoring the fact that this is a legit gTLD that you should not be using for local dev. There are specific domains defined for local dev, this is not one of them. It may have worked in the past, that does not mean it was ever the right thing to do; it wasn't.  
> **username_1**: @SethWarburton Yes you are right. I support you on this, that's why I thanked you for the information.  
> **username_0**: So my problem was a browser issue as mentioned above. Works still in safari, fire fox and opera (the ones I have tested)  
> **username_2**: @LessandMoreCollective It won't work for long in those other browsers, when they are updated they'll include the updated HSTS preload list too, all major browsers use the same Chromium list.  
> **username_3**: @SethWarburton I've heard that, but haven't been able to find any documentation/verification of it. Do you happen to have a link or two?  
> **username_2**: @BradBell Answer updated with some links :)  
> **username_3**: @SethWarburton brilliant... thank you!  

---

