There should be no redundant programs (security considerations) in the Web directory _php tips
Developer on Alibaba Coud: Build your first app with APIs, SDKs, and tutorials on the Alibaba Cloud. Read more ＞
Although there are some judgments and limitations to be added before these programs. But in addition to the library files, there are temporary files, template files and other files that should not have been directly accessed by the Web. Store inaccessible files in a web directory, whether from security or code management.
Why is there such a problem? Back in the past, most of the Web site is still on the virtual host, and the root directory of FTP directly is the Web root directory. In order to adapt to such a situation. Like phpBB, VB, Discuz, Ofstar code can only store the library files directly to the same level of the directory.
But is it still necessary? Now the server price is much cheaper than before, basically a webmaster is a server, almost also VPS, in addition, even if the virtual host will not be the FTP root directory and the Web root directory is the same. Generally FTP is higher than the Web level directory. So there's no need to put all the programs in the Web directory, but instead put the files that need to be on the web in the Web directory.
This article is an English version of an article which is originally in the Chinese language on aliyun.com and is provided for information purposes only. This website makes no representation or warranty of any kind, either expressed or implied, as to the accuracy, completeness ownership or
reliability of the article or any translations thereof. If you have any concerns or complaints relating to the article, please send an email, providing a detailed description of the concern or
complaint, to email@example.com. A staff member will contact you within 5 working days. Once verified, infringing content will be removed immediately.
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:
and provide relevant evidence. A staff member will contact you within 5 working days.