<div dir="ltr">I have just modified the nginx conf file and restarted nginx to filter all /favicon.ico request.<div><div>worker_processes &nbsp;1;</div><div>pid &nbsp; &nbsp; &nbsp; &nbsp;/www/logs/nginx.pid;</div><div>events {</div><div>&nbsp;&nbsp; &nbsp;worker_connections &nbsp;1024;</div>
<div>}</div><div>http {</div><div>&nbsp;&nbsp; &nbsp;server {</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;listen &nbsp; &nbsp; &nbsp; 80;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;server_name &nbsp;localhost;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;#access_log &nbsp;/www/logs/loc.access.log;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;location / {</div><div>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;default_type text/html;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;set $memcached_key $uri;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;memcached_pass localhost:11211;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div><div><br></div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;location /favicon.ico {</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; root /www/loc/public/images;</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div><div><br></div><div><br></div><div>&nbsp;&nbsp; &nbsp;}</div><div>}</div><div><br></div><div>But the quotation mark didn&#39;t go away.</div><div><br></div><br><div class="gmail_quote">On Wed, Jul 30, 2008 at 10:58 PM, NanYang Zhan <span dir="ltr">&lt;<a href="mailto:superxain@gmail.com">superxain@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div dir="ltr">I started memcached with &quot;memcached -vv&quot;, I saw no cache content being shown:<div><br></div><div>
<div>memcached -vv</div><div>slab class &nbsp; 1: chunk size &nbsp; &nbsp; 88 perslab 11915</div><div>...</div><div>
<div>slab class &nbsp;39: chunk size 489032 perslab &nbsp; &nbsp; 2<br></div></div><div>&lt;6 server listening</div><div>&lt;7 send buffer was 105472, now 268435456</div><div>&lt;7 server listening (udp)</div><div>&lt;8 new client connection</div>

<div>&lt;8 get /test</div><div>&gt;8 END</div><div>&lt;8 connection closed.</div><div>&lt;8 new client connection</div><div>&lt;8 get /favicon.ico</div><div>&gt;8 END</div><div>&lt;8 connection closed.</div><div>&lt;8 new client connection</div>

<div>&lt;8 set /test 0 0 9</div><div>&gt;8 STORED</div><div>&lt;9 new client connection</div><div>&lt;9 get /test</div><div>&gt;9 sending key /test</div><div>&gt;9 END</div><div>&lt;9 connection closed.</div><div><br></div>

<div>But I noticed an interesting thing: &#39;/favicon.ico&#39; was requested now and then. Do you think it may cause the problem?</div><div><div></div><div class="Wj3C7c"><div><br></div><div class="gmail_quote">On Wed, Jul 30, 2008 at 10:11 PM, jeff emminger <span dir="ltr">&lt;<a href="mailto:jemminger@gmail.com" target="_blank">jemminger@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">if you run memcached in verbose mode &quot;memcached -vv&quot; does it display<br>
the quote upon retrieving the key?<br>
<div><div></div><div><br>
<br>
On Wed, Jul 30, 2008 at 8:58 AM, zhan &lt;<a href="mailto:superxain@gmail.com" target="_blank">superxain@gmail.com</a>&gt; wrote:<br>
&gt; When I tried to use nginx and memcached &nbsp;module,<br>
&gt; the output always had a odd quotation mark<br>
&gt; before the cached content.<br>
&gt;<br>
&gt; I have tried nginx/0.6.32 and nginx 0.5.34<br>
&gt; I used:<br>
&gt; ruby 1.8.7 (2008-06-20 patchlevel 22) [i686-linux] and<br>
&gt; ruby 1.8.7 (2008-06-20 patchlevel 22) [i686-darwin9]<br>
&gt; with<br>
&gt; memcached 1.2.5<br>
&gt; libmemcached 0.22<br>
&gt; memcached gem 0.11<br>
&gt; or<br>
&gt; memcached-client 1.5.0<br>
&gt;<br>
&gt; here is my nginx conf file:<br>
&gt; worker_processes &nbsp;1;<br>
&gt; pid &nbsp; &nbsp; &nbsp; &nbsp;/www/logs/nginx.pid;<br>
&gt; events {<br>
&gt; &nbsp; &nbsp;worker_connections &nbsp;1024;<br>
&gt; }<br>
&gt; http {<br>
&gt; &nbsp; &nbsp;server {<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;listen &nbsp; &nbsp; &nbsp; 80;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;server_name &nbsp;localhost;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;location / {<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;default_type text/html;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;set $memcached_key $uri;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;memcached_pass localhost:11211;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;}<br>
&gt; &nbsp; &nbsp;}<br>
&gt; }<br>
&gt;<br>
&gt; after I setup a cache:<br>
&gt; irb(main):002:0&gt; require &#39;memcached&#39;<br>
&gt; =&gt; true<br>
&gt; irb(main):003:0&gt; c = Memcached.new(&#39;localhost:11211&#39;)<br>
&gt; #...<br>
&gt; irb(main):006:0&gt; c.set &#39;/test&#39;, &#39;hello&#39;<br>
&gt;<br>
&gt; when I opened <a href="http://127.0.0.1/test" target="_blank">127.0.0.1/test</a> with safari 3.0 or<br>
&gt; Firefox 3, I didn&#39;t get<br>
&gt; hello<br>
&gt; but:<br>
&gt; &nbsp;&quot; hello<br>
&gt;<br>
&gt; I get no idea where the Quotation mark coming from!!!!!<br>
&gt; Can anyone tell me how to fix it?<br>
&gt;<br>
&gt;<br>
&gt;<br>
<br>
</div></div></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div></div>