Node.js和haproxy
我使用node.js和socket.io。
我有一个运行在IP地址:31.31.69.79:3000的应用程序
我有一个域名:zkus.eu – 我想redirect这个域名到这个IP:31.31.69.79:3000
如何设置haproxyconfiguration(haproxy.cfg)?
haproxy网站上有几个例子: http ://haproxy.1wt.eu/download/1.4/doc/configuration.txt
也就是说,一个相当小的configuration(取自该页面的示例)是:
global daemon maxconn 256 defaults mode http timeout connect 5000ms timeout client 50000ms timeout server 50000ms listen http-in bind *:80 server server1 127.0.0.1:3000 maxconn 32