Hello,
I'm trying to enable ipv6 on nginx but when i change my listen directive and reboot the linode I can no longer access my website.
Here is my conf file
Code:
server {
listen [::]:80;
server_name www.shadowytree.com shadowytree.com;
#access_log /srv/www/shadowytree.com/logs/access.log;
error_log /srv/www/shadowytree.com/logs/error.log;
#index index.html index.htm;
location / {
root /srv/www/shadowytree.com/public_html;
index index.html index.htm index.php;
}
location /nginx_status {
stub_status on;
access_log off;
#uncomment and add an ip address if you want to block access to status page
#allow SOME.IP.ADD.RESS;
#deny all;
}
location ~ \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /srv/www/shadowytree.com/public_html$fastcgi_script_name;
}
}
server {
listen [::]:443 ssl;
ssl_certificate /srv/ssl/shadowytree.com.crt;
ssl_certificate_key /srv/ssl/shadowytree.com.key;
server_name www.shadowytree.com shadowytree.com;
#access_log /srv/www/shadowytree.com/logs/access.log;
error_log /srv/www/shadowytree.com/logs/error.log;
keepalive_timeout 70;
location / {
root /srv/www/shadowytree.com/public_html;
index index.html index.htm index.php;
}
location ~ \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /srv/www/shadowytree.com/public_html$fastcgi_script_name;
}
}
If I removed the [::] parts everything works again. nginx is configured with ipv6 when I check it with nginx -V.
What am I missing?