Last active
August 29, 2015 14:01
-
-
Save jstangroome/ef20019de051c969e92b to your computer and use it in GitHub Desktop.
Custom build nginx for AWS Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
wget -O build-nginx.sh https://gist.githubusercontent.com/jstangroome/ef20019de051c969e92b/raw/build-nginx.sh | |
chmod u+rx build-nginx.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get --assume-yes install make gcc zlib1g-dev libpcre3-dev libssl-dev | |
sudo apt-get --assume-yes install libluajit-5.1-dev # which other packages for lua? | |
ln -s /usr/lib/x86_64-linux-gnu/liblua5.1.so /usr/lib/liblua.so | |
export LUAJIT_LIB=/usr/lib | |
export LUAJIT_INC=/usr/include/luajit-2.0 | |
wget http://nginx.org/download/nginx-1.6.0.tar.gz | |
rm -r nginx-1.6.0/ | |
tar xvzf nginx-1.6.0.tar.gz | |
pushd nginx-1.6.0/ | |
./configure --with-http_ssl_module --add-module=/path/to/ngx_devel_kit --add-module=/path/to/lua-nginx-module | |
make | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
raw: https://gist.githubusercontent.com/jstangroome/ef20019de051c969e92b/raw/build-nginx.sh