Results 1 to 5 of 5

nginx attachmets in vbseo

This is a discussion on nginx attachmets in vbseo within the Bug Reporting forums, part of the vBSEO SEO Plugin category; This is something already know, rewriting attachments URLs causes 404 on nginx, no idea why now i get a lot ...

  1. #1
    Junior Member
    Real Name
    luis
    Join Date
    Jun 2010
    Posts
    19
    Liked
    0 times

    nginx attachmets in vbseo

    This is something already know, rewriting attachments URLs causes 404 on nginx, no idea why

    now i get a lot of not found errors, can this be fixed please

  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,100
    Liked
    622 times
    Blog Entries
    4
    Hello ,

    It is working correct on my server. What is the exact nginx config file you are using
    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
    luis
    Join Date
    Jun 2010
    Posts
    19
    Liked
    0 times
    well, my config is a mess, but here it is:

    Code:
    server {
    	listen       190.122.192.5:80;
        server_name  grupoandroid.com;
            rewrite ^(.*) http://www.grupoandroid.com$1 permanent;
        }
        
        
        
    server {
    	listen       190.122.192.5:80 default;
    #    server_name  localhost;
            root   /var/www/nginx/default/htdocs/;
    
            gzip                            on;
            gzip_min_length                 1100;
            gzip_buffers                    8 16k;
            gzip_comp_level                 5;
            gzip_types                      text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;
            gzip_disable                    "MSIE [1-6]\.";
    
            output_buffers                  1 32k;
            postpone_output                 1460;
    
    location ~ ^/(images)/ {
    expires 2d;
    break;
    	}
    
    ## vbseo
    location ~ \.php$ {
            include /etc/nginx/fastcgi_params;
            fastcgi_index index.php;
            fastcgi_send_timeout 30;
            fastcgi_read_timeout 30;
            fastcgi_buffers 128 4k;
            fastcgi_buffer_size 4k;
            fastcgi_cache_use_stale timeout;
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        fastcgi_param  QUERY_STRING     $query_string;
        fastcgi_param  REQUEST_METHOD   $request_method;
        fastcgi_param  CONTENT_TYPE     $content_type;
        fastcgi_param  CONTENT_LENGTH   $content_length;
        fastcgi_intercept_errors on;
    
    
    
    	if (-f $request_filename) {
                fastcgi_pass unix:/tmp/php5-fpm.sock;
    #            fastcgi_pass unix:/tmp/php5-cgi.sock;
    	}
    	
        }
    
    location / {
    	index  index.php;
    	rewrite ^/((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ /vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 last;
    	if (!-e $request_filename) {
    	    rewrite ^/(.*)$ /vbseo.php last;
    #	    try_files $uri $uri/ /vbseo.php;
    	}
    
    }
    
    if ($request_filename ~ \.php$ ) {
        rewrite ^/(.*)$ /vbseo.php last;
    }
    #try_files $uri $uri/ /vbseo.php;
    
    ## /vbseo
    
    
    location ~* (css|js|png|jpe?g|gif|ico)$ {
                    expires 2h;
            }
    
    
    ## no permito q vean los htacces
    location ~ /\.ht {
        deny  all;
        }
    
    
    location /nginx_status {
    
      stub_status on;
    
    }
    
    
    }

  4. #4
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,100
    Liked
    622 times
    Blog Entries
    4
    Your config file looks OK . Can you please create a support ticket with a temporary login info and an url that has an attachment inside so we can check. Do you also have any entry within your error_log
    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

  5. #5
    Junior Member
    Real Name
    luis
    Join Date
    Jun 2010
    Posts
    19
    Liked
    0 times
    ok, i will, i have to fix the server first however

Similar Threads

  1. vBulletin 4.x VBSEO on Nginx !
    By angelvn in forum Troubleshooting
    Replies: 9
    Last Post: 12-30-2010, 09:47 AM
  2. nginx - php-fpm - vbseo
    By luismanson in forum General Discussion
    Replies: 6
    Last Post: 10-07-2010, 09:59 PM
  3. vBulletin 3.x vbseo + nginx - 404
    By katmai in forum Troubleshooting
    Replies: 1
    Last Post: 05-07-2010, 09:18 AM
  4. vBSEO won't redirect to pretty URLs under nginx
    By Viper007Bond in forum Troubleshooting
    Replies: 1
    Last Post: 06-23-2009, 07:08 AM
  5. nginx + vBSEO rewrite problem
    By BeoR in forum Troubleshooting
    Replies: 31
    Last Post: 01-15-2009, 03:56 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
  •