Skip to content

Instantly share code, notes, and snippets.

@k0nsl
Created January 15, 2013 09:10
Show Gist options
  • Save k0nsl/4537397 to your computer and use it in GitHub Desktop.
Save k0nsl/4537397 to your computer and use it in GitHub Desktop.
My simple proxy configuration for k0nsl.org
[nginx.conf]
upstream kCloud {
server IP1; #main server
server IP2:81 backup;
}
[/nginx.conf]
[k0nsl.org]
server {
error_log vhost-error_log warn;
listen IP:80;
server_name k0nsl.org www.k0nsl.org;
access_log k0nsl.org-bytes_log bytes_log;
access_log k0nsl.org combined;
root /srv1/puff/k01/pub;
location / {
proxy_read_timeout 200s;
proxy_pass http://kCloud;
proxy_set_header Host k0nsl.org;
proxy_cache STATIC;
proxy_cache_valid 200 1d;
proxy_cache_use_stale error timeout invalid_header updating
http_500 http_502 http_503 http_504;
}
}
[/k0nsl]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment