Like many other reverse proxying mechanism, the configuration is quite simple. All we need is just website that’s lived in ipv4, and Nginx with IPv6 capabled network.

        server {
                listen       [::]:80;  # your server's public IP address
                server_name  www.example.com;      # your domain name
                access_log  /var/log/nginx/www.example.com-access.log  main;

                location / {
                        proxy_pass         http://www.example.com/; # live webiste on IPV4
                        proxy_redirect     off;
                        proxy_set_header   Host             $host;
                        proxy_set_header   X-Real-IP        $remote_addr;
                        proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;

                }
        }
Share