阿帕奇在Windows虚拟主机 - 我该如何处理符号链接? [英] Apache Virtual Host in Windows - how do I deal with Symbolic links?
问题描述
我试图运行在一个 WAPP 堆栈的虚拟主机。我的虚拟主机有的FollowSymLinks
选项,但在Windows中,所有这些符号链接(我使用的快捷方式,我觉得这可能是问题)有的.lnk
扩展。所以,如果我试图访问 settings.html
,阿帕奇找不到它,因为所有的我已经坐在那里是 settings.html.lnk
。道歉,如果我的问题是不清楚。
I'm trying to run a virtual host on a WAPP stack. My virtual host has the FollowSymLinks
option, but in Windows, all those symbolic links (I'm using shortcuts, and I think this may be the problem) have the .lnk
extension. So if I'm trying to access settings.html
, Apache can't find it because all i have sitting there is settings.html.lnk
. Apologies if my question is unclear.
推荐答案
Apache不明白的快捷方式。您需要使用合适的符号链接。在Windows上使用命令行工具来完成 MKLINK
。见<一href=\"http://ipggi.word$p$pss.com/2009/09/07/windows-file-junctions-symbolic-links-and-hard-links/\">http://ipggi.word$p$pss.com/2009/09/07/windows-file-junctions-symbolic-links-and-hard-links/了解更多详情。
Apache doesn't understand shortcuts. You need to use a proper symlink. On windows this is accomplished using the command line tool mklink
. See http://ipggi.wordpress.com/2009/09/07/windows-file-junctions-symbolic-links-and-hard-links/ for more details.
这篇关于阿帕奇在Windows虚拟主机 - 我该如何处理符号链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!