본문 바로가기

환경13

[NGINX] 에러 - [error] 76899#0: *5007 upstream sent too big header while reading response header from upstream NGINX 에러 - [error] 76899#0: *5007. upstream sent too big header while reading response header from upstreamNginx log 를 이용해 로그를 남길 때 너무 많은 양의 데이터를 log 에 사용하려하면 위 메시지가 나오는 경우가 있다. 이 때는 proxy_buffer_size 128k;proxy_buffers 4 256k;proxy_busy_buffers_size 256k; 설정을 통해서 해결 할 수 있다. Nginx 공식 페이지 (http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_buffer_size) 에 보면 해당 설정은 http, location, serv.. 2019. 1. 11.
[Nginx] 설정 Cache [Nginx] 설정 Cache 기능 정리. [Nginx] cache 사용법 [Nginx] cache control [Nginx] cache - url 에서 특정 parameter 제거하여 캐싱하는 방법. [Nginx] cache 사용법 * 빠른 예제 proxy_cache_path /etc/nginx/cache levels=1:2 keys_zone=my_cache:10m max_size=10g inactive=60s use_temp_path=off; upstream myupstream { server 127.0.0.1:8080 max_conns=50; } server { listen 8000; #remove GET parameters - sessionid if ($args~(.*) sessionid = [.. 2019. 1. 9.
[Nginx] 설정 log [Nginx] 설정 log - logrotate로그 파일을 관리 안해주면 무한정 쌓이게 된다.날짜 별로 로그 파일을 새로 생성해주고, 특정 기간이 지난 것은 지워주도록 만드는 logrotate 설정에 대해서 기술한다.[Nginx] 설정 log - logrotate Configuration Filenginx_logrotate/NGINX LOG PATH/*.log { su USER-NAME USER-NAME daily dateformat .%Y-%m-%d dateext missingok rotate 52 compress delaycompress notifempty create 640 USER-NAME USER-NAME sharedscripts postrotate if [ -f /NGINX PID PATH/n.. 2019. 1. 9.
[NGINX] 컴파일 설치 - download 와 build script Nginx 컴파일 설치 - download 와 build scriptCentOS 6,7 버젼을 기준으로 작성되었습니다.yum install 이 아닌 Nginx build 설치 방법에 대해서 작성합니다.root 계정이 아닌 일반 계정으로 설치하는 방법에 대해서 정리한다.일반 사용자 계정이기 때문에 configure 파일을 다르게하여 여러개의 인스턴스를 올릴 수 있다는 장점이 있다. Nginx 및 필수파일 다운로드 Nginx $> wget http://nginx.org/download/nginx-1.14.0.tar.gzzlib $> wget http://zlib.net/zlib-1.2.11.tar.gzpcre $> wget http://downloads.sourceforge.net/project/pcre/p.. 2019. 1. 9.