- 配置方法
- 錯誤 You don't have permission to access / on this server. 解決辦法 下面第一個回答
- 錯誤 invalid command 'order' perhaps misspelled or defined by a module not included 解決辦法 在httpd.config中開啟一個文件就好
LoadModule access_compat_module modules/mod_access_compat.so
LoadModule authz_host_module modules/mod_authz_host.so
- apache2 如果配置不生效的話,記得網(wǎng)站跟目錄要設(shè)置為/var/www。
如果不好的話把
denyAllow from all```改成```Require all granted```參考文章[Upgrading to 2.4 from 2.2](https://httpd.apache.org/docs/current/upgrading.html)