Millions of O & M experience 3: how to store website verification files

Source: Internet
Author: User


When registering your own website on another website, you often need to upload the verification file to the root directory of the domain name, such. Today, we can see in a group that some people are discussing this topic very lively. This issue is not a matter of program development, but of O & M. However, in most small companies, it is not as clear as possible, and programmers also perform O & M.

Background: This is a Django group.

Worker is treated as a dynamic page.

In fact, you don't need to modify the code. You can simply use nginx or apache. It's very simple. paste the Code directly. I use nginx.

Server {listen 80; server_name example.com; location/root.txt {# Must be placed before location/root/path/to/directory; folder where the root.txt file is located} location/{include uwsgi_params; uwsgi_pass 127.0.0.1: 8630; # Django port }}

Isn't it easy? This method is generic and can be used on websites in almost all languages, such as PHP and Python, because it has nothing to do with the language and belongs to the category of web servers.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.