跳至主要內容

酷思小魏.愛學習

PYTHON、UBUNTU、MAC、CMS

  • 首頁
  • Python
  • Linux
  • WordPress
  • MacOS
  • 軟體資訊

[Linux] 替nginx強迫轉址https

vi /usr/local/nginx/conf/vhost/*.conf

添增在裡面

server
{
listen 80;
#listen [::]:80;

return 301 https://$server_name$request_uri;
作者 coolsea發佈日期: 2020 年 10 月 05 日2020 年 10 月 05 日分類 Linux標籤 linux

發佈留言

很抱歉,必須登入網站才能發佈留言。

文章導覽

上一篇文章 上一篇文章: [Linux] 更新 acme.sh 版本
下一篇文章 下一篇文章: [Linux] 列出各資料夾所佔空間

近期文章

  • [雲端硬碟] 找出雲端硬碟中,隱藏卻會占用空間的孤兒檔案
  • [docker] 升級NAS裡面的docker版本 unifi
  • [Linux] Let’s Encrypt 換成 ZeroSSL
  • [Python] 將Python打包成exe執行檔
  • [Linux] acme.sh指定用 letsencrypt
  • [Python] 設定密碼來取代token
  • [Linux] UniFi Controller and Docker
  • [Linux] 在ubuntu安裝Docker的一些筆記
  • [Linux] 替虛擬主機上的Ubuntu擴充 LVM 空間
  • [Python] 常用conda指令
  • [Linux] MySQL 的 bin log 太多如何清除?
  • [Linux] 列出各資料夾所佔空間

分類

  • Python
  • Linux
  • MacOS
  • Rails
  • Wordpress
  • 軟體資訊
  • 雲端應用
  • 首頁
  • Python
  • Linux
  • WordPress
  • MacOS
  • 軟體資訊
酷思小魏.愛學習 本站採用 WordPress 建置