Already using Apache + Nginx on my Magento 1 sites on a dedicated server
For a Magento 2.2 site I want to run varnish
However after installing varnish - i saw in the instructions need to change listening port-
What I did is to keep apache on 8080 and change Nginx from 80 to 446 (443 is being using for SSL) and changed inside [Home]/etc/varnish default.vcl
from 8080 to 80
Stopped and Restarted Apache Nginx and Varnish however when I went to open the websites none of them are able to connect -
I checked varnish port
ps aux | grep varnish
Output I get is
[root@server ~]# ps aux | grep varnish varnish 6393 0.0 0.0 28932 5204 ? SLs 15:26 0:00 /usr/sbin/varni shd -a :6081 -f /etc/varnish/default.vcl -T 127.0.0.1:6082 -p thread_pool_min=50 -p thread_pool_max=1000 -S /etc/varnish/secret -s malloc,256M -P /var/run/varni sh.pid varnish 6403 0.0 0.7 316840 116444 ? SLl 15:26 0:00 /usr/sbin/varni shd -a :6081 -f /etc/varnish/default.vcl -T 127.0.0.1:6082 -p thread_pool_min=50 -p thread_pool_max=1000 -S /etc/varnish/secret -s malloc,256M -P /var/run/varni sh.pid root 11434 0.0 0.0 103320 904 pts/0 S+ 16:07 0:00 grep varnish [root@server ~]#
Shows 6081 and 6082 but not the port 80 I set
I read some other posts with people with similar problems but I dont have on my server the file changes mentioned in those server locations.
One more thing is that before today I has Varnish 2.1 but today I installed 5.2 - i didn't remoeve the version 2.1 but just followed instructions to install the 5.2 version - so can this be the cause and where else would varnish be getting those values for port setting?
Nginx - doesnt seem to work unless it's on port 80
Please can anyone help asap stuck on this all day