I use haproxy to dispatcher different www services to different backend
servers.
The haproxy configuration is attached and *backend's lighttpd server use keep-alive http connections.*
12:09 [root#a07.vimg.file.yoqoo]$ cat t
HEAD /index.html HTTP/1.1
HOST: www.xxx.com
HEAD /index.html HTTP/1.1
HOST: www.yyy.com
tty:[0] jobs:[0] cwd:[~]
12:09 [root#a07.vimg.file.yoqoo]$ cat t | nc -i 1 localhost 80
HTTP/1.1 404 Not Found
Content-Type: text/html
Content-Length: 345
Date: Sat, 03 May 2008 04:09:39 GMT
*Server: I151*
HTTP/1.1 404 Not Found
Content-Type: text/html
Content-Length: 345
Date: Sat, 03 May 2008 04:09:43 GMT
*Server: I151*
12:10 [root#a07.vimg.file.yoqoo]$ cat t2
HEAD /index.html HTTP/1.1
HOST: www.yyy.com
HEAD /index.html HTTP/1.1
HOST: www.xxx.com
12:10 [root#a07.vimg.file.yoqoo]$ cat t2 | nc -i 1 localhost 80
HTTP/1.1 404 Not Found
Content-Type: text/html
Content-Length: 345
Date: Sat, 03 May 2008 04:11:01 GMT
*Server: I161*
HTTP/1.1 404 Not Found
Content-Type: text/html
Content-Length: 345
Date: Sat, 03 May 2008 04:11:07 GMT
*Server: I161*
*If we enabled "option httpclose" for backend and frontend, haproxy works
without problem.*
Regards,
Que Hongyu
This archive was generated by hypermail 2.2.0 : 2008/05/03 06:30 CEST