Simple build script for compiling a debian package which can be easily distributed over a cluster. Should be more or less equivalent to the official Debian package, except Phusion Passenger integration.
Script allows modification of included modules etc. if you are familiar with bash syntax you can customize the build according to your needs.
Note: There are official deb packages for Debian and Ubuntu from Phusion company, which are easier to deploy if you don't need special modifications. official debian packages
- ruby (recommended >= 1.9.3)
- gems: FPM, passenger
- autoconf, make, g++
- lib SSL
- PCRE development headers
- Curl development headers with SSL support
- Zlib development headers
in commands:
sudo apt-get install autoconf automake wget make zlib1g-dev libpcre3-dev libcurl4-openssl-dev
-
install prerequisites, install ruby, we recommend using RVM
-
gem install rake fpm passenger
-
for modifying build parameters you have to edit
build_nginx
script -
if you want specific version of nginx, it is specified by
VERSION
variable at the begining ofbuild_nginx
script (currently nginx 1.5.1 is fetched from the official website) -
just run script with your distribution name (tested on
squeeze
,wheezy
)./build_nginx wheezy
- Standard HTTP Modules: Core, Access, Auth Basic, Auto Index, Browser, Charset, Empty GIF, FastCGI, Gzip, Headers, Index, Log, Limit Requests, Limit Zone, Map, Memcached, Proxy, Referer, Rewrite, Split Clients, SSI, Upstream, User ID, UWSGI
- Optional HTTP Modules: Debug, Gzip Precompression, IPv6, Stub Status, SSL, Passenger, WebDAV
- support multiple build profiles (something like nginx-full, nginx-naxis)
- add support for Ubuntu upstart scripts
- pass parameters via arguments