Second page (and next) of search results redirects me to the home page
Solved changing the location block with this: location / { try_files $uri $uri/ /index.php?$args; }
Solved changing the location block with this: location / { try_files $uri $uri/ /index.php?$args; }
Check the mime.types file in Nginx’s config directory (if you’re on Linux this is typically /etc/nginx/). If there’s no MIME type file, check to see whether MIME types are declared inside nginx.conf. If not, you may need to create a mime.types file and include it in nginx.conf. Here’s the information on the Nginx wiki about … Read more
Let me quote what’s mentioned in the official FAQ of WordPress.com Stats plugin (JetPack statistics module uses this plugin as the base)… The plugin collects stats via a javascript call, so as long as the JS call is on the page stats will be collected just fine, whether the page is cached or not. In … Read more
512MB should be fine, especially if you just started building your site. I’ve ran single WP installs on DigitalOcean droplets with 512MB of RAM without any issues in the past, also on NginX. Obviously, server stability also greatly depends on how NginX, MySQL etc have been configured (ie. not to consume too much memory and … Read more
The best way to accomplish this is using three server blocks: one to redirect http to https, one to redirect the https www-name to no-www, and one to actually handle requests. The reason for using extra server blocks instead of ifs is that server selection is performed using a hash table, and is very fast. … Read more
Direct quote from Pitfalls and Common Mistakes: Taxing Rewrites: By using the return directive we can completely avoid evaluation of regular expression. Please use return instead of rewrite for permanent redirects. Here’s my approach to this use-case… location = /content/unique-page-name { return 301 /new-name/unique-page-name; }
I was finally able to get this to work by using php5-fpm instead of php5-cgi. First I removed the php5-cgi package via sudo apt-get autoremove –purge php5-cgi Then I installed php5-fpm via: sudo apt-get install php5-fpm After tweaking my server definition in Nginx a bit, the problem went away. Update I suspect this had more … Read more
The difference between mainline and stable is explained here: NGINX 1.6 and 1.7 Released A graphical summary: Among other differences: Note that stable does not mean more reliable or more bug-free. In fact, the mainline is generally regarded as more reliable because we port all bug fixes to it, and not just critical fixes as … Read more
sudo nginx -s stop && sudo nginx
we found the solution: There were deleted Pages and/or Posts with the same title. We removed them and now everythings works!