Results 1 to 13 of 13

nginx+vbseo

This is a discussion on nginx+vbseo within the General Discussion forums, part of the vBSEO SEO Plugin category; Hello I installed nginx with no problem but now recognizes XCache sitemap. thanks and greetings Pardon my English http://foroxd.com/sitemap_forum_1.xml.gz...

  1. #1
    Senior Member
    Real Name
    robert
    Join Date
    Apr 2008
    Location
    Madrid
    Posts
    149
    Liked
    7 times

    nginx+vbseo

    Hello

    I installed nginx with no problem but now recognizes XCache
    sitemap.


    thanks and greetings

    Pardon my English

    http://foroxd.com/sitemap_forum_1.xml.gz

  2. #2
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    I'm not sure what xcache has to do with this....

    Make sure you placed the nginx rules LAST in your nginx config file.

  3. #3
    Senior Member
    Real Name
    robert
    Join Date
    Apr 2008
    Location
    Madrid
    Posts
    149
    Liked
    7 times
    means moving. htaccess to another directory?

  4. #4
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    htaccess is an apache directive. It has no function under nginx.

  5. #5
    Senior Member
    Real Name
    robert
    Join Date
    Apr 2008
    Location
    Madrid
    Posts
    149
    Liked
    7 times
    as it should do it?

    thanks

  6. #6
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    You need to use the nginx rules supplied in the download in your nginx.conf file on your server.

  7. #7
    Senior Member
    Real Name
    robert
    Join Date
    Apr 2008
    Location
    Madrid
    Posts
    149
    Liked
    7 times
    I have this

    user apache apache;
    worker_processes 8;
    timer_resolution 100ms; #custom
    worker_rlimit_nofile 8192; #custom
    worker_priority -5; #custom
    error_log /var/log/nginx/error.log;


    events {
    worker_connections 2048;
    use epoll;
    }




    http {
    server_names_hash_bucket_size 512;
    server_names_hash_max_size 2048;
    include mime.types;
    default_type application/octet-stream;


    log_format main '$remote_addr - $remote_user [$time_local] '
    '"$request" $status $bytes_sent '
    '"$http_referer" "$http_user_agent" '
    '"$gzip_ratio"';

    log_format download '$remote_addr - $remote_user [$time_local] '
    '"$request" $status $bytes_sent '
    '"$http_referer" "$http_user_agent" '
    '"$http_range" "$sent_http_content_range"';


    client_header_timeout 10m;
    client_body_timeout 10m;
    send_timeout 10m;
    proxy_read_timeout 10m;
    proxy_connect_timeout 75;
    proxy_send_timeout 10m;
    connection_pool_size 256;
    client_header_buffer_size 1k;
    large_client_header_buffers 4 2k;
    request_pool_size 4k;



    sendfile on;
    tcp_nopush on;
    tcp_nodelay on;
    keepalive_timeout 5 20;


    gzip on;
    gzip_min_length 1024;
    gzip_buffers 4 8k;
    gzip_http_version 1.1;
    gzip_proxied any;
    gzip_comp_level 7;
    gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;


    #include /etc/nginx/sites/*.conf; #custom
    include /var/www/vhosts/*/conf/nginx.conf;
    #include webmail.conf;

    ignore_invalid_headers on;
    resolver 127.0.0.1;

    server {
    listen 80;
    server_name localhost;


    location / {
    root html;
    index index.php index.html index.htm;
    }


    error_page 404 /404.html;
    error_page 500 502 503 504 /50x.html;
    location = /50x.html {
    root html;
    }
    }
    #server {
    # listen 443;
    # server_name localhost;


    # ssl on;
    # ssl_certificate cert.pem;
    # ssl_certificate_key cert.key;


    # ssl_session_timeout 5m;


    # ssl_protocols SSLv2 SSLv3 TLSv1;
    # ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSL v2:+EXP;
    # ssl_prefer_server_ciphers on;


    # location / {
    # root html;
    # index index.html index.htm;
    # }
    #}
    }

  8. #8
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    At the very bottom, you need to add in the vbseo directives. See the 'htaccess' folder from the download to get the nginx ruls for vbseo

  9. #9
    Senior Member
    Real Name
    robert
    Join Date
    Apr 2008
    Location
    Madrid
    Posts
    149
    Liked
    7 times
    I have this

    # Comment the following line (add '#' at the beginning)
    # to disable mod_rewrite functions.
    # Please note: you still need to disable the hack in
    # the vBSEO control panel to stop url rewrites.
    RewriteEngine On


    <IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/html text/css application/x-javascript
    </IfModule>


    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^https?://([a-z0-9]+\.)?foroxd.com [NC]
    RewriteRule .*\.(jpg|jpeg|avi|mov|swf|flv|gif|png|bmp|ico)$ - [F]




    RewriteRule ^css/(.*\.css) /combine.php?type=css&files=$1
    RewriteRule ^javascript/(.*\.js) /combine.php?type=javascript&files=$1


    # Some servers require the Rewritebase directive to be
    # enabled (remove '#' at the beginning to activate)
    # Please note: when enabled, you must include the path
    # to your root vB folder (i.e. RewriteBase /forums/)
    #RewriteBase /


    #RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
    #RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]


    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]


    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
    RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]


    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php [L,QSA]


    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault A300
    ExpiresByType image/x-icon A2592000
    ExpiresByType application/x-javascript A4838400
    ExpiresByType text/css A4838400
    ExpiresByType image/gif A4838400
    ExpiresByType image/png A4838400
    ExpiresByType image/jpeg A4838400
    ExpiresByType text/plain A300
    ExpiresByType application/x-shockwave-flash A604800
    ExpiresByType video/x-flv A2592000
    ExpiresByType application/pdf A300
    ExpiresByType text/html A300
    </IfModule>


    # Set up 2 Hour caching on commonly updated files
    <FilesMatch "\.(xml|txt|html|js|css)$">
    ExpiresDefault A7200
    Header append Cache-Control "proxy-revalidate"
    </FilesMatch>


    # Force no caching for dynamic files
    <FilesMatch "\.(php|cgi|pl|htm)$">
    ExpiresActive On
    Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
    Header set Pragma "no-cache"
    </FilesMatch>


    <ifmodule mod_headers.c="">
    Header unset ETag
    </ifmodule>
    FileETag None

  10. #10
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    Again, htaccess doesn't function under nginx. That is basically a text file.

    Open the nginx file in the htaccess FOLDER.

    nginx.png

  11. #11
    Senior Member
    Real Name
    robert
    Join Date
    Apr 2008
    Location
    Madrid
    Posts
    149
    Liked
    7 times
    It does not work, I can make a ticket so you can see it?

    thanks

  12. #12
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    Yes, we can have Andres help you in Spanish.

  13. #13
    Senior Member
    Real Name
    robert
    Join Date
    Apr 2008
    Location
    Madrid
    Posts
    149
    Liked
    7 times
    Thank you very much.

    Please pardon my ineptitude

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 4.x nginx attachmets in vbseo
    By luismanson in forum Bug Reporting
    Replies: 4
    Last Post: 10-07-2010, 10:52 AM
  4. vBulletin 3.x vbseo + nginx - 404
    By katmai in forum Troubleshooting
    Replies: 1
    Last Post: 05-07-2010, 09:18 AM

Posting Permissions

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