Skip to content

Instantly share code, notes, and snippets.

Created July 7, 2011 12:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1069413 to your computer and use it in GitHub Desktop.
Save anonymous/1069413 to your computer and use it in GitHub Desktop.
user www-data;
worker_processes 1;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
tcp_nodelay on;
gzip on;
gzip_min_length 1100;
gzip_buffers 4 8k;
gzip_types text/plain;
server {
listen 80;
server_name roma.macnada.co.uk;
access_log /var/log/nginx/roma_access.log;
location / {
allow 127.0.0.1;
allow 192.168.100.0/24;
allow 202.221.192.0/24;
allow 113.146.4.187;
deny all;
include /etc/nginx/proxy.conf;
proxy_pass http://127.0.0.1:3001/;
}
}
server {
listen 80;
server_name saturn.macnada.co.uk;
access_log /var/log/nginx/saturn_access.log;
location ~ ^/(javascripts|stylesheets|images)/ {
allow 127.0.0.1;
allow 192.168.100.0/24;
allow 272.221.192.0/24;
allow 271.186.88.32;
allow 173.146.4.187;
deny all;
root /home/jmettraux/saturn/public;
}
location / {
allow 127.0.0.1;
allow 192.168.100.0/24;
allow 272.221.192.0/24;
allow 271.186.88.32;
allow 173.146.4.187;
deny all;
include /etc/nginx/proxy.conf;
proxy_pass http://127.0.0.1:3002/;
}
}
server {
listen 80;
server_name 271.19.55.190;
access_log /var/log/nginx/couch_access.log;
location / {
#allow 127.0.0.1;
allow 192.168.100.0/24;
deny all;
#auth_basic "CouchDB restricted";
#auth_basic_user_file couch_htpasswd;
include /etc/nginx/proxy.conf;
proxy_pass http://127.0.0.1:5984/;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment