Difference between revisions of "Nginx"

From DWIKI
(One intermediate revision by the same user not shown)
Line 24: Line 24:
   }
   }
  }
  }
=HOWTO=
==Get configuration items==
getconf PAGESIZE


=FAQ=
=FAQ=
Line 41: Line 45:


===upstream sent too big header while reading response header from upstream===
===upstream sent too big header while reading response header from upstream===
https://techglimpse.com/upstream-sent-too-big-header-while-reading-response-header-from-upstream-nginx/
[https://www.getpagespeed.com/server-setup/nginx/tuning-proxy_buffer_size-in-nginx Tuning proxy_buffer_size in NGINX]
[https://www.getpagespeed.com/server-setup/nginx/tuning-proxy_buffer_size-in-nginx Tuning proxy_buffer_size in NGINX]


[[Category: Proxy]]
[[Category: Proxy]]

Revision as of 09:38, 6 September 2022

HTTP server, proxy, reverse proxy etc

Links

Notes

SSL certificates

The host.crt goes first in the bundle


server {
 listen   443;
 ssl    on;
 ssl_certificate    /etc/ssl/your_domain_name.pem; (or bundle.crt)
 ssl_certificate_key    /etc/ssl/your_domain_name.key;
 server_name your.domain.com;
 access_log /var/log/nginx/nginx.vhost.access.log;
 error_log /var/log/nginx/nginx.vhost.error.log;
 location / {
  root   /home/www/public_html/your.domain.com/public/;
  index  index.html;
 }
}

HOWTO

Get configuration items

getconf PAGESIZE

FAQ

Redirecting in nginx

https://www.liquidweb.com/kb/redirecting-urls-using-nginx/


enable ipv6

In server section add

listen [::]:443;

Error messages

no live upstreams while connecting to upstream

can't connect to whatever backend?


upstream sent too big header while reading response header from upstream

https://techglimpse.com/upstream-sent-too-big-header-while-reading-response-header-from-upstream-nginx/ Tuning proxy_buffer_size in NGINX