Server70 [Debian] Apache 모듈 활성화 및 로드된 모듈 확인 1. 모듈 활성화 방법 - sudo a2enmod [모듈명] 예) sudo a2enmod rewrite - sudo systemctl restart apache2 2. 로드된 모듈 확인 방법 - apachectl -M 또는 a2query -m 2022. 2. 4. Nginx 13: Permission denied) while connecting to upstream (해결법3) 1. sestatus로 SELINUX 사용 여부 확인 - 만약 켜져 있다면 종료 ※ 종료 방법은 아래 URL 참고 www.lesstif.com/system-admin/centos-selinux-6979732.html CentOS SELinux 설정 및 해제하기 SELinux 를 해제후 다시 켤 경우 relabel 이 필요하며 이때 잘못된 설정이 있을 경우 부팅이 안 되거나 ssh 로 원격 접속이 불가능할 수 있으므로 enforcing 모드가 아닌 permissive 로 설정후 재부팅하는 것 www.lesstif.com 2. nginx user 변경 - vi /etc/nginx/nginx.conf user nginx로 되어있는걸 웹 소스 소유자로 변경 2021. 4. 7. [CentOS] 방화벽 firewalld 설정 CentOS 7 의 경우 iptables 대신 netfilter 를 기본 방화벽으로 사용합니다. 이러한 netfilter 의 관리 프로그램이 firewalld 서비스 입니다. #systemctl start firewalld #systemctl enable firewalld 설치 후 기본적으로 존재하는 zone의 경우 다음과 같습니다. #firewall-cmd --get-zones block dmz drop external home internal public trusted work 여기서 zone은 AWS 의 보안그룹과 같은 역할을 한다고 볼 수 있습니다. 즉, 방화벽 설정 등을 묶어 놓은 후 상황에 따라 교체하며 설정을 일괄 적용할 수 있습니다. 현재 적용되고 있는 zone 은 아래와 같이 확인할 수 .. 2020. 10. 14. [CentOS] Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again yum 사용 시 아래와 같은 에러가 나올 경우 Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again 1. cd /etc/yum.repos.d 2. vi epel.repo 3. baseurl 주석해제, mirrorlist 주석 2020. 9. 4. [CentOS] [Errno 14] problem making ssl connection yum install 중 아래와 같은 에러 메세지가 나오면 이렇게 조치하면 됩니다. 1. cd .yum.repos.d 2. grep -r 을 이용하여 문제가 되는 파일 repo 위치 검색 3. vi 문제되는 repo 파일로 실행 4. enabled를 0으로 변경 5. yum clean all 6. yum -y install ca-certificates 7. enabled를 다시 1로 변경 2020. 9. 4. [Tomcat8] samesite none, Security Cookie 설정 크롬이 80 버전부터 samesite 설정이 기본 none에서 lax로 변경되면서 결제 모듈 등에서 문제가 발생할 수 있습니다. (로그인 해제 등의 문제) 이럴 때는 samesite 설정을 none으로 바꾸면됩니다. (보안상의 문제로 https를 필수로 해야함) 저는 톰캣 8.5 버전에 적용했습니다. 1. 톰캣HOME/conf/server.xml 2. 웹 소스 내의 web.xml true true 2020. 8. 7. 이전 1 2 3 4 5 ··· 12 다음