Apache xampp 1.8.1。服务器已启动,但别名不工作
我已成功升级到XAMPP1.8.1。Apache和MySQL服务器启动良好 然而,我就是不能让我的别名在httpd.conf中工作。IE无法显示页面 我有:Apache xampp 1.8.1。服务器已启动,但别名不工作,apache,xampp,alias,Apache,Xampp,Alias,我已成功升级到XAMPP1.8.1。Apache和MySQL服务器启动良好 然而,我就是不能让我的别名在httpd.conf中工作。IE无法显示页面 我有: Alias /tnl "H:northern_light" <Directory "H:northern_light"> DirectoryIndex index.php Options All AllowOverride All Require all granted </
Alias /tnl "H:northern_light"
<Directory "H:northern_light">
DirectoryIndex index.php
Options All
AllowOverride All
Require all granted
</Directory>
Alias/tnl“H:北极光”
DirectoryIndex.php
选项全部
允许超越所有
要求所有授权
我尝试了很多选择。此外,我还尝试在Apache上更改端口
已经尝试过127.0.0.1/tnl、localhost/tnl等
有什么想法吗?根据XAMPP的创作者ApacheFriends的说法
# Alias: Maps web paths into filesystem paths and is used to
# access content that does not live under the DocumentRoot.
# Example:
# Alias /webpath /full/filesystem/path
#
# If you include a trailing / on /webpath then the server will
# require it to be present in the URL. You will also likely
# need to provide a <Directory> section to allow access to
# the filesystem path.
#别名:将web路径映射到文件系统路径,并用于
#访问不在DocumentRoot下的内容。
#例如:
#别名/webpath/full/filesystem/path
#
#如果您包含一个尾随/打开/网页,那么服务器将
#要求它出现在URL中。你也可能
#需要提供一个部分以允许访问
#文件系统路径。
这意味着:将目录选项替换为:
Alias /tnl "H:/northern_light"
<Directory "H:/northern_light">
AllowOverride None
Options None
Require all granted
</Directory>
Alias/tnl“H:/northern\u light”
不允许超限
选项无
要求所有授权
我个人在允许目录索引的选项上使用“索引多视图”而不是“无”。
像这样:
Alias /tnl "H:/northern_light"
<Directory "H:/northern_light">
AllowOverride None
Options Indexes MultiViews
Require all granted
</Directory>
Alias/tnl“H:/northern\u light”
不允许超限
选项索引多视图
要求所有授权
请解释一下,不仅仅是复制和粘贴一些文档片段,他在具体场景中需要做什么?