<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Hank Beaver &#187; check</title>
	<atom:link href="http://www.hankbeaver.com/index.php/tag/check/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hankbeaver.com</link>
	<description>Ruby, open-source, Internet technologist located in Atlanta, GA, USA</description>
	<lastBuildDate>Tue, 29 Jun 2010 05:34:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Testing Varnish VCL Syntax</title>
		<link>http://www.hankbeaver.com/index.php/2009/11/02/testing-varnish-vcl-syntax/</link>
		<comments>http://www.hankbeaver.com/index.php/2009/11/02/testing-varnish-vcl-syntax/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 18:15:00 +0000</pubDate>
		<dc:creator>hbeaver</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[check]]></category>
		<category><![CDATA[syntax]]></category>
		<category><![CDATA[validate]]></category>
		<category><![CDATA[varnish]]></category>
		<category><![CDATA[vcl]]></category>

		<guid isPermaLink="false">http://www.hankbeaver.com/?p=120</guid>
		<description><![CDATA[The simplest way to test syntax is to use the administration console via telnet on a Dev/QA Varnish machine. Your current running Varnish should allow your IP/localhost to connect if you have implemented a Varnish ACL.

Start up Varnish with single command-line
Login to console via telnet
Load the config you wish to test
Use the config.

On OSX:

sudo /usr/local/sbin/varnishd [...]]]></description>
			<content:encoded><![CDATA[<p>The simplest way to test syntax is to use the administration console via telnet on a Dev/QA Varnish machine. Your current running Varnish should allow your IP/localhost to connect if you have implemented a Varnish ACL.</p>
<ul>
<li>Start up Varnish with single command-line</li>
<li>Login to console via telnet</li>
<li>Load the config you wish to test</li>
<li>Use the config.</li>
</ul>
<p>On OSX:</p>
<pre>
sudo /usr/local/sbin/varnishd -F  -a localhost:3000 -b localhost:6081 -T localhost:6082
</pre>
<p>From another console/shell/ open connection to Varnish management console:</p>
<pre>
telnet localhost 6082
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
</pre>
<p>Load config and try to use (the config used in this example has a syntax problem. Therefore, you will see compilation errors:</p>
<pre>
vcl.load error /Users/hbeaver/code/varnish_demo/config/syntax_error.vcl
106 181
Message from VCC-compiler:
Expected one of
	'acl', 'sub', 'backend',  or 'director'
Found: '}' at
(input Line 12 Pos 1)
}
#
Running VCC-compiler failed, exit 1VCL compilation failed
</pre>
<p>Conversely, if the VCL has good syntax you should see no errors:</p>
<pre>
vcl.load good_config /Users/hbeaver/code/varnish_demo/config/default.vcl
200 13
VCL compiled.
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.hankbeaver.com/index.php/2009/11/02/testing-varnish-vcl-syntax/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
