Pages incorrectly serve acme-challenges with /index.html

Summary

https://gitlab.slack.com/archives/C0AR2KW4B/p1560349373422900

Before !141 (merged) users were able to place file like .well-known/acme-challenge/1SXVGOwvR1HBozlJRxK2L-hnqEvUCjJRvZ3h58O2WKY/index.html(which is recommended by our documentaion) and it was served by pages, but now only .well-known/acme-challenge/1SXVGOwvR1HBozlJRxK2L-hnqEvUCjJRvZ3h58O2WKY is served which brakes process described in docs.

sytses/sytses.gitlab.io@0f613859

Also pages should redirect to gitlab.com, not the domain requested

@sytses

When I go to http://sytse.com/.well-known/acme-challenge/1SXVGOwvR1HBozlJRxK2L-hnqEvUCjJRvZ3h58O2WKY I'm redirected to http://sytse.com/-/acme-challenge?domain=sytse.com&token=1SXVGOwvR1HBozlJRxK2L-hnqEvUCjJRvZ3h58O2WKY instead of seeing 1SXVGOwvR1HBozlJRxK2L-hnqEvUCjJRvZ3h58O2WKY.n7NqLecllwinFKsIilAB3-8rU-SzgY1CrhdUK6YcSho which I tried to upload with sytses/sytses.gitlab.io@0f613859 It worked a few months ago.

Example Project

sytses/sytses.gitlab.io@0f613859

http://sytse.com/.well-known/acme-challenge/1SXVGOwvR1HBozlJRxK2L-hnqEvUCjJRvZ3h58O2WKY

What is the current bug behavior?

Incorrect redirect

What is the expected correct behavior?

Serve file from disk

Edited by Vladimir Shushlin