i have a few external websites which now works with nginx. As i need to host an internal exchange 2013 server (which free nginx doesn’t like) i am looking into haproxy.
https://mail.lex-it.com needs to be redirected to the internal exchange 2013 servers
The mail i still need to figure out but as i am new to the haproxy just wanted to focus in the simpler websites.
The problem i face is with the wiki rewrite which i don’t know how to do and i hope one off you can help me with this.
I have managed to create the following config, but the wiki is bogus offcourse :
global log 127.0.0.1 local0 log 127.0.0.1 local1 notice maxconn 25000 user haproxy group haproxy daemon defaults log global mode http option httplog option dontlognull option forwardfor option http-server-close stats enable # stats auth someuser:somepassword stats uri /haproxy?stats retries 3 frontend http-in bind *:443 # Define hosts acl host_helpdesk hdr(host) -i helpdesk.lex-it.com acl host_wiki hdr(host) -i wiki.lex-it.com ## figure out which one to use use_backend helpdesk_cluster if host_helpdesk use_backend wiki_cluster if host_wiki backend helpdesk_cluster balance leastconn option httpclose option forwardfor cookie JSESSIONID prefix server node1 helpdesk.lan.local cookie A check backend wiki_cluster balance leastconn option httpclose option forwardfor cookie JSESSIONID prefix server node1 wiki.lan.local/xwiki cookie A check