Solution: If possible disable ufw or find other solution (Disabling ufw on production server is risky)
Problem: nginx: [warn] could not build optimal proxy_headers_hash, you should
Problem: increase either proxy_headers_hash_max_size: 512
Solution: past the code below in your default server block
proxy_headers_hash_max_size 1612;
proxy_headers_hash_bucket_size 128; #(remember more numbers you increase more memory to consume, you are better off reducing the numbers until nginx starts complaining.)
Solution 2: remove proxy_set_header X-Forwarded-For $remote_addr; and replace it with
hgt said:
gfds