Apache Error: Invalid command ‘Allow’, perhaps misspelled or defined by a module not included in the server configuration
2016-11-14 10:27
549 查看
在一个Window Server 2008R2系统上使用Apache架设了一个PHP的网站项目
在配置Apache的过程中出现了以下问题
![](https://oscdn.geek-share.com/Uploads/Images/Content/202003/18/95f1f45503a6f46e8676d357db003912.png)
根据上面的提示说是没有相应的权限,那就在虚拟主机里进行了配置,httpd-vhosts.conf 中的配置如下
但配置完成又出现了以下问题
The Apache service named reported the following error:
>>> Invalid command 'Allow', perhaps misspelled or defined by a module not included in the server configuration .
![](https://oscdn.geek-share.com/Uploads/Images/Content/202003/18/c8454026863bb431eb5c6632bde7f6a5.png)
后经过查询才知道相应的模块没有启用,在http.conf中的配置,需要启用以下模块即可
重新启动Apach服务即可
参考:
解决问题 “You don't have permission to access /index.html on this server.”
解决方案:虚拟主机是设置在httpd-vhosts.conf还是vhosts.conf还是httpd.conf?
Apache下的配置文件httpd.conf、httpd-vhosts.conf(windows)
Apache Module mod_authz_host
From WizNote
在配置Apache的过程中出现了以下问题
![](https://oscdn.geek-share.com/Uploads/Images/Content/202003/18/95f1f45503a6f46e8676d357db003912.png)
根据上面的提示说是没有相应的权限,那就在虚拟主机里进行了配置,httpd-vhosts.conf 中的配置如下
<VirtualHost *:80> ServerAdmin test@test.com DocumentRoot "D:/test.com" ServerName test.com ServerAlias www.test.com ErrorLog "logs/test.com-error.log" CustomLog "logs/test.com-access_log" common <Directory "D:/test.com"> #也可以在http.conf里统一设置,但因为各个虚拟主机的设置不同,因此建议单独进行设置 AllowOverride All Order allow,deny Allow from all Require all granted </Directory> </VirtualHost>
但配置完成又出现了以下问题
The Apache service named reported the following error:
>>> Invalid command 'Allow', perhaps misspelled or defined by a module not included in the server configuration .
![](https://oscdn.geek-share.com/Uploads/Images/Content/202003/18/c8454026863bb431eb5c6632bde7f6a5.png)
后经过查询才知道相应的模块没有启用,在http.conf中的配置,需要启用以下模块即可
LoadModule access_compat_module modules/mod_access_compat.so #基于主机的组授权(名称或IP地址) httpd 2.x兼容的模块, LoadModule proxy_module modules/mod_proxy.so #apache的代理模块 LoadModule proxy_http_module modules/mod_proxy_http.so #代理http和https请求 LoadModule vhost_alias_module modules/mod_vhost_alias.so #虚拟主机动态配置 LoadModule authz_host_module modules/mod_authz_host.so #基于主机的组授权 Include conf/extra/httpd-vhosts.conf#启用虚拟主机配置
重新启动Apach服务即可
参考:
解决问题 “You don't have permission to access /index.html on this server.”
Apache HTTD 2.4: Invalid command ‘Order’, perhaps misspelled or defined by a module not included in the server configuration
Invalid command ‘Order’, perhaps misspelled or defined by a module not included in the server configuration failed
Apache配置httpd-vhosts虚拟主机总结及注意事项解决方案:虚拟主机是设置在httpd-vhosts.conf还是vhosts.conf还是httpd.conf?
Apache下的配置文件httpd.conf、httpd-vhosts.conf(windows)
Apache Module mod_authz_host
From WizNote
相关文章推荐
- [Ubuntu] Invalid command 'VirtualDocumentRoot', perhaps misspelled or defined by a module not included in the server configuration
- .htaccess: Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration
- Invalid command 'WSGIScriptAlias', perhaps misspelled or defined by a module not included in the ser
- nvalid command 'PythonPath', perhaps misspelled or defined by a module not included in the server co
- Invalid command 'SSLCipherSuite', perhaps misspelled or defined by a module not included in the serv
- Invalid command 'WSGIScriptAlias', perhaps misspelled or defined by a module not included in the ser
- .htaccess: Invalid command 'Header', perhaps misspelled or defined by a module not included in the
- Apache启动报错:Invalid command 'ProxyPass', perhaps misspelled or defined by a module not inclu ded in t
- Apache启动 报Invalid command 'order', perhaps misspelled or defined by a module not included
- elgg 安装启动apache2.4后报Invalid command 'order', perhaps misspelled or defined by a module not included
- Module 'starter' is not available! You either misspelled the module name or forgot to load it.
- Cannot connect to WMI provider.You do not have permission or the server is unreachable.Note that you can only manager SQL Server 2005 and later version with SQL Server Configuration Manager.Invalid namespace [0x8004100e]
- invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause
- win server 2003下IIS无法启动,报错:The service did not respond to the start or control request in a timely fashion.
- Version Incompatibility(Ininvalid version (expected 2, but 1) or the data in not in 'javabin' format
- [BTS] Loading property information list by namespace failed or property not found in the list. Verify that the schema is deployed properly.
- mysql报错:could not find settings Either the server service or the configuration file could not be fou
- The MagicAjax HttpModule is not included in web.config. Add [<httpModules><add name="MagicAjax" type
- two or more web modules defined in the configuration have the same context root
- org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or br