我怎么能强迫80端口访问我的网站? [英] how can I force to visit my site by 80 port?

查看:145
本文介绍了我怎么能强迫80端口访问我的网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Firebase上创建了一个网站,现在我想将该网站从Firebase移出。在新的托管服务器,网站的网址不断访问443端口。



如何强制端口更改?有没有在网络浏览器上缓存我需要清理它们呢?我想在默认情况下将其设置为80端口。

p>

无法强制通过非安全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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆