-
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
3 changed files
with
42 additions
and
2 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
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,25 @@ | ||
frontend www-http | ||
bind *:81 | ||
mode http | ||
acl apache222 req.hdr(Host) -i -m str apache222.com | ||
redirect prefix http://apache2.com if apache222 | ||
# redirect prefix http://apache2.com code 301 if apache222 | ||
# Specify the code with code number | ||
# redirect prefix http://apache2.com drop-query if apache222 | ||
# drop-query will drop the query params | ||
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 |