Skip to content

Instantly share code, notes, and snippets.

@kerotaa
Last active December 18, 2015 02:08
Show Gist options
  • Save kerotaa/5708321 to your computer and use it in GitHub Desktop.
Save kerotaa/5708321 to your computer and use it in GitHub Desktop.
add WebDav modules to nginx for MNPP
#!/bin/sh
PCRE_URL='http://downloads.sourceforge.net/project/pcre/pcre/8.32/'
PCRE_FILE='pcre-8.32'
NGINX_URL="http://nginx.org/download/"
NGINX_FILE="nginx-1.2.8"
SRC_DIR="/Applications/MNPP/src"
mkdir "${SRC_DIR}"
cd "${SRC_DIR}"
git clone https://github.com/arut/nginx-dav-ext-module.git
wget -c "${PCRE_URL}${PCRE_FILE}.tar.gz" && tar xvfz "${PCRE_FILE}.tar.gz"
wget -c "${NGINX_URL}${NGINX_FILE}.tar.gz" && tar zxvf "${NGINX_FILE}.tar.gz" && cd "${NGINX_FILE}"
./configure --prefix=/Applications/MNPP/Library/nginx --sbin-path=/Applications/MNPP/Library/nginx --conf-path=/Applications/MNPP/conf/nginx/nginx.conf --user=www --group=www --with-http_ssl_module --with-http_stub_status_module --with-http_dav_module --add-module=/Applications/MNPP/src/nginx-dav-ext-module --pid-path=/Applications/MNPP/run/nginx --with-http_gzip_static_module --with-pcre=/Applications/MNPP/src/$PCRE_FILE/
make && make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment