debian 7 nginx SPDY 지원 사용 하기

1229 단어 nginxspdy
1) OpenSSL 버 전이 1.0.1 이상 인지 확인
2) 다운로드 nginx / 1.5.9:
$ wget http://nginx.org/download/nginx-1.5.9.tar.gz

3) 압축 풀기:
$ tar xvfz nginx-1.5.9.tar.gz
 $ cd nginx-1.5.9

4) spdy 패 치 다운로드 및 치기:
$ wget http://nginx.org/patches/patch.spdy-v31.txt
 $ patch -p1 < patch.spdy-v31.txt

5) nginx 설정 및 컴 파일:
$ ./configure  --prefix=/usr/share/nginx  --sbin-path=/usr/sbin/nginx  --conf-path=/etc/nginx/nginx.conf  --pid-path=/var/run/nginx.pid  --lock-path=/var/lock/nginx.lock  --error-log-path=/var/log/nginx/error.log  --http-log-path=/var/log/access.log  --with-http_ssl_module --with-http_spdy_module
 $ make
 $ make install 

6) nginx. conf 수정:
server {
  listen 443 ssl spdy;
  server_name segmentfault.com;

  ssl_certificate       segmentfault.crt;
  ssl_certificate_key   segmentfault.key;
      N   .....
  }
}

7) nginx 다시 시작
$ sudo service nginx restart

8) 활성화 에 성 공 했 는 지 확인
http://spdycheck.org/#segmentfault.com

또는 사 이 트 를 열 고 chrome: chrome://net-internals/#spdy SPDY sessions 에 사이트 가 있 는 지 확인 하 세 요.

좋은 웹페이지 즐겨찾기