Outils pour utilisateurs

Outils du site


tech:notes_varnish

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

tech:notes_varnish [2025/03/24 15:06] – créée - modification externe 127.0.0.1tech:notes_varnish [2025/11/11 19:02] (Version actuelle) Jean-Baptiste
Ligne 14: Ligne 14:
 </code> </code>
  
-<code ini /etc/systemd/system/varnish.service.d/plop.conf>+''/etc/systemd/system/varnish.service.d/plop.conf'' 
 +<code ini>
 # To add or override specific settings for the Varnish service, place a copy of # To add or override specific settings for the Varnish service, place a copy of
 # this file in /etc/systemd/system/varnish.service.d/ with a ".conf" suffix, # this file in /etc/systemd/system/varnish.service.d/ with a ".conf" suffix,
Ligne 34: Ligne 35:
 </code> </code>
  
-<code c /etc/varnish/default.vcl>+''/etc/varnish/default.vcl'' 
 +<code c>
 # #
 # This is an example VCL file for Varnish. # This is an example VCL file for Varnish.
Ligne 96: Ligne 98:
 varnishadm -S /etc/varnish/secret -T 127.0.0.1:6082 varnishadm -S /etc/varnish/secret -T 127.0.0.1:6082
 </code> </code>
 +
  
 == Reload Varnish  == Reload Varnish 
Ligne 102: Ligne 105:
  
  
-<code bash /usr/local/bin/varnish_reload.sh>+''/usr/local/bin/varnish_reload.sh'' 
 +<code bash>
 #!/bin/bash #!/bin/bash
  
Ligne 110: Ligne 114:
 </code> </code>
  
-<code ini /lib/systemd/system/varnish.service.d/reload.conf>+''/lib/systemd/system/varnish.service.d/reload.conf'' 
 +<code ini>
 [Service] [Service]
 ExecReload=/usr/local/bin/varnish_reload.sh ExecReload=/usr/local/bin/varnish_reload.sh
Ligne 148: Ligne 153:
 * vcl_pipe (bypass) * vcl_pipe (bypass)
 * etc... * etc...
 +
  
 == Debug == Debug
Ligne 184: Ligne 190:
 } }
 </code> </code>
 +
  
 === Purge du cache === Purge du cache
Ligne 193: Ligne 200:
 http PURGE "www.example.com/foo" http PURGE "www.example.com/foo"
 </code> </code>
 +
  
 === Bloquer (BAN) === Bloquer (BAN)
Ligne 199: Ligne 207:
 varnishadm ban req.http.host == example.com '&&' req.url '~' '\\.png$ varnishadm ban req.http.host == example.com '&&' req.url '~' '\\.png$
 </code> </code>
 +
  
 == Autres  == Autres 
tech/notes_varnish.1742825205.txt.gz · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki