Y
Y
yamakasi_habr2022-02-19 01:12:28
ASP.NET
yamakasi_habr, 2022-02-19 01:12:28

How to Verify a Domain Using HTTP File Upload?

I install a certificate, they ask me to confirm my domain by uploading files via HTTP

621013efc93eb289843270.png

. And here I don’t understand, should I receive a GET or POST request, and should I return this file? I do

62101651edf15766870675.png

the same. I did the same for GET, everything works from localhost, when I upload it to azure it doesn’t work

. I don’t understand at all what to do with this file, and whether I went the right way in life

if it’s a web api

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
Hanneman, 2022-02-19
@Hanneman

What POST/GET? Just download this file and put it in the folder on your server where asked and then click "next step". The platform will call the specified URL and make sure that the file exists at this address - this is the proof that you are the owner of the domain, since you were able to put the required file in a folder on the server (i.e. a person from the street could not).

V
Vasily Bannikov, 2022-03-10
@vabka

when I upload to azure it doesn't work

1. And what does the openwork write? Does Azure accidentally add any prefixes to the paths?
2. Not HttpPost, but HttpGet
3. Add another slash to the beginning so that this is exactly the root of the site.
3. You still need to configure Azure so that the www subdomain is also available
PS: azure seems to have its own service for issuing certificates, doesn't it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question