【发布时间】:2013-10-09 10:40:53
【问题描述】:
按照here 的说明,我创建了 2 个 Alias 目录。
<Directory "C:\Users\user\Documents\sites">
Allow from all
Require all granted
</Directory>
Alias /site "C:\Users\user\Documents\sites"
<Directory "S:\directory (servername)\site">
Allow from all
Require all granted
</Directory>
Alias /lab "S:\directory"
当我访问localhost/site 时,它可以正常工作并在那里加载网页。
当我访问localhost/lab 时,它返回一个错误。
警告:未知:无法打开流:中没有这样的文件或目录 第0行未知
致命错误:未知:无法打开所需的“S:/directory (servername)/site/index.php” (include_path='.;C:\ProgramData\xampp\php\PEAR') 在第 0 行的未知中
当我在S:\directory (servername) 的属性中注意到S:\directory (servername) PATH 实际上是\\servername\directory (servername) 所以它被映射了。
我将如何让我的 Alias 工作签名,以便我可以成功访问 localhost/lab。
谢谢
【问题讨论】: