<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ro">
	<id>https://wiki.dexonline.ro/index.php?action=history&amp;feed=atom&amp;title=Varnish</id>
	<title>Varnish - Revizia istoricului</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.dexonline.ro/index.php?action=history&amp;feed=atom&amp;title=Varnish"/>
	<link rel="alternate" type="text/html" href="https://wiki.dexonline.ro/index.php?title=Varnish&amp;action=history"/>
	<updated>2026-05-15T01:37:22Z</updated>
	<subtitle>Istoricul versiunilor pentru această pagină din wiki</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>https://wiki.dexonline.ro/index.php?title=Varnish&amp;diff=4521&amp;oldid=prev</id>
		<title>Cătălin.Frâncu la 16 mai 2022 11:24</title>
		<link rel="alternate" type="text/html" href="https://wiki.dexonline.ro/index.php?title=Varnish&amp;diff=4521&amp;oldid=prev"/>
		<updated>2022-05-16T11:24:31Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ro&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Versiunea anterioară&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Versiunea de la data 16 mai 2022 14:24&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l16&quot;&gt;Linia 16:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Linia 16:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;sudo varnishadm ban.url &amp;quot;^/cuvantul-zilei&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;sudo varnishadm ban &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;req&lt;/ins&gt;.url &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;'~' &lt;/ins&gt;&amp;quot;^/cuvantul-zilei&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki:diff::1.12:old-4452:rev-4521 --&gt;
&lt;/table&gt;</summary>
		<author><name>Cătălin.Frâncu</name></author>
	</entry>
	<entry>
		<id>https://wiki.dexonline.ro/index.php?title=Varnish&amp;diff=4452&amp;oldid=prev</id>
		<title>Cătălin.Frâncu la 22 decembrie 2021 07:32</title>
		<link rel="alternate" type="text/html" href="https://wiki.dexonline.ro/index.php?title=Varnish&amp;diff=4452&amp;oldid=prev"/>
		<updated>2021-12-22T07:32:56Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ro&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Versiunea anterioară&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Versiunea de la data 22 decembrie 2021 10:32&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Linia 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Linia 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Configurarea și utilizarea Varnish =&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Configurarea și utilizarea Varnish =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Apache &lt;/del&gt;rulează pe portul 8080, configurația este definită în &amp;lt;tt&amp;gt;/etc/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;apache2&lt;/del&gt;&amp;lt;/tt&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Nginx &lt;/ins&gt;rulează pe portul 8080, configurația este definită în &amp;lt;tt&amp;gt;/etc/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;nginx&lt;/ins&gt;&amp;lt;/tt&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Varnish rulează pe portul 80, configurația este definită în &amp;lt;tt&amp;gt;/etc/varnish&amp;lt;/tt&amp;gt;. '''Atenție! ''' După modificări de configurație, noua configurație poate fi încărcată cu &amp;lt;tt&amp;gt;/etc/init.d/varnish reload&amp;lt;/tt&amp;gt;. Nu folosiți &amp;lt;tt&amp;gt;/etc/init.d/varnish restart&amp;lt;/tt&amp;gt;, deoarece aceasta va goli cache-ul, ceea ce poate încărca serverul, mai ales la ore de vârf.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Varnish rulează pe portul 80, configurația este definită în &amp;lt;tt&amp;gt;/etc/varnish&amp;lt;/tt&amp;gt;. '''Atenție! ''' După modificări de configurație, noua configurație poate fi încărcată cu &amp;lt;tt&amp;gt;/etc/init.d/varnish reload&amp;lt;/tt&amp;gt;. Nu folosiți &amp;lt;tt&amp;gt;/etc/init.d/varnish restart&amp;lt;/tt&amp;gt;, deoarece aceasta va goli cache-ul, ceea ce poate încărca serverul, mai ales la ore de vârf.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Pentru testarea Varnish pe o configurație nouă:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Pentru testarea Varnish pe o configurație nouă:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki:diff::1.12:old-719:rev-4452 --&gt;
&lt;/table&gt;</summary>
		<author><name>Cătălin.Frâncu</name></author>
	</entry>
	<entry>
		<id>https://wiki.dexonline.ro/index.php?title=Varnish&amp;diff=719&amp;oldid=prev</id>
		<title>Cătălin.Frâncu: Pagină nouă: = Configurarea și utilizarea Varnish =  * Apache rulează pe portul 8080, configurația este definită în &lt;tt&gt;/etc/apache2&lt;/tt&gt; * Varnish rulează pe portul 80, configurația est...</title>
		<link rel="alternate" type="text/html" href="https://wiki.dexonline.ro/index.php?title=Varnish&amp;diff=719&amp;oldid=prev"/>
		<updated>2014-02-03T17:24:01Z</updated>

		<summary type="html">&lt;p&gt;Pagină nouă: = Configurarea și utilizarea Varnish =  * Apache rulează pe portul 8080, configurația este definită în &amp;lt;tt&amp;gt;/etc/apache2&amp;lt;/tt&amp;gt; * Varnish rulează pe portul 80, configurația est...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Pagină nouă&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Configurarea și utilizarea Varnish =&lt;br /&gt;
&lt;br /&gt;
* Apache rulează pe portul 8080, configurația este definită în &amp;lt;tt&amp;gt;/etc/apache2&amp;lt;/tt&amp;gt;&lt;br /&gt;
* Varnish rulează pe portul 80, configurația este definită în &amp;lt;tt&amp;gt;/etc/varnish&amp;lt;/tt&amp;gt;. '''Atenție! ''' După modificări de configurație, noua configurație poate fi încărcată cu &amp;lt;tt&amp;gt;/etc/init.d/varnish reload&amp;lt;/tt&amp;gt;. Nu folosiți &amp;lt;tt&amp;gt;/etc/init.d/varnish restart&amp;lt;/tt&amp;gt;, deoarece aceasta va goli cache-ul, ceea ce poate încărca serverul, mai ales la ore de vârf.&lt;br /&gt;
* Pentru testarea Varnish pe o configurație nouă:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cp /etc/varnish/default.vcl /etc/varnish/test.vcl&lt;br /&gt;
/usr/sbin/varnishd -F -f /etc/varnish/default.vcl -u varnish -g varnish -a :81 -n test_instance -s file,/tmp/varnish_storage.bin,10M &amp;amp;&lt;br /&gt;
varnishlog -n test_instance&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Aceasta deschide o nouă instanță Varnish pe care o puteți accesa pe [http://dexonline.ro:81 portul 81], cu un cache gol, iar &amp;lt;tt&amp;gt;vanishlog&amp;lt;/tt&amp;gt; arată ce cereri/răspunsuri primește Varnish.&lt;br /&gt;
&lt;br /&gt;
== Ștergerea unei pagini din cache-ul Varnish ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo varnishadm ban.url &amp;quot;^/cuvantul-zilei&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(evident, acceptă și orice altă expresie regulată, de exemplu &amp;lt;tt&amp;gt;^/$&amp;lt;/tt&amp;gt; pentru pagina principală).&lt;br /&gt;
&lt;br /&gt;
== Ocolirea cache-ului Varnish ==&lt;br /&gt;
&lt;br /&gt;
Pentru a obține în mod garantat informații proaspete, ocolind cache-ul varnish, vizitați http://dexonline.ro:8080 .&lt;/div&gt;</summary>
		<author><name>Cătălin.Frâncu</name></author>
	</entry>
</feed>