Need help setting up lighttpd as a subdomain controller
Added by beamar over 12 years ago
I have a tube script that at this point seems to be a major pita to use. All the script really tells me is:
lighttpd running media.domain.com pointed at /home/user/domain.com/media/ + mod_h264_streaming
The script writer is suggesting I use an old version:
http://h264.code-shop.com/trac/wiki/Mod-H264-Streaming-Lighttpd-Version2
I would prefer to use the one that works with freebsd ports so it updates with new releases.
My server is running freebsd 9.1
lighttpd-1.4.32_1
lighttpd-mod_h264_streaming-1.4.32_1
The server uses apache as it's main httpd.
What I would like to do is configure lightptd to point to media.mydomain.com. This folder is at /home/username/domains/mydomain.com/public_html/media/
I know people are going to say it will double as apache will have it open to www.mydomain.com/media But the sripc tis setup this way and I believe prevents it.
I want to point out not only am I new to lighttpd, but also freebsd.
I'd post my config file, but at this point I'd rather just make a new smaller one with only the stuff I am using.
Here are some of the main things I added:
server.modules = (
"mod_access",
"mod_h264_streaming",
"mod_flv_streaming", I think this is built into the newest version of lighttpd??? I know I don't have a port for it like H264
)
flv-streaming.extensions = ( ".flv" )
h264-streaming.extensions = ( ".mp4" )
$HTTP["host"] =~ "media.DOMAIN.com" {
server.document-root = "/home/USER/domains/DOMAIN.com/public_html/media/"
accesslog.filename = "/home/USER/domains/DOMAIN.com/logs/"
}
I commented out the listening socket which might not of been right. It won't work on port 80 because apache is using it and if I set it to 81, how will lightpd know when someone goes to media.domain.com?
- IPv4 listening socket
- $SERVER["socket"] == "0.0.0.0:80" { }
Again want to point out I am new to freebsd and lighttpd, so if you don't mind, if you could explain your answers a little, that would make things a little easier on me.
Any help would be great!
Thanks again,
Brian
lighttpd.conf (11 KB) lighttpd.conf |