Once I needed to additionally keep a log of 404 requests in a separate file, with subsequent export via rsyslog to a mysql database and processing by scripts.
Continue reading “Nginx. Using the map module”Category Archives: Nginx
Solution “111 Connection refused while connecting to upstream”
Once I noticed an error in the /var/log/nginx/error.log:
Continue reading “Solution “111 Connection refused while connecting to upstream””Nginx. Directory Access Restriction
In this article I will give examples of restricting access to files or directories by IP address or username and password.
Continue reading “Nginx. Directory Access Restriction”Configuring SSL in Nginx
Let’s say Nginx is installed, the site opens via http, and we want it to open via https.
Continue reading “Configuring SSL in Nginx”How to disable TLS 1.0 and TLS 1.1 in Nginx
The TLS 1.0 protocol appeared in 1999, TLS 1.1 in 2006, and they will both be considered obsolete in 2020, and will also have to be removed from support in various browsers around March 2020, so you need to disable them. Similarly, SSL 2.0, SSL 3.0 protocols were previously outdated.
Continue reading “How to disable TLS 1.0 and TLS 1.1 in Nginx”Nginx. Parameter default_server
The default_server parameter defines the default server to which a client request will be sent in which the host field is empty or an unknown domain is specified in it. For example, when a client opens the server IP address in a browser, or when the server has several domains, for example, ixnfo.com, test1.ixnfo.com, test2.ixnfo.com, but not all domains are specified in the ngixn configuration.
Continue reading “Nginx. Parameter default_server”Configuring Nginx for Nextcloud
Let’s say Nginx is installed, Nextcloud is located in /var/www/nextcloud and you need it to open on the subdomain https://cloud.ixnfo.com/. At the time of writing, I will use Nextcloud 17.
Continue reading “Configuring Nginx for Nextcloud”Redirect HTTP to HTTPS in Nginx
In this article I will give an example of setting up constant forwarding http requests to https.
Continue reading “Redirect HTTP to HTTPS in Nginx”Installing WordPress and Nginx
For an example of a completed installation of WordPress with Nginx in the operating system Ubuntu Server 18.04.
Continue reading “Installing WordPress and Nginx”Error solution with REST API “The response is not a valid JSON response” WordPress+Nginx
Once I installed WordPress on an Ubuntu Server operating system with a Nginx web server and when I tried to add a new article I saw an error:
Continue reading “Error solution with REST API “The response is not a valid JSON response” WordPress+Nginx”