Commit 199945af authored by Federico G. Schwindt's avatar Federico G. Schwindt

Do not leak comments into the generated html

parent 28915cf7
...@@ -193,7 +193,9 @@ A somewhat simpler example that can accomplish almost the same functionality can ...@@ -193,7 +193,9 @@ A somewhat simpler example that can accomplish almost the same functionality can
found below. Instead of filtering out "other" cookies it instead picks out found below. Instead of filtering out "other" cookies it instead picks out
"the one" cookie that is needed, copies it to another header and then "the one" cookie that is needed, copies it to another header and then
copies it back to the request, deleting the original cookie header. copies it back to the request, deleting the original cookie header.
.. XXX:Verify correctness of request above! benc .. XXX:Verify correctness of request above! benc
:: ::
sub vcl_recv { sub vcl_recv {
...@@ -298,11 +300,9 @@ Normalizing your namespace ...@@ -298,11 +300,9 @@ Normalizing your namespace
Some sites are accessed via lots of hostnames. Some sites are accessed via lots of hostnames.
http://www.varnish-software.com/, http://varnish-software.com/ and http://www.varnish-software.com/, http://varnish-software.com/ and
http://varnishsoftware.com/ all point at the same site. Since Varnish http://varnishsoftware.com/ all point at the same site. Since Varnish
doesn't know they are the same, doesn't know they are the same, Varnish will cache different versions of
.. XXX: heavy meaning change above. benc every page for every hostname. You can mitigate this in your web server
Varnish will cache different versions of every page for every configuration by setting up redirects or by using the following VCL::
hostname. You can mitigate this in your web server configuration
by setting up redirects or by using the following VCL::
if (req.http.host ~ "(?i)^(www.)?varnish-?software.com") { if (req.http.host ~ "(?i)^(www.)?varnish-?software.com") {
set req.http.host = "varnish-software.com"; set req.http.host = "varnish-software.com";
......
...@@ -31,8 +31,8 @@ You'll see lines like these scrolling slowly by.:: ...@@ -31,8 +31,8 @@ You'll see lines like these scrolling slowly by.::
These is the Varnish master process checking up on the caching process These is the Varnish master process checking up on the caching process
to see that everything is OK. to see that everything is OK.
Now go to the browser and reload the page displaying your web Now go to the browser and reload the page displaying your web app.
app.
.. XXX:Doesn't this require a setup of a running varnishd and a web application being cached? benc .. XXX:Doesn't this require a setup of a running varnishd and a web application being cached? benc
You'll see lines like these.:: You'll see lines like these.::
......
...@@ -29,11 +29,9 @@ varnishhist ...@@ -29,11 +29,9 @@ varnishhist
The :ref:`varnishhist(1)` utility reads :ref:`varnishd(1)` shared The :ref:`varnishhist(1)` utility reads :ref:`varnishd(1)` shared
memory logs and presents a continuously updated histogram showing the memory logs and presents a continuously updated histogram showing the
distribution of the last N requests by their processing. distribution of the last N requests by their processing.
.. XXX:1? benc The value of N and the vertical scale are displayed in the top left
The value of N and the corner. The horizontal scale is logarithmic. Hits are marked with a
vertical scale are displayed in the top left corner. The horizontal pipe character ("|"), and misses are marked with a hash character ("#").
scale is logarithmic. Hits are marked with a pipe character ("|"),
and misses are marked with a hash character ("#").
varnishstat varnishstat
~~~~~~~~~~~ ~~~~~~~~~~~
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment