Giter Club home page Giter Club logo

leancloudzf1's Introduction

通过Github实现URL转发

有时,你注册了一个域名,但是你没有搭建服务器。你希望这个域名能指向你的主页/博客/微博等。但是,很多域名注册商不提供这种服务,或者这是一项收费服务。这时你可以使用GitHub来实现这一功能。

第一步,创建一个空的repo,并把这个repo导入其中。

第二步,在你域名的dns中添加如下的CNAME记录:

主机名: 按你的需求设置,比如"www"或者“@”
记录值: your_username.github.io.
TTL: 10 分钟

如果你不想使用CNAME记录,你也可以按如下方式添加A记录

主机名: 按你的需求设置,比如"www"或者“@”
记录值: 185.199.108.153
       185.199.109.153
       185.199.110.153
       185.199.111.153
TTL: 10 分钟

第三步,将CNAME文件的内容改为你的域名。

第四步, 在index.html文件中,将URL改为你希望跳转的地址。

这个repo也有英文版本

leancloudzf1's People

Contributors

cf-cs avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.