Results 1 to 10 of 10

VBSEO on Nginx !

This is a discussion on VBSEO on Nginx ! within the Troubleshooting forums, part of the vBSEO SEO Plugin category; I ve installed Nginx on my server currently running only my VBB site with VBseo , all my apache rewrite ...

  1. #1
    Junior Member
    Real Name
    Nguyen Ngoc Ha
    Join Date
    Oct 2006
    Posts
    19
    Liked
    0 times

    VBSEO on Nginx !

    I ve installed Nginx on my server currently running only my VBB site with VBseo , all my apache rewrite is now not working . I dont know how to setup it with Nginx pls ? I could see ur nginx.txt in Htaccess Folder btw my forum is at domain root so this Nginx config lines is right ? And where i can put this code to , im realy dont know much about Nginx but it s great with page load and all for my site


    Code:
    location / {
    
    rewrite ^/((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ /vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 last;
    
    if (!-e $request_filename) {
    rewrite ^/(.*)$ /vbseo.php last;
    }
    
    }
    
    if ($request_filename ~ "\.php$" ) {
    rewrite ^/(.*)$ /forums/vbseo.php last;
    }
    
    
    # vbseo
            location /
            {
                    index                           index.php index.html;
                    rewrite ^/((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ /vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 last;
    
                    if (!-e $request_filename)
                    {
                            rewrite ^/(.*)$ /vbseo.php last;
                    }
            }
            if ($request_filename ~ "\.php$" )
            {
                    rewrite ^/([^/]*)$ /vbseo.php last;
            }

  2. #2
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,111
    Liked
    622 times
    Blog Entries
    4
    This is what you should use

    Code:
            location /
            {
                    index                           index.php index.html;
                    rewrite ^/((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ /vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 last;
    
                    if (!-e $request_filename)
                    {
                            rewrite ^/(.*)$ /vbseo.php last;
                    }
            }
            if ($request_filename ~ "\.php$" )
            {
                  rewrite ^/([^/]*)$ /vbseo.php last;
            }
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  3. #3
    Junior Member
    Real Name
    Nguyen Ngoc Ha
    Join Date
    Oct 2006
    Posts
    19
    Liked
    0 times
    But where do i put this code to ? I rly dont know how to ? in the nginx.conf or what file i need ?

  4. #4
    Junior Member
    Real Name
    Nguyen Ngoc Ha
    Join Date
    Oct 2006
    Posts
    19
    Liked
    0 times
    Im using nginx as proxy and all link like this is dead :

    http://www.giaitrituoitre.net/f2/tuy...tml#post575655

  5. #5
    Junior Member
    Real Name
    Nguyen Ngoc Ha
    Join Date
    Oct 2006
    Posts
    19
    Liked
    0 times
    This share mbbg work but if we try to go to page 2 , 3 ......... or last page we will receive a
    404 Not Found


    Pls help me solve this pls

  6. #6
    Junior Member
    Real Name
    Nguyen Ngoc Ha
    Join Date
    Oct 2006
    Posts
    19
    Liked
    0 times
    I cant reply in a thread 2+ page i mean the URL rewrite make the page NOT found so annoying , i ve disabled the VBSEO pls help

  7. #7
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,111
    Liked
    622 times
    Blog Entries
    4
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  8. #8
    Junior Member
    Real Name
    Nguyen Ngoc Ha
    Join Date
    Oct 2006
    Posts
    19
    Liked
    0 times
    Im using Nginx as Apache proxy so still using ur htaccess . The rewrite for 1 page thread is good but any thread with 2+ page give us 404 NOT FOUND error while we try to access 2+ page , Or reply on the page with 2+ page give that 404 error too so ? I dont know what is the problem and how to fix it ?

  9. #9
    Junior Member
    Real Name
    Napkin Sketch
    Join Date
    Sep 2006
    Location
    Denver, CO
    Posts
    10
    Liked
    0 times
    Quote Originally Posted by angelvn View Post
    Im using Nginx as Apache proxy so still using ur htaccess . The rewrite for 1 page thread is good but any thread with 2+ page give us 404 NOT FOUND error while we try to access 2+ page , Or reply on the page with 2+ page give that 404 error too so ? I dont know what is the problem and how to fix it ?
    I am having this problem as well. Has anyone found a solution? Im not sure if I have my nginx conf file configured correctly since its untouched for this issue.

  10. #10
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,111
    Liked
    622 times
    Blog Entries
    4
    That has nothing to do with nginx as when Nginx is working as proxy , it doesn't parse any php files at all.
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

Similar Threads

  1. vBSEO won't redirect to pretty URLs under nginx
    By Viper007Bond in forum Troubleshooting
    Replies: 1
    Last Post: 06-23-2009, 07:08 AM
  2. nginx + vBSEO rewrite problem
    By BeoR in forum Troubleshooting
    Replies: 31
    Last Post: 01-15-2009, 03:56 PM
  3. nginx
    By Smiggy in forum Pre-Sales Questions
    Replies: 1
    Last Post: 01-07-2009, 01:21 PM
  4. nginx+vbseo, the forum can't merge threads?
    By wangyu1314 in forum General Discussion
    Replies: 1
    Last Post: 08-07-2008, 10:00 AM
  5. nginx
    By fras in forum General Discussion
    Replies: 3
    Last Post: 01-25-2008, 06:57 PM

Posting Permissions

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