[Nginx] SSL 설정(HTTPS 적용) 와 how_to_set_https_by_using_nginx.md, KOR 를 참고해서 했지만, 게시글은
[email protected]
였고 저는[email protected]
였기 떄문인지nginx.conf
구성 자체가 너무 달랐습니다.따라서 Official Docs 에 가까운 튜툐리얼을 찾아서 실행했습니다. 에러 내역 3번 이후 를 참고해주세요.
nginx.conf
를 수정했더니 아예 nginx가 가동이 안되고 있습니다.
백업해 둔 원본 파일을 넣어도 이 문제가 해결되지 않았습니다.
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xeu nginx.service" for details.
systemctl status nginx.service
을 쳐보니 다음과 같은 에러가 나왔습니다.
× nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2022-08-05 16:20:30 UTC; 1min 46s ago
Docs: man:nginx(8)
Process: 4880 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
CPU: 3ms
Aug 05 16:20:30 ip-172-31-39-125 systemd[1]: Starting A high performance web server and a reverse proxy server...
Aug 05 16:20:30 ip-172-31-39-125 systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE 48,29-57 Bot
Aug 05 16:20:30 ip-172-31-39-125 systemd[1]: nginx.service: Failed with result 'exit-code'.
Aug 05 16:20:30 ip-172-31-39-125 systemd[1]: Failed to start A high performance web server and a reverse proxy server.
아마도 제가 인지하지 못하는 윈도우
와 우분투
의 차이라고 생각해서 우분투의 vim
안에서 코드를 전부 복사해서 작성했습니다.
하지만 역시나 에러가 해결되지 않았습니다.