Where is the Web root directory?

Source: Internet
Author: User
Tags php website nginx reverse proxy

Sometimes when we register our website on other websites, we need to put the verification information of the other website to the root of our website and verify it. So what is the root directory of the Web site?

Such as: This is the Ali mm website needs


From the prompt message we can see that the first step to download the Root.txt file this everyone will.

Step two: Place the validation file at the root of the domain name you are configuring. This is where you place the root directory of your own web site.

So where exactly is the site root directory?

There are two things here: the PHP website and the Java program's website

A: The root directory of the PHP Web site (this refers to the virtual host configuration)


Two: The root directory of the Java application

Because of the use of Nginx reverse proxy. The configuration information in Nginx is as follows:


Location/{

root/home/ftpuser/www;

Error_page 405 =200 $request _uri;

Index index.html index.htm;

}

I thought I would put it in the Nginx directory. But after the test, the discovery failed. In other words, the Root.txt file is placed under/home/ftpuser/www Click to complete verification is not passed. And then I was curious. Where the hell is it?

Finally put it under the WebApps and try it. It's still not working. The reason for this analysis is that I have multiple projects under the WebApp of Tomcat. Is it possible to put it under the corresponding project? So try to put it under the corresponding project. For example:/home/tomcat8/webapps/gwjeesns/is placed in this directory. Such as:


Click "Finish Verification" in figure one again to pass the result. So here's the summary:

Java Application Web Site Directory: is in the corresponding Tomcat WebApps under the corresponding project directory


Where is the Web root directory?

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.