I use the system is CentOS, the site root directory is/var/www/html, the root directory is put head.inc.php, when I in index.php require (' head.inc.php ') Everything is normal, require ('. Head.inc.php ') is also normal when require ('/head.inc.php
For every Linux learner, learn about the directory structure of a Linux file system, is a very important step to learn Linux., in-depth understanding of the Linux file directory structure of the standard and detailed features of each directory, for
This essay will supplement the file types of Linux systems and the directory structure of Linux (Linux directory Management and permissions are very important, especially in Linux installation database class software).One, Linux change file
Nginx does not seem to have a virtual directory, because it is completely based on the directory to design and work. If you want to give nginx a virtual directory, it is only the alias tag comparison "like", simply say the alias tag and root tag
One: Users and Groups1 file Owner (user): is the owner of this file, has permissions to the file2 Group: Users within their group have access to files3 Others (Other):4 Linux user identities and group recorded filesBy default, information about
1. PHP __file__ Constants (How to get the root directory)
The dirname (__file___) function returns the path where the script is located.
For example, the file b.php contains the following content:
$basedir = DirName (__file__);
?>
If b.php is
Recently because of the work needs, to the Nginx site root directory changes, through some online tutorial changes, but found that the test has been prompted 403 Forbidden error, backstage through a friend's tips also solved, so now will be detailed
If you have the following file in the root directory
There are 3 folders under the HTML (root directory) images message styles
Html--images--a.jpg--message--liuyan.php--styles--students.css--header.php--footer.php--index.php
Liuyan.php has the
Original address: http://blog.sina.com.cn/s/blog_6c2e6f1f0100l92h.htmlNginx virtual directory (the difference between alias and Root)today configuration awstats,awstats created file directory under/home/awstats, in nginx add configuration after 404,
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.