Change wordpress port number in nginx

0

I have a wordpress installation with nginx. It's currently use port 80. But I'd like to change it to something else. So I found /etc/nginx/sites-available/wordpress file and changed the following two lines:

    listen 80 default_server;
    listen [::]:80 default_server ipv6only=on;

But no matter how I change it, it only works with both port set to 80. I actually don't know what the second line is for. But removing it doesn't seem to make a difference anyway.

What am I missing?

lang2

Posted 2015-03-09T09:37:47.790

Reputation: 1 830

I guess one is IPv4 and the other is IPv6 config... – Kinnectus – 2015-03-09T09:41:38.973

@BigChris Make sense. – lang2 – 2015-03-09T09:48:51.220

Why you want to change port? – Alexey Ten – 2015-03-10T09:23:27.477

Good question :) – lang2 – 2015-03-10T11:39:44.743

No answers