Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
0
Help us understand the problem. What is going on with this article?
@campbel2525

letsencrypt (レッツエンクリプト)の知見

More than 1 year has passed since last update.

シリーズ

物理・数学・プログラムのページについて

概要

無料のssl証明書のレッツエンクリプトについてまとめてみたいと思います。

sslのやり方

参考文献はここ

yum install epel-release
yum -y install mod_ssl
yum install certbot python2-certbot-apache
certbot --apache -d example.com

httpにアクセスしたらhttpsへリダイレクト処理
上のコマンドで実行するとリダイレクトの設定が聞かれますが私はそこでは設定しないで.htaccessで設定しています。
上のコマンドでの設定でもいけるはず。試してはいませんが。

httpにアクセスしたらhttpsへリダイレクト処理(.htaccess)

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
0
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
campbel2525
myblog: https://campbel.love/ facebook: https://www.facebook.com/campbel2525/ twitter: https://mobile.twitter.com/campbel2525/ instagram: https://www.instagram.com/campbel2525/

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
0
Help us understand the problem. What is going on with this article?