Skip to content

Instantly share code, notes, and snippets.

@ifooth
Created July 22, 2013 14:21
Show Gist options
  • Save ifooth/6054178 to your computer and use it in GitHub Desktop.
Save ifooth/6054178 to your computer and use it in GitHub Desktop.
#!/bin/bash
build=/tmp/nginx-build/
nginx=nginx-1.4.2
dav_ext=nginx-dav-ext-module
pam_auth=ngx_http_auth_pam_module-1.2
index=ngx-fancyindex
upload=nginx_upload_module-2.2.0
lua=lua-nginx-module
progress=nginx-upload-progress-module
rm -rf $build >/dev/null 2>&1
mkdir $build
cd $build
wget http://nginx.org/download/$nginx.tar.gz
wget http://web.iti.upv.es/~sto/nginx/$pam_auth.tar.gz
git clone git://github.com/arut/nginx-dav-ext-module.git
#git clone git://github.com/timsnadden/ngx-fancyindex.git
#git clone git://github.com/vkholodkov/nginx-upload-module.git -b 2.2
#wget http://www.grid.net.ru/nginx/download/nginx_upload_module-2.2.0.tar.gz
#git clone git://github.com/shairontoledo/ngx-upload-module.git
#git clone git://github.com/shairontoledo/nginx-upload-module.git
#git clone git://github.com/masterzen/nginx-upload-progress-module.git
#git clone git://github.com/chaoslawful/lua-nginx-module.git
#git clone http://luajit.org/git/luajit-2.0.git
#luajit=luajit-2.0
#cd $luajit
#make
#cd ..
# tell nginx's build system where to find LuaJIT:
#export LUAJIT_LIB=$build/$luajit/src
#export LUAJIT_INC=$build/$luajit/src
#git clone git://github.com/simpl/ngx_devel_kit.git
tar -xf $nginx.tar.gz
tar -xf $pam_auth.tar.gz
#tar -xf $upload.tar.gz
cd $nginx
./configure --prefix=/usr \
--conf-path=/etc/nginx/nginx.conf \
--pid-path=/run/nginx.pid \
--error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log \
--user=www-data \
--group=www-data \
--with-http_ssl_module \
--with-http_dav_module \
--add-module=$build$dav_ext \
--add-module=$build$pam_auth
make
#sudo apt-get purge nginx
#make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment