Apache 썸네일형 리스트형 Apache 실행 오류 및 SELinux 관련 해결 방법 Apache 실행 오류 및 SELinux 관련 해결 방법Apache 실행 오류Apache를 재시작할 때 다음과 같은 경고 메시지가 출력됩니다.[root@scbyun-ns1 named]$ service httpd restarthttpd 를 정지 중: [ OK ]httpd (을)를 시작 중: Warning: DocumentRoot [/home/www/docs/www.scbyun.com] does not exist [ OK ]/var/log/messages 로그에서는 아래와 같은 SELinux 관련 오류가 확인됩니다[root@s.. 더보기 httpd 서버의 정규화된 도메인 이름을 인식하지 못해서 발생하는 경고 메시지 httpd(Apache) 서버의 정규화된 도메인 이름을 인식하지 못해서 발생하는 경고 메시지경고 메시지$ apachectl starthttpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName해결 방법Apache 설정 파일에 ServerName을 명시적으로 지정하면 해결됩니다.CentOSServerName 설정 추가echo "ServerName $(hostname -f)" >> /etc/httpd/conf/httpd.conf(또는) 직접 설정vim /etc/httpd/conf/httpd.conf...(원본) #ServerName www.example.com:80(수정) S.. 더보기 cronolog를 컴파일하여 설치하고 Apache에 로그를 설정하는 방법 cronolog를 컴파일하여 설치하고 Apache에 로그를 설정하는 방법 Cronolog를 소스 코드를 직접 다운로드하여 컴파일하여 설치하고 Apache에 로그를 설정하는 방법은 아래와 같습니다. 1 .필요한 패키지 설치 컴파일에 필요한 일부 개발 패키지를 설치합니다. sudo yum install -y gcc make 2. Cronolog 다운로드 및 설치 Cronolog의 공식 웹 사이트(http://cronolog.org/)에서 소스 코드를 다운로드합니다. cd /usr/local/src wget http://cronolog.org/download/cronolog-1.6.2.tar.gz tar -xzvf cronolog-1.6.2.tar.gz cd cronolog-1.6.2 이제 소스 코드 디렉토리.. 더보기 How to Enable HTTP/2 in Apache 2.4 on Ubuntu 22.04 How to Enable HTTP/2 in Apache 2.4 on Ubuntu 22.04To enable HTTP/2 in Apache 2.4 on Ubuntu 22.04, you can follow these steps: 1. Update your systemsudo apt update 2. Install Apache 2.4 with SSL support and HTTP/2 modulesudo apt install apache2sudo apt install libapache2-mod-http2 3. Enable the necessary modulessudo a2enmod http2sudo a2enmod ssl 4. Configure your virtual hostsEdit the Apache conf.. 더보기 [리눅스] APM 설치(MySQL, Apache, PHP) APM 설치(MySQL, Apache, PHP) 1. 필수 라이브러리 설치 $ yum -y install gd gd-devel libpng libpng-devel libjpeg libjpeg-devel freetype freetype-devel fontconfig fontconfig-devel libxml2 libxml2-devel openssl openssl-devel gmp gmp-devel mhash mhash-devel libmcrypt libmcrypt-devel ncurses-devel curl-devel gdbm-devel libtool libtool-ltdl-devel 2. MySQL 설치2.1 MySQL 계정 생성 $ useradd -m -c "MySQL Server" -d /usr/lo.. 더보기 CentOS 6에서 mod_cband를 설치, 설정, 사용하는 방법 CentOS 6에서 mod_cband를 설치, 설정, 사용하는 방법 mod_cband는 Apache 웹 서버의 기능을 확장하여 속도 제한 및 대역폭 제어를 가능하게 해주는 모듈입니다. 이 모듈을 사용하면 웹 서버의 트래픽을 제한하여 공정한 리소스 분배를 할 수 있고, 웹 사이트의 성능과 안정성을 향상시킬 수 있습니다. 1. 필수 패키지 설치 먼저 필요한 패키지들을 설치합니다. 필요한 패키지는 아래와 같습니다. sudo yum install httpd-devel gcc 2. 소스 파일 다운로드 공식 웹 사이트인 http://cband.linux.pl에서 최신 버전의 소스 파일을 다운로드할 수 있습니다. mod_cband의 소스 파일을 다운로드합니다. 예를 들어, mod-cband-0.9.5.tar.gz 파.. 더보기 [리눅스] 아파치 웹 서버에서 디렉토리 리스팅을 막기 아파치 웹 서버에서 디렉토리 리스팅을 막기 1. 아파치 웹 서버에서 디렉토리 리스팅을 막으려면 Options 지시어에서 Indexes 옵션을 제거하면 됩니다. 2. Apache 설정 파일(httpd.conf)을 열어서 디렉토리 설정 부분을 찾습니다. 해당 디렉토리 설정에 대한 Options 지시어를 찾습니다. 일반적으로 아래와 같은 형태로 되어 있습니다. Options Indexes FollowSymLinks AllowOverride None Require all granted 3. Options 지시어에서 Indexes 옵션을 제거합니다. Options FollowSymLinks AllowOverride None Require all granted 4. 변경 사항을 저장하고 Apache를 재시작합니다... 더보기 아파치 버전 정보 노출 막기 아파치 버전 정보 노출 막기ServerTokens 설정ServerTokens 지시어를 Prod로 설정하여 서버 응답 헤더에서 최소한의 정보만 노출하도록 합니다.vim /etc/httpd/conf/httpd.conf## ServerTokens# This directive configures what you return as the Server HTTP response# Header. The default is 'Full' which sends information about the OS-Type# and compiled in modules.# Set to one of: Full | OS | Minor | Minimal | Major | Prod# where Full conveys the most infor.. 더보기 이전 1 ··· 3 4 5 6 7 다음