Configure Nginx Reverse Proxy For Grafana Access

Published on Author gryzli

Proxying Grafana with Nginx is easy, but there are some small thins that needs to be considered. If you have already tried this and received strange errors like: 192.168.1.1 – – [09/May/2019:10:26:58 +0300] “-” 000 0 “-” “-” “-“ or 499 errors in your nginx proxy logs or Grafana dashboard graphics not being loaded most… Continue reading Configure Nginx Reverse Proxy For Grafana Access

Nginx Proxying Long URL Addresses

Published on Author gryzli

If you are using Nginx as reverse proxy, you may encounter some of the following behaviors Receiving Empty Lines In Nginx Log 192.168.1.1 – – [09/May/2019:10:26:58 +0300] “-” 000 0 “-” “-” “-” 192.168.1.1 – – [09/May/2019:10:09:55 +0300] “-” 000 0 “-” “-” “-” Receiving 499 Status Code While Proxying I was observing such behavior… Continue reading Nginx Proxying Long URL Addresses

Nginx 99: Cannot assign requested address to upstream

Published on Author gryzli

If you are using Nginx for reverse or caching proxy and you are making some good amount of traffic, soon or later you are going to have issues with the TCP connections between Nginx and your backend.  You will start getting error messages looking like this:  [crit] 2323#0: *535353 connect() to 127.0.0.1:8080 failed (99: Cannot… Continue reading Nginx 99: Cannot assign requested address to upstream

Nginx – Configuring reverse proxy + caching

Published on Author gryzli

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 gryzli

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 gryzli

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 gryzli

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 gryzli

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