Friday, November 9, 2018

Error: Invalid command 'Allow', perhaps misspelled ...

在httpd-vhosts.conf中配置了目錄環境,但報錯說Allow不能識別︰
<VirtualHost *:18040>
    ServerName xx.xx.xx.xx
DocumentRoot "C:/server/phpMyAdmin"
<Directory "C:/server/phpMyAdmin">
Options FollowSymLinks IncludesNOEXEC Indexes
DirectoryIndex index.html index.php index.htm
Allow from all
Require all granted
</Directory>
</VirtualHost>

網上查找一下發現在httpd.conf有一個模組被註解了︰
LoadModule access_compat_module modules/mod_access_compat.so
解除註解就可以了。

Reference: Apache启动 报Invalid command 'order', perhaps misspelled or defined by a module not included

No comments: