how can I force to visit my site by 80 port?

拜拜、爱过 提交于 2019-12-04 05:54:58

问题


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.


回答1:


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




回答2:


Your new host probably has SSL configured for your site (https). Disable SSL to revert to port 80 (http).



来源:https://stackoverflow.com/questions/38732982/how-can-i-force-to-visit-my-site-by-80-port

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!