Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Using lighttpd(lightty) instead of apache with vShare

  1. #1

    Default 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

  2. #2
    Join Date
    Apr 2007
    Posts
    2,202

    Default 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.

  3. #3
    Join Date
    Apr 2007
    Posts
    2,202

    Default Re: Using lighttpd(lightty) instead of apache with vShare

    For the record

    # 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.

  4. #4

    Default 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

  5. #5
    Join Date
    Apr 2007
    Posts
    2,202

    Default 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

  6. #6

    Default 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

  7. #7
    Join Date
    Apr 2007
    Posts
    2,202

    Default 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.

  8. #8

    Default 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

  9. #9

    Default 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

  10. #10

    Default Re: Using lighttpd(lightty) instead of apache with vShare

    I have been wanting to do this setup also. Any confirmations on if this worked?

Page 1 of 2 12 LastLast

Similar Threads

  1. How to install lighttpd
    By RAMMSTEIN in forum General Discussions
    Replies: 10
    Last Post: 12-04-2009, 08:33 AM
  2. Is there a way to make apache and lighttpd work together
    By RAMMSTEIN in forum General Discussions
    Replies: 1
    Last Post: 05-14-2009, 09:22 AM
  3. lighttpd and hotlinking
    By pyrorain in forum Bug Reports
    Replies: 4
    Last Post: 04-14-2009, 11:30 PM
  4. Lighttpd problem
    By gergokee in forum General Discussions
    Replies: 8
    Last Post: 10-19-2008, 05:16 PM
  5. rewrite rules for Lighttpd
    By dealspiggy in forum Feature Requests
    Replies: 0
    Last Post: 10-13-2008, 03:37 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •