Bind your own domain name in GitHub and implement https access

buy a domain name

Due to the needs of the project, a website needs to be built to display some tool information, so I plan to buy a domain name to place my own tools.

Buying a domain name is relatively simple. Let's put it aside first. An important question is which domain name to buy.

Choosing a good domain name is very important. Here are some suggestions for choosing a good domain name:

  1. Short and easy to remember: Choose a short domain name that is easy to remember and spell, and less prone to mistakes.

  2. Easy to Spell: Avoid words or word abbreviations with complex spelling.

  3. Don't use complex characters: Avoid numbers or special characters in your domain name, which can be difficult for people to remember and type.

  4. Match Your Brand: Choose a domain name that is relevant to your brand or business so it's easier for customers to remember.

  5. Avoid Trademark Infringement: Make sure your domain name doesn't infringe any other brand's trademark or copyright.

  6. Ease of Communication: Choosing a domain name that is easy to pronounce and spread can help increase brand awareness.

  7. Consider using keywords: If your business is related to a certain keyword, using that keyword in your domain name can help improve your search engine rankings.

Choose a reliable domain name registrar. For example, GoDaddy, namesilo, Namecheap, Sedo, Name.com, etc.
If it is a domestic purchase, you can purchase it by choosing the cloud service.

namesiloWe buy here online ,

The way to buy is also very simple:

1. Go to the NameSilo website (https://www.namesilo.com/).

2. Enter the domain name you want to purchase in the search bar and click the "Search" button.

3. If your domain name is available, select the domain name you want to purchase (you can purchase multiple domain names), and click the "Shopping Cart" button.
insert image description here

4. Complete the "settlement" procedure before purchasing.

insert image description here

5. Create a NameSilo account (if you don't have one yet) and complete the payment.

6. You will see your purchased domain name in your NameSilo account.

Configure domain name

Go to the namesilo account system and configure the domain name.

insert image description here
The domain name I purchased here is aibard123

Click the domain name to enter the domain name configuration.

Configure dns Records.
insert image description here

My configuration is as follows:
insert image description here
Here, I see a go2coding.github.io, which is the project on github, assuming it has been established.

Configuration under github

Create a new file CNAMEand write your own domain name address.

insert image description here
Go to the setting menu bar

insert image description here
page, configure your own domain name.
insert image description here
Check the box if you can Enforce HTTPS.

After a while, we will be able to visit our beloved domain name ourselves.

https configuration

HTTP and HTTPS are protocols, ways of transferring data between a client and a server.

HTTP stands for Hypertext Transfer Protocol and is one of the most commonly used Internet protocols for transferring HTML pages and other types of data between web servers and clients. HTTP uses clear text to transmit data, so the data may be eavesdropped and tampered with by hackers.

HTTPS stands for Hypertext Transfer Protocol Secure, which is a secure version of HTTP. HTTPS ensures the security of data transmission by adding an encryption layer to HTTP. Therefore, HTTPS is more secure than HTTP and is more suitable for handling sensitive user data, such as credit card information and login passwords.

HTTP uses port number 80 and HTTPS uses port number 443. Most websites now use HTTPS to ensure that users' access data and privacy are protected.

Register a cloudflare account.

Add a site:

insert image description here
After the addition is complete, Cloudflare will choose to assign us two NS addresses.

Put him namesilounder NameServers:

insert image description here

cloudflareConfigure as follows:

insert image description here

This completes our configuration.

However, it cannot take effect immediately now, and it needs to wait for 2 or 3 hours.

After a while, aibard123.com will be accessible.

insert image description here

Guess you like

Origin blog.csdn.net/weixin_40425640/article/details/129999245