<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://wiki.ixheim.de/index.php?action=history&amp;feed=atom&amp;title=HAProxy_Rocky_Hostname-basiertes_Routing_auf_zwei_Backends</id>
	<title>HAProxy Rocky Hostname-basiertes Routing auf zwei Backends - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ixheim.de/index.php?action=history&amp;feed=atom&amp;title=HAProxy_Rocky_Hostname-basiertes_Routing_auf_zwei_Backends"/>
	<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=HAProxy_Rocky_Hostname-basiertes_Routing_auf_zwei_Backends&amp;action=history"/>
	<updated>2026-06-29T06:03:58Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Xinux Wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.ixheim.de/index.php?title=HAProxy_Rocky_Hostname-basiertes_Routing_auf_zwei_Backends&amp;diff=66028&amp;oldid=prev</id>
		<title>Thomas.will: /* Dienst neu starten */</title>
		<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=HAProxy_Rocky_Hostname-basiertes_Routing_auf_zwei_Backends&amp;diff=66028&amp;oldid=prev"/>
		<updated>2025-12-05T08:50:57Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Dienst neu starten&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 5. Dezember 2025, 08:50 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l56&quot; &gt;Zeile 56:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 56:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==Check Check==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;*haproxy -c -f /etc/haproxy/haproxy.cfg&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Dienst neu starten==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Dienst neu starten==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* systemctl restart haproxy&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* systemctl restart haproxy&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Thomas.will</name></author>
	</entry>
	<entry>
		<id>https://wiki.ixheim.de/index.php?title=HAProxy_Rocky_Hostname-basiertes_Routing_auf_zwei_Backends&amp;diff=65978&amp;oldid=prev</id>
		<title>Thomas.will: Die Seite wurde neu angelegt: „=HAProxy: Hostname-basiertes Routing auf zwei Backends=  ==Voraussetzungen== * HAProxy installiert * Zertifikatsdatei: /etc/haproxy/certs/haproxy.pem * Listene…“</title>
		<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=HAProxy_Rocky_Hostname-basiertes_Routing_auf_zwei_Backends&amp;diff=65978&amp;oldid=prev"/>
		<updated>2025-12-02T21:28:24Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „=HAProxy: Hostname-basiertes Routing auf zwei Backends=  ==Voraussetzungen== * HAProxy installiert * Zertifikatsdatei: /etc/haproxy/certs/haproxy.pem * Listene…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=HAProxy: Hostname-basiertes Routing auf zwei Backends=&lt;br /&gt;
&lt;br /&gt;
==Voraussetzungen==&lt;br /&gt;
* HAProxy installiert&lt;br /&gt;
* Zertifikatsdatei: /etc/haproxy/certs/haproxy.pem&lt;br /&gt;
* Listener: 192.168.178.6&lt;br /&gt;
* Backend 1: 192.168.178.7 (für haproxy1.it213.int)&lt;br /&gt;
* Backend 2: 192.168.178.8 (für haproxy2.it213.int)&lt;br /&gt;
&lt;br /&gt;
==Firewall==&lt;br /&gt;
* firewall-cmd --add-service=http --permanent&lt;br /&gt;
* firewall-cmd --add-service=https --permanent&lt;br /&gt;
* firewall-cmd --reload&lt;br /&gt;
&lt;br /&gt;
==HAProxy-Konfiguration==&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 timeout 30s&lt;br /&gt;
    user haproxy&lt;br /&gt;
    group haproxy&lt;br /&gt;
    daemon&lt;br /&gt;
&lt;br /&gt;
defaults&lt;br /&gt;
    log     global&lt;br /&gt;
    mode    http&lt;br /&gt;
    option  httplog&lt;br /&gt;
    option  dontlognull&lt;br /&gt;
    timeout connect 5s&lt;br /&gt;
    timeout client  50s&lt;br /&gt;
    timeout server  50s&lt;br /&gt;
&lt;br /&gt;
frontend fe_https&lt;br /&gt;
    bind 192.168.178.6:443 ssl crt /etc/haproxy/certs/haproxy.pem&lt;br /&gt;
    http-response set-header Strict-Transport-Security &amp;quot;max-age=31536000; includeSubDomains; preload&amp;quot;&lt;br /&gt;
&lt;br /&gt;
    acl host_haproxy1 hdr(host) -i haproxy1.it213.int&lt;br /&gt;
    acl host_haproxy2 hdr(host) -i haproxy2.it213.int&lt;br /&gt;
&lt;br /&gt;
    use_backend be_srv1 if host_haproxy1&lt;br /&gt;
    use_backend be_srv2 if host_haproxy2&lt;br /&gt;
&lt;br /&gt;
    default_backend be_srv1&lt;br /&gt;
&lt;br /&gt;
frontend fe_http&lt;br /&gt;
    bind 192.168.178.6:80&lt;br /&gt;
    redirect scheme https code 301 if !{ ssl_fc }&lt;br /&gt;
&lt;br /&gt;
backend be_srv1&lt;br /&gt;
    server srv1 192.168.178.7:443 ssl verify none&lt;br /&gt;
&lt;br /&gt;
backend be_srv2&lt;br /&gt;
    server srv2 192.168.178.8:443 ssl verify none&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Dienst neu starten==&lt;br /&gt;
* systemctl restart haproxy&lt;br /&gt;
* systemctl status haproxy&lt;br /&gt;
&lt;br /&gt;
==Test==&lt;br /&gt;
* curl -I http://haproxy1.it213.int/&lt;br /&gt;
* curl -I http://haproxy2.it213.int/&lt;br /&gt;
* curl -I https://haproxy1.it213.int/&lt;br /&gt;
* curl -I https://haproxy2.it213.int/&lt;/div&gt;</summary>
		<author><name>Thomas.will</name></author>
	</entry>
</feed>