Skip to content

Instantly share code, notes, and snippets.

@capflam
Created February 27, 2012 21:17
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 capflam/1927164 to your computer and use it in GitHub Desktop.
Save capflam/1927164 to your computer and use it in GitHub Desktop.
config file for yaws (double revproxy)
logdir = /home/christopher/test/yaws/var/log/yaws
ebin_dir = /home/christopher/test/yaws/lib/yaws/examples/ebin
ebin_dir = /home/christopher/test/yaws/var/yaws/ebin
include_dir = /home/christopher/test/yaws/lib/yaws/examples/include
max_connections = nolimit
keepalive_maxuses = nolimit
process_options = "[]"
trace = false
use_old_ssl = false
copy_error_log = true
log_wrap_size = 1000000
log_resolve_hostname = false
fail_on_bind_err = true
pick_first_virthost_on_nomatch = true
keepalive_timeout = 30000
<server www.capflam.org>
port = 8001
listen = 0.0.0.0
docroot = /home/christopher/test/yaws/var/yaws/www
revproxy = /revproxy2 http://www.capflam.org:8002
</server>
<server www.capflam.org>
port = 8002
listen = 0.0.0.0
docroot = /home/christopher/test/yaws/var/yaws/www
</server>
<server www.capflam.org>
port = 8080
listen = 0.0.0.0
docroot = /home/christopher/test/yaws/var/yaws/www
revproxy = /revproxy1 http://www.capflam.org:8001
</server>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment