{"id":1492,"date":"2010-05-25T10:20:47","date_gmt":"2010-05-25T09:20:47","guid":{"rendered":"http:\/\/blog.it4sport.de\/?p=1492"},"modified":"2010-05-25T10:20:47","modified_gmt":"2010-05-25T09:20:47","slug":"haproxy-notizen","status":"publish","type":"post","link":"https:\/\/gmbd.de\/wordpress\/index.php\/2010\/05\/25\/haproxy-notizen\/","title":{"rendered":"HAProxy Notizen"},"content":{"rendered":"<p>\t\t\t\tNachdem ich die Dinge immer er-google-n muss schreibe ich mir sie mal hier direkt auf:<\/p>\n<ul>\n<li><strong>Backened abh\u00e4ngig vom Hostnamen ausw\u00e4hlen:<\/strong>\n<pre lang=\"ini\">\n        acl aclHAPROXY hdr_dom(host) -i haproxy.it4sport.de\n        use_backend HAPROXY if aclHAPROXY\n<\/pre>\n<\/li>\n<li><strong>Backend abh\u00e4ngig vom Verzeichnis ausw\u00e4hlen:<\/strong>\n<pre lang=\"ini\">\n        acl aclDEV  url_beg \/devel\/\n        use_backend DEV if aclDEV\n<\/pre>\n<p>Im entsprechenden Backend muss man sich dann um den Pfad k\u00fcmmern und den Request anpassen:<\/p>\n<pre lang=\"ini\">\n        reqrep ^([^\\ ]*)\\ \/devel\/(.*)     \\1\\ \/\\2\n<\/pre>\n<\/li>\n<li><strong>Zus\u00e4tzlichen Header einbauen:<\/strong>\n<pre lang=\"ini\">\n        reqadd X-HAPROXY-BACKEND:\\ devel\n<\/pre>\n<p>Damit wei\u00df die Anwendung etwa \u00fcber welches Backend die Seite aufgerufen wurde.\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Nachdem ich die Dinge immer er-google-n muss schreibe ich mir sie mal hier direkt auf: Backened abh\u00e4ngig vom Hostnamen ausw\u00e4hlen: acl aclHAPROXY hdr_dom(host) -i haproxy.it4sport.de use_backend HAPROXY if aclHAPROXY Backend abh\u00e4ngig vom Verzeichnis ausw\u00e4hlen: acl aclDEV url_beg \/devel\/ use_backend DEV if aclDEV Im entsprechenden Backend muss man sich dann um den Pfad k\u00fcmmern und den\u2026 <span class=\"read-more\"><a href=\"https:\/\/gmbd.de\/wordpress\/index.php\/2010\/05\/25\/haproxy-notizen\/\">Weiterlesen &raquo;<\/a><\/span><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[64],"tags":[165],"_links":{"self":[{"href":"https:\/\/gmbd.de\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/1492"}],"collection":[{"href":"https:\/\/gmbd.de\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gmbd.de\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gmbd.de\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/gmbd.de\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=1492"}],"version-history":[{"count":0,"href":"https:\/\/gmbd.de\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/1492\/revisions"}],"wp:attachment":[{"href":"https:\/\/gmbd.de\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=1492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gmbd.de\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=1492"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gmbd.de\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=1492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}