簡體   English   中英

如何在XAMPP v3.2.1中為Apache添加別名?

[英]How can I add an alias to Apache in XAMPP v3.2.1?

我在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無法啟動。

文件: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"

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM