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
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 when trying to access some very long URL/URI’s through nginx proxying. The bad thing is that Nginx doesn’t log anything usefull,… Continue reading Nginx Proxying Long URL Addresses
Intro If you are already using Nginx caching, you might be to the point, when you want to know if your request is being cached and served from the cache. If you are still new to the idea of using Nginx for caching proxy, you might want to take a look at this caching configuration… Continue reading Nginx Caching – Check If Request Is Being Cached
The problem … If you are using Nginx as a caching reverse proxy, at certain point of time you may want to cache only pages which fit specific size ranges. This is usefull when you don’t want your cache storage to be filled with big files (moveis, iso’s or something like that), and you don’t… Continue reading Nginx Caching Based On Page Size
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
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
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
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 (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
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