Skip to content

Instantly share code, notes, and snippets.

@blissdev
Created October 20, 2013 07:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save blissdev/7065863 to your computer and use it in GitHub Desktop.
Save blissdev/7065863 to your computer and use it in GitHub Desktop.
global
#daemon
maxconn 256
defaults
mode http
timeout connect 5000ms
timeout client 50000ms
timeout server 50000ms
frontend http-in
bind :80
mode http
option forwardfor #forward client's ip
acl use:stumptheband path_beg /sso
acl use:noser path_beg /account
use_backend stumptheband if use:stumptheband
use_backend noser if use:noser
default_backend middleman
backend noser
reqadd X-Forwarded-Proto:\ https
option http-server-close
server noser 127.0.0.1:3010
backend stumptheband
reqadd X-Forwarded-Proto:\ https
server stumptheband 127.0.0.1:8080
backend middleman
reqadd X-Forwarded-Proto:\ https
server middleman 127.0.0.1:8070
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment