Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
[REQUEST] HTTP & TCP Proxy Host
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Data" data-source="post: 286422" data-attributes="member: 32876"><p>Here is a haproxy config example(Incase you want to use Haproxy for a HTTP proxy & TCP proxy not just TCP</p><p>[CODE]</p><p>global</p><p> log 127.0.0.1 local0</p><p> log 127.0.0.1 local1 notice</p><p> maxconn 4096</p><p> user haproxy</p><p> group haproxy</p><p> daemon</p><p>defaults</p><p> log global</p><p> mode http</p><p> option httplog</p><p> option dontlognull</p><p> retries 3</p><p> option redispatch</p><p> maxconn 2000</p><p> contimeout 5000</p><p> clitimeout 50000</p><p> srvtimeout 50000</p><p>frontend http-in</p><p> bind *:80</p><p> acl is_www_example_com hdr_end(host) -i example.com</p><p> acl is_www_domain_com hdr_end(host) -i domain.com</p><p> </p><p> use_backend www_example_com if is_www_example_com</p><p> use_backend www_domain_com if is_www_domain_com</p><p> default_backend www_example_com</p><p>backend www_example_com</p><p> balance roundrobin</p><p> cookie SERVERID insert nocache indirect</p><p> option httpchk HEAD /check.txt HTTP/1.0</p><p> option httpclose</p><p> option forwardfor</p><p> server Server1 10.1.1.1:80 cookie Server1</p><p> server Server2 10.1.1.2:80 cookie Server2</p><p>backend www_domain_com</p><p> balance roundrobin</p><p> cookie SERVERID insert nocache indirect</p><p> option httpchk HEAD /check.txt HTTP/1.0</p><p> option httpclose</p><p> option forwardfor</p><p> server Server1 192.168.5.1:80 cookie Server1</p><p> server Server2 192.168.5.2:80 cookie Server2</p><p>[/CODE]</p><p></p><p>127.0.0.1 -> your server IP</p></blockquote><p></p>
[QUOTE="Data, post: 286422, member: 32876"] Here is a haproxy config example(Incase you want to use Haproxy for a HTTP proxy & TCP proxy not just TCP [CODE] global log 127.0.0.1 local0 log 127.0.0.1 local1 notice maxconn 4096 user haproxy group haproxy daemon defaults log global mode http option httplog option dontlognull retries 3 option redispatch maxconn 2000 contimeout 5000 clitimeout 50000 srvtimeout 50000 frontend http-in bind *:80 acl is_www_example_com hdr_end(host) -i example.com acl is_www_domain_com hdr_end(host) -i domain.com use_backend www_example_com if is_www_example_com use_backend www_domain_com if is_www_domain_com default_backend www_example_com backend www_example_com balance roundrobin cookie SERVERID insert nocache indirect option httpchk HEAD /check.txt HTTP/1.0 option httpclose option forwardfor server Server1 10.1.1.1:80 cookie Server1 server Server2 10.1.1.2:80 cookie Server2 backend www_domain_com balance roundrobin cookie SERVERID insert nocache indirect option httpchk HEAD /check.txt HTTP/1.0 option httpclose option forwardfor server Server1 192.168.5.1:80 cookie Server1 server Server2 192.168.5.2:80 cookie Server2 [/CODE] 127.0.0.1 -> your server IP [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
[REQUEST] HTTP & TCP Proxy Host
Top