serverapps:security:cert:acmesh:letsencrypt
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
serverapps:security:cert:acmesh:letsencrypt [2024/12/09 08:42] – hayashi | serverapps:security:cert:acmesh:letsencrypt [2024/12/09 09:36] (現在) – [ACME チャレンジの設定] hayashi | ||
---|---|---|---|
行 24: | 行 24: | ||
===== Nginx Proxyの設定 ===== | ===== Nginx Proxyの設定 ===== | ||
- | ==== webroot ディレクトリ ==== | + | ==== webroot ディレクトリの作成 |
- | mkdir -p / | + | mkdir -p / |
- | chown -R www:www / | + | chown -R www:www / |
+ | ==== ACME チャレンジの設定 ==== | ||
+ | これは別ファイルとして必要に応じて組み込む | ||
+ | <file config / | ||
+ | location / | ||
+ | alias / | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ==== Virtual hostの例 ==== | ||
+ | |||
+ | <file - / | ||
+ | |||
+ | server { | ||
+ | listen 80; | ||
+ | |||
+ | server_name mydomain.com; | ||
+ | |||
+ | # .... | ||
+ | |||
+ | # Let's Encrypt webroot | ||
+ | include includes/ | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | === domainが複数の場合の例 === | ||
+ | |||
+ | server_name 1.mydomain.com 2.mydomain.com 3.mydomain.com; | ||
+ | または | ||
+ | server_name *.mydomain.com *.testmydomain.com; | ||
===== 証明書発行 ===== | ===== 証明書発行 ===== | ||
serverapps/security/cert/acmesh/letsencrypt.1733733771.txt.gz · 最終更新: 2024/12/09 08:42 by hayashi