Skip to content

Instantly share code, notes, and snippets.

@hexa2k9

hexa2k9/nginx -V Secret

Created July 25, 2012 11:49
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save hexa2k9/5f7ff6c8e347371042e7 to your computer and use it in GitHub Desktop.
root@fe01:/usr/src/nginx# nginx -V
nginx version: nginx/1.3.3
built by gcc 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
TLS SNI support enabled
configure arguments: --prefix=/opt/nginx --user=www-data --group=www-data --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=/var/run/nginx.pid --with-file-aio --without-http_uwsgi_module --without-http_scgi_module --without-http_ssi_module --without-http_memcached_module --without-http_split_clients_module --without-http_userid_module --with-http_flv_module --with-http_mp4_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_realip_module --with-http_stub_status_module --with-http_ssl_module --with-ipv6 --with-openssl=/usr/src/nginx/source/openssl-1.0.1c --with-sha1=/usr/src/nginx/source/openssl-1.0.1c --with-md5=/usr/src/nginx/source/openssl-1.0.1c --add-module=/usr/src/nginx/modules/git/nginx-headers-more/
# Redmine Cluster (via. thin)
upstream redmine_cluster {
least_conn;
server 127.0.0.1:3000;
server 127.0.0.1:3001;
}
server {
listen 10.1.1.26:443 spdy ssl;
ssl_certificate /etc/nginx/ssl/redmine.cer;
ssl_certificate_key /etc/nginx/ssl/redmine.key;
include /etc/nginx/conf.d/ssl.global.conf;
server_name redmine.example.com;
access_log /var/log/nginx/access.redmine.log combined;
root /srv/redmine/app/current/public;
location / {
try_files $uri/index.html $uri.html $uri @redmine_cluster;
}
location @redmine_cluster {
proxy_pass https://redmine_cluster;
include /etc/nginx/conf.d/proxy.global.conf;
}
}
root@fe01:/etc/nginx/sites-enabled# uname -a
Linux fe01 3.2.0-25-generic-pae #40-Ubuntu SMP Wed May 23 22:11:24 UTC 2012 i686 i686 i386 GNU/Linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment