Options +SymLinksIfOwnerMatch
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example\.com
RewriteRule (.*)$ http://www.example.com/$1 [R=301,L]
(.*)のあとの$は何なのか調べるの忘れた
Options +SymLinksIfOwnerMatch
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example\.com
RewriteRule (.*)$ http://www.example.com/$1 [R=301,L]
(.*)のあとの$は何なのか調べるの忘れた
cd /home/myusername
git clone https://github.com/certbot/certbot
./certbot-auto
インストールしています:
dialog x86_64 1.1-9.20080819.1.el6 base 197 k
libffi-devel x86_64 3.0.5-3.2.el6 base 18 k
python-tools x86_64 2.6.6-66.el6_8 updates 871 k
依存性関連でのインストールをします。:
tcl x86_64 1:8.5.7-6.el6 base 1.9 M
tix x86_64 1:8.4.3-5.el6 base 252 k
tk x86_64 1:8.5.7-5.el6 base 1.4 M
tkinter x86_64 2.6.6-66.el6_8 updates 258 k
完了しました!
Creating virtual environment...
./certbot-auto: line 583: virtualenv: コマンドが見つかりません
./certbot-auto certonly --webroot \ん?
-w /var/www/html -d subdomain.sampledomain.com -d www.subdomain.sampledomain.com \
-m admin@sampledomain.com \
--agree-tos
パッケージ gcc-4.4.7-17.el6.x86_64 はインストール済みか最新バージョンですうーん・・・python-virtualenvとpython-pipが無いと言われる・・・。
パッケージ dialog-1.1-9.20080819.1.el6.x86_64 はインストール済みか最新バージョンです
パッケージ augeas-libs-1.0.0-10.el6.x86_64 はインストール済みか最新バージョンです
パッケージ openssl-1.0.1e-48.el6_8.3.x86_64 はインストール済みか最新バージョンです
パッケージ openssl-devel-1.0.1e-48.el6_8.3.x86_64 はインストール済みか最新バージョンです
パッケージ libffi-devel-3.0.5-3.2.el6.x86_64 はインストール済みか最新バージョンです
パッケージ redhat-rpm-config-9.0.3-51.el6.centos.noarch はインストール済みか最新バージョンです
パッケージ ca-certificates-2015.2.6-65.0.1.el6_7.noarch はインストール済みか最新バージョンです
パッケージ python-2.6.6-66.el6_8.x86_64 はインストール済みか最新バージョンです
パッケージ python-devel-2.6.6-66.el6_8.x86_64 はインストール済みか最新バージョンです
パッケージ python-virtualenv は利用できません。
パッケージ python-tools-2.6.6-66.el6_8.x86_64 はインストール済みか最新バージョンです
パッケージ python-pip は利用できません。
パッケージ 1:mod_ssl-2.2.15-54.el6.centos.x86_64 はインストール済みか最新バージョンです
./certbot-autoすると
./certbot-auto certonly --webroot \で再実行。
-w /var/www/html -d subdomain.sampledomain.com -d www.subdomain.sampledomain.com \
-m admin@sampledomain.com \
--agree-tos
IMPORTANT NOTES:ということで取得できた。
- Congratulations! Your certificate and chain have been saved at
/etc/letsencrypt/live/SUBDOMAIN.DOMAIN.COM/fullchain.pem.
Your cert will expire on 2017-01-11. To obtain a new or tweaked
version of this certificate in the future, simply run certbot-auto
again. To non-interactively renew *all* of your certificates, run
"certbot-auto renew"
- If you like Certbot, please consider supporting our work by:
Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-le
vi /etc/httpd/conf.d/ssl.confで
SSLCertificateFile /etc/letsencrypt/live/[サーバーのドメイン]/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/[サーバーのドメイン]/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/[サーバーのドメイン]/chain.pem
自動更新はcrontab -u root -eで
00 05 01 * * /usr/local/certbot/certbot-auto renew --force-renew && /bin/systemctl reload httpdやっと普通に使えるようになった・・・。
yum install httpd
ab -c 100 -n 10000 http://192.168.168.168/
# ab -c 400 -n 10000 http://192.168.168.168/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 192.168.168.168 (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Completed 10000 requests
Finished 10000 requests
Server Software: squid/3.1.10
Server Hostname: 192.168.168.168
Server Port: 80
Document Path: /
Document Length: 3149 bytes
Concurrency Level: 400
Time taken for tests: 21.348 seconds
Complete requests: 10000
Failed requests: 0
Write errors: 0
Non-2xx responses: 10065
Total transferred: 35295756 bytes
HTML transferred: 31642161 bytes
Requests per second: 468.43 [#/sec] (mean)
Time per request: 853.912 [ms] (mean)
Time per request: 2.135 [ms] (mean, across all concurrent requests)
Transfer rate: 1614.62 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 2 248 621.4 60 4298
Processing: 106 533 1064.4 215 11993
Waiting: 104 357 591.2 197 9319
Total: 113 781 1367.8 294 12831
Percentage of the requests served within a certain time (ms)
50% 294
66% 592
75% 806
80% 975
90% 1493
95% 3182
98% 4819
99% 6595
100% 12831 (longest request)
cache_dir ufs /var/spool/squid/cache_l 8192 16 256
maximum_object_size 131072 KB
cache_mem 1024 MB