This Blog Are Share Computer Related Tutorials & Online Courses For Education Purpose.

Breaking

Saturday, August 25, 2018

How To Host A static Website On Github By Programming-Knowledge



How To Host A static Website On Github By Programming-Knowledge.

In This Video Programming-Knowledge Show You  How To Host A Website On Github Using Github Pages Feature.  We Can Host A Static HTML Website On Github. This Method Can Be Used To Host Other Html Websites Also Like Reactjs, Angularjs, Bootstrap Based Websites Also. It Is Really Simple And You Can Have A Website Hosted On Github In Few Minutes. You Can Publish And Share Your Own Website Without Any Cost With Github. This Step By Step Guide To Creating And Hosting A Personal Website On Github Is Easy To Follow.

The Steps Are As Follows :

1. Create A Github Account
2. Download And Install The Git On Your Computer
3. Create A New Github Project
4. Copy Your HTML Files To The New Repository Folder
5. Publish Your Website
* Github URL: http://github.com
* Repository name: username.github.io/project-name

2. How To Add A Custom Domain On Github Pages.



The Domain Name Used For This Demo :- http://linuxforlife.com/

GitHub Custom Domain IPs List :

185.199.108.153
185.199.109.153
185.199.110.153
185.199.111.153

Steps For Adding Custom Domain:

1. Add A record in the DNS Zone Records On the hosting service on which you purchase your domain (Like godaddy, bluehist, 1and1 etc). Go to your domain settings and click on ‘Manage Domain’. Now go to DNS Zone File Management and add an A record with Github custom domain IPs List addresses.

Example

Host: @ Points to: 185.199.108.153

Host: @ Points to: 185.199.109.153

Host: @ Points to: 185.199.110.153

Host: @ Points to: 185.199.111.153

2. Add CNAME File To The Repository. Go To The Repository, Click On ‘New File’, Give The Name Of File As CNAME Without Any Spaces In Capital. On The First Line On The Cname File Add Your Domain Name Like Linuxforlife.Com.

We Can Host A Static HTML Website On Github. This Method Can Be Used To Host Other Html Websites Also Like Reactjs, Angularjs, Bootstrap Based Websites Also. It Is Really Simple And You Can Have A Website Hosted On Github In Few Minutes. You Can Publish And Share Your Own Website Without Any Cost With GitHub.


SHARE BY GK

No comments:

Post a Comment