Plesk Nginx

Nginx upstream sent too big header

When I log in to a PrestaShop website, I get an error on a Plesk server. On checking error login

Country Blocking with nginx GeoIP on Ubuntu/Debian

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

Nginx Web Server

Nginx Commands

Start Nginx Stop Nginx Reload Nginx Test Nginx configuration See Nginx

Nginx Web Server

Install Nginx from source

Install Requirements CentOS/RHEL/Fedora Ubuntu/Debian Create nginx user Downoad and insta Nginx You can download latest version of Nginx source code

Nginx Proxy Manager

Install Nginx Proxy Manager

Nginx Proxy Manager is Docker based GUI for managing Nginx reverse proxy. It support LetsEncrypt free SSL. https://nginxproxymanager.com Nginx Proxy

LetsEncrypt SSL On Nginx Password Protected site

LetsEncrypt SSL On Nginx Password Protected site

When you develop a web site, you will need it password protected so others won’t see or you don’t want

Enable CORS in Nginx

Enable CORS in Nginx

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

List installed Modules in Nginx

List installed Modules in Nginx

To list modules compiled with nginx, you can run nginx -V This print nginx version along with configuration used to

Nginx remove html from url

Nginx remove html from url

If you have a static website build using plain html files, your url will look like https://yourdomain/page.html. This .html extension

Nginx show full url in access log

Nginx show full url in access log

To show the full URL in nginx access log, add the following If you are behind reverse proxy, replace $remote_addr

Nginx Web Server

Nginx HTTP 414 request-URI too large

On a Nginx server, when accessing a long url, i get error To fix the error, edit inside “http” section,

Nginx Web Server

Show Real IP Nginx Behind Reverse Proxy

When your Nginx web server is running behind a reverse proxy, you will see IP of the reverse proxy server