has someone instructions on how to use vbseo with nginx?
using vbulletin with nginx is not too hard, but the missing .htaccess feature of nginx creates some headaches
tnx
This is a discussion on howto for nginx within the General Discussion forums, part of the vBulletin SEO Discussion category; has someone instructions on how to use vbseo with nginx? using vbulletin with nginx is not too hard, but the ...
has someone instructions on how to use vbseo with nginx?
using vbulletin with nginx is not too hard, but the missing .htaccess feature of nginx creates some headaches
tnx
Is there a special reason you're using nginx?
there are many many reasons for using nginx: give a look here nginx - the raise of a new giant - vBulletin Community Forum
Here are rewrite rules to be used with vBSEO for nginx:
"/forums/" should be replaced with vB folder name.Code:location /forums/ { rewrite ^/forums/((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ /forums/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 last; if ($request_filename ~ "\.php$" ) { rewrite ^(.*)$ /forums/vbseo.php last; } if (!-e $request_filename) { rewrite ^/forums/(.*)$ /forums/vbseo.php last; } }
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.6.0 GOLD Released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
thank you for the rules!
is there any precaution to take before vbseo upgrade using nginx?
No other vBSEO-related changes are required.
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.6.0 GOLD Released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
Hi Oleg,
could you please post the new rules to use on nginx with VBSEO 3.2?
Thank you!
The same rewrite rules should work fine.
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.6.0 GOLD Released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
ok perfect. I read that the .htaccess should be modified before upgrading vbseo to the latest version, so i thought that the same applyed for rewrite rules in nginx.
Thank you!
Sorry to drag up this old thread but I have just installed nginx as a proxy fro apache. Does this change go into the nginx vhost conf for my domain and then I remove .htaccess or do I out this IN .htaccess?
Cheers
Bruce
I made mine like so:"/forums/" should be replaced with vB folder name.
My config file now looks like this:Code:location /home/me_mine/public_html/ { rewrite ^/home/me_mine/public_html/((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ /home/me_mine/public_html/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 last; if (!-e $request_filename) { rewrite ^/home/me_mine/public_html/(.*)$ /home/me_mine/public_html/vbseo.php last; } } if ($request_filename ~ "\.php$" ) { rewrite ^/home/me_mine/public_html/(.*)$ /home/me_mine/public_html/vbseo.php last; }
Is this the correct way to do this ?Code:server { listen |SITE_IP|:80; server_name |DOMAIN_NAME| |DOMAIN_ALIASES|; # Main location location / { proxy_pass http://|SITE_IP|:|APACHE_PORT|; proxy_redirect off; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass_header Set-Cookie; |PROXY_REDIRECTS| } location /home/me_mine/public_html/ { rewrite ^/home/me_mine/public_html/((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ /home/me_mine/public_html/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 last; if (!-e $request_filename) { rewrite ^/home/me_mine/public_html/(.*)$ /home/me_mine/public_html/vbseo.php last; } } if ($request_filename ~ "\.php$" ) { rewrite ^/home/me_mine/public_html/(.*)$ /home/me_mine/public_html/vbseo.php last; } # Static files location location ~* ^.+\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|bmp|rtf)$ { root |DOCROOT|; access_log /usr/local/apache/domlogs/|DOMAIN_NAME| main; access_log /usr/local/apache/domlogs/|DOMAIN_NAME|-bytes_log bytes_log; error_page 404 = @fallback; } location @fallback { proxy_pass http://|SITE_IP|:|APACHE_PORT|; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; proxy_pass_header Set-Cookie; |PROXY_REDIRECTS| } }
I am "not" getting any errors from nginx or httpd/apache.
NOTE: Nginx server is only for static content, but this has resolved all my errors I was getting from my nginx logs it seems.
Thanks Guy's,
Hello,
it looks ok.
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.6.0 GOLD Released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
You need to put that code in your nginx.conf file , the file may have a different name according to your nginx configuration.
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