일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
- PHP 구글 OTP 연동
- usb efi 시스템 파티션 삭제
- php 이미지 url 검증 함수
- 아파치 웹 서버의 정보 숨기기
- 파라미터 & 오류
- 자바스크립트비밀번호검증
- apple push notification service (apns) is changing
- wsl2 우분투에 docker 설치
- php 배열제거
- thumbnail 클래스
- bootstrap
- postfix 설치
- mysqldump: Got error: 1045
- mariadb upgrade
- modsecurity 설치
- PHP 정규식 예제
- (using password: YES)" when trying to connect
- 비밀번호정규식
- 윈도우 mod_security2
- 숫자 3자리(천단위) 마다 콤마 찍기
- 유튜브 플레이 리스트 저장
- mod_security2 설치
- httpd.conf 보안 설정
- 비밀번호검증정규식
- 윈도우 환경 아파치 mod_security2 설치
- group_concat 구분자
- sha-2 root
- bootstrap modal
- javascript
- html pdf 변환
- Today
- Total
목록OS (43)
투덜이 개발자
CentOS Linux 7 modsecurity-crs 적용sudo wget https://github.com/coreruleset/coreruleset/archive/v3.3.4.tar.gztar xvfzp v3.3.4.tar.gzmkdir /etc/httpd/modsecurity-crsmv coreruleset-3.3.4 /etc/httpd/modsecurity-crs/.cd /etc/httpd/modsecurity-crs/coreruleset-3.3.4mv crs-setup.conf.example crs-setup.conf# OWASP CRS (Core Rule Set) 3.3.4 을 사용하므로 # &MULTIPART_PART_HEADERS는 ModSecurity v2에서 인식 불가능 # 파일 이름..
cronolog는 로그 파일을 날짜별로 나눠 저장할 수 있게 해주는 외부 유틸리티입니다. Apache 등에서 로그 파일을 날짜별로 회전하려는 경우 종종 사용되며, 직접 설치해야 합니다. cronolog는 오래된 패키지이고 공식 저장소에는 없을 수 있어서, 보통 소스 빌드 또는 서드파티 저장소를 이용해 설치해야 합니다. cd /usr/local/srcwget http://ftp.debian.org/debian/pool/main/c/cronolog/cronolog_1.6.2+rpk.orig.tar.gztar zxvf cronolog_1.6.2+rpk.orig.tar.gzcd cronolog-1.6.2./configuremakesudo make install 설치가 완료되면, cronolog 명령어의 위치를 ..
🔧 1. Postfix 설치sudo apt updatesudo apt install postfix설치 중간에 "Postfix Configuration" 화면이 나타납니다.General type of mail configuration:→ Internet Site 선택System mail name:이 값은 메일 주소의 도메인 부분 (user@example.com)이 됩니다.→ 서버의 도메인명을 입력 (예: example.com)⚙️ 2. 기본 설정 확인 및 수정설치 후 설정 파일은 /etc/postfix/main.cf에 있습니다.수정 시:sudo nano /etc/postfix/main.cf중요 항목 예시:myhostname = mail.example.commyorigin = /etc/mailnamemyd..
🐳 WSL2 우분투에 Docker 설치 (Docker Desktop 없이)1️⃣ 기존 설치 흔적 제거 (선택)sudo apt remove docker docker-engine docker.io containerd runc2️⃣ 필수 패키지 설치sudo apt updatesudo apt install -y ca-certificates curl gnupg lsb-release3️⃣ Docker 공식 GPG 키 등록sudo mkdir -p /etc/apt/keyringscurl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg 4️⃣ Docker 저장소 추가echo \ "d..
🛡️ 1. Apache 보안 설정 .conf 예시# 파일 위치 예시: /etc/apache2/conf-available/security.conf# 또는 httpd.conf, apache2.conf 등 포함되는 곳에 설정# TRACE 메서드 비활성화TraceEnable Off# 최소한의 Server 헤더만 노출ServerTokens Prod# 오류 페이지 하단 정보 제거ServerSignature Off# mod_security가 설치되어 있는 경우 - 응답 헤더 위장 SecRuleEngine On SecDefaultAction "deny,phase:2,status:403" SecServerSignature "TestServer"# 디렉터리 리스팅 방지 Options -Indexes..

apache mod rewrite Apache에서 mod_rewrite 모듈이 활성화되어 있는지 확인하려면 아래 방법을 사용하시면 됩니다. 모듈이 활성화 확인Ubuntu/Debian 계열apache2ctl -M | grep rewrite출력에 rewrite_module이 보이면 활성화된 상태입니다: rewrite_module (shared) CentOS/RHEL 계열httpd -M | grep rewrite 모듈이 비활성화된 경우 활성화 방법Ubuntu/Debian 계열sudo a2enmod rewritesudo systemctl restart apache2CentOS/RHEL 계열 보통 /etc/httpd/conf/httpd.conf에서 다음 줄이 주석 처리되어 있다면 해제하면 됩니다:LoadMod..

우분투 SSH 서버 설치하기 (Ubuntu SSH server) Ubuntu 기본 설정에서는 root 계정 로그인이 잠겨 있을 수 있습니다.아래 명령어로 확인하세요.sudo passwd -S root출력이 root L처럼 나오면 root 계정이 잠겨 있습니다.잠금을 해제하려면 다음을 실행하세요.sudo passwd root새 비밀번호를 입력 후 다시 시도하세요.

[우분투] Ubuntu IP 설정 방법 (24.04.1) https://krujy.tistory.com/entry/Ubuntu-Ubuntu-IP-%EC%84%A4%EC%A0%95-%EB%B0%A9%EB%B2%95 [Ubuntu] Ubuntu IP 설정 방법 (24.04.1)Liunx 종류마다 IP를 설정하는 방법이 다르다.CLI 환경에서 Ubuntu IP 설정 방법을 알아보자. (24.04.1 기준) 1. 이더넷 이름 확인 bash# ifconfig# ip addr 일반적으로 ifconfig를 통해 이더넷 이름을 알 수 있krujy.tistory.com Liunx 종류마다 IP를 설정하는 방법이 다르다.CLI 환경에서 Ubuntu IP 설정 방법을 알아보자. (24.04.1 기준) 1. 이더넷 이름..