Using lighttpd(lightty) instead of apache with vShare
Hi,
I am trying to use lighttpd to serve my php 5 files and flv files. In other words, the whole vShare website I want to test entirely as a lighttpd based site, no apache. However, I'm told lighttpd ignores the htaccess file and a lot of the vShare scripting apparently depends on the htaccess file. Any suggestions as to how I might get around this? Maybe hardcoding some things into the scripts and so forth. Any suggestions would be appreciated.
Thanks,
Brian
Re: Using lighttpd(lightty) instead of apache with vShare
Better use Apache for main site, for serving .flv files use lighttpd, just like youtube do. They use lighttpd for serving .flv files, for main site, they use Apache.
Re: Using lighttpd(lightty) instead of apache with vShare
For the record
Quote:
# lynx --head --dump
http://www.youtube.com
HTTP/1.1 200 OK
Date: Wed, 30 Jan 2008 20:11:25 GMT
Server: Apache
Set-Cookie: use_hitbox=72c46ff6cbcdb7c5585c36411b6b334edAEAAAA w; path=/; domain
=.youtube.com
Set-Cookie: VISITOR_INFO1_LIVE=3Z8yoJcNLoo; path=/; domain=.youtube.com; expire
s=Sat, 27-Jan-2018 20:11:25 GMT
Set-Cookie: GEO=a1cc3828aeb74c44fb4acc42fc0627bdcxQAAABVUyx0eC xkYWxsYXMsLCwsLDY
yMw==; path=/; domain=.youtube.com; expires=Fri, 01-Feb-2008 20:11:25 GMT
Set-Cookie: LOCALE_PREFERENCE=86d1d09eefe6b79b4068000ce05518a4 dAUAAABlbl9VUw==;
path=/; domain=.youtube.com; expires=Sat, 27-Jan-2018 20:11:25 GMT
Cache-Control: no-cache
Content-Length: 69609
Keep-Alive: timeout=300
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8
#
They may change to Google Web Server at any time, for now, its Apache.
Re: Using lighttpd(lightty) instead of apache with vShare
Hi,
Thanks for the reply. So is it as simple as editing player.inc. For example if lightty is on port 81 then I add in :81 to the line below
so.addVariable("file","{$config["baseurl"]}:81/flvideo/$video_flvdoname");
Is this the only file I need to edit?
Thanks,
Brian
Re: Using lighttpd(lightty) instead of apache with vShare
I think that will work, better install light on a different IP address, then use multi server feature of vshare 2.6.
http://docs.buyscripts.in/Multi_Server_Support
Re: Using lighttpd(lightty) instead of apache with vShare
Hi,
Do you say use remote server simply to keep the heavy video usage down on the main server or because you don't feel using port 81 for lightty will work? Right now I have port 81 using lightty. Whereas this is just a test to see if i can get things working with lightty I can change to a remote storage server later after my testing is done.
Thanks,
Brian
Re: Using lighttpd(lightty) instead of apache with vShare
For large sites, its always better have a different url for videos, that way you can move them to different server if needed. If you use port 81, you will need to host everything on same server.
Re: Using lighttpd(lightty) instead of apache with vShare
Hi,
I noticed in player.inc for version 2.6 the the line for the file is as follows:
so.addVariable("file","{$file}");
Can I comment this out and go back to the line below?
so.addVariable("file","{$config["baseurl"]}/flvideo/$video_flvdoname");
Thanks,
Brian
Re: Using lighttpd(lightty) instead of apache with vShare
Hi,
I added the following line toplayer.inc to get the flv file to load from port 81 and it appears to work.
$file=str_replace($config["baseurl"],$config["baseurl"].':81',$file);
Thanks,
Brian
Re: Using lighttpd(lightty) instead of apache with vShare
I have been wanting to do this setup also. Any confirmations on if this worked?
Re: Using lighttpd(lightty) instead of apache with vShare
Well the code change works but I have not stress tested. I am trying to do the recommended option of a remote server running lighttpd.
Brian
Re: Using lighttpd(lightty) instead of apache with vShare
The way I understand it is it basically needs the same setup like how he it is embedding youtube videos into vshare now, as they look just like they are played on the vshare site. So I could put the videos on a remote server running lighttpd with a different ip and just embed those videos into my current apache driven vshare site. Does that seem right or make sense?
Re: Using lighttpd(lightty) instead of apache with vShare
Quote:
Originally Posted by Misinformed
The way I understand it is it basically needs the same setup like how he it is embedding youtube videos into vshare now, as they look just like they are played on the vshare site. So I could put the videos on a remote server running lighttpd with a different ip and just embed those videos into my current apache driven vshare site. Does that seem right or make sense?
After reading through the doc that was supplied on multi server support, I now see it is already setup this way. I am running lighttpd on my storage server and this will take a huge load off of my main webserver. Thanks.