Allows you to search a variety of questions and answers
This is a fairly short how-to as I will assume that you know how to install lighttpd and get it running with a single mod_secdownload entry.
In order to run multiple entries, you will need to
1. Create a new, separate secdownload.conf file for the new site (can name it secdownload1.conf) and put it in the conf.d folder with the proper permissions. The contents of the new secdownload file should be as follows (if your site is sub.mysite.com):
Code:
$HTTP["host"] =~ "sub\.mysite\.com:81$"{ server.document-root = "/home/mysite/public_html" secdownload.timeout = 3600 secdownload.secret = "secret" secdownload.uri-prefix = "/videos/" secdownload.document-root = "/home/mysite/public_html/videos" }
Of course replace the secret, doc root and prefix with your details.
2. In the modules.conf file add the path to the new secdownload1.conf file we just created like so:
Code:
## ## mod_secdownload ## include "conf.d/secdownload.conf" include "conf.d/secdownload1.conf"
3. In the lighttpd.conf file, ensure to have the following:
Code:
## Load the modules. include "modules.conf"
You can replicate this as many times as you need for streaming.
Alternatively, you can simply add the following to your lighttpd.conf where you have the first HOST setup:
$HTTP["host"] =~ "newdomain\.com" {
server.document-root = "/home/newdomainusername/public_html/"
}
Then save and restart.
Change the newdomain to your actual domain and the document-root to where ever the files are.
Dedicated Semi-Managed Server Review I've been using AYKSolutions for about 2 years now and their support and servers have been great. They assisted me with the transition of all my websites and databases from my old server onto their system with no problem. If I ever need them for support or a change they respond fast and always keep me up to date with the status of my support ticket. I highly recommend using this company especially if you're looking for someone to assist with server management. Best of all their cost is great!
The most caring provider AYKSolutions is a reliable hosting and decicated server probider with good uptimes etc etc, which nowadays is a must for any copany in the hosting industry, But what makes them stand out from cowd - is there sincere care for their customers. AYK stuff is always asking you about problems you have and doing their best to solve the problems and help yo ur business to grow. Best support ever!
AYKsolutions - best solution for small/high business I have several plans with them and i can sleep well because their team watch over my servers. I started with a small shared account and now, after two years i have multiple dedicated boxes. I like the way they treat their customers, even if they have a small or a big plan. Their tehnical support is the best i ever meet ( worked with many hosting pro viders ). In one word: If you need cheap and no headache for your internet bussiness, AYKsolutions it's your best choice