Return verification file directly.
location = /XDFyle6tNA.txt { default_type text/plain; return 200 'd6296a84657eb275c05c31b10924f6ea'; }
Many times, programs such as WeChat need us to put a txt file into the project to verify the ownership of the project. We can modify nginx directly in this way, without really putting the file on the server.
Copyright Description:No reproduction without permission。
Knowledge sharing community for developers。
Let more developers benefit from it。
Help developers share knowledge through the Internet。
Follow us
2023-12-04