• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Question nginx and varnish (docker)

andyxyz

Basic Pleskian
Server operating system version
ubuntu 20.04
Plesk version and microupdate number
18.01
Has anyone worked out a method of running pure nginx with varnish? Currently I can run everything with nginx only but the only way I can get varnish running in docker is to point that to 7080 / apache. Can anyone see a way to point varnish to nginx?
 
OK the silence is deafening..

what if I add a new nginx block for a new port (minus the docker proxy block) and point varnish to this port?
 
OK story so far.. this is Magento 2..

So creating a custom nginx block in /etc/nginx/conf.d/ with a copy of the port 80 nginx server block (minus any extension inserts) running on a random port and pointing varnish (default m2 exported vcl) to this works just fine for everything except images. (static content fine.. images.. not fine)
Varnish cant see get.php

other than this one anomaly magento 2 will run even if apache is disabled.

Any ideas?

- ReqURL /get.php

- VCL_call RECV
- VCL_return pass
- VCL_call HASH
- VCL_return lookup
- VCL_call PASS
- VCL_return fetch
- Link bereq 720902 pass
- Timestamp Fetch: 1712222345.680428 3.822114 3.822114
- RespProtocol HTTP/1.1
- RespStatus 404
- RespReason Not Found
- RespHeader Server: nginx
 
Back
Top