Hello.

I added AAAA records for the domain, configured the nginx web server as follows:

server { listen [::]:80 ipv6only=on; listen 80; server_name example.com www.example.com; root /var/www/default; location / { try_files $uri $uri/ =404; } } 

default:

 server { listen 80 default_server; #listen [::]:80 ipv6only=on default_server; server_name localhost; root /var/www/default; location / { try_files $uri $uri/ =404; } location ^~ /pma/ { alias /usr/share/phpmyadmin/; index index.php index.html; location ~ /pma(/.*\.php) { include fastcgi_params; fastcgi_param SERVER_NAME localhost; fastcgi_param SCRIPT_FILENAME /usr/share/phpmyadmin$1; fastcgi_pass unix:/run/php/php7.0-fpm.sock; fastcgi_index index.php; } } } 

But the site still does not work, gives an error 502. Hosters say that I have not added an address to the server, but I don’t quite understand where to add it, I configure ipv6 for the first time.

  • First, who gives error 502? Secondly, did you wait an hour or two after adding records? - andreymal
  • @andreymal site loads for a long time and then returns 502, I’m already waiting for 3 hours - ikerya
  • The question was not answered, who gives error 502? Error 502 can be given only by a working server, which means it is somewhere running and successfully on its way to your site. Does your hoster provide reverse proxy for your nginx or does an error 502 give it to your nginx? Or is the provider on your Internet, through which you open the site, put your own proxy, which gives error 502? The configuration of your nginx is exactly the exact same as in the question (not counting server_name), and you definitely don't have any other server sections (in other files, for example)? In general, few details :) - andreymal
  • Do you manage to connect to your server via IPv6 in other ways, via ssh or ftp for example? - andreymal
  • one
    error log nginx? - ikerya

0