This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
lightttpd [2009/11/13 03:47] k2patel |
lightttpd [2020/08/10 02:35] (current) |
||
---|---|---|---|
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> |