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 revisionPrevious revision
Next revision
Previous revision
lightttpd [2009/11/13 03:47] k2patellightttpd [2020/08/10 02:35] (current) – external edit 127.0.0.1
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.1258084044.txt.gz · Last modified: 2020/08/10 02:30 (external edit)