lightttpd
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| lightttpd [2009/11/13 03:37] – created k2patel | lightttpd [2020/08/10 02:35] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| In order to make it work simply change following options. | In order to make it work simply change following options. | ||
| + | Enable all needed modules, in this case i am configuring it for streaming. | ||
| + | <code lighttpd> | ||
| + | " | ||
| + | " | ||
| + | </ | ||
| + | |||
| + | Specify file extension | ||
| + | |||
| + | <code lighttpd> | ||
| + | flv-streaming.extensions = ( " | ||
| + | h264-streaming.extensions = ( " | ||
| + | </ | ||
| + | |||
| + | Now enable document root from where you want to serve content. | ||
| + | |||
| + | <code lighttpd> | ||
| + | server.document-root | ||
| + | </ | ||
| + | |||
| + | Setup Log / PID file | ||
| + | |||
| + | <code lighttpd> | ||
| + | server.errorlog | ||
| + | accesslog.filename | ||
| + | server.pid-file | ||
| + | </ | ||
| + | |||
| + | Setup server port/IP | ||
| + | |||
| + | <code lighttpd> | ||
| + | server.port | ||
| + | server.bind | ||
| + | </ | ||
| + | |||
| + | Setup server user | ||
| + | |||
| + | <code lighttpd> | ||
| + | server.username | ||
| + | server.groupname | ||
| + | </ | ||
| + | |||
| + | Finally setup virtual host. | ||
| + | |||
| + | <code lighttpd> | ||
| + | $HTTP[" | ||
| + | server.document-root = "/ | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | Also you can add IP based Socket. | ||
| + | |||
| + | <code lighttpd> | ||
| + | $SERVER[" | ||
| + | server.document-root = "/ | ||
| + | server.errorlog = "/ | ||
| + | accesslog.filename = "/ | ||
| + | } | ||
| + | </ | ||
lightttpd.1258083442.txt.gz · Last modified: 2020/08/10 02:30 (external edit)
