最近学习vue.js,在window10的linux子系统上,部署了tomcat。但是在访问tomcat主页时,出现报错:

HTTP Status 403- Forbidden

The server understood the request but refuses to authorize it.

403 forbidden 错误解决

字面意思理解,就是访问这个网站,被server拒绝了。server是我自己控制的,还敢拒绝?

找到index.html文件,发现它是只读文件,浏览器没有执行它的权限!

原因找到了!

解决方案:chmod -R 777 index.html

再次启动浏览器,输入,问题解决!!!

相关文章:

  • 2022-01-10
  • 2022-12-23
  • 2022-01-17
  • 2022-02-08
  • 2021-07-19
猜你喜欢
  • 2021-08-24
  • 2021-05-27
  • 2022-12-23
  • 2022-12-23
  • 2022-03-15
相关资源
相似解决方案