<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://hurlster.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Haproxy</id>
	<title>Haproxy - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://hurlster.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Haproxy"/>
	<link rel="alternate" type="text/html" href="https://hurlster.com/wiki/index.php?title=Haproxy&amp;action=history"/>
	<updated>2026-08-25T20:35:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.4</generator>
	<entry>
		<id>https://hurlster.com/wiki/index.php?title=Haproxy&amp;diff=2675&amp;oldid=prev</id>
		<title>Gqwill69: Created page with &quot;* cat haproxy.cfg &lt;pre&gt; global         log /dev/log    local0         log /dev/log    local1 notice         chroot /var/lib/haproxy         stats socket /run/haproxy/admin.soc...&quot;</title>
		<link rel="alternate" type="text/html" href="https://hurlster.com/wiki/index.php?title=Haproxy&amp;diff=2675&amp;oldid=prev"/>
		<updated>2018-12-18T17:21:06Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;* cat haproxy.cfg &amp;lt;pre&amp;gt; global         log /dev/log    local0         log /dev/log    local1 notice         chroot /var/lib/haproxy         stats socket /run/haproxy/admin.soc...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;* cat haproxy.cfg&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
global&lt;br /&gt;
        log /dev/log    local0&lt;br /&gt;
        log /dev/log    local1 notice&lt;br /&gt;
        chroot /var/lib/haproxy&lt;br /&gt;
        stats socket /run/haproxy/admin.sock mode 660 level admin expose-fd listeners&lt;br /&gt;
        stats timeout 30s&lt;br /&gt;
        tune.ssl.default-dh-param 2048&lt;br /&gt;
        nbproc 4&lt;br /&gt;
        stats bind-process 4&lt;br /&gt;
        user haproxy&lt;br /&gt;
        group haproxy&lt;br /&gt;
        daemon&lt;br /&gt;
&lt;br /&gt;
        # Default SSL material locations&lt;br /&gt;
        ca-base /etc/ssl/certs&lt;br /&gt;
        crt-base /etc/ssl/private&lt;br /&gt;
&lt;br /&gt;
        # Default ciphers to use on SSL-enabled listening sockets.&lt;br /&gt;
        # For more information, see ciphers(1SSL). This list is from:&lt;br /&gt;
        #  https://hynek.me/articles/hardening-your-web-servers-ssl-ciphers/&lt;br /&gt;
        # An alternative list with additional directives can be obtained from&lt;br /&gt;
        #  https://mozilla.github.io/server-side-tls/ssl-config-generator/?server=haproxy&lt;br /&gt;
        ssl-default-bind-ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:RSA+AESGCM:RSA+AES:!aNULL:!MD5:!DSS&lt;br /&gt;
        ssl-default-bind-options no-sslv3&lt;br /&gt;
&lt;br /&gt;
defaults&lt;br /&gt;
        log     global&lt;br /&gt;
        mode    http&lt;br /&gt;
        option  dontlognull&lt;br /&gt;
        option  http-keep-alive&lt;br /&gt;
        stats   enable&lt;br /&gt;
        stats   auth    username:password&lt;br /&gt;
        stats   uri     /haproxyStats&lt;br /&gt;
        timeout connect 50000&lt;br /&gt;
        timeout client  50000&lt;br /&gt;
        timeout server  50000&lt;br /&gt;
        errorfile 400 /etc/haproxy/errors/400.http&lt;br /&gt;
        errorfile 403 /etc/haproxy/errors/403.http&lt;br /&gt;
        errorfile 408 /etc/haproxy/errors/408.http&lt;br /&gt;
        errorfile 500 /etc/haproxy/errors/500.http&lt;br /&gt;
        errorfile 502 /etc/haproxy/errors/502.http&lt;br /&gt;
        errorfile 503 /etc/haproxy/errors/503.http&lt;br /&gt;
        errorfile 504 /etc/haproxy/errors/504.http&lt;br /&gt;
&lt;br /&gt;
## HTTP&lt;br /&gt;
frontend http-in&lt;br /&gt;
        mode http&lt;br /&gt;
        bind x.x.x.x:80&lt;br /&gt;
        bind x.x.x.x:443 ssl crt /etc/ssl/domain.com.pem&lt;br /&gt;
&lt;br /&gt;
        # Define domain based forward&lt;br /&gt;
        acl host_sub1 hdr(host) -i sub1.domain.com&lt;br /&gt;
        acl host_sub2 hdr(host) -i sub2.domain.com&lt;br /&gt;
&lt;br /&gt;
        # Redirect domain based forwards&lt;br /&gt;
        use_backend sub1_http if host_sub1&lt;br /&gt;
        use_backend sub2_http if host_sub2&lt;br /&gt;
&lt;br /&gt;
        # Fallthrough&lt;br /&gt;
        default_backend sub1_http&lt;br /&gt;
&lt;br /&gt;
backend sub1_http   &lt;br /&gt;
        server node1 127.0.0.1:80 check&lt;br /&gt;
&lt;br /&gt;
backend sub2_http   &lt;br /&gt;
        server node1 192.168.0.65:80 check&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Gqwill69</name></author>
	</entry>
</feed>