­
­
HoguInside & ㅁ ㅇ ㄷ nail: APACHE

IT. POST LIST

POST ALL LABEL

APACHE 로드 밸런싱(L4, proxy) 실제 IP 출력

By 때찌때찌맴매 - 4월 05, 2018
이 요약은 사용할 수 없습니다. 이 글을 보려면 여기를 클릭하세요. 이 요약은 사용할 수 없습니다. 이 글을 보려면 여기를 클릭하세요. ...

Continue Reading

  • Share:

APACHE 압축전송

By 때찌때찌맴매 - 12월 06, 2017
Apache 압축전송( mod_deflate ) ** 2.2.x 이하 버전에서만  DSO 모듈 추가 하기. 2.2.x 이상 버전에서는 기본으로 모듈 제공 # cd /usr/local/src/APM_Setup/httpd-2.4.3/modules/filters # /usr/local/apache/bin/apxs -cia -Wl,"-lz" mod_deflate.c ** 설치 완료후 확인 2.2.x 에서는 확인 안 되지만 정상작동 됩니다. # /usr/local/apache/bin/httpd -l mod_deflate.c ** httpd.conf 하단에 내용 추가합니다. # vi /usr/local/apache/conf/httpd.conf <IfModule mod_deflate.c> AddType text/html .html .htm AddType text/css .css AddType application/xml .xml AddType application/javascript...

Continue Reading

  • Share:

Apache mod_url 설치

By 때찌때찌맴매 - 3월 21, 2014
* mod_url 이란? 아파치가 한글로된 파일을 인식 하게하는 모듈 예를들어 jpg파일이름이 영문이 아닌 한글 이름으로 되어있어도 그 jpg 파일을 불러드려 실행할 수 있다. * mod_url 설치전 확인 사항 DSO 방식으로 설치된 APACHE 인지 확인 해야댐 ㅇㅇ DSO 방식은 APACHE 서버가 컴파일 되었을때 구정 정보로 모듈을 컴파일 하여 APACHE EXTENSION 프 로그램인 apxs가 알아서 처리하여 Apache 모듈을 DSO(.so 파일)에 컴파일 한뒤 적절한 APACHE 구성...

Continue Reading

  • Share:

Apache mod_expires 설치

By 때찌때찌맴매 - 3월 21, 2014
mod_expires 이란 이 모듈은 서버 응답의 Expires HTTP 헤더와 Cache-Control HTTP 헤더의 max-age 지시어 설정을 조절한다. 만기일을 파일이 마직막 수정된 시간 혹은 클라이언트가 접속한 시간에 상대적으로 설정할 수 있다. 즉 디스크 상에 캐시영역을 확보하여 자주가는 사이트에 접속 할때 캐시영역에 보관되어 있지않은 사이트에 접 속 할때보다 더빨리 문서를 보여주게 되는데 이것은 부라우저가 이미 캐시역역에 사이트 문서들을 저장한 상태 에서 최종수정일자가 변경된 문서만을 요청해 브라우징...

Continue Reading

  • Share:

apache+tomcat연동

By 때찌때찌맴매 - 3월 21, 2014
1. JDK 설치 (Java SE Development Kit) 우선 JDK 가 필요하므로 아래 주소에서 다운로드 받습니다. http://java.sun.com/javase/downloads/index.jsp [root@ppinde /usr/local/src]# tar zxvf jdk-7u5-linux-i586.tar.gz 압축이 풀린 디렉토리를 원하는 곳으로 이동 [root@ppinde /usr/local/src]# mv jdk1.7.0_05 /usr/local/jdk1.7 `jdk1.7.0_05′ -> `/usr/local/jdk1.7 2. 톰캣 설치 톰캣을 아래 주소에서 다운로드 합니다. http://tomcat.apache.org/ 압축푼 후 원하는 곳으로 이동시켜 줍니다. [root@ppinde /usr/local/src]# tar zxvf apache-tomcat-6.0.35.tar.gz [root@ppinde /usr/local/src]# mv apache-tomcat-6.0.35 /usr/local/tomcat `apache-tomcat-6.0.35′ -> `/usr/local/tomcat’...

Continue Reading

  • Share:

apaceh 구동 불가 : [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock Configuration Failed

By 때찌때찌맴매 - 12월 04, 2013
[emerg] (28)No space left on device: Couldn’t create accept lock [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock Configuration Failed ipcs -s | grep nobody 를 쳐보면 세마포어 배열이 잔뜩 있는 것을 확인할 수 있다 ipcs -s | grep nobody | perl -e ‘while (<STDIN>) { @a=split(/\s+/); print `ipcrm sem $a[1]`}’ 를 하여서 세마포어 배열들을 죽이면 임시방편으로 해결이 가능한다. 다른...

Continue Reading

  • Share:

[alert] (EAI 2)Name or service not known: mod_unique_id: unable to find IPv4 address of ‘guguflower’

By 때찌때찌맴매 - 12월 03, 2013
Sun Mar 24 04:02:12 2013] [alert] (EAI 2)Name or service not known: mod_unique_id: unable to find IPv4 address of ‘guguflower’ Configuration Failed  hostname 이 ‘ gugu ‘ 로 해당 IP 에대한 원하는 호스트명으로 등록 되어 있지 않아 발생 하는 경우. #vi /etc/hosts 에서 해당 호스트명으로 수정 하면됩니다. ...

Continue Reading

  • Share:

[Apache 튜닝]apache prefork 와 worker 방식

By 때찌때찌맴매 - 12월 03, 2013
Apache Multi-Processing Modules(MPM, 다중처리모듈)의 Prefork 와 Worker 방식의 비교 ==> apache 서버가 클라이언트에게서 받아들인 요청을 처리하기 위해 “자식 process” 에게 분배하는 방식 Prefork 방식 – 하나의 자식 프로세스가 하나의 쓰레드를 갖는 구조로, 자식 프로세스는 1024까지 늘일 수 있다. – 한개의 자식 프로세스는 한 개의 연결을 담당한다. – 프로세스가 생성되는 구조이므로 당연히 worker보다는 많은 메모리를 사용함. – 프로세스간 메모리를 직접 공유하지 않으므로, 메모리 공간이...

Continue Reading

  • Share:

Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden:xxx/xxx/xx…

By 때찌때찌맴매 - 12월 03, 2013
Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden:xxx/xxx/xxxx.html 요 관련 에러…  해당 폴더에 .htaccess 파일 찾아 보자…ㅋㅋㅋㅋㅋ 아… 일단 그거 부터..ㅋㅋㅋ 없으면 다른데서 걍 복사해서 가져다가 넣어 버리센 ...

Continue Reading

  • Share:

[crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock Configuration Failed(아파치데몬안올라옴)

By 때찌때찌맴매 - 12월 03, 2013
merg] (28)No space left on device: Couldn’t create accept lock [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock Configuration Failed ipcs -s | grep nobody 를 쳐보면 세마포어 배열이 잔뜩 있는 것을 확인할 수 있다. =_=; ipcs -s | grep nobody | perl -e ‘while (<STDIN>) { @a=split(/\s+/); print `ipcrm sem $a[1]`}’ 를 하여서 세마포어 배열들을 죽이면 임시방편으로 해결이 가능한다....

Continue Reading

  • Share:

httpd (pid xxxx) already running or (20014)Error string not specified yet: Error retrieving pid file logs/httpd.pid

By 때찌때찌맴매 - 12월 03, 2013
[root@ logs]# /usr/local/apache/bin/apachectl start httpd (pid 2445) already running [root@yahocar logs]# ps -ef |grep httpd root      3088     1  0 15:49 ?        00:00:00 /usr/local/apache/bin/httpd -k start nobody    3089  3088  0 15:49 ?        00:00:00 /usr/local/apache/bin/httpd -k start nobody    3090  3088  2 15:49 ?        00:00:05 /usr/local/apache/bin/httpd -k start nobody    3092...

Continue Reading

  • Share:

아파치 실행시 (httpd (을)를 시작 중: httpd: bad user name apache 오류)

By 때찌때찌맴매 - 12월 03, 2013
httpd (을)를 시작 중: httpd: bad user name apache [실패] vi /etc/passwd apache:x:48:48:Apache:/var/www:/sbin/nologin  —>등록 vi /etc/group apache:x:48: —>등록 두곳에서 apache 가 없을 경우 등록 service httpd start 정상 확인 주의) yum 설치시 해당 소스 설치를 했을경우 절대 경로를 통해서 구동 ex) /usr/local/apache/bin/apachectl start ...

Continue Reading

  • Share:

아파치 데몬 다운현상([error] child process xxxxxxx still did not exit, sending a SIGKILL)

By 때찌때찌맴매 - 12월 03, 2013
[error] child process xxxxxxx still did not exit, sending a SIGKILL The error “child process xxxxx still did not exit, sending a SIGTERM” means that the child processes were not terminated, and a SIGTERM(Signal: Terminate – default signal to kill a process) was sent. 자식 프로세스가 죽지않아 프로세스를 죽이는 신호를 보냈다. This error can occur due to various reasons such as running buggy...

Continue Reading

  • Share:

apache 설치 옵션확인

By 때찌때찌맴매 - 12월 03, 2013
vim /usr/local/apache/build/config.nice vim /usr/local/apache/build/config.nice ...

Continue Reading

  • Share:

Virtualhost Redirect 사용 법

By 때찌때찌맴매 - 12월 03, 2013
ex) xxxx.co.kr , xxxx.com 으로 접속 시 www.xxxx.com 으로 이동 ssl 설치 후 보안 인증이 잘 되지 않아 사용해 봤습니다. 기존 가상 호스트 여러개 사용 중 일때 #################### 가상호스트 <VirtualHost *:80> ServerAdmin xxxx.com DocumentRoot ‘E:/PansyMall_xxxx’ ServerName xxxx.com ServerAlias www.xxxx.com ErrorLog ‘logs/xxxx.Error.log’ CustomLog ‘logs/xxxx.Custom.log’ common Redirect / http://www.xxxx.com </VirtualHost> ##################### 가상호스트 <VirtualHost *:80> ServerAdmin www.xxxx.co.kr DocumentRoot ‘E:/PansyMall_xxxx’ ServerName www.xxxx.co.kr ServerAlias www.xxxx.com ErrorLog ‘logs/xxxx.Error.log’ CustomLog...

Continue Reading

  • Share:

httpd.conf 내용들

By 때찌때찌맴매 - 12월 03, 2013
httpd.conf 버전에 따라 옵션이라든지 디렉토리 구조가 좀 틀린듯 하다. ServerTokens OS – 클라이언트 요청에 되돌려주는 정보에 웹서버의 OS에 대한 정보를 클라이언트에게 보여줌 – ServerTokens Prod : 정보보여주지 않는다?? ServerTokens min – 클라이언트 요청에 최소한의 정보만을 클라이언트에게 보여줌 ServerRoot “/usr/local/apache” – 웹서버의 본체가 있는 디렉토리 소스설치하거나 rpm 으로 설치한 경우 경로가 틀려질수도 ㅋㅋ PidFile run/httpd.pid – 웹 프로세스의 PID를 기록할 파일의 위치를 설정 (뭔지...

Continue Reading

  • Share:

CentOs 6 구성요소 설치

By 때찌때찌맴매 - 12월 03, 2013
■ httpd 2.3.8 ▶APM 전체 필수 구성 요소 설치 yum -y install openssl openssl-devel mhash mhash-devel libtool libtool-ltdl libtool-ltdl-devel imap-devel imap zlib-devel zlib freetype-devel freetype libpng-devel libpng libjpeg-devel libjpeg libtiff-devel libtiff gd-devel gd pcre-devel pcre libxml-devel libxml libxml2-devel libxml2 gdbm-devel gdbm ncurses-devel ncurses curl-devel curl expat-devel expat bzip2-devel bzip2-libs bzip2 libc libc-devel libc-client-devel gcc* <– 끝에 네개 추가 ▶ 필수 구성 요소 설치...

Continue Reading

  • Share:

apache 소스 설치

By 때찌때찌맴매 - 12월 03, 2013
☆ Apache 수동 설치 httpd-2.2. 사용 # cd /httpd-2.2. # ./configure –prefix=/usr/local/apache –with-mpm=worker –enable-modules=so –enable-rewrite –enable-ssl –enable-mods-shared=all ※ 옵션내용이 무엇인지 알아보자 # make install ※ make 오류시 modules/http/.libs/libmod_http.a(byterange_filter.o): In function `ap_set_byterange': byterange_filter.c:(.text+0x12c1): undefined reference to `apr_array_clear’ collect2: ld returned 1 exit status make[1]: *** [httpd] 오류 1 make[1]: Leaving directory `/root/install_1/httpd-2.2.22′ make: *** [all-recursive] 오류 1 config 옵션 추가 –with-included-apr httpd.conf 설정 #...

Continue Reading

  • Share:

Apache mod_rewrite 설치

By 때찌때찌맴매 - 3월 21, 2013
mod_rewrite 란? Apache module의 한 종류로 서버 Request를 정해진 Rule에 의해서 다른 URL or File로 보내는 모듈 mod_rewrite로 거의 모든 Request변형 처리가 가능하다. 가능한 작업의 예 URL Forward – DocumentRoot 변경 – Domain,Subdomain 조작 – 특정 Patten URL에 대한 URL변경 – User 디렉토리에 대한 처리 – 기타 등등.. mod_rewrite 설치 Apache 전체의 재 컴파일이 아닌 Mod_rewrite 모듈만 별도로 컴파일 하여 설치 하는 방법임...

Continue Reading

  • Share: