httpd 를 한번도 실행해 주지 않은 상태에서 apachetl configtest 했더니 아래와 같은 오류 메시지가 나오더군요~
[root@ivps ~]# apachectl configtest
AH00526: Syntax error on line 85 of /etc/httpd/conf.d/ssl.conf:
SSLCertificateFile: file ‘/etc/pki/tls/certs/localhost.crt’ does not exist or is empty
[root@ivps ~]# vi /etc/httpd/conf.d/ssl.conf
[root@ivps ~]# ls -l /etc/pki/tls/certs/localhost.crt
ls: cannot access ‘/etc/pki/tls/certs/localhost.crt’: No such file or directory
[root@ivps ~]# systemctl restart httpd
[root@ivps ~]# apachectl configtest
Syntax OK
[root@ivps ~]# ls -l /etc/pki/tls/certs/localhost.crt
-rw-r–r–. 1 root root 3720 Jan 9 05:06 /etc/pki/tls/certs/localhost.crt
httpd 를 한번 실행해주면 되네요~
이 글은 ivps.tistory.com 에서 RSS로 가져온 글입니다. 원본보기