我部署好了webman 用ip加端口 http://8.8.8.8:8787 可以正常访问到 /index/index 这个控制器/方法
但是用域名访问 http://www.xxx.com 就出现403了。
如果访问 http://www.xxx.com/index 或者 http://www.xxx.com/index/index 都可以正常访问到
<style>
* {
padding: 0;
margin: 0;
}
iframe {
border: none;
overflow: scroll;
}
</style>
<iframe
src="https://www.workerman.net/wellcome"
width="100%"
height="100%"
allow="clipboard-write"
sandbox="allow-scripts allow-same-origin allow-popups"
></iframe>
我修改了Nginx代码的
autoindex off; # 明确禁用目录索引(防止误开启)
location / {
try_files $uri @proxy;
}
就可以正常使用域名http://www.xxx.com 默认访问 /index/index 这个控制器/方法了
请问你们有遇到这个问题吗?
你试下在public目录下面新建一个index.html,内容随便写比如hello,然后访问http://www.xxx.com
看看结果是啥