server { listen 82; server_name _; root /var/www/82; index index.html; # include /etc/nginx/snippets/letsencrypt.conf; location / { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. try_files $uri $uri/ =404; } set_real_ip_from 127.0.0.1; real_ip_recursive on; real_ip_header X-Forwarded-For; }