hanju8810

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • in reply to: Lets Encryptの更新の通知が来ました。 #977
    hanju8810
    Participant

      [南葛SC対応]
      OS再起動も発生するので本日、お客様の許可を得て計作作業をしました。
      エラー内容としては以下になります。

      kusanagi update cert kusanagi_html
      Challenge failed for domain prd.nankatsu-sc-dev.com
      Failed to renew certificate prd.nankatsu-sc-dev.com with error: Some challenges have failed.
      All renewals failed. The following certificates could not be renewed:
      /etc/letsencrypt/live/prd.nankatsu-sc-dev.com/fullchain.pem (failure)
      1 renew failure(s), 0 parse failure(s)

      対応内容
      /etc/letsencrypt/renewal/prd.nankatsu-sc-dev.com.conf が存在しているので証明書更新が正常に動作していないことが分かったので

      renewal]# mv prd.nankatsu-sc-dev.com.conf /root
      ↑上記を実行したら全てのコマンドが正常動作しました。

      # kusanagi update cert kusanagi_html
      Done.
      # kusanagi autorenewal off
      Disabling auto renewal certificate
      Done.
      # kusanagi autorenewal on
      Enabling auto renewal certificate
      Done.

      色々とご教示ありがとうございました!

      in reply to: Lets Encryptの更新の通知が来ました。 #974
      hanju8810
      Participant

        過去の端末のログを見たのですが、下記コマンドは実行履歴がないようです。

        kusanagi ssl –auto on

        OS再起動など、特に影響がなければ実行したいのですが大丈夫でしょうか?

        in reply to: Lets Encryptの更新の通知が来ました。 #973
        hanju8810
        Participant

          kusanagiユーザでcrontabの設定はないようです。


          crontab -l
          no crontab for kusanagi

          in reply to: Lets Encryptの更新の通知が来ました。 #972
          hanju8810
          Participant

            情報が足りなくて申し訳ありません。kusanagi statusの結果を添付します。


            kusanagi status
            Profile: kusanagi_html
            FQDN: http://www.nankatsu-sc.com
            Type: WordPress
            KUSANAGI Version 8.6.0-1
            aws-biz

            *** (active) nginx ***
            ● nginx.service – The NGINX HTTP and reverse proxy server
            Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
            Active: active (running) since Sat 2022-05-14 13:27:38 UTC; 4 weeks 1 days ago

            *** (active) php7-fpm ***
            ● php7-fpm.service – The PHP FastCGI Process Manager
            Loaded: loaded (/usr/lib/systemd/system/php7-fpm.service; enabled; vendor preset: disabled)
            Active: active (running) since Sat 2022-05-14 13:27:39 UTC; 4 weeks 1 days ago

            *** (active) MariaDB ***
            ● mariadb.service – MariaDB 10.1.48 database server
            Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
            Active: active (running) since Thu 2022-04-14 01:21:05 UTC; 1 months 29 days ago

            *** ruby ***
            KUSANAGI Ruby is not installed yet

            *** add-on ***

            *** Cache Status ***
            bcache off
            fcache off

            *** WAF ***
            off

            *** SELinux ***
            off

            Done.

            in reply to: URLの転送 #940
            hanju8810
            Participant

              お世話になります。

              ・nginx 再起動時にエラーメッセージが表示されていますか?
               ⇨表示されないです。

              ・ブラウザでアクセスすると、どのように表示されていますか?

              このサイトにアクセスできませんwww.dev.nankatsu-sc-dev.com にタイプミスがないか確認してください。
              DNS_PROBE_FINISHED_NXDOMAIN

              ・kusanagi_ssl_http.conf というファイル名は正しいでしょうか?
              ⇨kusanagi使用時から、/etc/nginx/conf.d 配下に存在するファイルです。
              こちらでは手を加えておりません。

              in reply to: URLの転送 #934
              hanju8810
              Participant

                KUSANAGIでwww有り無しをリダイレクト!Nginx環境のリダイレクトを徹底解説します!
                https://www.braveryk7.com/nginx-redirect/

                上記のサイトを見て、検証サーバで検証してみました。
                正常に写るページ(ここにリダイレクトしたい)
                https://dev.nankatsu-sc-dev.com/

                下記ページを上記にリダイレクトしたい
                https://www.dev.nankatsu-sc-dev.com
                http://www.dev.nankatsu-sc-dev.com

                kusanagi_html_http.conf ここから—-
                server {
                listen 80 default_server;
                server_name dev.nankatsu-sc-dev.com;
                return 301 https://www.dev.nankatsu-sc-dev.com$request_uri;
                }
                kusanagi_html_http.conf ここまで—-

                kusanagi_ssl_http.conf ここから—-
                server {
                listen 443 ssl http2;
                server_name dev.nankatsu-sc-dev.com http://www.dev.nankatsu-sc-dev.com;
                kusanagi_ssl_http.conf ここまで—-

                この設定では上手くいきませんでした。どうかご教示をお願いします。

                in reply to: URLの転送 #926
                hanju8810
                Participant

                  返信ありがとうございます。回答いたします。
                  ・どこのサーバー(VPSやクラウド)を利用していますでしょうか?
                  AWS

                  ・kusanagi status の結果をいただけますでしょうか?
                  —kusanagi status ここから
                  # kusanagi status
                  Profile: kusanagi_html
                  FQDN: http://www.nankatsu-sc.com
                  Type: WordPress
                  KUSANAGI Version 8.6.0-1
                  aws-biz

                  *** (active) nginx ***
                  ● nginx.service – The NGINX HTTP and reverse proxy server
                  Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
                  Active: active (running) since Fri 2022-04-15 08:29:06 UTC; 4 days ago

                  *** (active) php7-fpm ***
                  ● php7-fpm.service – The PHP FastCGI Process Manager
                  Loaded: loaded (/usr/lib/systemd/system/php7-fpm.service; enabled; vendor preset: disabled)
                  Active: active (running) since Fri 2022-04-15 08:29:06 UTC; 4 days ago

                  *** (active) MariaDB ***
                  ● mariadb.service – MariaDB 10.1.48 database server
                  Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
                  Active: active (running) since Thu 2022-04-14 01:21:05 UTC; 5 days ago

                  *** ruby ***
                  KUSANAGI Ruby is not installed yet

                  *** add-on ***

                  *** Cache Status ***
                  bcache off
                  fcache off

                  *** WAF ***
                  off

                  *** SELinux ***
                  off

                  Done.
                  —kusanagi status ここまで

                  ・リダイレクトはどこまでの話でしょうか?
                   両方

                Viewing 7 posts - 1 through 7 (of 7 total)