proxy_add_x_forwarded_for nginx

When this option is enabled, the upstream application is responsible for extracting the client IP based on its own list of trusted proxies. You can fix real-ip and REMOTE_ADDR by adding a line like below to your backend nginx-config: set_real_ip_from 192.168.122.1; Make sure you replace 192.168.122.1 with REMOTE_ADDR value that was being received originally. Now, install the Java OpenJDK 8 via the apt command below. Debian 9 or later & Ubuntu 18.04 or later: CentOS 7: Step 2: Edit the configuration. Just like @MohammadAbuShady said, I didn't have an index file in the folder and got this error.