メインコンテンツに移動

メインナビゲーション

  • ホーム
  • サイトマップ
  • ビデオ
  • ご連絡

パンくず

  • ホーム
  • Secure Pagesモジュールのインストール

Secure Pagesモジュールのインストール

drupal
drupal
LDAP
  1. Apacheのhttp.confファイルでSSLモジュールを有効化する
    • LoadModule ssl_module modules/mod_ssl.so」で有効化
    • <IfModule ssl_module>
      SSLRandomSeed startup builtin
      SSLRandomSeed connect builtin
      </IfModule>
    • Listen 443 (SSLがこのポートを使用する)
    • <VirtualHost _default_:443> // SSL Virtual Host Context
      DocumentRoot "C:/develop/dev_sources/php"
      ServerName locahost:443 (ホスト名、Localhostの使用)
      SSLEngine on
      </VirtualHost>
  2. Apacheにある既存のSSL証明書パスを設定する
    • SSLCertificateFile "conf/ssl.crt/server.crt" (証明書ファイル)
    • SSLCertificateKeyFile "conf/ssl.key/server.key" (キーのファイル)
  3. Apacheを再起動して、phpinfo()でSSLの正常作動を確認する
  4. Secure Pagesモジュールのインストール
    • Secure Pagesモジュールをダウンロードする
    • インストールして、Secure Pagesモジュールを有効化する
    • admin/config/system/securepagesでSecure Pagesの設定
      Enable Secure Pages : Enable
      Switch back to http pages when there are no matches : アンチェック
      Secure Base URL : サイトのランディングページでいい、例:https://xxxxxx.com/
      Pages which will be be secure :「Make secure every page except the listed pages. 」を選択した場合、下にあるPagesにあるページを確認して、全部削除していいと思う
  5. サイトのSSL接続をテストする
    • https://xxxx.com/で接続して、テストをする
       
ホーム

古松

検索

Article Category

  • apache(7)
  • css(19)
  • drupal(295)
  • Electron(4)
  • html(34)
  • javascript(27)
  • laravel(4)
  • linux(5)
  • macOS(2)
  • mysql(13)
  • php(19)
  • python(4)
  • SEO(12)
  • video(72)
  • Visual Studio Code(4)
  • windows(13)
  • wordpress(32)