/httpd-autoindex.conf

时间:2015-09-06 18:19:25

标签: apache

当我测试apache时:

sudo apachectl configtest

我收到以下错误:

AH01574: module php5_module is already loaded, skipping
AH00526: Syntax error on line 21 of /private/etc/apache2/extra/httpd-autoindex.conf:
Invalid command 'Alias', perhaps misspelled or defined by a module not included in the server configuration
然后我检查" httpd-autoindex.conf"文件,不知道应该如何修复

21    Alias /icons/ "/usr/share/httpd/icons/"
22
23    <Directory "/usr/share/httpd/icons">
24    Options Indexes MultiViews
25    AllowOverride None
26    Require all granted
27    </Directory>

1 个答案:

答案 0 :(得分:1)

您可能没有启用alias模块。我目前没有基于redhat的系统,所以我不知道你能找到什么文件夹,但在我的Ubuntu系统上,我有一个名为mods-enabled的文件夹,其中包含alias.load和{ {1}}。