본문 바로가기

카테고리 없음

varnish 설치 / 오류 / 유의사항 - ssl인증서 설치 오류 / 유의사항 [ Server ][ Linux ]

@Install varnish on CentOS

# yum -y install varnish

 

@varnish start & enable

# systemctl start varnish

# systemctl enable varnish

 

@Configure Apache on port 8080

# sed -i 's/Listen 80/Listen 8080/' /etc/httpd/conf/httpd.conf

# sed -i 's/ServerName localhost:80/ServerName localhost:8080/' /etc/httpd/conf/httpd.conf

# sed -i 's/*:80/*:8080/' /etc/httpd/conf.d/default.conf

# sed -i 's/*:80/*:8080/' /root/APM/adduser.sh  ==> AAI 정식버젼 : sed -i 's/*:80/*:8080/' /root/AAI/adduser.sh

# sed -i 's/VARNISH_LISTEN_PORT=6081/VARNISH_LISTEN_PORT=80/' /etc/varnish/varnish.params

 

@Apache & varnish restart

# systemctl restart httpd

# systemctl restart varnish

 

varnish설치시 80포트를 888포트로 설치 이후 ssl 설치오류 발생.

# certbot --apache -d aaa.com -d www.aaa.com 부분의 오류

# certbot --apache --http-01-port 888 -d aaa.com -d www.aaa.com 으로 

포트를 입력한 후 정상적인 도메인에 대한 ssl 보안이 가능해짐.

LIST