Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
86 lines (59 sloc) 3.99 KB
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>localtest.me</title>
<link rel="stylesheet" href="stylesheets/styles.css">
<link rel="stylesheet" href="stylesheets/pygment_trac.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="javascripts/respond.js"></script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!--[if lt IE 8]>
<link rel="stylesheet" href="stylesheets/ie.css">
<![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
</head>
<body>
<div class="wrapper">
<section>
<div id="title">
<h1>*.localtest.me</h1>
<p>localhost testing done right</p>
<hr>
</div>
<h1>localtest.me</h1>
<p>Save this URL, memorize it, write it on a sticky note, tweet it, tell your colleagues about it!</p>
<p>localtest.me (<a href="http://localtest.me">http://localtest.me</a>)</p>
<p>and</p>
<p>*.localtest.me (<a href="http://something.localtest.me">http://something.localtest.me</a>)</p>
<p>If you do any testing on your local system you’ve probably created hosts file entries (c:\windows\system32\drivers\etc\hosts) for different testing domains and had them point back to 127.0.0.1. This works great but it requires just a bit of extra effort.</p>
<p>This localtest.me trick is so obvious, so simple, and yet so powerful. I wouldn’t be surprised if there are other domain names like this out there, but I haven’t run across them yet so I just ordered the domain name localtest.me which I’ll keep available for the internet community to use.</p>
<p>Here’s how it works. The entire domain name localtest.me—and all wildcard entries—point to 127.0.0.1. So without any changes to your host file you can immediate start testing with a local URL.</p>
<p>Examples:</p>
<pre><code>http://localtest.me
http://newyork.localtest.me
http://mysite.localtest.me
http://redirecttest.localtest.me
http://sub1.sub2.sub3.localtest.me
</code></pre>
<p>You name it, just use any *.localtest.me URL that you dream up and it will work for testing on your local system.</p>
<h2>SSL</h2>
<p><del>Another great advantage of using an internet DNS name is that we have a real SSL certificate for it. That means there's no more messing about with self-signed, untrusted certificates during development.</del></p>
<p><del>You can download the public and private key here: <a href="http://readme.localtest.me/STAR_localtest_me.zip">http://readme.localtest.me/STAR_localtest_me.zip</a></del></p>
<p><del>If you use this key, please add a calendar reminder to come back here before May 18<sup>th</sup> 2013 to download the renewed certificate.</del></p>
<p><strong>Update:</strong> The CA revoked our certificate because they considered the private key to be compromised. I'm not entirely sure how they detected this, but they refuse to reissue it. My best idea is to get a new key elsewhere and make the key accessible but through a CAPTCHA or something so that a bot can't discover it. Any better ideas would be appreciated.</p>
<h2>More details</h2>
<p>Read the introduction by <a href="http://weblogs.asp.net/owscott/archive/2012/05/14/introducing-testing-domain-localtest-me.aspx">Scott Forsyth</a></p>
<h2>Credits</h2>
<p>Idea: <a href="http://weblogs.asp.net/owscott/">Scott Forsyth</a>, <a href="http://imar.spaanjaars.com/">Imar Spaanjaars</a></p>
<p>DNS and SSL: <a href="http://twitter.com/tathamoddie">Tatham Oddie</a></p>
<p>Site: <a href="http://twitter.com/shiftkey">Brendan Forster</a>, <a href="http://twitter.com/slace">Aaron Powell</a></p>
<p>If you'd like to contribute to this site, <a href="https://github.com/localtest-dot-me/localtest-dot-me.github.com">fork us on GitHub</a>.</p>
</section>
</div>
<!--[if !IE]><script>fixScale(document);</script><!--<![endif]-->
</body>
</html>