User Tools

Site Tools


bind

Differences

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

Link to this comparison view

Next revision
Previous revision
bind [2010/01/01 17:20]
jt created
bind [2017/07/02 02:17]
k2patel old revision restored (2010/01/01 17:22)
Line 1: Line 1:
-====== ​lighttpd ​======+====== ​bind ======
  
-In order to make it work simply change following options.+bind is used for DNS. This instruction on how to install ​it on CentOS chrooted.
  
-Enable all needed modules, in this case i am configuring it for streaming. +<​code ​bash
- +yum install bind bind-chroot bind-libs bind-utils caching-nameserver
-<​code ​lighttpd+
-"​mod_flv_streaming",​ +
-"​mod_h264_streaming",​ +
-</​code>​ +
- +
-Specify file extension +
- +
-<code lighttpd>​ +
-flv-streaming.extensions = ( "​.flv"​ ) +
-h264-streaming.extensions = ( "​.mp4"​ ) +
-</​code>​ +
- +
-Now enable document root from where you want to serve content. +
- +
-<code lighttpd>​ +
-server.document-root        = "/​srv/​www/​html/​tube.xyz.com/​video/"​ +
-</​code>​ +
- +
-Setup Log / PID file +
- +
-<code lighttpd>​ +
-server.errorlog ​            = "/​var/​log/​lighttpd.error.log"​ +
-accesslog.filename ​         = "/​var/​log/​lighttpd.access.log"​ +
-server.pid-file            = "/​var/​run/​lighttpd.pid"​ +
-</​code>​ +
- +
-Setup server port/IP +
- +
-<code lighttpd>​ +
-server.port ​               = 81 +
-server.bind ​               = "​127.0.0.1"​ +
-</​code>​ +
- +
-Setup server user +
- +
-<code lighttpd>​ +
-server.username ​           = "​ketan"​ +
-server.groupname ​          = "​ketan"​ +
-</​code>​ +
- +
-Finally setup virtual host. +
- +
-<code lighttpd>​ +
-$HTTP["​host"​] =~ "​tube.xyz\.com"​ { +
-            server.document-root = "/​srv/​www/​html/​tube.xyz.com/​video"​ +
-}+
 </​code>​ </​code>​
bind.txt · Last modified: 2020/08/10 02:35 (external edit)