---
# System prepended metadata

title: W14 (2023/12/12)
tags: ['2023_1', Linux]

---

# W14 (2023/12/12)

## 用 IPv6 開 https web

### 簡化步驟 [SSL自動更新](/xYZZOmkzTV2jftdS1YmnBQ)

* 取得 IPv6
![image](https://hackmd.io/_uploads/rJ6CI_rLp.png)

* 轉址 https://dynv6.com/ 
設定完Domain Name**完成畫面**
![image](https://hackmd.io/_uploads/BkQzDuS8p.png)

* IPv6 & domain name 連線
![image](https://hackmd.io/_uploads/HksqD_HUa.png)


* 安裝
```bash=
$ sudo yum install epel-release mod_ssl
$ sudo yum install -y python-certbot-apache
```
* 申請
```bash=
certbot certonly --webroot -w /var/www/html -d chrislin123.dns.army --email s111010556@student.nqu.edu.tw
```
* 增加VirtualHost
**到 /etc/httpd/conf.d**
```bash=
$ sudo vim test.conf (名稱隨便 .conf 結尾就對了)

<VirtualHost *:80>
    ServerName chrislin123.dns.army
    DocumentRoot "/var/www/html"
</VirtualHost>
```

* 完成
![photo_2023-12-14_12-23-49](https://hackmd.io/_uploads/BJ1OQWOLa.jpg)
