Nginx – Configuring reverse proxy + caching

Published on Author gryzliLeave a comment

Here are some useful steps, how to configure nginx reverse proxy + caching.      1) How does Nginx  proxy cache works ?        In the scheme above we are considering that we have Apache upstream/origin server and in front of it Nginx which does reverse proxying + caching of Apache response.   … Continue reading Nginx – Configuring reverse proxy + caching

Nginx – Hardening SSL security by protecting from well-known attack vectors

Published on Author gryzliLeave a comment

Recently bunch of SSL attacks pop out, some of which get lot of public attention: Heartbleed Beast attack Crime attack Freak attack Poodle …..and so on ….   Disabling SSLv3 and SSLv2 and Excluding Weak Cipher-Suites   If you want to protect your Nginx from the biggest part of these attacks, you can add the… Continue reading Nginx – Hardening SSL security by protecting from well-known attack vectors

Make Your WordPress At Least 3x Faster By Migrating To Nginx + PHP-FPM

Published on Author gryzliLeave a comment

If you want to make your WordPress at least 3x faster , then you should definitely read below…. Yesterday I woke up, and my first thought was – I need to make my WordPress blog faster !   Caring about performance ! That’s a great idea and most of the time, there is bunch of… Continue reading Make Your WordPress At Least 3x Faster By Migrating To Nginx + PHP-FPM

Nginx + php-fpm – Getting Internal server error 504

Published on Author gryzliLeave a comment

Nginx + php-fpm (and not only) could produce Internal Server Error 504. If you happen to get this error, usually after waiting about 60 seconds(this is the default timeout for lots of timeout directives) for some php operation, then you can try to rise the following limits: 1. Rising php.ini limits Make sure to increase… Continue reading Nginx + php-fpm – Getting Internal server error 504

Nginx – PHP-FPM – FastCGI sent in stderr: “Primary script unknown” while reading response header from upstream

Published on Author gryzliLeave a comment

Getting  “Primary script unknown” in a Nginx + PHP-FPM setup. I’ve seen this error on a multiple Nginx / PHP-FPM based servers. This error is mostly conducted by a bad configured SCRIPT_FILENAME  and in most cases adding default SCRIPT_FILENAME directive in the PHP handling section, will fix the things up. Here is some example PHP handling… Continue reading Nginx – PHP-FPM – FastCGI sent in stderr: “Primary script unknown” while reading response header from upstream