Skip to content

Instantly share code, notes, and snippets.

@geta6
Last active December 19, 2015 13:49
Show Gist options
  • Save geta6/5964878 to your computer and use it in GitHub Desktop.
Save geta6/5964878 to your computer and use it in GitHub Desktop.
  • ユーザ nginx:nginx
  • php-fpm想定、fastcgi有り
  • uwsgi・scgi無し
  • spdyアリ
  • TCP-Proxy可能バージョン
  • binのpath以外はapt準拠
    • prefixを/usrに変えてsbin-pathを/usr/sbinにすればよい
  • ngx_pagespeedをaddしているので、適宜入手、もしくは該当行を削除
  • pagespeed/ngx_pagespeed
#!/bin/zsh
git clone git://github.com/nginx/nginx.git && cd nginx
git checkout v1.4.1
./configure \
--user=nginx \
--group=nginx \
--prefix=/usr/local \
--sbin-path=/usr/local/sbin/nginx \
--conf-path=/etc/nginx/nginx.conf \
--http-log-path=/var/log/nginx/access.log \
--error-log-path=/var/log/nginx/error.log \
--http-proxy-temp-path=/var/lib/nginx/tmp/proxy \
--http-client-body-temp-path=/var/lib/nginx/tmp/client_body \
--http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi \
--pid-path=/run/nginx.pid \
--lock-path=/var/lock/subsys/nginx \
--with-http_ssl_module \
--with-http_dav_module \
--with-http_spdy_module \
--with-http_sub_module \
--with-http_xslt_module \
--with-http_realip_module \
--with-http_degradation_module \
--with-http_gzip_static_module \
--with-http_image_filter_module \
--with-http_secure_link_module \
--with-http_addition_module \
--with-mail \
--with-mail_ssl_module \
--without-http_scgi_module \
--without-http_uwsgi_module \
--add-module=modules/ngx_pagespeed
make && make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment