path: /OpenPlatform/Manage/index.phplocation: D:\workspacephp\Project_openPlatform\trunk\OpenPlatform\Manage\index.phpDocumentRoot: 为 D:/workspacephp
我们如果要在浏览器中访问该应用的话,是应该输入 localhost:81//OpenPlatform/Manage/index.php
还是应该:localhost:81/Project_openPlatform/trunk/OpenPlatform/Manage/index.php我的理解是;我们输入 path就可以了,可以根据path定位到location,但是我发现这样不行。谁能给解释下?
location与path有什么关系?
我们如果要在浏览器中访问该应用的话,是应该输入 localhost:81//OpenPlatform/Manage/index.php
还是应该:localhost:81/Project_openPlatform/trunk/OpenPlatform/Manage/index.php我的理解是;我们输入 path就可以了,可以根据path定位到location,但是我发现这样不行。谁能给解释下?
location与path有什么关系?
如: apache你会看 DocumentRoot
这个是正确的
-- 这个表示根目录下的 /OpenPlatform/Manage/index.php 文件
location: D:\workspacephp\Project_openPlatform\trunk\OpenPlatform\Manage\index.php
-- 这个是文件的绝对路径
目前你遇到的系统有两个
1、文件系统
D:\workspacephp\Project_openPlatform\trunk\OpenPlatform\Manage\index.php
表示的就是 index.php 在文件系统中的位置2、web系统
localhost:81/Project_openPlatform/trunk/OpenPlatform/Manage/index.php
表示的就是 index.php 在web系统中的位置
localhost 表示统一资源定位(URL)的本地主机名
local 本地
host 主机