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

前端 未结 2 901
时光取名叫无心
时光取名叫无心 2021-01-26 18:34

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

相关标签:
2条回答
  • 2021-01-26 18:48

    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

    0 讨论(0)
  • 2021-01-26 18:59

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

    0 讨论(0)
提交回复
热议问题