配置XAMPP中apache的Alias虚拟路径

参考apache虚拟路径配置和映射中文路径
在xampp\apache\conf\httpd.conf 文件中:

#
# "C:/xampp/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "C:/xampp/cgi-bin">
    AllowOverride All
    Options None
    Require all granted
</Directory>

Alias /sxd "D:\Client\SXD2-Game"

<directory "D:\Client\SXD2-Game">
    #Options Indexes FollowSymLinks Includes ExecCGI
    Options None
    AllowOverride All
    Order allow,deny
    Allow from all
    Require all granted
</Directory>

/sxd为指向目录的别名
D:\Client\SXD2-Game是要访问的绝对路径
然后就可以使用http://10.1.29.182/sxd/SXD2Index.html来访问路径下的页面进行测试了

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容