Created
March 5, 2011 12:48
-
-
Save karlseguin/856331 to your computer and use it in GitHub Desktop.
mogade.com nginx setup
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
gem install passenger | |
wget http://sysoev.ru/nginx/nginx-0.8.54.tar.gz | |
tar -xvf nginx-0.8.54.tar.gz | |
rm -fr nginx-0.8.54.tar.gz | |
wget https://github.com/agentzh/headers-more-nginx-module/tarball/v0.14 --no-check-certificate | |
tar -xvf v0.14 | |
rm -rf v0.14 | |
mv agentzh-headers-more-nginx-module-2cbbc15/ more-headers-module | |
cd nginx-0.8.54/ | |
./configure \ | |
--conf-path=/etc/nginx/nginx.conf \ | |
--error-log-path=/var/log/nginx/error.log \ | |
--pid-path=/var/run/nginx.pid \ | |
--lock-path=/var/lock/nginx.lock \ | |
--http-log-path=/var/log/nginx/access.log \ | |
--without-http_fastcgi_module \ | |
--without-http_scgi_module \ | |
--without-http_ssi_module \ | |
--without-http_uwsgi_module \ | |
--with-http_gzip_static_module \ | |
--http-client-body-temp-path=/var/lib/nginx/body \ | |
--http-proxy-temp-path=/var/lib/nginx/proxy \ | |
--add-module=/root/more-headers-module \ | |
--add-module=/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-3.0.4/ext/nginx \ | |
--with-http_stub_status_module \ | |
--with-http_ssl_module |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment