Skip to content

Instantly share code, notes, and snippets.

@gnarargs
Created August 22, 2009 09:02
Show Gist options
  • Save gnarargs/172710 to your computer and use it in GitHub Desktop.
Save gnarargs/172710 to your computer and use it in GitHub Desktop.
first -
/etc/hosts
127.0.0.1 facebook.com
127.0.0.1 www.facebook.com
then -
/etc/apache2/extra/httpd-vhosts.conf
<VirtualHost *:80>
DocumentRoot "/Users/[username]/Sites/better"
ServerName facebook.com
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/Users/[username]/Sites/better"
ServerName www.facebook.com
</VirtualHost>
<Directory /Users/*/Sites/>
Options Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
- after that
/Users/[username]/Sites/better/index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Everything Better</title>
<style type="text/css">
* { margin: 0; padding: 0;}
body { background-color: #E3E6C0;}
#thisisyourlife { margin: 0 auto; height: 435px; border-left: 8px solid #5F1470; text-align: center; padding-top: 200px; }
#thisisyourlife h1 { color: #FFFFFF; font-style: italic; font-size: 8em; border-bottom: 2px dashed #64A621; margin: 0 10%;}
span.em { font-size: 110%;}
</style>
</head>
<body>
<div id="thisisyourlife">
<h1><span class="em">m</span>ake <span class="em">s</span>omething.</h1>
</div>
</body>
</html>
- lastly
dscacheutil -flushcache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment