我的笔记本电脑上的环境安装了很多次,但是运行项目时总是会报The server encountered an internal error or misconfiguration and was unable to complete your request这个错误。

也百度很多方法,其中有说是因为项目中的public文件夹下的.htaccess文件的原因,删除就可以了,可是我删除之后在浏览项目首页是正常的,但是再进入其他页面就会报 The requested URL /Adminlogin/login was not found on this server.

后来找朋友帮忙,发现些配置忘记改了,进入http.conf文件中,改几处地方

1、LoadModule rewrite_module modules/mod_rewrite.so 前面的#号去掉

2、找到 有关AllowOverride 的地方将None改为 all

这样再运行你的网站就可以了。

相关文章:

  • 2021-11-22
  • 2022-12-23
  • 2021-12-09
  • 2021-10-20
  • 2021-12-20
  • 2021-12-01
  • 2022-12-23
猜你喜欢
  • 2021-12-25
  • 2022-12-23
  • 2021-09-19
  • 2022-12-23
  • 2022-01-13
  • 2021-08-25
  • 2021-12-12
相关资源
相似解决方案