User Tools

Site Tools


lightttpd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
lightttpd [2009/11/12 22:47]
k2patel
lightttpd [2010/04/07 22:33] (current)
k2patel
Line 50: Line 50:
 $HTTP["​host"​] =~ "​tube.xyz\.com"​ { $HTTP["​host"​] =~ "​tube.xyz\.com"​ {
             server.document-root = "/​srv/​www/​html/​tube.xyz.com/​video"​             server.document-root = "/​srv/​www/​html/​tube.xyz.com/​video"​
 +}
 +</​code>​
 +
 +Also you can add IP based Socket.
 +
 +<code lighttpd>​
 +$SERVER["​socket"​] == "​192.168.1.5:​81"​ {
 +server.document-root = "/​srv/​www/​html/​www.xyz.com/​videos/"​
 +server.errorlog = "/​var/​logs/​lighttpd-xyz.error.log"​
 +accesslog.filename = "/​var/​logs/​lighttpd-xyz.com.access.log"​
 } }
 </​code>​ </​code>​
lightttpd.txt ยท Last modified: 2010/04/07 22:33 by k2patel