问题描述
这些设备都在同一个局域网上:
- Ubuntu 服务器
- Win 10 PC
- iPhone
- 安卓
在 Ubuntu 服务器上,/etc/hosts
文件具有:
127.0.0.1 rcw.lt
同样在 Ubuntu 服务器上,有一个由 Nginx 托管的 Laravel 应用程序:server_name rcw.lt;
。
我的 rcw.lt 应用程序的 /
主页路由使用重定向(请参阅 https://laravel.com/docs/8.x/redirects 和 https://laravel.com/docs/8.x/helpers#method-redirect)。
我运行 lt --port 80 --local-host rcw.lt &
。
什么不起作用:
- 当从 Win 10、iPhone 或 Android 浏览到为 rcw.lt 应用(例如 https://fat-tiger-93.loca.lt)生成的 URL 时,它总是尝试重定向到 https://rcw.lt(并显示 ERR_CONNECTION_REFUSED)。
什么有效:
- 我可以浏览到提供的生成的 URL 并将特定路径附加到它上面(例如 https://fat-tiger-93.loca.lt/some-specific-route),并且它可以工作。或者我可以从
/
路由中删除重定向(我不想这样做)。
有什么想法吗?
这是 Laravel 重定向工作方式的问题吗?还是localtunnel的问题?有解决方法吗?
非常感谢您的帮助。 :-)
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)