Skip to content

Instantly share code, notes, and snippets.

@allex
Created April 17, 2014 07:08
Show Gist options
  • Save allex/10959741 to your computer and use it in GitHub Desktop.
Save allex/10959741 to your computer and use it in GitHub Desktop.
My nginx default page
<!DOCTYPE html>
<html>
<head>
<title>Welcome to Allex's nginx!</title>
<style>
body{width:35em;margin:0 auto;font-family:Tahoma,Verdana,Arial,sans-serif;}
</style>
</head>
<body>
<h1>Welcome to Allex's nginx!</h1>
<p>If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.</p>
<p>For online documentation and support please refer to
<a href="http://nginx.org/">nginx.org</a>.<br/>
Commercial support is available at
<a href="http://nginx.com/">nginx.com</a>.</p>
<p><em>Thank you for using nginx.</em></p>
<p>This page well redirect to <a href="http://iallex.com/">Allex's Home page</a> online (<span id="timer">10</span>s)</p>
<script>
(function() {
var d = document.getElementById('timer'), timeout = parseInt(d.innerHTML, 10);
setTimeout(function loop() {
timeout--;
d.innerHTML = timeout;
if (timeout <= 0) {
location.replace('http://iallex.com/');
setTimeout(function(){document.body.innerHTML=""},0);
} else {
setTimeout(loop, 1000);
}
}, 1000);
}());
</script>
</body></html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment