May 022011

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;      # your domain name
                access_log  /var/log/nginx/  main;

                location / {
                        proxy_pass; # 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;