Web Hosting with
Github?
• It’s Free
• It’s Easy
• Built In Version Control (Duh!)
• Edit Any Place Any Time (as long as you
can fork)
Slide 3
Slide 3 text
Goals
• http://sathomas.me hosted on Github
• Version control on all assets
• Invisible to visitors
• Selected projects as URLs
http://sathomas.me/cv ➞ cv project
• Other projects as normal
http://sathomas.github.com/responsiveTabs
• External redirects
http://sathomas.me/blog ➞ scriptogr.am
Slide 4
Slide 4 text
Set Up the Main Site
• Create repository named
sathomas.github.com
• Add content (HTML, CSS, Javascript) to
master branch
• http://sathomas.github.com is now live
Slide 5
Slide 5 text
Map a Custom Domain
• Create file “CNAME” in root folder of the
master branch. File has single line:
sathomas.me
• Map domain name to Github in registrar
sathomas.me 204.232.175.78 A
• Allow optional www prefix
www sathomas.github.com CNAME
Slide 6
Slide 6 text
Create Project Sites
• For projects that will have a web page
(e.g. cv ➞ http://sathomas.me/cv) follow
steps in Github documentation to create
gh-pages branch
Slide 7
Slide 7 text
Redirect to
External Sites
• Create folder in main site e.g. /blog
• Add index.html page to that folder
Visit the blog
Create a Custom
404 Page
• Otherwise 404 errors will redirect to
standard Github 404 page
• Name the page 404.html and drop it in
the root directory of the main site