차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
homeserverwithdebian:certbotandapache2 [2024/04/03 14:00] – [4. DDNS 자동 갱신] baecy | homeserverwithdebian:certbotandapache2 [2024/08/05 09:32] (현재) – [3. Certbot 설정] baecy | ||
---|---|---|---|
줄 13: | 줄 13: | ||
< | < | ||
ServerName | ServerName | ||
- | | + | |
ServerAdmin webmaster@localhost | ServerAdmin webmaster@localhost | ||
줄 41: | 줄 41: | ||
sudo systemctl restart apache2 | sudo systemctl restart apache2 | ||
sudo systemctl status certbot.timer | sudo systemctl status certbot.timer | ||
- | \\ | + | |
+ | 다음과 같은 메세지 출력시에는 | ||
+ | <code bash cmdout> | ||
+ | Unable to find corresponding HTTP vhost; | ||
+ | Unable to create one as intended addresses conflict; | ||
+ | Current configuration does not support automated redirection | ||
+ | </ | ||
+ | |||
+ | 이 방법으로 적용 | ||
+ | <code bash> | ||
+ | certbot certonly --standalone -d gamu.kr, | ||
+ | </ | ||
==== 4. DDNS 자동 갱신 ==== | ==== 4. DDNS 자동 갱신 ==== | ||
**/ | **/ | ||
줄 50: | 줄 61: | ||
[Service] | [Service] | ||
Type=oneshot | Type=oneshot | ||
- | ExecStart=/ | + | ## DNSZi 사이트에서 코드 발행후 입력 |
+ | ExecStart=$(type -p wget) -q -O - ' | ||
**/ | **/ | ||
줄 67: | 줄 79: | ||
systemd 등록, 실행 | systemd 등록, 실행 | ||
- | < | + | < |
sudo systemctl enable gamu.timer | sudo systemctl enable gamu.timer | ||
sudo systemctl start gamu.timer | sudo systemctl start gamu.timer | ||
- | sudo systemctl status gamu.kr # 등록한 타이머 상태 확인 | + | sudo systemctl status gamu # 등록한 타이머 상태 확인</ |
- | </ | + | \\ |