ユーザ用ツール

サイト用ツール


serverapps:security:cert:acmesh:letsencrypt

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
serverapps:security:cert:acmesh:letsencrypt [2024/12/09 08:51] – [Virtual hostの例] hayashiserverapps:security:cert:acmesh:letsencrypt [2024/12/09 09:36] (現在) – [ACME チャレンジの設定] hayashi
行 26: 行 26:
 ==== webroot ディレクトリの作成 ==== ==== webroot ディレクトリの作成 ====
  
-  mkdir -p /usr/local/www/acme_root/.well-known/acme-challenge +  mkdir -p /usr/local/www/acme-root/.well-known/acme-challenge 
-  chown -R www:www /usr/local/www/acme_root+  chown -R www:www /usr/local/www/acme-root
  
 ==== ACME チャレンジの設定 ==== ==== ACME チャレンジの設定 ====
行 34: 行 34:
 <file config /usr/local/etc/nginx/includes/acme-webroot> <file config /usr/local/etc/nginx/includes/acme-webroot>
 location /.well-known/acme-challenge/ { location /.well-known/acme-challenge/ {
-    alias /usr/local/www/acme_root/.well-known/acme-challenge/;+    alias /usr/local/www/acme-root/.well-known/acme-challenge/;
 } }
 </file> </file>
行 40: 行 40:
 ==== Virtual hostの例 ==== ==== Virtual hostの例 ====
  
-<file - /etc/nginx/sites-enabled/default>+<file - /usr/local/etc/nginx/sites-enabled/default>
  
 server { server {
行 50: 行 50:
  
     # Let's Encrypt webroot     # Let's Encrypt webroot
-    include includes/letsencrypt-webroot;+    include includes/acme-webroot;
 } }
 </file> </file>
 +
 +=== domainが複数の場合の例 ===
 +
 +  server_name 1.mydomain.com 2.mydomain.com 3.mydomain.com;
 +  または
 +  server_name *.mydomain.com *.testmydomain.com;
  
 ===== 証明書発行 ===== ===== 証明書発行 =====
  
  
serverapps/security/cert/acmesh/letsencrypt.1733734289.txt.gz · 最終更新: 2024/12/09 08:51 by hayashi