Tuesday, November 14, 2017

nginx introduced dynamic module support in v. 1.9.11. This brief article provides step-by-step procedure to enable GeoIP support on your CentOS server.

Published in Linux, BSD, Unix

If you run nginx on Windows (for development purproses, for instance), you may often experience 'An existing connection was forcibly closed by the remote host' errors.

To get rid of them, add the following lines to your nginx.conf:

keepalive_timeout 65; keepalive_requests 500; proxy_http_version 1.1;
Published in Blog

In some cases you have to run multiple services on a domain secured by SSL certificate, on various ports.

Users, who want to access your server at https://example.com:1337 often type just example.com:1337, which leads to plain HTTP request and the error specified above.

A single line in nginx configuration can prevent nginx from showing this error message, and redirect user user using the correct scheme instead. Just add

error_page 497 https://$host:$server_port$request_uri;

to your host configuration inside server { ... } block and reload the configuration:

[[email protected] #]service nginx reload
Published in Linux, BSD, Unix

Welcome!

Here I publish articles related to my areas of interest, my brief notes that may save some time to others, as well as some of my works.

This site is a work in progress. I will add more sections in the future, such as

  • More photos to photogallery
  • More Joomla!-related articles
  • ...

 

themeforest

New Posts

Using dynamic GeoIP module with nginx (CentOS)

nginx introduced dynamic module support in v. 1.9.11. This brief article provides step-by-step procedure...

13-04-2016 in Linux, BSD, Unix

READ MORE

Visual difference between pseudo and true random data

This is is "random" image generated using PHP rand() function: And this is an image...

20-11-2015 in Blog

READ MORE

Best EEPROM practices

(this article is a work in progress). My own advice will be added later...   Having...

12-10-2015 in Arduino

READ MORE
Scroll to top

We use cookies, just to track visits to our website, we store no personal details Privacy policy