0

我已经成功升级到 xampp 1.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
</Directory>

我尝试了很多选择。另外,我尝试在 Apache 上更改端口。

已尝试 127.0.0.1/tnl、localhost/tnl 等

有任何想法吗?

4

2 回答 2

1

将您的目录选项替换为:

    Alias /tnl "H:/northern_light"
    <Directory "H:/northern_light">
        AllowOverride None
        Options None
        Require all granted
    </Directory>

我个人在选项上使用:“Indexes MultiViews”而不是“none”来允许目录索引。像这样:

    Alias /tnl "H:/northern_light"
    <Directory "H:/northern_light">
        AllowOverride None
        Options Indexes MultiViews
        Require all granted
    </Directory>
于 2013-06-08T21:55:03.147 回答
-1

Acordin to ApacheFriends - XAMPP 的创建者

# 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.

这意味着:

于 2013-06-08T21:51:42.527 回答