Created
March 21, 2018 22:42
-
-
Save danielef/38393c4d8b602309df8865b02f064c0b to your computer and use it in GitHub Desktop.
HAProxy / Ejemplo Glassfish
This file contains hidden or 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
| global | |
| log 127.0.0.1 local2 | |
| chroot /var/lib/haproxy | |
| pidfile /var/run/haproxy.pid | |
| maxconn 8000 | |
| user haproxy | |
| group haproxy | |
| #nbproc 2 | |
| daemon | |
| defaults | |
| log global | |
| mode http | |
| #balance roundrobin | |
| compression algo gzip | |
| compression type image/png image/jpg text/html text/plain text/css text/js text/xml text/javascript application/javascript application/x-javascript a$ | |
| retries 3 | |
| option httplog | |
| option dontlognull | |
| option redispatch | |
| timeout connect 5000 | |
| timeout client 50000 | |
| timeout server 50000 | |
| timeout http-request 5000 | |
| timeout http-keep-alive 5000 | |
| frontend http-in | |
| bind *:80 | |
| acl wordpress path_beg /portal | |
| # http-request set-path /%[path] if wordpress | |
| default_backend glassfish | |
| use_backend apache if wordpress | |
| backend apache | |
| #reqrep ^([^\ ]*)\ /portal/(.*) \1\ /\2 | |
| option httpchk OPTIONS / | |
| option forwardfor | |
| option http-server-close | |
| http-response set-header Server danielef-Platform | |
| http-response set-header X-Powered-By danielef | |
| server fury localhost:81 check maxconn 2000 inter 5000 | |
| backend glassfish | |
| balance roundrobin | |
| option httpchk OPTIONS / | |
| option forwardfor | |
| option http-server-close | |
| appsession JSESSIONID len 52 timeout 3h request-learn | |
| http-response set-header Server danielef-Platform | |
| http-response set-header X-Powered-By danielef | |
| server homer 192.168.1.4:28080 check maxconn 2000 inter 5000 | |
| server bart 192.168.1.5:28080 check maxconn 2000 inter 5000 | |
| server marge 192.168.1.7:28080 check maxconn 2000 inter 5000 | |
| server lisa 192.168.1.8:28080 check maxconn 2000 inter 5000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment