-
-
Save musaid/06968bc5360bf395dce5 to your computer and use it in GitHub Desktop.
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
Before compiling, install nginx-naxsi package. This package is compiled with the option --without-http_uwsgi_module. | |
Uninstall it but without purge for keeping configuration files. | |
Check https://developers.google.com/speed/pagespeed/module/build_ngx_pagespeed_from_source | |
---------- OLD ---------- | |
543 wget https://dl.google.com/dl/page-speed/psol/1.6.29.5.tar.gz | |
->> https://github.com/pagespeed/ngx_pagespeed <<-- | |
549 wget http://labs.frickle.com/files/ngx_cache_purge-2.1.tar.gz | |
553 wget http://nginx.org/download/nginx-1.5.8.tar.gz | |
679 wget https://github.com/unbit/uwsgi/archive/1.4.10.tar.gz | |
---------- OLD ---------- | |
782 ./configure --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --add-module=/home/dev/naxsi/naxsi_src --error-log-path=/var/log/nginx/error.log --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-log-path=/var/log/nginx/access.log --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --with-pcre-jit --with-http_ssl_module --without-mail_pop3_module --without-mail_smtp_module --without-mail_imap_module --without-http_scgi_module --with-ipv6 --with-http_stub_status_module --with-http_realip_module --add-module=/home/dev/ngx_cache_purge-2.1 --add-module=/home/dev/nginx-upstream-fair --user=www-data --group=www-data --add-module=/home/dev/ngx_pagespeed | |
Compile options 1.7.0 NGINX --with-cc-opt='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2' --user=www-data --group=www-data --with-ld-opt=-Wl,-z,relro --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-pcre-jit --with-ipv6 --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_spdy_module --with-http_secure_link_module --without-mail_pop3_module --without-mail_smtp_module --without-mail_imap_module --without-http_scgi_module --add-module=/home/dev/buildd/nginx-1.7.0/debian/modules/naxsi-0.53-2/naxsi_src --add-module=/home/dev/buildd/nginx-1.7.0/debian/modules/ngx_cache_purge --add-module=/home/dev/buildd/nginx-1.7.0/debian/modules/nginx-upstream-fair --with-pcre=/home/dev/buildd/nginx-1.7.0/debian/modules/pcre-8.35 | |
Patch kernel | |
http://en.wikibooks.org/wiki/Grsecurity |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment