2
lighttpd 配置负载均衡
source link: https://houye.xyz/2017-02/lighttpdproxy/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
lighttpd 配置负载均衡
lighttpd 配置负载均衡
我的lighttpd的版本为 1.4.35
首先在/etc/lighttpd/modules.conf 中配置mod_proxy
server.modules = ( ...... "mod_proxy", ...... )
然后修改/etc/lighttpd/lighttpd.conf 1
$HTTP["host"] == "houye.xyz" { proxy.balance = "hash" proxy.server = ( "" => ( ( "host" => "10.0.0.10","port"=>8080), ( "host" => "10.0.0.11" ))) }
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK