我怎么能强迫80端口访问我的网站? [英] how can I force to visit my site by 80 port?
问题描述
如何强制端口更改?有没有在网络浏览器上缓存我需要清理它们呢?我想在默认情况下将其设置为80端口。
无法强制通过非安全HTTP传输流量。但是进入端口80的流量将(或者至少应该)自动被重定向到具有307响应的端口443。
从我刚刚做的一个快速测试请求中:
请求URL:
请求方法:GET
响应
状态代码:307内部重定向
位置: https://壕沟.bigbaseapp.com /
非权威性原因:HSTS
I created one website on Firebase, now I want to move the website out from firebase. On the new hosting server, the website url keeps visiting 443 port.
How can I force the port change? Is there any cached on the web browser I need clean them up maybe? I want to make it 80 port by default.
Firebase Hosting will only serve traffic over HTTPS, so port 443.
There is no way to force traffic to be served over non-secured HTTP. But traffic coming in to port 80 will (or at least should) automatically get redirected to port 443 with a 307 response.
From a quick test request I just did:
Request URL:http://trenches.firebaseapp.com/
Request Method:GET
Response
Status Code:307 Internal Redirect
Location:https://trenches.firebaseapp.com/
Non-Authoritative-Reason:HSTS
这篇关于我怎么能强迫80端口访问我的网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!