• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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