public
Created

  • Download Gist
nginx-1.2.9 -V
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
nginx version: nginx/1.2.9
TLS SNI support enabled
configure arguments:
--prefix=/usr/share/nginx
--conf-path=/etc/nginx/nginx.conf
--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-debug
--with-http_addition_module
--with-http_dav_module
--with-http_geoip_module
--with-http_gzip_static_module
--with-http_image_filter_module
--with-http_realip_module
--with-http_secure_link_module
--with-http_stub_status_module
--with-http_ssl_module
--with-http_sub_module
--with-http_xslt_module
--with-ipv6
--with-sha1=/usr/include/openssl
--with-md5=/usr/include/openssl
--add-module=/home/vagrant/nginx/debian/modules/headers-more-nginx-module
--add-module=/home/vagrant/nginx/debian/modules/nginx-development-kit
--add-module=/home/vagrant/nginx/debian/modules/nginx-echo
--add-module=/home/vagrant/nginx/debian/modules/nginx-statsd
--add-module=/home/vagrant/nginx/debian/modules/nginx-push-stream-module
--add-module=/home/vagrant/nginx/debian/modules/nginx-upstream-fair
--add-module=/home/vagrant/nginx/debian/modules/ngx_http_redis
--add-module=/home/vagrant/nginx/debian/modules/set-misc-nginx-module
--add-module=/home/vagrant/nginx/debian/modules/lua-nginx-module
nginx-1.4.1 -V
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
nginx version: nginx/1.4.1 (Ubuntu)
TLS SNI support enabled
configure arguments:
--prefix=/usr/share/nginx
--conf-path=/etc/nginx/nginx.conf
--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-debug
--with-http_addition_module
--with-http_geoip_module
--with-http_gzip_static_module
--with-http_image_filter_module
--with-http_realip_module
--with-http_spdy_module
--with-http_stub_status_module
--with-http_ssl_module
--with-http_sub_module
--with-http_xslt_module
--with-ipv6
--add-module=/home/vagrant/nginx/debian/modules/nginx-development-kit
--add-module=/home/vagrant/nginx/debian/modules/set-misc-nginx-module
--add-module=/home/vagrant/nginx/debian/modules/headers-more-nginx-module
--add-module=/home/vagrant/nginx/debian/modules/nginx-echo
--add-module=/home/vagrant/nginx/debian/modules/memc-nginx-module
--add-module=/home/vagrant/nginx/debian/modules/srcache-nginx-module
--add-module=/home/vagrant/nginx/debian/modules/ngx_http_redis
--add-module=/home/vagrant/nginx/debian/modules/nginx-upstream-fair
--add-module=/home/vagrant/nginx/debian/modules/nginx-statsd
nginx.conf
Nginx
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
user www-data;
worker_processes 1;
worker_rlimit_nofile 63000;
 
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
 
events {
worker_connections 1024;
use epoll;
}
 
http {
include /etc/nginx/mime.types;
 
access_log off;
 
default_type application/octet-stream;
gzip on;
 
sendfile on;
tcp_nodelay on;
tcp_nopush off;
 
lingering_time 5s;
lingering_timeout 1s;
client_header_timeout 5s;
keepalive_timeout 0;
reset_timedout_connection on;
 
server_tokens off;
 
server {
listen 80;
server_name sub.example.com;
 
uwsgi_read_timeout 60;
 
gzip_proxied expired no-cache no-store private auth;
gzip_vary on;
gzip_types application/x-javascript application/json application/javascript text/css;
 
set_real_ip_from 10.0.0.0/8;
set_real_ip_from 127.0.0.1;
real_ip_header X-Forwarded-For;
real_ip_recursive on;
 
location / {
include uwsgi_params;
uwsgi_pass unix:/tmp/uwsgi.sock;
}
}
 
server {
listen 127.0.0.1:81;
server_name localhost;
access_log off;
location = /server-status {
allow 127.0.0.1;
deny all;
stub_status on;
}
}
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.