【问题标题】:How can I add an alias to Apache in XAMPP v3.2.1?如何在 XAMPP v3.2.1 中为 Apache 添加别名?
【发布时间】:2014-12-24 17:48:24
【问题描述】:

我在httpd.conf 文件中添加了一个别名来访问我在localhost/projects 的文件夹:

<IfModule alias_module>

    Alias /projects "C:/Users/Ben/Google Drive/Projects"

    <Directory "C:/Users/Ben/Google Drive/Projects">
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
        Require all granted
    </Directory>

    ScriptAlias /cgi-bin/ "C:/xampp/cgi-bin/"

</IfModule>

当我尝试在 XAMPP 3.2.1 中启动 Apache 时,没有任何内容写入 error.log 并且 Apache 无法启动。

【问题讨论】:

  • 你在哪里下载了 XAMPP?它仍然在version1.8.3。您是如何获得 3.2.1 版本的?
  • 很确定他指的是控制面板窗口中显示的版本号。
  • 是的,我指的是控制面板中显示的版本号。所以最新版的XAMPP 1.8.3

标签: php apache xampp


【解决方案1】:

文件: httpd.conf(原创)

之后:

# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.

放:

<Directory "C:/Users/Ben/Google Drive/Projects">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Require all granted
</Directory>

Alias /projects "C:/Users/Ben/Google Drive/Projects"

【讨论】:

    猜你喜欢
    • 2017-03-28
    • 2014-10-08
    • 2014-07-25
    • 2014-09-23
    • 2015-05-24
    • 2011-08-11
    • 1970-01-01
    • 2015-01-06
    相关资源
    最近更新 更多