Results 1 to 8 of 8

nginx problems

This is a discussion on nginx problems within the General Discussion forums, part of the vBulletin SEO Discussion category; I need some help with nginx rewrite rules. I've read through the various threads, and have tried various combinations of ...

  1. #1
    Junior Member Array
    Real Name
    Frank
    Join Date
    Apr 2009
    Posts
    5
    Liked
    0 times

    nginx problems

    I need some help with nginx rewrite rules. I've read through the various threads, and have tried various combinations of rewrite rules and can't seem to get any to work. Problems are missing css/jscript files and the wrong pages served up when clicking on links.

    Any help greatly appreciated.

    URL: Cable Forum Test Site - Powered by vBulletin
    Version: vBSEO 3.1.0

    nginx conf file:
    Code:
    user  apache apache;
    worker_processes  2;
    worker_rlimit_nofile 10240;
    
    events {
        worker_connections  1024;
    }
    
    http {
        include                mime.types;
        default_type            application/octet-stream;
    
        log_format            main    '$remote_addr - $remote_user [$time_local] $request '
                            '"$status" $body_bytes_sent "$http_referer" '
                            '"$http_user_agent" "$http_x_forwarded_for"';
    
        access_log    logs/access.log main;
        error_log     logs/error.log debug;
    
        sendfile            on;
        tcp_nopush            on;
    
        gzip                on;
        gzip_min_length        1100;
        gzip_buffers        16 8k;
        gzip_http_version        1.0;
        gzip_comp_level        1;
        gzip_proxied        any;
        gzip_types            text/plain text/css text/javascript text/xml
                        application/x-javascript application/xml application/xml+rss;
    
        include /usr/local/nginx/conf/vhosts/*.conf;
    }
    vhost conf file:

    Code:
    server {
        listen                      81;
        server_name                 cableforum.info www.cableforum.info;
        #access_log                 logs/cableforum.info.access.log main;
        error_log                   logs/cableforum.info.error.log debug;
    
        client_header_buffer_size   8k;
        client_body_buffer_size     256k;
        client_max_body_size        10M;
        keepalive_timeout           2 2;
    
    
        #error_page 404          = /error/404.html;
        error_page  502 503 504  = /error/50x_error.html;
    
        location    /error/50x_error.html {
            internal;
        }
    
        root                        /var/www/vhosts/cableforum.info/httpdocs;
        index                       index.php index.html index.htm;
    
        # Proxy to FCGI
        location ~ \.php$ {
            fastcgi_pass            127.0.0.1:9000;
            fastcgi_index           index.php;
            include                 fastcgi_params;
            fastcgi_intercept_errors    on;
            break;
        }
    
        # Expire Header for Images
        location ~* ^.+.(jpg|jpeg|gif|png|ico)$ {
             root                   /var/www/vhosts/cableforum.info/httpdocs;
             access_log             off;
             expires                30d;
             break;
        }
    
        # vBSeo - Start
        location /board/ {
             rewrite ^/board/((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ /board/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 last;
             if (!-e $request_filename) {
                    rewrite ^(/board/.*)$ /board/vbseo.php last;
             }
        }
    
        if ($request_filename ~ "\.php$" ) {
              rewrite ^(.*(admincp/|modcp/|vbseocp\.php).*) $1 last;
              rewrite ^/board/(.*)$ /board/vbseo.php last;
        }
    
        # vBSeo - End
    
    }

  2. #2
    Senior Member Array
    Real Name
    Michael Biddle
    Join Date
    Jan 2007
    Location
    Southern California
    Posts
    7,095
    Liked
    5 times
    Hello,

    You are not showing up as a licensed customer. Please PM me your transactionid and the email you purchased with.
    The Forum Hosting - Forum Hosting from the Forum Experts

  3. #3
    Junior Member Array
    Real Name
    Frank
    Join Date
    Apr 2009
    Posts
    5
    Liked
    0 times
    PM Sent

  4. #4
    Senior Member Array
    Real Name
    Michael Biddle
    Join Date
    Jan 2007
    Location
    Southern California
    Posts
    7,095
    Liked
    5 times
    You need to have the original purchaser add you to the priority user list to receive support.
    The Forum Hosting - Forum Hosting from the Forum Experts

  5. #5
    Member Array Paul M's Avatar
    Real Name
    Guess !
    Join Date
    Feb 2007
    Location
    Nottingham, UK
    Posts
    74
    Liked
    1 times
    I believe I have now added Frank.

  6. #6
    vBSEO Staff Array Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,818
    Liked
    192 times
    Frank, please try this: Urgent - Site broken
    Oleg Ignatiuk / Crawlability Inc.
    Security bulletin - Patch Level for all supported versions released

    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  7. #7
    Junior Member Array
    Real Name
    Frank
    Join Date
    Apr 2009
    Posts
    5
    Liked
    0 times
    Oleg, I tried that using both the site root and the forum root, and the behaviour was identical. I have left it in place as /var/www/vhosts/cableforum.info/httpdocs

  8. #8
    vBSEO Staff Array Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,818
    Liked
    192 times
    I'd recommend to try the latest vSBEO version (3.3.0 Gold).
    Oleg Ignatiuk / Crawlability Inc.
    Security bulletin - Patch Level for all supported versions released

    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


Similar Threads

  1. NGINX issues
    By 05wrxsti in forum Troubleshooting
    Replies: 14
    Last Post: 03-05-2009, 06:39 PM
  2. nginx
    By Smiggy in forum Pre-Sales Questions
    Replies: 1
    Last Post: 01-07-2009, 01:21 PM
  3. 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
  •