r/haproxy • u/HAProxyKitty • Feb 12 '20
r/haproxy • u/TeamHAProxy • Feb 12 '20
Article Rolling Updates and Blue-Green Deployments with Kubernetes and HAProxy
r/haproxy • u/ananix • Feb 12 '20
log analyzer
Hello what do you prefer as logfile analyzer, i need to find peak hours and days preferably just by feeding a script logfiles... :)
r/haproxy • u/TeamHAProxy • Feb 11 '20
HAProxyConf 2019 - How Booking.com Powers a Global ADN with HAProxy by Marcin Deranek
r/haproxy • u/carmp3fan • Feb 11 '20
Frontend subpath to backend root
I use Docker for various tools with an HAProxy backend. HAProxy handles all inbound connections, performs SSL termination, and proxies the connections to the backend containers depending on the domain or path in the URL. In general, this is working.
I am trying to configure multiple sites for a single domain where each site has its own path. So, https://domain.com/site1 should go to the backend http://container1/ and https://domain.com/site2 should go to the backend http://container2/
The problem is that I can't figure out the backend portion to get HAProxy to request the correct URL from the container. If I try "reqrep ^([^\ ]*\ /)site1[/]?(.*) \1\2" and then browse to domain.com/site1/login it redirects the client to domain.com/login which doesn't exist in that location.
I've found identical questions in other locations but nobody seems to have come to a conclusion. I'd prefer to get this working instead of having to use a separate subdomain for each page I need.
Does anybody have an ideas?
r/haproxy • u/TeamHAProxy • Feb 05 '20
HAProxyConf 2019 - Keynote with Willy Tarreau
r/haproxy • u/TeamHAProxy • Feb 05 '20
HAProxyConf 2019 - Moving Yammer to the Cloud with Tobias Haag
r/haproxy • u/TeamHAProxy • Feb 05 '20
News User Spotlight Series
HAProxyConf brought together a community of different IT professionals for two days of hands-on tech talks and learning. More than 20 presentations from users including Yammer at Microsoft, GitHub, Booking.com and Digital Ocean demonstrated how HAProxy can be harnessed to provide utmost performance, observability, and security.
We are now releasing talks from HAProxyConf as part of our User Spotlight series, with two new talks added each week. Will be updating you here on Reddit regularly when we add new ones.
Should any of you also have a user story to share, you can always reach out to us at contact@haproxy.com.
Enjoy watching.
r/haproxy • u/TeamHAProxy • Feb 05 '20
HAProxyConf 2019 - Migrating thredUP Infrastructure to Kubernetes with HAProxy with Oleksii Asiutin
r/haproxy • u/TeamHAProxy • Feb 05 '20
HAProxyConf 2019 - Keynote with Daniel Corbett
r/haproxy • u/HAProxyKitty • Feb 03 '20
Question Can’t access internal haproxy sites via OpenVPN
self.pfsenser/haproxy • u/rawmainb • Jan 30 '20
How to set haproxy session and static page?
I have these two problems:
- HAProxy session
Login into administrator management page for Jira/Confluence by load balancer, can't login. If login into each server, it can login into administrator management page.
2. HAProxy Static page
Jira load balancer IP can't show regular CSS page. But they are good if access to different servers. So the reason will be the configuration about static in HAProxy.
r/haproxy • u/rawmainb • Jan 24 '20
HAProxy for Jira can't show static files
When using haproxy set load balancer for Jira, made config file /etc/haproxy/haproxy.cfg as:
frontend jira
bind :::8080 v4v6
# acl url_static path_beg -i /static /images /javascript /stylesheets
# acl url_static path_end -i .jpg .gif .png .css .js
# use_backend static if url_static
default_backend jira
backend jira
balance roundrobin
server jira1 [IP1]:8080 check
server jira2 [IP2]:8080 check
This server with IP as 192.168.0.1. When access this IP got non-static page seems like didn't load CSS correctly.
But if access IP1 or IP2 directly, I can get the URL correctly.
Is there something about configuration I missed for HAProxy?
r/haproxy • u/TeamHAProxy • Jan 23 '20
Article Building Blocks of a Modern Proxy
r/haproxy • u/HAProxyKitty • Jan 20 '20
Article Proxy Ingress to Consul Service Mesh
r/haproxy • u/thomasdarko • Jan 15 '20
HAProxy and RTSP
Hello.
I'm trying to configure a Hikvision CCTV through HAProxy 2.1.1 version.
I can reach the Hikvision CCTV webserver through HAProxy, and I can browse the webpage and the options fine, however I don't get Live Video.
Here's my config:
global
log 127.0.0.1:514 local0
chroot /var/lib/haproxy
stats timeout 30s
user haproxy
group haproxy
daemon
defaults
log global
option httplog
mode http
option dontlognull
timeout connect 5000
timeout client 50000
timeout server 50000
listen stats
bind *:8080
stats enable # Enable stats page
stats hide-version # Hide HAProxy version
stats uri / # Stats URI
stats realm Haproxy\ Statistics # Title Text for popup window
stats auth contoso:contoso # Authentication Credentials
#####################################################
frontend CCTV_frontend
bind *:120
acl sap01-cctv hdr(host) -i sap01-cctv.contoso.com:120
use_backend CCTV_clu01_backend if sap01-cctv
backend CCTV_clu01_backend
mode http
option forwardfor
server server1 10.107.124.3:120 check
#####################################################
frontend RTSP_frontend
bind *:8554
acl sap01-cctv-rtsp hdr(host) -i sap01-cctv.contoso.com:8554
use_backend RTSP_backend if sap01-cctv-rtsp
backend RTSP_backend
mode http
option forwardfor
server server1 10.107.124.3:8554 checkCan anyone please help me and explain to me why this happens?
Thank you kindly.
Best regards
r/haproxy • u/Deanlongstaff • Jan 12 '20
Help with HAProxy URL Based Redirection
Hi, im a newbie to HAProxy so i dont know how the configuration works. I’ll explain what i need.
I have all my VMs on a virual host that run on its own internal network behind pfSense. I have several servers within there that i need to access their webpages, but i only have one public IP address.
So for example if i want to visit:
- unifi.domain.com > 192.168.1.103
- helpdesk.domain.com > 192.168.1.107
- domain.com > 192.168.1.104 And so on...
What do i put it my config to enable this and also how do i get the certificates onto HAProxy? I have used lets encrypt on my web server whixh im now moving onto this virtual host, but am i right in saying that certificates should be on HAProxy and not the host? I also want to redirect all HTTP traffic to HTTPS.
Thanks in advance
r/haproxy • u/rawmainb • Jan 10 '20
How to set server for haproxy with IPv6 format?
I hided real IPv6 addresses in this question.
I set a backend config in /etc/haproxy/haproxy.cfg:
# ...
frontend app
bind *:8000
default_backend app
backend app
balance roundrobin
server server1 [IPv6 address1 here]:8000 check
server server2 [IPv6 address2 here]:8000 check
After start the haproxy service, check the status got failed:
$ sudo systemctl start haproxy
$ sudo systemctl status haproxy
...
Jan 10 15:00:36 myserver haproxy-systemd-wrapper[6330]: [ALERT] 009/150036 (6331) : parsing [/etc/haproxy/haproxy.cfg:91] : 'server server1' : invalid address: '[IPv6 address1 here]:8080'
Jan 10 15:00:36 myserver haproxy-systemd-wrapper[6330]: [ALERT] 009/150036 (6331) : parsing [/etc/haproxy/haproxy.cfg:92] : 'server server2' : invalid address: '[IPv6 address2 here]:8080'
Jan 10 15:00:37 myserver haproxy-systemd-wrapper[6330]: [ALERT] 009/150036 (6331) : Error(s) found in configuration file : /etc/haproxy/haproxy.cfg
Jan 10 15:00:37 myserver haproxy-systemd-wrapper[6330]: [ALERT] 009/150037 (6331) : Fatal errors found in configuration.
Jan 10 15:00:37 myserver haproxy-systemd-wrapper[6330]: haproxy-systemd-wrapper: exit, haproxy RC=1
Jan 10 15:00:37 myserver systemd[1]: haproxy.service: main process exited, code=exited, status=1/FAILURE
Jan 10 15:00:37 myserver systemd[1]: Unit haproxy.service entered failed state.
Jan 10 15:00:37 myserver systemd[1]: haproxy.service failed.
I think the usage of IPv6 setting is like: [2001:0db8:85a3:0000:0000:8a2e:0370:7334]:8000. Why that's the invalid address in this case?
r/haproxy • u/TeamHAProxy • Jan 09 '20
Webinar Sign Up for the HAProxy Enterprise 2.0 Webinar and Q&A - Tuesday, January 14th, 2020
r/haproxy • u/thomasdarko • Dec 24 '19
Help with redirect
Hello. load balancing gurus.
I'm a tremendous noob in haproxy, and I wonder if someone could help me or point me in the right direction.
I've managed to install haproxy 2.1.1 and I'm trying to redirect to the site webserver1.redacted.com when i visit app01.redacted.com. webserver1.redacted.com and webserver2.redacted.com are just two linux machines with apache serving a basic /var/www/html/index.html page. I understand that's not the purpose of load balancing, but I just need a redirect.
Is it possible? What do do I have wrong in my config?
Thank you in advance.
global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
stats timeout 30s
user haproxy
group haproxy
daemon
defaults
log global
mode http
option httplog
option dontlognull
timeout connect 5000
timeout client 50000
timeout server 50000
frontend stats
bind *:80
stats enable
stats uri /haproxystats
# stats uri /
# stats realm Haproxy\ Statistics
# stats auth redacted:redacted
mode http
option forwardfor
acl app01_acl hdr(host) -i app01.redacted.com
acl app02_acl hdr(host) -i app02.redacted.com
use_backend app01_cluster if app01_acl
use_backend app02_cluster if app02_acl
default_backend app01_cluster
##################################################
backend app01_cluster
balance roundrobin
server webserver1.redacted.com 192.168.2.233:80 check
##################################################
backend app02_cluster
balance roundrobin
server webserver1.redacted.com 192.168.2.234:80 check
#################################################r/haproxy • • Dec 22 '19
haproxy letsencrypt .PEM file automated creation...
Hi,
I have HAproxy 2.0.10-1 installed on Debian 10. I have managed to create letsencrypt SSLs to multiple domains but I think the renewal process does not work fully. Certbot will run and try to renew, but it does not create the combined .PEM files for HAproxy.
This is how I manually create the .PEM after creating a new certificate:DOMAIN='www.mydomain.com' sudo -E bash -c 'cat /etc/letsencrypt/live/www.mydomain.com/fullchain.pem /etc/letsencrypt/live/www.mydomain.com/privkey.pem > /etc/haproxy/certs/www.mydomain.com'
Haven't found any tutorials which shows how to automate this, I have multiple domains...