TL;DR: I need to know how to serve a page in GitLab pages without a
.html (or anything else) extension at the end of the URL. Thanks!
Hi, I’m trying to renew my HTTPS certificate using Let’s Encrypt.
I’m at the step where I have to add a page with some text in it to prove that I own the website, as described in this section of GitLab’s own article describing how to do it.
The problem is that I can’t figure out how to make my website serve a page at a URL that looks like MYDOMAIN.com/.well-known/acme-challenge/5TBu788fW0tQ5EOwZMdu1Gv3e9C33gxjV58hVtWTbDM.html
At first, my website was only an
index.html file in the root directory, so I tried to just create a
5TBu788fW0tQ5EOwZMdu1Gv3e9C33gxjV58hVtWTbDM.html page in the
/.well-known/acme-challenge/ subfolder, but I got a 404 error. So I switched over to Jekyll and used the
permalink attribute to make the page available at the right URL. It worked when I
jekyll serve'd my site locally, but when I push to GitLab, I still get a 404 error.
I really don’t know how to make this page available, and this domain site has to be available. It has to be available at this URL for Let’s Encrypt to issue the certificate, and my site has to be available over https in 12 hours maximum… Maybe this has to do with the fact that the URL is pointing to a “hidden folder” (it begins with a dot), I don’t know… Could anyone help me please?
Thanks a lot!
EDIT: It works when adding .html to the end of the URL, but as I said, I need the page to be served at the exact URL, without the .html at the end (unless someone knows how to make Let’s Encrypt use a URL slightly different than the one it expects). Does anyone knows how to do that?
EDIT 2: I got it to work with a slash (
/) at the end, but I need to have nothing at the end…