having issues with nginx varnish and wordpress

Posted June 11, 2016 2.6k views
NginxWordPressUbuntu 16.04


I having having issues with a test server with nginx + varnish and wordpress…

i use this vhost

everything has been setup but when i change port 80 to 8080 on my website vhost it opens nginx vhost instead of the wordpress blog.

netstat -lntp

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0*               LISTEN      1450/mysqld
tcp        0      0  *               LISTEN      2920/nginx -g daemo
tcp        0      0    *               LISTEN      2920/nginx -g daemo
tcp        0      0    *               LISTEN      1542/sshd
tcp        0      0  *               LISTEN      1941/varnishd
tcp        0      0*               LISTEN      1941/varnishd
tcp6       0      0 :::80                   :::*                    LISTEN      2920/nginx -g daemo
tcp6       0      0 :::22                   :::*                    LISTEN      1542/sshd
tcp6       0      0 :::6081                 :::*                    LISTEN      1941/varnishd

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

In the wp-admin Settings area maybe try adding :8080 to the WordPress Address and Site Address fields, so both fields have something like: