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/13 03:47]
k2patel
lightttpd [2010/04/08 02:33]
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: 2020/08/10 02:35 (external edit)