Nginx upstream sent too big header

Plesk Nginx

When i login to a PrestaShop web site, i get error on a Plesk server.

On checking error login for the site in folder /var/www/vhosts/domain.com/logs/proxy_error_log, i found following error message proxy_error_log:2020/11/25 19:41:41 [error] 1809#0: *39664 upstream sent too big header while reading response header from upstream, client: 59.92.71.53, server: tulivesi.com, request: “POST /en/login?back=my-account HTTP/2.0”, […]

Read More…

Country Blocking with nginx GeoIP on Ubuntu/Debian

On Ubuntu/Debian, install nginx geoip module with

Now edit nginx.conf

Find

Add below

You can add 2 letter country code and set ye/no as required. To implement GeoIP blocking for a web site, you need to edit server entry for the web site. In this cause, i will use the default […]

Read More…

Install Nginx from source

Nginx Web Server

Install Requirements CentOS/RHEL/Fedora

Ubuntu/Debian

Create nginx user

Downoad and insta Nginx You can download latest version of Nginx source code from https://nginx.org/en/download.html To install version 1.19.2, run

Test Nginx To start nginx run

Configuration file is at

See Nginx […]

Read More…

Install Nginx Proxy Manager

Nginx Proxy Manager

Nginx Proxy Manager is Docker based GUI for managing Nginx reverse proxy. It support LetsEncrypt free SSL. https://nginxproxymanager.com To install, create a folder

Create config.json file

Add

Creaye docker-compose.yaml file

add following content

If you don’t have docker and docker-compose installed, install it with

To start Nginx Proxy Manager, […]

Read More…

Enable CORS in Nginx

To enable CORS in nginx, add following inside web sites sevrer config.

Restart nginx

See CORS […]

Read More…

Nginx show full url in access log

To show full url in nginx access log, add following

See Nginx […]

Read More…