Enable IPv6 environments by configuring a dual-stack listen in Nginx (#839)

Co-authored-by: Dara Dorsaneo <daradorsaneo@gmail.com>
This commit is contained in:
dorsanty
2025-06-08 13:45:38 +01:00
committed by GitHub
parent a7e26f688a
commit bea2b8bd99
2 changed files with 2 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ http {
keepalive_timeout 65;
server {
listen 80;
listen [::]:80 ipv6only=off;
server_name localhost;
location / {

View File

@@ -1,5 +1,5 @@
server {
listen 80;
listen [::]:80 ipv6only=off;
server_name your_domain_or_ip; # Change to your domain or IP
root /var/www/html; # Change to your web root directory