Skip to content

Instantly share code, notes, and snippets.

@lamoboos223
Created September 30, 2022 12:47
Show Gist options
  • Save lamoboos223/e431ab8d7423925632def129a27fb9f0 to your computer and use it in GitHub Desktop.
Save lamoboos223/e431ab8d7423925632def129a27fb9f0 to your computer and use it in GitHub Desktop.
frontend http
bind *:80
timeout client 60s
mode http
acl app1 path_end -i /app1
acl app2 path_end -i /app2
use_backend demo-app1 if app1
use_backend demo-app2 if app2
default_backend demo-apps
backend demo-app1
timeout connect 10s
timeout server 100s
mode http
server app1 127.0.0.1:8081
backend demo-app2
timeout connect 10s
timeout server 100s
mode http
server app2 127.0.0.1:8082
backend demo-apps
timeout connect 10s
timeout server 100s
mode http
server app1 127.0.0.1:8081
server app2 127.0.0.1:8082
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment