Oleg , please check your PM
This is a discussion on Problem with moving posts with Nginx within the Troubleshooting forums, part of the vBSEO SEO Plugin category; Oleg , please check your PM...
Oleg , please check your PM
Hello Per,
I tried with your config, and works fine for the rewrites, however i have a problem with folders like admincp/ modcp/ vbseo_sitemap/, they simply don't works, error 404.
In Apache rewrite rules i see that there are some RewriteConds related to this:
RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
Any idea how can i fix this?
I'm using nginx version: nginx/0.8.53
Thanks!
Hi Inettive,
Those should be handled by the rewrite rule for normal PHP files, they do not need to go via vbseo.
In the default nginx config file this would be at the end of the file by this rule; (Please note I'm using UNIX sockets instead of TCP in this example).
Regards, Per HanssonCode:## Pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 location ~ \.php$ { fastcgi_pass unix:/dev/shm/php.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name; include fastcgi_params; }
How would those who have used Nginx say its stability and performance compares to say.... Litespeed?
what do I need to insert to make the sitemaps work?Code:location /vb/ { try_files $uri $uri/ /vb/vbseo.php; } location ~ ^/vb/.+\.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME $document_root/vb/vbseo.php; include fastcgi_params; }
going to
http://myforum/sitemap_index.xml.gz
yields 404
Please help me convert this one
RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
to try_files
Hi, you could try something like this.
Since I don't actually use the sitemap feature I have not tested this rewrite at all... (So please provide feedback)
Regards, Per HanssonCode:location /vb/ { try_files $uri $uri/ /vb/vbseo.php; } location ~ ^/vb/.+\.php$ { fastcgi_pass unix:/dev/shm/php.sock; fastcgi_param SCRIPT_FILENAME $document_root/vb/vbseo.php; include fastcgi_params; } location ^/vb/((urllist|sitemap_).*\.(xml|txt)(\.gz)?) { rewrite ^/vb/((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ /vb/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1; }
The proper rules:
Proper vBSEO rewrite rules for Vbulletin 3 | Axivo Community
Floren Munteanu @ Axivo Inc.
We are sorry Floren but those rules are not proper rules and Axivo Inc solved nothing for us. Please stop claiming false things.
The proper rewrite rules to use with Nginx and vBSEO are as following ( the same rules i supplied to the thread you created privately )
You still don't want to understand but with this rules , everything ( inline.mod , lastpost on forumhome , moving posts etc..) are working 100% correct.Code:location / { rewrite ^/((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ /vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 last; try_files $uri $uri/ /vbseo.php?$args; } if ($request_filename ~ "\.php$") { rewrite ^/(.*)$ /vbseo.php last; }
You can contunie claming what ever you want on your site but please stop claiming things on vBSEO.com
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