nginx http重定向https配置說明

2023-03-19 01:25:40 字數 359 閱讀 2974

nginx http重定向https配置說明

現在什麼蘋果,谷歌瀏覽器請求地扯程式設計客棧基本都要求使用https了,如何把原來的http協議重定向到https中呢,這裡我們可以使用http反向**軟體nginx。

使用安裝

yum install nginx -y

配置 cat /etc/nginx

server

server

server

}以上配置可將www.dounine.com、dounine.com與 重定向至地扯中。

注意記得將防火牆的80與443埠開啟。

本文標題: nginx http重定向https配置說明

本文地址: