使用“让我们加密"保护GitLab页面安全404 [英] Securing GitLab Pages with Let's Encrypt gets 404

查看:151
本文介绍了使用“让我们加密"保护GitLab页面安全404的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在按照本教程 https://about.gitlab.com/2016/04/11/tutorial-securing-your-gitlab-pages-with-tls-and-letsencrypt/ 下一步说明是:

I am following this tutorial https://about.gitlab.com/2016/04/11/tutorial-securing-your-gitlab-pages-with-tls-and-letsencrypt/ Next step instructions are:

Make sure your web server displays the following content at
http://YOURDOMAIN.org/.well-known/acme-challenge/5TBu788fW0tQ5EOwZMdu1Gv3e9C33gxjV58hVtWTbDM
before continuing:

5TBu788fW0tQ5EOwZMdu1Gv3e9C33gxjV58hVtWTbDM.ewlbSYgvIxVOqiP1lD2zeDKWBGEZMRfO_4kJyLRP_4U

#
# output omitted
#

Press ENTER to continue

根据本教程,它使用的是Jekyll,但我没有使用像jekyll这样的静态html生成器.这些文件都是静态html.我在根文件夹下创建了确切的路径:/.well-known/acme-challenge/PukY0bbiH3nRfciQ4IzwTDIXFn4G5sZ5I-LkMz3-KHE.html 但是在完成管道作业之后,我仍然得到404.这是什么问题?

According to the tutorial, it's using Jekyll, but I don't use a static html generator like jekyll. The files are all static html. I created the exact path under root folder: /.well-known/acme-challenge/PukY0bbiH3nRfciQ4IzwTDIXFn4G5sZ5I-LkMz3-KHE.html But after the piplines jobs are done, I am still getting 404. What's the problem here?

推荐答案

昨天我遇到了同样的问题,我找到了解决方案,希望与您分享为时不晚.根据本教程此处,知名"文件夹应位于公共"文件夹下.

I had problem same yesterday and I found the solution, I hope it is not too late to share with you. According to this tutorial here, the "well-known" folder should be under the "public" folder.

letsencrypt需要使用浏览器在以下路径中访问.html文件.

And the letsencrypt need to access a .html file in the following path using the browser.

http://YOURDOMAIN.org/.well-known/acme-challenge/5TBu788fW0tQ5EOwZMdu1Gv3e9C33gxjV58hVtWTbDM

为此,您必须在gitlab存储库内的以下路径中创建"index.html"文件.

To do this, you must create the "index.html" file in the path below inside your gitlab repository.

public/.well-known/acme-challenge/5TBu788fW0tQ5EOwZMdu1Gv3e9C33gxjV58hVtWTbDM/index.html

在"index.html"文件中,您应该仅输入以下句子:

In the "index.html" file you should put only the following sentence:

5TBu788fW0tQ5EOwZMdu1Gv3e9C33gxjV58hVtWTbDM.ewlbSYgvIxVOqiP1lD2zeDKWBGEZMRfO_4kJyLRP_4U

重要提示:请勿放置任何html标签,只需在上面添加纯文本即可.

然后继续按照本教程进行操作.祝你好运.

Then just continue following the tutorial. Good luck.

这篇关于使用“让我们加密"保护GitLab页面安全404的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆