Results 1 to 10 of 10

Thread: vshare in a lighttpd server

  1. #1

    Default vshare in a lighttpd server

    I swtiched from apache to lighttpd, and ha to manuall rewrite the moderewrites from the htaccess file to the lighttpd.conf file

    i got almost everything switched but i still have a problem, whenever i am singed in as a regular user, and i click on

    # My Videos
    # My Favorites
    # My Playlist
    # My Groups
    i get a user not found error

    here is my conf file, so if anyoen can help please

    Code:
    $HTTP["host"] =~ "(mysite.info|www.mysite.info)" {
    #debug.log-request-header = "enable"
    #debug.log-response-header = "enable"
    #debug.log-request-handling = "enable"
    
        url.rewrite-once = (
            "/view/(.*)/(.*)/" => "/view_video.php?id=$1",
         "/login/" => "/login.php",
        "/tags/" => "/tags.php",
        "/tag/(.*)/(.*)" => "/tag.php?search_string=$1&page=$2",
        "/cache/" => "/index.php",
        "/channels/" => "/channels.php",
        "/upload/success/(.*)/(.*)/" => "/upload_success.php?id=$1&upload_id=$2",
        "/upload/" => "/upload.php",
        "/group/(.*)/join/(.*)/" => "/group_invite_confirm.php?group_url=$1&key=$2",
        "/group/(.*)/invite/" => "/invite_members.php?group_url=$1",
        "/group/(.*)/edit/" => "/group_edit.php?group_url=$1",
        "/group/(.*)/" => "/group_home.php?group_url=$1",
        "/logout/" => "/logout.php",
        "/signup/" => "/signup.php",
        "/pages/(.*).html$" => "/show_page.php?name=$1",
        "/v/(.*)/" => "/video_embed.php?video_id=$1",
        "/search/(.*)/(.*)" => "/search_videos.php?search_string=$1&page=$2",
        "/style/(.*)/" => "/style.php?css=$1",
        "/([^/\.]+)?/?$" => "/user.php?user_name=$1",
        "/([^/\.]+)/favorites/(.*)" => "/([^/\.]+)/favorites/(.*)",
        "/([^/\.]+)/playlist/(.*)" => "/user_playlist.php?user_name=$1&page=$2",
        "/([^/\.]+)/friends/videos/(.*)" => "/user_friends_videos.php?user_name=$1&page=$2",    
        "/([^/\.]+)/friends/favorites/(.*)" => "/user.php?user_name=$1",
        "/([^/\.]+)/friends/(.*)" => "/user_friends_favourites.php?user_name=$1&page=$2",
        "/([^/\.]+)/public/(.*)$" => "/user_videos.php?user_name=$1&type=public&page=$2",
        "/([^/\.]+)/private/(.*)$" => "/user_videos.php?user_name=$1&type=private&page=$2",
        "/([^/\.]+)/groups/(.*)$" => "/user_groups.php?user_name=$1&page=$2",
        "/([^/\.]+)/edit/(.*)$" => "/user_profile_edit.php?user_name=$1",
        "/channel/(.*)/(.*)/recent/(.*)" => "/video.php?category=recent&chid=$1&page=$3",
        "/channel/(.*)/(.*)/viewed/(.*)" => "/video.php?category=viewed&chid=$1&page=$3",
        "/channel/(.*)/(.*)/" => "/channel_details.php?id=$1",
        "/download/(.*)/" => "/download.php?video_id=$1",
        "/friends/recommend/(.*)/" => "/recommend_friends.php?video_id=$1",
        "/friends/invite/" => "/invite_friends.php?user_name=$1&page=$2",
        "/friends/(.*)" => "/friends.php?page=$1",
        "/detailed/recent/(.*)" => "/video.php?category=recent&page=$1&view_type=detailed",
        "/detailed/viewed/(.*)" => "/video.php?category=viewed&page=$1&view_type=detailed",
        "/detailed/discussed/(.*)" => "/video.php?category=discussed&page=$1&view_type=detailed",
        "/detailed/favorites/(.*)" => "/video.php?category=favorites&page=$1&view_type=detailed",
        "/detailed/rated/(.*)" => "/video.php?category=rated&page=$1&view_type=detailed",
        "/detailed/featured/(.*)" => "/video.php?category=featured&page=$1&view_type=detailed",
        "/detailed/random/(.*)" => "/video.php?category=random&page=$1&view_type=detailed",
        "/recent/(.*)" => "/video.php?category=recent&page=$1",
        "/viewed/(.*)" => "/video.php?category=viewed&page=$1",
        "/edit/video/(.*)" => "/video_edit.php?video_id=$1",
        "/discussed/(.*)" => "/video.php?category=discussed&page=$1",
        "/favorites/(.*)" => "/video.php?category=favorites&page=$1",
        "/rated/(.*)" => "/video.php?category=rated&page=$1",
        "/featured/(.*)" => "/video.php?category=featured&page=$1",
        "/random/(.*)" => "/video.php?category=random&page=$1",
        "/rss/new/" => "/rss.php?type=new",
        "/rss/comments/" => "/rss.php?type=comments",
        "/rss/views/" => "/rss.php?type=views",
        "/group/new/" => "/group_new.php",
        "/group/(.*)/members/(.*)" => "/group_members.php?group_url=$1&page=$2",
        "/group/(.*)/videos/(.*)" => "/group_videos.php?group_url=$1&page=$2",
        "/group/(.*)/add/(.*)" => "/group_add_videos.php?group_url=$1&page=$2",
        "/group/(.*)/fav/(.*)" => "/group_add_fav_videos.php?group_url=$1&page=$2",
        "/group/(.*)/topic/(.*)" => "/group_posts.php?group_url=$1&topic_id=$2",
        "/groups/(.*)/(.*)/(.*)" => "/groups.php?chid=$1&page=$3",
        "/groups/(.*)/(.*)" => "/groups.php?category=$1&page=$2",
        "/include/(.*)" => "/http://www.vshare.in",
        "/verify/user/(.*)/(.*)/(.*)/" => "/user_signup_verify.php?u=$1&i=$2&k=$3",
        "/verify/email/(.*)/(.*)/(.*)/" => "/confirm_email.php?u=$1&i=$2&k=$3",
        "/confirm/friend/(.*)/(.*)" => "/friend_accept.php?id=$1&key=$2",
        "/search/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)" => "/advanced_search.php?words=$1&channels=$2&user=$3&relevence=$4&sort=$5&page=$6",

  2. #2
    Join Date
    Sep 2007
    Posts
    906

    Default

    Move

    Code:
     "/([^/\.]+)?/?$" => "/user.php?user_name=$1",
        "/([^/\.]+)/favorites/(.*)" => "/([^/\.]+)/favorites/(.*)",
        "/([^/\.]+)/playlist/(.*)" => "/user_playlist.php?user_name=$1&page=$2",
        "/([^/\.]+)/friends/videos/(.*)" => "/user_friends_videos.php?user_name=$1&page=$2",    
        "/([^/\.]+)/friends/favorites/(.*)" => "/user.php?user_name=$1",
        "/([^/\.]+)/friends/(.*)" => "/user_friends_favourites.php?user_name=$1&page=$2",
        "/([^/\.]+)/public/(.*)$" => "/user_videos.php?user_name=$1&type=public&page=$2",
        "/([^/\.]+)/private/(.*)$" => "/user_videos.php?user_name=$1&type=private&page=$2",
        "/([^/\.]+)/groups/(.*)$" => "/user_groups.php?user_name=$1&page=$2",
        "/([^/\.]+)/edit/(.*)$" => "/user_profile_edit.php?user_name=$1",
    section to end of the rule.
    vShare Hosting, vShare Installation, Server Setup, Lighttpd streaming, vShare Templates
    [email protected]

  3. #3

    Default

    thanks it´s fixed now; apparently i dont beleive in doing things in order!

  4. #4
    Join Date
    Sep 2007
    Posts
    906

    Default

    How you handle upload progress in lighttpd ?
    vShare Hosting, vShare Installation, Server Setup, Lighttpd streaming, vShare Templates
    [email protected]

  5. #5

    Default

    I havent i dont really think its a necesary part of the script. and i am not done settiing it up, havea few more tests to do

  6. #6

    Default

    so is till have a problem with this, everytime i go to the main site, i get qa "user not found" message, when I am not logged in

  7. #7
    Join Date
    Sep 2007
    Posts
    906

    Default

    What is your current rule ?
    vShare Hosting, vShare Installation, Server Setup, Lighttpd streaming, vShare Templates
    [email protected]

  8. #8

    Default

    this is my current ligghtp conf
    Code:
     url.rewrite-once = (
        "/view/(.*)/(.*)/" => "/view_video.php?id=$1",
        "/tags/" => "/tags.php",
        "/tag/(.*)/(.*)" => "/tag.php?search_string=$1&page=$2",
        "/cache/" => "/index.php",
        "/channels/" => "/channels.php",
        "/upload/success/(.*)/(.*)/" => "/upload_success.php?id=$1&upload_id=$2",
        "/upload/" => "/upload.php",
        "/channel/(.*)/(.*)/recent/(.*)" => "/video.php?category=recent&chid=$1&page=$3",
        "/channel/(.*)/(.*)/viewed/(.*)" => "/video.php?category=viewed&chid=$1&page=$3",
        "/channel/(.*)/(.*)/" => "/channel_details.php?id=$1",
        "/download/(.*)/" => "/download.php?video_id=$1",
        "/friends/recommend/(.*)/" => "/recommend_friends.php?video_id=$1",
        "/friends/invite/" => "/invite_friends.php?user_name=$1&page=$2",
        "/friends/(.*)" => "/friends.php?page=$1",
        "/detailed/recent/(.*)" => "/video.php?category=recent&page=$1&view_type=detailed",
        "/detailed/viewed/(.*)" => "/video.php?category=viewed&page=$1&view_type=detailed",
        "/detailed/discussed/(.*)" => "/video.php?category=discussed&page=$1&view_type=detailed",
        "/detailed/favorites/(.*)" => "/video.php?category=favorites&page=$1&view_type=detailed",
        "/detailed/rated/(.*)" => "/video.php?category=rated&page=$1&view_type=detailed",
        "/detailed/featured/(.*)" => "/video.php?category=featured&page=$1&view_type=detailed",
        "/detailed/random/(.*)" => "/video.php?category=random&page=$1&view_type=detailed",   
        "/recent/(.*)" => "/video.php?category=recent&page=$1",
        "/viewed/(.*)" => "/video.php?category=viewed&page=$1",
        "/edit/video/(.*)" => "/video_edit.php?video_id=$1",
        "/discussed/(.*)" => "/video.php?category=discussed&page=$1",
        "/favorites/(.*)" => "/video.php?category=favorites&page=$1",
        "/rated/(.*)" => "/video.php?category=rated&page=$1",
        "/featured/(.*)" => "/video.php?category=featured&page=$1",
        "/random/(.*)" => "/video.php?category=random&page=$1",
        "/rss/new/" => "/rss.php?type=new",
        "/rss/comments/" => "/rss.php?type=comments",
        "/rss/views/" => "/rss.php?type=views",
        "/group/new/" => "/group_new.php",    
        "/group/(.*)/join/(.*)/" => "/group_invite_confirm.php?group_url=$1&key=$2",
        "/group/(.*)/members/(.*)" => "/group_members.php?group_url=$1&page=$2",
        "/group/(.*)/videos/(.*)" => "/group_videos.php?group_url=$1&page=$2",
        "/group/(.*)/add/(.*)" => "/group_add_videos.php?group_url=$1&page=$2",
        "/group/(.*)/fav/(.*)" => "/group_add_fav_videos.php?group_url=$1&page=$2",
        "/group/(.*)/topic/(.*)" => "/group_posts.php?group_url=$1&topic_id=$2",
        "/group/(.*)/invite/" => "/invite_members.php?group_url=$1",
        "/group/(.*)/edit/" => "/group_edit.php?group_url=$1",
        "/group/(.*)/" => "/group_home.php?group_url=$1",
        "/groups/(.*)/(.*)/(.*)" => "/groups.php?chid=$1&page=$3",
        "/groups/(.*)/(.*)" => "/groups.php?category=$1&page=$2",
        "/include/(.*)" => "/http://www.vshare.in",
       "/login/" => "/login.php",
        "/logout/" => "/logout.php",
        "/signup/" => "/signup.php",
        "/pages/(.*).html$" => "/show_page.php?name=$1",
        "/v/(.*)/" => "/video_embed.php?video_id=$1",
        "/verify/user/(.*)/(.*)/(.*)/" => "/user_signup_verify.php?u=$1&i=$2&k=$3",
        "/verify/email/(.*)/(.*)/(.*)/" => "/confirm_email.php?u=$1&i=$2&k=$3",
        "/confirm/friend/(.*)/(.*)" => "/friend_accept.php?id=$1&key=$2",
        "/search/(.*)/(.*)" => "/search_videos.php?search_string=$1&page=$2", 
        "/search/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)" =>  "/advanced_search.php?words=$1&channels=$2&user=$3&relevence=$4&sort=$5&page=$6",     
        "/style/(.*)/" => "/style.php?css=$1",
        "/([^/\.]+)/favorites/(.*)" => "/([^/\.]+)/favorites/(.*)",
        "/([^/\.]+)/playlist/(.*)" => "/user_playlist.php?user_name=$1&page=$2",
        "/([^/\.]+)/friends/videos/(.*)" => "/user_friends_videos.php?user_name=$1&page=$2",    
        "/([^/\.]+)/friends/favorites/(.*)" => "/user.php?user_name=$1",
        "/([^/\.]+)/friends/(.*)" => "/user_friends_favourites.php?user_name=$1&page=$2",
        "/([^/\.]+)/public/(.*)$" => "/user_videos.php?user_name=$1&type=public&page=$2",
        "/([^/\.]+)/private/(.*)$" => "/user_videos.php?user_name=$1&type=private&page=$2",
        "/([^/\.]+)/groups/(.*)$" => "/user_groups.php?user_name=$1&page=$2",
        "/([^/\.]+)/edit/(.*)$" => "/user_profile_edit.php?user_name=$1",
       "/([^/\.]+)?/?$" => "/user.php?user_name=$1",

  9. #9
    Join Date
    Sep 2007
    Posts
    906

    Default

    You need to add rule for

    RewriteRule ^$ index.php
    in your lighttpd rewrite. I don't know the exact code, you can ask in lighttpd forum

    Lighttpd - Support - lighty labs
    vShare Hosting, vShare Installation, Server Setup, Lighttpd streaming, vShare Templates
    [email protected]

  10. #10

    Default

    thank you for your help

Tags for this Thread

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
  •