-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
frontend www-http | ||
bind *:81 | ||
mode http | ||
acl is_api path_beg -i /api | ||
use_backend apache2 if is_api | ||
# Exact match : acl jansale path -i /super_sale/january/15 | ||
# Subdirectory : acl isshirts path_dir -i /shirts | ||
# End in : acl isimage path_end -i .jpg .png | ||
# Length of URI: acl exactlyfour path_len 4 | ||
# Regex: acl isimage path_reg (png|jpg|jpeg|gif)$ | ||
# Contains sub-string: acl onsale path_sub -i sale | ||
|
||
default_backend apache | ||
|
||
backend apache | ||
description Our Apache Web servers | ||
mode http | ||
balance roundrobin | ||
server web1 127.0.0.1:8081 | ||
server web5 127.0.0.1:8085 | ||
server web6 127.0.0.1:8086 | ||
|
||
backend apache2 | ||
mode http | ||
balance roundrobin | ||
server web1 127.0.0.1:8082 | ||
server web3 127.0.0.1:8083 | ||
server web4 127.0.0.1:8084 |