• 请不要在回答技术问题时复制粘贴 AI 生成的内容
rizon
V2EX  ›  程序员

coding 或 github 的 pages 服务,怎么配置二级域名映射到子目录?

  •  
  •   rizon ·
    othorizon · Jun 21, 2019 · 2044 views
    This topic created in 2616 days ago, the information mentioned may be changed or developed.

    现在静态页面是托管到 pages 上的,想要把二级域名映射到子目录,好像是没有办法啊。
    唯一想到的就是走自己的服务器然后 nginx 代理到静态网页的子目录,但是这样流量就要走服务器了啊,而且我是 .cc 的未备案域名,根本没法解析到服务器。
    有办法吗?
    因为是 .cc 的域名,没有备案,没法在域名解析上做隐形 URL 转发

    2 replies    2019-06-21 11:53:05 +08:00
    leishi1313
        1
    leishi1313  
       Jun 21, 2019 via Android
    记得 github 能支持_sites 这个文件夹,或者你可以用 gh-pages 把网页文件夹放到一条 branch 上这样就没问题了
    huaxianyan
        2
    huaxianyan  
       Jun 21, 2019
    再开一个 pages 绑定二级域名
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1411 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 17:03 · PVG 01:03 · LAX 10:03 · JFK 13:03
    ♥ Do have faith in what you're doing.