2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for
new sites, or if you're confident your site works on HTTPS. You can undo this
change by editing your web server's configuration.
sudo vi /etc/systemd/timesyncd.conf
----------------------------------
# NTP=
↓
NTP=169.254.169.123
----------------------------------
service systemd-timesyncd stop
service systemd-timesyncd start
systemctl status systemd-timesyncd.service
>
※ Updated 13/03/2020
Log Server Setup
IP: 150.95.147.249 Port: 50044 User: ktecadm URL: 201912/2503.xyz
URLアクセス情報:
8bJaB9zuuRp&Sw@!
System Update
Add user
Sudo
ktecadm SSH cert
disable root login
install certbot
SSL Cert
※ This certificate did not register for some reason. Redid this step, check further down for new procedure.
登録したメール:
SSL Cert auto renewal
Add:
Create renew.sh:
Install Apache
backup apache2.conf
install node.js
forever install
Change SSH Port
Add:
Reload ssh
Firerwall
50044から問題なくSSHでログインしたらSSH22を削除する
Virtal Host
updated install cert bot since above did not work
Add SSL
Selected 2
basic認証
【参照】
Install apache Utilities package
Create password file and user
Add directory to the Virtual Host
Check apache2 conifg syntax and restart
========== 下記のNTP設定が必要かどうかを確認します。