<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6722551504273460646</id><updated>2011-09-17T10:31:17.936-07:00</updated><title type='text'>Nginx Maillist</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default?start-index=101&amp;max-results=100'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10924</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-5793718931790974178</id><published>2011-03-20T02:17:00.000-07:00</published><updated>2011-03-20T02:18:36.579-07:00</updated><title type='text'>Re: 504 error Gateway Timeout.</title><content type='html'>Fine. But please note, this is only part of configuration. There are &lt;br&gt;some files regarding to directive:&lt;br&gt;/etc/nginx/vhosts/*&lt;p&gt;Please include them also.&lt;p&gt;-- &lt;br&gt;Regards, Vitaly Tskhovrebov&lt;br&gt;System Administrator&lt;br&gt;U.S. +1 (206) 905-9939&lt;br&gt;Russia +7 911 094-2035&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-5793718931790974178?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/5793718931790974178/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-504-error-gateway-timeout_1170.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/5793718931790974178'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/5793718931790974178'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-504-error-gateway-timeout_1170.html' title='Re: 504 error Gateway Timeout.'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-8411897995193054661</id><published>2011-03-20T02:09:00.000-07:00</published><updated>2011-03-20T02:10:13.997-07:00</updated><title type='text'>Re: 504 error Gateway Timeout.</title><content type='html'>maybe is apache or php close the connection, for example exceed php max&lt;br&gt;file upload size or php max running time.&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,183412,184120#msg-184120"&gt;http://forum.nginx.org/read.php?2,183412,184120#msg-184120&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-8411897995193054661?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/8411897995193054661/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-504-error-gateway-timeout_3294.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/8411897995193054661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/8411897995193054661'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-504-error-gateway-timeout_3294.html' title='Re: 504 error Gateway Timeout.'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-8537295266487042154</id><published>2011-03-20T01:16:00.000-07:00</published><updated>2011-03-20T01:17:34.232-07:00</updated><title type='text'>Re: 504 error Gateway Timeout.</title><content type='html'>&amp;gt; http {&lt;p&gt; proxy_read_timeout 600;&lt;br&gt; proxy_send_timeout 600;&lt;p&gt;&amp;gt; &amp;#160;server_name_in_redirect off;&lt;br&gt;&amp;gt; &amp;#160;server_names_hash_max_size 2048;&lt;br&gt;&amp;gt; &amp;#160;server_names_hash_bucket_size 256;&lt;p&gt;&lt;br&gt;I added the above proxy read and proxy send lines.  I had just&lt;br&gt;reinstalled this morning after doing some testing and accidentally&lt;br&gt;sent you the file without those added.&lt;p&gt;Thanks,&lt;p&gt;Jamie&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-8537295266487042154?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/8537295266487042154/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-504-error-gateway-timeout_20.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/8537295266487042154'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/8537295266487042154'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-504-error-gateway-timeout_20.html' title='Re: 504 error Gateway Timeout.'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-7930882890205965575</id><published>2011-03-19T21:20:00.000-07:00</published><updated>2011-03-19T21:22:35.620-07:00</updated><title type='text'>Re: Status 401 Behaviour Issue</title><content type='html'>&amp;gt; Hi there,&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; &amp;gt; I noticed a certain behaviour of the 401 status&lt;br&gt;&amp;gt; code response I will like to change.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; &amp;gt; With Nginx however, if I define an html page&lt;br&gt;&amp;gt; error_page for 401, this gets served every time a&lt;br&gt;&amp;gt; user requests the protected directory and there is&lt;br&gt;&amp;gt; no opportunity to fill in the authentication&lt;br&gt;&amp;gt; details.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; That sounds odd to me.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; What *should* happen is the web server returns&lt;br&gt;&amp;gt; http 401 with some body&lt;br&gt;&amp;gt; content; the web browser chooses whether to&lt;br&gt;&amp;gt; display that body content,&lt;br&gt;&amp;gt; or to request authentication credentials, as it&lt;br&gt;&amp;gt; sees fit.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; What is your error_page config?&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; Quick testing here shows that&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt;   error_page 401 /401.html;&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; returns the right content with the right status,&lt;br&gt;&amp;gt; as I would expect.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt;   error_page 401 = /401.html;&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; returns the right content, but with a http 200&lt;br&gt;&amp;gt; status, which sounds like&lt;br&gt;&amp;gt; it matches what you are seeing.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; As per&lt;br&gt;&amp;gt; &lt;a href="http://wiki.nginx.org/HttpCoreModule#error_page"&gt;http://wiki.nginx.org/HttpCoreModule#error_page&lt;/a&gt;,&lt;br&gt;&amp;gt; adding the&lt;br&gt;&amp;gt; &amp;quot;=&amp;quot; means &amp;quot;handle this (sub)request, and change&lt;br&gt;&amp;gt; the return status to&lt;br&gt;&amp;gt; whatever it generates instead of what we started&lt;br&gt;&amp;gt; with&amp;quot;. For 401, you&lt;br&gt;&amp;gt; probably don&amp;#39;t want that.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; &amp;gt; Is it possible to set it up such that it behaves&lt;br&gt;&amp;gt; like Apache does? I.E. only return the html&lt;br&gt;&amp;gt; error_page if the authentication fails? This seems&lt;br&gt;&amp;gt; like a better implementation to me.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; Leave out the &amp;quot;=&amp;quot;?&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; &amp;gt; Running 0.8.54&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; I tested with 0.9.4, but I don&amp;#39;t see any obvious&lt;br&gt;&amp;gt; code fixes that would&lt;br&gt;&amp;gt; have changed this.&lt;p&gt;Hi. Thanks for that.&lt;p&gt;Yep, the second config was what was causing it for me.  It didn&amp;#39;t&lt;br&gt;&amp;quot;matter&amp;quot; with the other codes as there is no further processing to be&lt;br&gt;done and users saw the right pages for the circumstances. Does also&lt;br&gt;explain why my caching config for error pages did no quite work&lt;br&gt;properly.&lt;p&gt;In summary, after rereading the docs properly&lt;p&gt;1. &amp;quot;error_page code url&amp;quot; means return &amp;quot;code&amp;quot; and show &amp;quot;url&amp;quot;&lt;br&gt;2. &amp;quot;error_page code =anycode url&amp;quot; means return &amp;quot;anycode&amp;quot; and show &amp;quot;url&amp;quot;&lt;br&gt;3. &amp;quot;error_page code = url&amp;quot; means redirect to this url whenever &amp;quot;code&amp;quot; is&lt;br&gt;encountered. A &amp;quot;200 OK&amp;quot; response is returned if &amp;quot;url&amp;quot; is found.&lt;p&gt;Thanks again for helping me get to understand this better&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,184007,184098#msg-184098"&gt;http://forum.nginx.org/read.php?2,184007,184098#msg-184098&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-7930882890205965575?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/7930882890205965575/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-status-401-behaviour-issue_9301.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/7930882890205965575'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/7930882890205965575'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-status-401-behaviour-issue_9301.html' title='Re: Status 401 Behaviour Issue'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-8758002109180462024</id><published>2011-03-19T19:07:00.000-07:00</published><updated>2011-03-19T19:08:39.595-07:00</updated><title type='text'>Re: Status 401 Behaviour Issue</title><content type='html'>On Sat, Mar 19, 2011 at 03:03:11PM -0400, Dayo wrote:&lt;p&gt;Hi there,&lt;p&gt;&amp;gt; I noticed a certain behaviour of the 401 status code response I will like to change.&lt;p&gt;&amp;gt; With Nginx however, if I define an html page error_page for 401, this gets served every time a user requests the protected directory and there is no opportunity to fill in the authentication details.&lt;p&gt;That sounds odd to me.&lt;p&gt;What *should* happen is the web server returns http 401 with some body&lt;br&gt;content; the web browser chooses whether to display that body content,&lt;br&gt;or to request authentication credentials, as it sees fit.&lt;p&gt;What is your error_page config?&lt;p&gt;Quick testing here shows that&lt;p&gt;  error_page 401 /401.html;&lt;p&gt;returns the right content with the right status, as I would expect.&lt;p&gt;  error_page 401 = /401.html;&lt;p&gt;returns the right content, but with a http 200 status, which sounds like&lt;br&gt;it matches what you are seeing.&lt;p&gt;As per &lt;a href="http://wiki.nginx.org/HttpCoreModule#error_page"&gt;http://wiki.nginx.org/HttpCoreModule#error_page&lt;/a&gt;, adding the&lt;br&gt;&amp;quot;=&amp;quot; means &amp;quot;handle this (sub)request, and change the return status to&lt;br&gt;whatever it generates instead of what we started with&amp;quot;. For 401, you&lt;br&gt;probably don&amp;#39;t want that.&lt;p&gt;&amp;gt; Is it possible to set it up such that it behaves like Apache does? I.E. only return the html error_page if the authentication fails? This seems like a better implementation to me.&lt;p&gt;Leave out the &amp;quot;=&amp;quot;?&lt;p&gt;&amp;gt; Running 0.8.54&lt;p&gt;I tested with 0.9.4, but I don&amp;#39;t see any obvious code fixes that would&lt;br&gt;have changed this.&lt;p&gt;All the best,&lt;p&gt;	f&lt;br&gt;-- &lt;br&gt;Francis Daly        &lt;a href="mailto:francis@daoine.org"&gt;francis@daoine.org&lt;/a&gt;&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-8758002109180462024?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/8758002109180462024/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-status-401-behaviour-issue_6522.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/8758002109180462024'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/8758002109180462024'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-status-401-behaviour-issue_6522.html' title='Re: Status 401 Behaviour Issue'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-4536961217170201473</id><published>2011-03-19T16:34:00.000-07:00</published><updated>2011-03-19T16:35:27.210-07:00</updated><title type='text'>Re: 100% CPU Usage (on all 8 cores)</title><content type='html'>Nevermind...  I have sorted this issue out and will post the resolution&lt;br&gt;when I confirm its not crashing my server anymore.&lt;p&gt;Thank you very much for replying :)&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,183858,184052#msg-184052"&gt;http://forum.nginx.org/read.php?2,183858,184052#msg-184052&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-4536961217170201473?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/4536961217170201473/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-100-cpu-usage-on-all-8-cores_856.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/4536961217170201473'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/4536961217170201473'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-100-cpu-usage-on-all-8-cores_856.html' title='Re: 100% CPU Usage (on all 8 cores)'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-1062748345254988200</id><published>2011-03-19T16:13:00.000-07:00</published><updated>2011-03-19T16:14:25.926-07:00</updated><title type='text'>nginx reverse proxy must understand lighttpd rewrite rules</title><content type='html'>Hi,&lt;p&gt;Server 1: got lighttpd with rewrite rules (lighttpd rewrite rules)&lt;br&gt;Server 2: got reverse proxy (no rewrite rules)&lt;p&gt;When on server 2 as proxy serving lighttpd i dont have any rules in its&lt;br&gt;config and it still understand what server 1 sending and serving as it&lt;br&gt;would have rewrite rules.&lt;p&gt;Problem arise when i switch on Server 2 lighttpd to nginx. Nginx serving&lt;br&gt;pages but doing 404 for rewrite pages received from Server 1.  &lt;br&gt;Do i must convert rewrite rules from lighttpd on Server 1 and place it&lt;br&gt;in Server 2 nginx configuration to make nginx understand rewrites?&lt;p&gt;Or problem is somewhere else.&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,184048,184048#msg-184048"&gt;http://forum.nginx.org/read.php?2,184048,184048#msg-184048&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-1062748345254988200?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/1062748345254988200/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/nginx-reverse-proxy-must-understand.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/1062748345254988200'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/1062748345254988200'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/nginx-reverse-proxy-must-understand.html' title='nginx reverse proxy must understand lighttpd rewrite rules'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-3734474064075951628</id><published>2011-03-19T13:51:00.001-07:00</published><updated>2011-03-19T13:51:33.378-07:00</updated><title type='text'>Re: 100% CPU Usage (on all 8 cores)</title><content type='html'>On 3/19/11 3:18 PM, kthxbai2u wrote:&lt;br&gt;&amp;gt; I have done some more debugging, and it appears the issue is with the VHosts... As soon as I comment out  this line:&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; include &amp;quot;/etc/nginx/vhosts/*&amp;quot;;&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; and restart nginx, htop reports normal usage. CPU + Mem all fine.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; I think I am going to poke around a bit more, but it seems there is a problem with the way NginX converts apache VirtualHosts to NginX VirtualHosts.&lt;p&gt;This is an interesting feature that I have never used. Can you explain&lt;br&gt;how nginx does this &amp;quot;conversion&amp;quot;. Most of write our own configuration&lt;br&gt;files. Are you using a commercial prodict?&lt;p&gt;&amp;gt; &lt;br&gt;&amp;gt; Oh another thing, the errors that should be ignorable are actually not ignorable... They all dissappeared. My guess is that someone went around telling people they can ignore errors like this:&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; nginx: [warn] conflicting server name &amp;quot;79.142.67.113&amp;quot; on &lt;a href="http://79.142.67.113:80"&gt;79.142.67.113:80&lt;/a&gt;, ignored&lt;br&gt;&amp;gt; nginx: [warn] conflicting server name &amp;quot;79.142.67.113&amp;quot; on &lt;a href="http://79.142.67.113:80"&gt;79.142.67.113:80&lt;/a&gt;, ignored&lt;br&gt;&amp;gt; nginx: [warn] conflicting server name &amp;quot;79.142.67.113&amp;quot; on &lt;a href="http://79.142.67.113:80"&gt;79.142.67.113:80&lt;/a&gt;, ignored&lt;br&gt;&amp;gt; nginx: [warn] conflicting server name &amp;quot;79.142.67.113&amp;quot; on &lt;a href="http://79.142.67.113:80"&gt;79.142.67.113:80&lt;/a&gt;, ignored&lt;br&gt;&amp;gt; nginx: [warn] conflicting server name &amp;quot;79.142.67.113&amp;quot; on &lt;a href="http://79.142.67.113:80"&gt;79.142.67.113:80&lt;/a&gt;, ignored&lt;br&gt;&amp;gt; nginx: [warn] conflicting server name &amp;quot;79.142.67.113&amp;quot; on &lt;a href="http://79.142.67.113:80"&gt;79.142.67.113:80&lt;/a&gt;, ignored&lt;br&gt;&amp;gt; nginx: [warn] conflicting server name &amp;quot;79.142.67.113&amp;quot; on &lt;a href="http://79.142.67.113:80"&gt;79.142.67.113:80&lt;/a&gt;, ignored&lt;p&gt;This means nginx is ignoring your conflicting server names and not&lt;br&gt;incorporating them at run time. This is your clue.&lt;p&gt;&amp;gt; nginx: [emerg] bind() to &lt;a href="http://79.142.67.110:80"&gt;79.142.67.110:80&lt;/a&gt; failed (98: Address already in use)&lt;br&gt;&amp;gt; nginx: [emerg] bind() to &lt;a href="http://79.142.67.113:80"&gt;79.142.67.113:80&lt;/a&gt; failed (98: Address already in use)&lt;br&gt;&amp;gt; nginx: [emerg] bind() to &lt;a href="http://79.142.67.112:80"&gt;79.142.67.112:80&lt;/a&gt; failed (98: Address already in use)&lt;br&gt;&amp;gt; nginx: [emerg] bind() to &lt;a href="http://79.142.67.110:80"&gt;79.142.67.110:80&lt;/a&gt; failed (98: Address already in use)&lt;br&gt;&amp;gt; nginx: [emerg] bind() to &lt;a href="http://79.142.67.113:80"&gt;79.142.67.113:80&lt;/a&gt; failed (98: Address already in use)&lt;br&gt;&amp;gt; nginx: [emerg] bind() to &lt;a href="http://79.142.67.112:80"&gt;79.142.67.112:80&lt;/a&gt; failed (98: Address already in use)&lt;br&gt;&amp;gt; nginx: [emerg] bind() to &lt;a href="http://79.142.67.110:80"&gt;79.142.67.110:80&lt;/a&gt; failed (98: Address already in use)&lt;p&gt;&lt;br&gt;Please run lsof -i :80 | grep -v nginx&lt;p&gt;This should tell you what other processes are bound to port 80.&lt;p&gt;&amp;gt; &lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; Those errors can NOT be ignored, according to my findings... Oh and by the way thats only half the errors, but they all seem to be the same or similair to those ones.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; Is there any 3rd party tool to convert Apache VHosts to NginX Vhosts? I am googling as we speak :)&lt;p&gt;Again, I think you are using one. Or believe that you are.&lt;p&gt;&amp;gt; &lt;br&gt;&amp;gt; Thanks for your help, it seems you may have nudged me in the right direction :)&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,183858,184011#msg-184011"&gt;http://forum.nginx.org/read.php?2,183858,184011#msg-184011&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; _______________________________________________&lt;br&gt;&amp;gt; nginx mailing list&lt;br&gt;&amp;gt; &lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;p&gt;&lt;br&gt;-- &lt;br&gt;Jim Ohlstein&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-3734474064075951628?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/3734474064075951628/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-100-cpu-usage-on-all-8-cores_5497.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/3734474064075951628'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/3734474064075951628'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-100-cpu-usage-on-all-8-cores_5497.html' title='Re: 100% CPU Usage (on all 8 cores)'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-2622528419921473067</id><published>2011-03-19T13:46:00.001-07:00</published><updated>2011-03-19T13:46:42.388-07:00</updated><title type='text'>Re: 100% CPU Usage (on all 8 cores)</title><content type='html'>On Sat, 19 Mar 2011, kthxbai2u wrote:&lt;p&gt;&amp;gt; Oh another thing, the errors that should be ignorable are actually not &lt;br&gt;&amp;gt; ignorable... They all dissappeared. My guess is that someone went around &lt;br&gt;&amp;gt; telling people they can ignore errors like this:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; nginx: [warn] conflicting server name &amp;quot;79.142.67.113&amp;quot; on &lt;a href="http://79.142.67.113:80"&gt;79.142.67.113:80&lt;/a&gt;, ignored&lt;br&gt;&amp;gt; nginx: [warn] conflicting server name &amp;quot;79.142.67.113&amp;quot; on &lt;a href="http://79.142.67.113:80"&gt;79.142.67.113:80&lt;/a&gt;, ignored&lt;br&gt;You are drawing the wrong conclusion here.&lt;p&gt;It is nginx telling yout that nginx is ignoring the conflicting server &lt;br&gt;names and continuing.&lt;p&gt;Grep for your server names in your generated config files that is where &lt;br&gt;you should start to figure out what went wrong in the conversion.&lt;p&gt; 	/Chris&lt;p&gt;--&lt;br&gt;&lt;a href="http://www.arnold.se/chris/"&gt;http://www.arnold.se/chris/&lt;/a&gt;&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-2622528419921473067?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/2622528419921473067/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-100-cpu-usage-on-all-8-cores_875.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/2622528419921473067'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/2622528419921473067'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-100-cpu-usage-on-all-8-cores_875.html' title='Re: 100% CPU Usage (on all 8 cores)'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-802211256896504587</id><published>2011-03-19T13:35:00.000-07:00</published><updated>2011-03-19T13:36:41.895-07:00</updated><title type='text'>Re: 100% CPU Usage (on all 8 cores)</title><content type='html'>On 3/19/11 2:28 PM, kthxbai2u wrote:&lt;p&gt;This is too rich for me to not take a stab.&lt;p&gt;&amp;gt;&amp;gt; &amp;lt;sarcasm&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; Congratulations&lt;br&gt;&amp;gt;&amp;gt; It&amp;#39;s really difficult to get 100% efficiency for&lt;br&gt;&amp;gt;&amp;gt; modern code - this is &lt;br&gt;&amp;gt;&amp;gt; truly scalable&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;/sarcasm&amp;gt;&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; Sorry not sure what you mean here...&lt;p&gt;Google &amp;quot;sarcasm&amp;quot;&lt;p&gt; But the whole deal was that nginx is BETTER than apache, not worse. You&lt;br&gt;ework for nginx,&lt;p&gt;I&amp;#39;m guessing you think he &amp;quot;works&amp;quot; for nginx. Bad ASSumption. nginx is&lt;br&gt;FOSS. Google &amp;quot;FOSS&amp;quot; if you don&amp;#39;t know what that means.&lt;p&gt;&amp;gt; I thought you would know that? With apache, the server load is normal, but the server responds slow (20 sec. pg loads).&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; As soon as i put nginx in, server load is 100%. It responds lightning fast (&amp;lt; 5 seconds), but after a while it crashes and I need to reboot.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; I know this is not the way nginx performs. There is something wrong with it, or the config. Whole deal is, this was supposedly a script to install and get nginx working, and as it seems, 60% of users with multiple IP&amp;#39;s and a shared host are reporting issues like mine. (not able to bind, etc)&lt;br&gt;&amp;gt;  &lt;br&gt;&amp;gt;&amp;gt; The server went offline and needed a reboot not&lt;br&gt;&amp;gt;&amp;gt; because a userland &lt;br&gt;&amp;gt;&amp;gt; application misbehaved, but there is a problem at&lt;br&gt;&amp;gt;&amp;gt; the kernel level which &lt;br&gt;&amp;gt;&amp;gt; isn&amp;#39;t normally exposed.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; Your blaming this on CentOS? CentOS works fine. Always has.&lt;br&gt;&amp;gt;  &lt;br&gt;&amp;gt;&amp;gt; Why not debug the httpd.conf and or post more&lt;br&gt;&amp;gt;&amp;gt; meaningful details - Like &lt;br&gt;&amp;gt;&amp;gt; a pastie of the config or some way for others to&lt;br&gt;&amp;gt;&amp;gt; reproduce it?  I can&amp;#39;t &lt;br&gt;&amp;gt;&amp;gt; help directly, but I hope this helps get you on&lt;br&gt;&amp;gt;&amp;gt; track to get help..&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; If nginx had told me there were errors in the config, maybe I would debug it. Because it says each error (ignored) and NginX staff have told others they can ignore it, shouldn&amp;#39;t I ignore those errors? Which config would you like to see? The 30+ vhost files that nginx made? or the httpd.conf from apache? Either way it is kind of an insane request to have such private, sensitive configuration data posted for the whole WWW to see....&lt;br&gt;&amp;gt; &lt;p&gt;How is he to help you without the information? You can conceal sensitive&lt;br&gt;information if need be.&lt;p&gt;&amp;gt; Especially asking a webhost to do so... &lt;p&gt;Do you think that you&amp;#39;re the only &amp;quot;webhost&amp;quot; to try to get help here?&lt;p&gt;&amp;gt; If you want this kind of information, I could email it to you, or I can get you access to the server. The forum really should have a PM system, which would save me having to email you, but of course it doesnt :)&lt;p&gt;&amp;quot;This forum&amp;quot; (of which I just happen to be the webmaster) is merely a&lt;br&gt;gateway to a mailing list. Please look carefully at the name of the&lt;br&gt;specific forum in which you are posting and its description. You will&lt;br&gt;see that it is &amp;quot;Nginx Mailing List - English  A portal to and from from&lt;br&gt;the mailing list.&amp;quot;. Most mailing list users do not use the forum and&lt;br&gt;vice versa. A PM system to the person who *tried* to help you would have&lt;br&gt;been rejected for that very reason. This is why I *intentionally* turned&lt;br&gt;off the PM system.&lt;p&gt;&amp;gt; &lt;br&gt;&amp;gt; NginX worked before, it should work again...&lt;p&gt;It does work. The problem is with your configuration. That&amp;#39;s why you&lt;br&gt;were asked to post it.&lt;p&gt;&amp;gt; &lt;br&gt;&amp;gt; Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,183858,183994#msg-183994"&gt;http://forum.nginx.org/read.php?2,183858,183994#msg-183994&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; _______________________________________________&lt;br&gt;&amp;gt; nginx mailing list&lt;br&gt;&amp;gt; &lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;p&gt;&lt;br&gt;-- &lt;br&gt;Jim Ohlstein&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-802211256896504587?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/802211256896504587/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-100-cpu-usage-on-all-8-cores_2881.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/802211256896504587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/802211256896504587'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-100-cpu-usage-on-all-8-cores_2881.html' title='Re: 100% CPU Usage (on all 8 cores)'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-3308121253570720549</id><published>2011-03-19T13:07:00.001-07:00</published><updated>2011-03-19T13:07:51.090-07:00</updated><title type='text'>Re: active connection counter always increased (nginx 0.8.54)</title><content type='html'>i have 4 nginx and the same configuration use lvs dr load balance, two of them have this problem:&lt;br&gt;Active connections: 4476 &lt;br&gt;server accepts handled requests&lt;br&gt; 27097803 27097803 27064329 &lt;br&gt;Reading: 1959 Writing: 2517 Waiting: 0 &lt;br&gt;# netstat -an | wc -l&lt;br&gt;459&lt;p&gt;and the normal server:&lt;br&gt;Active connections: 8 &lt;br&gt;server accepts handled requests&lt;br&gt; 58386943 58386943 58312509 &lt;br&gt;Reading: 2 Writing: 6 Waiting: 0&lt;br&gt;# netstat -an | wc -l&lt;br&gt;1104&lt;p&gt;These two error server have the same kernel version:&lt;br&gt;Linux &lt;a href="http://abc.com"&gt;abc.com&lt;/a&gt; 2.6.9-78.ELsmp #1 SMP Wed Jul 9 15:46:26 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux&lt;p&gt;I do not know where it went wrong.&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,182264,184016#msg-184016"&gt;http://forum.nginx.org/read.php?2,182264,184016#msg-184016&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-3308121253570720549?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/3308121253570720549/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-active-connection-counter-always_19.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/3308121253570720549'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/3308121253570720549'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-active-connection-counter-always_19.html' title='Re: active connection counter always increased (nginx 0.8.54)'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-3067074000142719032</id><published>2011-03-19T12:57:00.000-07:00</published><updated>2011-03-19T12:58:16.034-07:00</updated><title type='text'>Re: Status 401 Behaviour Issue</title><content type='html'>&amp;gt; Do u mean a 403?&lt;br&gt;No, 401 as written.&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,184007,184015#msg-184015"&gt;http://forum.nginx.org/read.php?2,184007,184015#msg-184015&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-3067074000142719032?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/3067074000142719032/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-status-401-behaviour-issue_19.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/3067074000142719032'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/3067074000142719032'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-status-401-behaviour-issue_19.html' title='Re: Status 401 Behaviour Issue'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-4526670603963699966</id><published>2011-03-19T12:31:00.001-07:00</published><updated>2011-03-19T12:31:46.860-07:00</updated><title type='text'>Re: Status 401 Behaviour Issue</title><content type='html'>Do u mean a 403?&lt;p&gt;On 3/19/11, Dayo &amp;lt;&lt;a href="mailto:nginx-forum@nginx.us"&gt;nginx-forum@nginx.us&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; Hi all.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; I noticed a certain behaviour of the 401 status code response I will like to&lt;br&gt;&amp;gt; change.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Firstly, in Apache, there is an html page for 401 that is defined in the&lt;br&gt;&amp;gt; error_page equivalent. When the request for a protected directory comes in,&lt;br&gt;&amp;gt; the user gets the form for the authentication and only if the authentication&lt;br&gt;&amp;gt; fails is that html page served.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; With Nginx however, if I define an html page error_page for 401, this gets&lt;br&gt;&amp;gt; served every time a user requests the protected directory and there is no&lt;br&gt;&amp;gt; opportunity to fill in the authentication details.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Is it possible to set it up such that it behaves like Apache does? I.E. only&lt;br&gt;&amp;gt; return the html error_page if the authentication fails? This seems like a&lt;br&gt;&amp;gt; better implementation to me.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Running 0.8.54&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Thanks&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Posted at Nginx Forum:&lt;br&gt;&amp;gt; &lt;a href="http://forum.nginx.org/read.php?2,184007,184007#msg-184007"&gt;http://forum.nginx.org/read.php?2,184007,184007#msg-184007&lt;/a&gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; _______________________________________________&lt;br&gt;&amp;gt; nginx mailing list&lt;br&gt;&amp;gt; &lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;br&gt;&amp;gt;&lt;p&gt;-- &lt;br&gt;Sent from my mobile device&lt;p&gt;Payam Tarverdyan Chychi&lt;br&gt;Network Security Specialist / Network Engineer&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-4526670603963699966?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/4526670603963699966/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-status-401-behaviour-issue.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/4526670603963699966'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/4526670603963699966'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-status-401-behaviour-issue.html' title='Re: Status 401 Behaviour Issue'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-3614655645811764967</id><published>2011-03-19T12:18:00.000-07:00</published><updated>2011-03-19T12:19:14.785-07:00</updated><title type='text'>Re: 100% CPU Usage (on all 8 cores)</title><content type='html'>I have done some more debugging, and it appears the issue is with the VHosts... As soon as I comment out  this line:&lt;p&gt;include &amp;quot;/etc/nginx/vhosts/*&amp;quot;;&lt;p&gt;and restart nginx, htop reports normal usage. CPU + Mem all fine.&lt;p&gt;I think I am going to poke around a bit more, but it seems there is a problem with the way NginX converts apache VirtualHosts to NginX VirtualHosts.&lt;p&gt;Oh another thing, the errors that should be ignorable are actually not ignorable... They all dissappeared. My guess is that someone went around telling people they can ignore errors like this:&lt;p&gt;nginx: [warn] conflicting server name &amp;quot;79.142.67.113&amp;quot; on &lt;a href="http://79.142.67.113:80"&gt;79.142.67.113:80&lt;/a&gt;, ignored&lt;br&gt;nginx: [warn] conflicting server name &amp;quot;79.142.67.113&amp;quot; on &lt;a href="http://79.142.67.113:80"&gt;79.142.67.113:80&lt;/a&gt;, ignored&lt;br&gt;nginx: [warn] conflicting server name &amp;quot;79.142.67.113&amp;quot; on &lt;a href="http://79.142.67.113:80"&gt;79.142.67.113:80&lt;/a&gt;, ignored&lt;br&gt;nginx: [warn] conflicting server name &amp;quot;79.142.67.113&amp;quot; on &lt;a href="http://79.142.67.113:80"&gt;79.142.67.113:80&lt;/a&gt;, ignored&lt;br&gt;nginx: [warn] conflicting server name &amp;quot;79.142.67.113&amp;quot; on &lt;a href="http://79.142.67.113:80"&gt;79.142.67.113:80&lt;/a&gt;, ignored&lt;br&gt;nginx: [warn] conflicting server name &amp;quot;79.142.67.113&amp;quot; on &lt;a href="http://79.142.67.113:80"&gt;79.142.67.113:80&lt;/a&gt;, ignored&lt;br&gt;nginx: [warn] conflicting server name &amp;quot;79.142.67.113&amp;quot; on &lt;a href="http://79.142.67.113:80"&gt;79.142.67.113:80&lt;/a&gt;, ignored&lt;br&gt;nginx: [emerg] bind() to &lt;a href="http://79.142.67.110:80"&gt;79.142.67.110:80&lt;/a&gt; failed (98: Address already in use)&lt;br&gt;nginx: [emerg] bind() to &lt;a href="http://79.142.67.113:80"&gt;79.142.67.113:80&lt;/a&gt; failed (98: Address already in use)&lt;br&gt;nginx: [emerg] bind() to &lt;a href="http://79.142.67.112:80"&gt;79.142.67.112:80&lt;/a&gt; failed (98: Address already in use)&lt;br&gt;nginx: [emerg] bind() to &lt;a href="http://79.142.67.110:80"&gt;79.142.67.110:80&lt;/a&gt; failed (98: Address already in use)&lt;br&gt;nginx: [emerg] bind() to &lt;a href="http://79.142.67.113:80"&gt;79.142.67.113:80&lt;/a&gt; failed (98: Address already in use)&lt;br&gt;nginx: [emerg] bind() to &lt;a href="http://79.142.67.112:80"&gt;79.142.67.112:80&lt;/a&gt; failed (98: Address already in use)&lt;br&gt;nginx: [emerg] bind() to &lt;a href="http://79.142.67.110:80"&gt;79.142.67.110:80&lt;/a&gt; failed (98: Address already in use)&lt;p&gt;&lt;br&gt;Those errors can NOT be ignored, according to my findings... Oh and by the way thats only half the errors, but they all seem to be the same or similair to those ones.&lt;p&gt;Is there any 3rd party tool to convert Apache VHosts to NginX Vhosts? I am googling as we speak :)&lt;p&gt;Thanks for your help, it seems you may have nudged me in the right direction :)&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,183858,184011#msg-184011"&gt;http://forum.nginx.org/read.php?2,183858,184011#msg-184011&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-3614655645811764967?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/3614655645811764967/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-100-cpu-usage-on-all-8-cores_5812.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/3614655645811764967'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/3614655645811764967'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-100-cpu-usage-on-all-8-cores_5812.html' title='Re: 100% CPU Usage (on all 8 cores)'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-4050060318679998215</id><published>2011-03-19T12:14:00.001-07:00</published><updated>2011-03-19T12:14:49.402-07:00</updated><title type='text'>Re: 504 error Gateway Timeout.</title><content type='html'>&amp;gt;On Sat, Mar 19, 2011 at 1:49 PM, Vitaly Tskhovrebov &amp;lt;&lt;a href="mailto:vt@chgk.info"&gt;vt@chgk.info&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; This things should be fine. Please post your entire config.&lt;br&gt;&amp;gt; Regards, Vitaly Tskhovrebov&lt;br&gt;&amp;gt; System Administrator&lt;br&gt;&amp;gt; U.S. +1 (206) 905-9939&lt;br&gt;&amp;gt; Russia +7 911 094-2035&lt;p&gt;Thank You.  This is my config file:&lt;p&gt;user  nobody;&lt;br&gt;# no need for more workers in the proxy mode&lt;br&gt;worker_processes  4;&lt;br&gt;error_log  /var/log/nginx/error.log info;&lt;br&gt;worker_rlimit_nofile 20480;&lt;br&gt;events {&lt;br&gt; worker_connections 5120; # increase for busier servers&lt;br&gt; use epoll; # you should use epoll here for Linux kernels 2.6.x&lt;br&gt;}&lt;br&gt;http {&lt;br&gt; server_name_in_redirect off;&lt;br&gt; server_names_hash_max_size 2048;&lt;br&gt; server_names_hash_bucket_size 256;&lt;br&gt; include    mime.types;&lt;br&gt; default_type  application/octet-stream;&lt;br&gt; server_tokens off;&lt;br&gt; sendfile on;&lt;br&gt; tcp_nopush on;&lt;br&gt; tcp_nodelay on;&lt;br&gt; keepalive_timeout  60;&lt;br&gt; gzip on;&lt;br&gt; gzip_vary on;&lt;br&gt; gzip_disable &amp;quot;MSIE [1-6]\.&amp;quot;;&lt;br&gt; gzip_proxied any;&lt;br&gt; gzip_http_version 1.1;&lt;br&gt; gzip_min_length  0;&lt;br&gt; gzip_comp_level  6;&lt;br&gt; gzip_buffers  16 8k;&lt;br&gt;# You can remove image/png image/x-icon image/gif image/jpeg if you&lt;br&gt;have slow CPU&lt;br&gt; gzip_types    text/plain text/xml text/css application/x-javascript&lt;br&gt;application/xml image/png image/x-icon image/gif image/jpeg&lt;br&gt;application/xml+rss text/javascript application/atom+xml;&lt;br&gt; ignore_invalid_headers on;&lt;br&gt; client_header_timeout  3m;&lt;br&gt; client_body_timeout 3m;&lt;br&gt; send_timeout     3m;&lt;br&gt; reset_timedout_connection on;&lt;br&gt; connection_pool_size  256;&lt;br&gt; client_header_buffer_size 256k;&lt;br&gt; large_client_header_buffers 4 256k;&lt;br&gt; client_max_body_size 4M;&lt;br&gt; client_body_buffer_size 128k;&lt;br&gt; request_pool_size  32k;&lt;br&gt; output_buffers   4 32k;&lt;br&gt; postpone_output  1460;&lt;br&gt; proxy_temp_path  /tmp/nginx_proxy/;&lt;br&gt; client_body_in_file_only on;&lt;br&gt; log_format bytes_log &amp;quot;$msec $bytes_sent .&amp;quot;;&lt;br&gt; include &amp;quot;/etc/nginx/vhosts/*&amp;quot;;&lt;br&gt;}&lt;p&gt;&lt;br&gt;Regards;&lt;p&gt;Jamie&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-4050060318679998215?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/4050060318679998215/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-504-error-gateway-timeout_19.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/4050060318679998215'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/4050060318679998215'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-504-error-gateway-timeout_19.html' title='Re: 504 error Gateway Timeout.'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-2495960948173944060</id><published>2011-03-19T12:03:00.000-07:00</published><updated>2011-03-19T12:04:15.792-07:00</updated><title type='text'>Status 401 Behaviour Issue</title><content type='html'>Hi all.&lt;p&gt;I noticed a certain behaviour of the 401 status code response I will like to change.&lt;p&gt;Firstly, in Apache, there is an html page for 401 that is defined in the error_page equivalent. When the request for a protected directory comes in, the user gets the form for the authentication and only if the authentication fails is that html page served.&lt;p&gt;With Nginx however, if I define an html page error_page for 401, this gets served every time a user requests the protected directory and there is no opportunity to fill in the authentication details.&lt;p&gt;Is it possible to set it up such that it behaves like Apache does? I.E. only return the html error_page if the authentication fails? This seems like a better implementation to me.&lt;p&gt;Running 0.8.54&lt;p&gt;Thanks&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,184007,184007#msg-184007"&gt;http://forum.nginx.org/read.php?2,184007,184007#msg-184007&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-2495960948173944060?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/2495960948173944060/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/status-401-behaviour-issue.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/2495960948173944060'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/2495960948173944060'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/status-401-behaviour-issue.html' title='Status 401 Behaviour Issue'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-3965503018501438005</id><published>2011-03-19T11:49:00.000-07:00</published><updated>2011-03-19T11:50:33.235-07:00</updated><title type='text'>Re: 504 error Gateway Timeout.</title><content type='html'>This things should be fine. Please post your entire config.&lt;p&gt;-- &lt;br&gt;Regards, Vitaly Tskhovrebov&lt;br&gt;System Administrator&lt;br&gt;U.S. +1 (206) 905-9939&lt;br&gt;Russia +7 911 094-2035&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-3965503018501438005?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/3965503018501438005/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-504-error-gateway-timeout.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/3965503018501438005'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/3965503018501438005'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-504-error-gateway-timeout.html' title='Re: 504 error Gateway Timeout.'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-4037198300916062742</id><published>2011-03-19T11:29:00.000-07:00</published><updated>2011-03-19T11:30:14.233-07:00</updated><title type='text'>Re: 100% CPU Usage (on all 8 cores)</title><content type='html'>Oh and sorry for the double post, but I believe its legal to say:&lt;p&gt;Thanks for your time :P&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,183858,183995#msg-183995"&gt;http://forum.nginx.org/read.php?2,183858,183995#msg-183995&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-4037198300916062742?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/4037198300916062742/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-100-cpu-usage-on-all-8-cores_2325.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/4037198300916062742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/4037198300916062742'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-100-cpu-usage-on-all-8-cores_2325.html' title='Re: 100% CPU Usage (on all 8 cores)'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-4530165110205615605</id><published>2011-03-19T11:28:00.000-07:00</published><updated>2011-03-19T11:29:34.387-07:00</updated><title type='text'>Re: 100% CPU Usage (on all 8 cores)</title><content type='html'>&amp;gt; &amp;lt;sarcasm&amp;gt;&lt;br&gt;&amp;gt; Congratulations&lt;br&gt;&amp;gt; It&amp;#39;s really difficult to get 100% efficiency for&lt;br&gt;&amp;gt; modern code - this is &lt;br&gt;&amp;gt; truly scalable&lt;br&gt;&amp;gt; &amp;lt;/sarcasm&amp;gt;&lt;p&gt;Sorry not sure what you mean here... But the whole deal was that nginx is BETTER than apache, not worse. You ework for nginx, I thought you would know that? With apache, the server load is normal, but the server responds slow (20 sec. pg loads).&lt;p&gt;As soon as i put nginx in, server load is 100%. It responds lightning fast (&amp;lt; 5 seconds), but after a while it crashes and I need to reboot.&lt;p&gt;I know this is not the way nginx performs. There is something wrong with it, or the config. Whole deal is, this was supposedly a script to install and get nginx working, and as it seems, 60% of users with multiple IP&amp;#39;s and a shared host are reporting issues like mine. (not able to bind, etc)&lt;br&gt; &lt;br&gt;&amp;gt; The server went offline and needed a reboot not&lt;br&gt;&amp;gt; because a userland &lt;br&gt;&amp;gt; application misbehaved, but there is a problem at&lt;br&gt;&amp;gt; the kernel level which &lt;br&gt;&amp;gt; isn&amp;#39;t normally exposed.&lt;p&gt;Your blaming this on CentOS? CentOS works fine. Always has.&lt;br&gt; &lt;br&gt;&amp;gt; Why not debug the httpd.conf and or post more&lt;br&gt;&amp;gt; meaningful details - Like &lt;br&gt;&amp;gt; a pastie of the config or some way for others to&lt;br&gt;&amp;gt; reproduce it?  I can&amp;#39;t &lt;br&gt;&amp;gt; help directly, but I hope this helps get you on&lt;br&gt;&amp;gt; track to get help..&lt;p&gt;If nginx had told me there were errors in the config, maybe I would debug it. Because it says each error (ignored) and NginX staff have told others they can ignore it, shouldn&amp;#39;t I ignore those errors? Which config would you like to see? The 30+ vhost files that nginx made? or the httpd.conf from apache? Either way it is kind of an insane request to have such private, sensitive configuration data posted for the whole WWW to see....&lt;p&gt;Especially asking a webhost to do so... If you want this kind of information, I could email it to you, or I can get you access to the server. The forum really should have a PM system, which would save me having to email you, but of course it doesnt :)&lt;p&gt;NginX worked before, it should work again...&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,183858,183994#msg-183994"&gt;http://forum.nginx.org/read.php?2,183858,183994#msg-183994&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-4530165110205615605?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/4530165110205615605/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-100-cpu-usage-on-all-8-cores_19.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/4530165110205615605'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/4530165110205615605'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-100-cpu-usage-on-all-8-cores_19.html' title='Re: 100% CPU Usage (on all 8 cores)'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-1830798898199719448</id><published>2011-03-19T08:41:00.000-07:00</published><updated>2011-03-19T08:42:59.782-07:00</updated><title type='text'>Re: async n/w logging</title><content type='html'>Compile your nginx with syslog support:&lt;br&gt;&lt;a href="http://www.joeandmotorboat.com/2009/09/08/compiling-nginx-with-syslog-support/"&gt;http://www.joeandmotorboat.com/2009/09/08/compiling-nginx-with-syslog-support/&lt;/a&gt;&lt;p&gt;Use syslog-ng feature to send packets to loghost.&lt;p&gt;Regards,&lt;br&gt;Vitaly Tskhovrebov&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-1830798898199719448?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/1830798898199719448/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-async-nw-logging.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/1830798898199719448'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/1830798898199719448'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-async-nw-logging.html' title='Re: async n/w logging'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-8742568863858970133</id><published>2011-03-19T06:18:00.000-07:00</published><updated>2011-03-19T06:19:24.298-07:00</updated><title type='text'>nginx resolver NGX_RESOLVE_SERVFAIL</title><content type='html'>Hi,&lt;p&gt;I have strange behavior for nginx when I&amp;#39;m getting:&lt;br&gt;.... .... .... 0010 = Reply code: Server failure (2)&lt;p&gt;All logs of my production is full of tries to resolve some domains where timeout happened&lt;br&gt;and proxying BIND returned (Server failure (2))&lt;p&gt;below is tcpdump for it.&lt;br&gt;# tcpdump -Nnni lo udp port 53&lt;br&gt;tcpdump: verbose output suppressed, use -v or -vv for full protocol decode&lt;br&gt;listening on lo, link-type EN10MB (Ethernet), capture size 96 bytes&lt;br&gt;15:29:23.010072 IP 127.0.0.1.39498 &amp;gt; 127.0.0.1.53:  12118+ A? &lt;a href="http://www.jsoftj.com"&gt;www.jsoftj.com&lt;/a&gt;. (32)&lt;br&gt;15:29:28.006177 IP 127.0.0.1.39498 &amp;gt; 127.0.0.1.53:  12118+ A? &lt;a href="http://www.jsoftj.com"&gt;www.jsoftj.com&lt;/a&gt;. (32)&lt;br&gt;15:29:33.006157 IP 127.0.0.1.39498 &amp;gt; 127.0.0.1.53:  12118+ A? &lt;a href="http://www.jsoftj.com"&gt;www.jsoftj.com&lt;/a&gt;. (32)&lt;br&gt;15:29:38.006155 IP 127.0.0.1.39498 &amp;gt; 127.0.0.1.53:  12118+ A? &lt;a href="http://www.jsoftj.com"&gt;www.jsoftj.com&lt;/a&gt;. (32)&lt;br&gt;15:29:43.006162 IP 127.0.0.1.39498 &amp;gt; 127.0.0.1.53:  12118+ A? &lt;a href="http://www.jsoftj.com"&gt;www.jsoftj.com&lt;/a&gt;. (32)&lt;br&gt;15:29:48.006400 IP 127.0.0.1.39498 &amp;gt; 127.0.0.1.53:  12118+ A? &lt;a href="http://www.jsoftj.com"&gt;www.jsoftj.com&lt;/a&gt;. (32)&lt;br&gt;15:29:53.010832 IP 127.0.0.1.53 &amp;gt; 127.0.0.1.39498:  12118 ServFail 0/0/0 (32)&lt;br&gt;15:29:53.010904 IP 127.0.0.1.53 &amp;gt; 127.0.0.1.39498:  12118 ServFail 0/0/0 (32)&lt;br&gt;15:29:53.010980 IP 127.0.0.1.53 &amp;gt; 127.0.0.1.39498:  12118 ServFail 0/0/0 (32)&lt;br&gt;15:29:53.011036 IP 127.0.0.1.53 &amp;gt; 127.0.0.1.39498:  12118 ServFail 0/0/0 (32)&lt;br&gt;15:29:53.011072 IP 127.0.0.1.53 &amp;gt; 127.0.0.1.39498:  12118 ServFail 0/0/0 (32)&lt;br&gt;15:29:53.011098 IP 127.0.0.1.53 &amp;gt; 127.0.0.1.39498:  12118 ServFail 0/0/0 (32)&lt;p&gt;In nginx error.log I&amp;#39;m finding a lot messages as:&lt;br&gt;2011/03/18 16:20:42 [error] 15214#0: unexpected response for &lt;a href="http://www.jsoftj.com"&gt;www.jsoftj.com&lt;/a&gt;&lt;br&gt;2011/03/18 16:20:42 [error] 15214#0: unexpected response for &lt;a href="http://www.jsoftj.com"&gt;www.jsoftj.com&lt;/a&gt;&lt;br&gt;2011/03/18 16:20:42 [error] 15214#0: unexpected response for &lt;a href="http://www.jsoftj.com"&gt;www.jsoftj.com&lt;/a&gt;&lt;br&gt;2011/03/18 16:20:42 [error] 15214#0: unexpected response for &lt;a href="http://www.jsoftj.com"&gt;www.jsoftj.com&lt;/a&gt;&lt;br&gt;2011/03/18 16:20:42 [error] 15214#0: unexpected response for &lt;a href="http://www.jsoftj.com"&gt;www.jsoftj.com&lt;/a&gt;&lt;br&gt;2011/03/18 16:20:42 [error] 15214#0: unexpected response for &lt;a href="http://www.jsoftj.com"&gt;www.jsoftj.com&lt;/a&gt;&lt;p&gt;changing &lt;br&gt;    if (code &amp;gt; NGX_RESOLVE_REFUSED) {&lt;br&gt;to&lt;br&gt;    if (code &amp;gt; NGX_RESOLVE_REFUSED || NGX_RESOLVE_SERVFAIL ) {&lt;br&gt;in ngx_resolver_process_response&lt;br&gt;is solving problem.&lt;br&gt;Is it bug or feature :) ?&lt;br&gt;or what the best way to solve this issue?&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,183857,183857#msg-183857"&gt;http://forum.nginx.org/read.php?2,183857,183857#msg-183857&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-8742568863858970133?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/8742568863858970133/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/nginx-resolver-ngxresolveservfail.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/8742568863858970133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/8742568863858970133'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/nginx-resolver-ngxresolveservfail.html' title='nginx resolver NGX_RESOLVE_SERVFAIL'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-9146851844856872607</id><published>2011-03-19T05:10:00.000-07:00</published><updated>2011-03-19T05:12:02.849-07:00</updated><title type='text'>Re: Running nginx as reverse proxy with Apache, rewrite problem</title><content type='html'>Thanks so much guys.  It worked great.&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,183798,183905#msg-183905"&gt;http://forum.nginx.org/read.php?2,183798,183905#msg-183905&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-9146851844856872607?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/9146851844856872607/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-running-nginx-as-reverse-proxy-with_19.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/9146851844856872607'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/9146851844856872607'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-running-nginx-as-reverse-proxy-with_19.html' title='Re: Running nginx as reverse proxy with Apache, rewrite problem'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-3076332411462184106</id><published>2011-03-18T23:43:00.000-07:00</published><updated>2011-03-18T23:44:53.003-07:00</updated><title type='text'>async n/w logging</title><content type='html'>Is there some module that tries to log messages (access log) over the&lt;br&gt;network by plugging into the core event loop? &lt;p&gt;I am use Boost.ASIO, GIO of glib etc. etc. but they all start their own&lt;br&gt;event loop.&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-3076332411462184106?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/3076332411462184106/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/async-nw-logging.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/3076332411462184106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/3076332411462184106'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/async-nw-logging.html' title='async n/w logging'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-755674311317317697</id><published>2011-03-18T20:59:00.000-07:00</published><updated>2011-03-18T21:03:24.757-07:00</updated><title type='text'>Re: 100% CPU Usage (on all 8 cores)</title><content type='html'>kthxbai2u wrote:&lt;br&gt;&amp;gt; I have installed NGinX and struggled getting the server to work. It apparantly converts the httpd.conf and ports them to nginx vhosts. As many would know, the server upon starting would error out and die.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; I have sorted that issue out, now the server actually starts, and pages load. There is only one problem... My CPU is 100% load (on all 8 cores)&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; See for yourself:&lt;br&gt;&amp;gt; [img] &lt;a href="http://i51.tinypic.com/34zaphe.jpg"&gt;http://i51.tinypic.com/34zaphe.jpg&lt;/a&gt; [/img]&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; The server actually went offline and needed a reboot because of this...&lt;br&gt;&amp;gt;   &lt;br&gt;&amp;lt;sarcasm&amp;gt;&lt;br&gt;Congratulations&lt;br&gt;It&amp;#39;s really difficult to get 100% efficiency for modern code - this is &lt;br&gt;truly scalable&lt;br&gt;&amp;lt;/sarcasm&amp;gt;&lt;p&gt;The server went offline and needed a reboot not because a userland &lt;br&gt;application misbehaved, but there is a problem at the kernel level which &lt;br&gt;isn&amp;#39;t normally exposed.&lt;p&gt;Why not debug the httpd.conf and or post more meaningful details - Like &lt;br&gt;a pastie of the config or some way for others to reproduce it?  I can&amp;#39;t &lt;br&gt;help directly, but I hope this helps get you on track to get help..&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-755674311317317697?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/755674311317317697/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-100-cpu-usage-on-all-8-cores.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/755674311317317697'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/755674311317317697'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-100-cpu-usage-on-all-8-cores.html' title='Re: 100% CPU Usage (on all 8 cores)'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-8644410077233700949</id><published>2011-03-18T16:38:00.000-07:00</published><updated>2011-03-18T16:44:17.626-07:00</updated><title type='text'>Re: Running nginx as reverse proxy with Apache, rewrite problem</title><content type='html'>On 18 Mar 2011 20h30 WET, &lt;a href="mailto:nginx-forum@nginx.us"&gt;nginx-forum@nginx.us&lt;/a&gt; wrote:&lt;p&gt;&amp;gt; Try:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Server {&lt;br&gt;&amp;gt; 	server_name &lt;a href="http://site.com"&gt;site.com&lt;/a&gt;; listen 80; root&lt;br&gt;&amp;gt; 	/path/to/regular/content/; if ($http_user_agent ~*&lt;br&gt;&amp;gt; 	(mobile|android|blackberry|brew|htc|j2me|lg|midp|mot|netfront|nokia|obigo|openweb|opera\smini|palm|psp|samsung|sanyo|sch|sonyericsson|symbian|symbos|teleca|up.browser|wap|webos|windows\sce)&lt;br&gt;&amp;gt; 	) {&lt;br&gt;&amp;gt; 		rewrite ^ &lt;a href="http://mobile.site.com"&gt;http://mobile.site.com&lt;/a&gt;$request_uri redirect;&lt;p&gt;Remember to add &amp;#39;?&amp;#39; at the end, otherwise you risk repeating the&lt;br&gt;query arguments.&lt;p&gt;Should be: 	rewrite ^ &lt;a href="http://mobile.site.com"&gt;http://mobile.site.com&lt;/a&gt;$request_uri? redirect;&lt;p&gt;Ditto for the &lt;a href="http://mobile.site.com"&gt;mobile.site.com&lt;/a&gt; server.&lt;p&gt;&amp;gt; 	}&lt;br&gt;&amp;gt; 	location /xyz/ {&lt;br&gt;&amp;gt; 		...&lt;br&gt;&amp;gt; 	}&lt;br&gt;&amp;gt; }&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Server {&lt;br&gt;&amp;gt; 	server_name &lt;a href="http://mobile.site.com"&gt;mobile.site.com&lt;/a&gt;; listen 80; root&lt;br&gt;&amp;gt; 	/path/to/mobile/content/; if ($http_user_agent !~*&lt;br&gt;&amp;gt; 	(mobile|android|blackberry|brew|htc|j2me|lg|midp|mot|netfront|nokia|obigo|openweb|opera\smini|palm|psp|samsung|sanyo|sch|sonyericsson|symbian|symbos|teleca|up.browser|wap|webos|windows\sce)&lt;br&gt;&amp;gt; 	) {&lt;br&gt;&amp;gt; 		rewrite ^ &lt;a href="http://site.com"&gt;http://site.com&lt;/a&gt;$request_uri redirect;&lt;br&gt;This: 		rewrite ^ &lt;a href="http://site.com"&gt;http://site.com&lt;/a&gt;$request_uri? redirect;&lt;br&gt;&amp;gt; 	}&lt;br&gt;&amp;gt; 	location /xyz/ {&lt;br&gt;&amp;gt; 		...&lt;br&gt;&amp;gt; 	}&lt;br&gt;&amp;gt; }&lt;br&gt;--- appa&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-8644410077233700949?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/8644410077233700949/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-running-nginx-as-reverse-proxy-with_18.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/8644410077233700949'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/8644410077233700949'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-running-nginx-as-reverse-proxy-with_18.html' title='Re: Running nginx as reverse proxy with Apache, rewrite problem'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-5283313551616016437</id><published>2011-03-18T16:30:00.000-07:00</published><updated>2011-03-18T16:31:42.701-07:00</updated><title type='text'>100% CPU Usage (on all 8 cores)</title><content type='html'>I have installed NGinX and struggled getting the server to work. It apparantly converts the httpd.conf and ports them to nginx vhosts. As many would know, the server upon starting would error out and die.&lt;p&gt;I have sorted that issue out, now the server actually starts, and pages load. There is only one problem... My CPU is 100% load (on all 8 cores)&lt;p&gt;See for yourself:&lt;br&gt;[img] &lt;a href="http://i51.tinypic.com/34zaphe.jpg"&gt;http://i51.tinypic.com/34zaphe.jpg&lt;/a&gt; [/img]&lt;p&gt;The server actually went offline and needed a reboot because of this...&lt;p&gt;I confirmed it was nginx causing this, by dropping services one by one (mysql, ftp, ssh, etc.) and the load stayed there until nginx was stopped.&lt;p&gt;Any Ideas? I still get a massive amount of errors upon starting nginx but I was told the ones I had could be ignored, as it said in the error itself...&lt;p&gt;Any and all help is greatly appreciated as I am trying to get this working on a production server and time is critical.&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,183858,183858#msg-183858"&gt;http://forum.nginx.org/read.php?2,183858,183858#msg-183858&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-5283313551616016437?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/5283313551616016437/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/100-cpu-usage-on-all-8-cores.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/5283313551616016437'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/5283313551616016437'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/100-cpu-usage-on-all-8-cores.html' title='100% CPU Usage (on all 8 cores)'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-315085811451542731</id><published>2011-03-18T13:55:00.000-07:00</published><updated>2011-03-18T13:56:17.199-07:00</updated><title type='text'>Re: Mobile browser detection at server level</title><content type='html'>On 3/18/11 4:53 PM, &amp;quot;Ian M. Evans&amp;quot; &amp;lt;&lt;a href="mailto:ianevans@digitalhit.com"&gt;ianevans@digitalhit.com&lt;/a&gt;&amp;gt; wrote:&lt;p&gt;&amp;gt; Any way to integrate something like wurfl at the server level?&lt;p&gt;For us, we just care about if the browser is mobile or not, so we just use a&lt;br&gt;nasty regex with a redirect.  The mobile site does the full wurfl like&lt;br&gt;detection.&lt;p&gt;-- &lt;br&gt;Brian Akins&lt;p&gt;&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-315085811451542731?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/315085811451542731/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-mobile-browser-detection-at-server.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/315085811451542731'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/315085811451542731'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-mobile-browser-detection-at-server.html' title='Re: Mobile browser detection at server level'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-942122565486712539</id><published>2011-03-18T13:53:00.000-07:00</published><updated>2011-03-18T13:54:31.149-07:00</updated><title type='text'>Mobile browser detection at server level</title><content type='html'>Just wonder if anyone&amp;#39;s been doing anything with detecting mobile browsers&lt;br&gt;at the nginx level.&lt;p&gt;Something like wurfl can be great through PHP, but if you&amp;#39;re serving&lt;br&gt;static cached versions, the PHP doesn&amp;#39;t get hot for that user.&lt;p&gt;Any way to integrate something like wurfl at the server level?&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-942122565486712539?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/942122565486712539/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/mobile-browser-detection-at-server.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/942122565486712539'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/942122565486712539'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/mobile-browser-detection-at-server.html' title='Mobile browser detection at server level'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-4233342167989451695</id><published>2011-03-18T13:30:00.000-07:00</published><updated>2011-03-18T13:31:36.664-07:00</updated><title type='text'>Re: Running nginx as reverse proxy with Apache, rewrite problem</title><content type='html'>Try:&lt;p&gt;Server {&lt;br&gt;	server_name &lt;a href="http://site.com"&gt;site.com&lt;/a&gt;;&lt;br&gt;	listen 80;&lt;br&gt;	root /path/to/regular/content/;&lt;br&gt;	if ($http_user_agent ~* (mobile|android|blackberry|brew|htc|j2me|lg|midp|mot|netfront|nokia|obigo|openweb|opera\smini|palm|psp|samsung|sanyo|sch|sonyericsson|symbian|symbos|teleca|up.browser|wap|webos|windows\sce) ) {&lt;br&gt;		rewrite ^ &lt;a href="http://mobile.site.com"&gt;http://mobile.site.com&lt;/a&gt;$request_uri redirect;&lt;br&gt;	}&lt;br&gt;	location /xyz/ {&lt;br&gt;		...&lt;br&gt;	}&lt;br&gt;}&lt;p&gt;Server {&lt;br&gt;	server_name &lt;a href="http://mobile.site.com"&gt;mobile.site.com&lt;/a&gt;;&lt;br&gt;	listen 80;&lt;br&gt;	root /path/to/mobile/content/;&lt;br&gt;	if ($http_user_agent !~* (mobile|android|blackberry|brew|htc|j2me|lg|midp|mot|netfront|nokia|obigo|openweb|opera\smini|palm|psp|samsung|sanyo|sch|sonyericsson|symbian|symbos|teleca|up.browser|wap|webos|windows\sce) ) {&lt;br&gt;		rewrite ^ &lt;a href="http://site.com"&gt;http://site.com&lt;/a&gt;$request_uri redirect;&lt;br&gt;	}&lt;br&gt;	location /xyz/ {&lt;br&gt;		...&lt;br&gt;	}&lt;br&gt;}&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,183798,183819#msg-183819"&gt;http://forum.nginx.org/read.php?2,183798,183819#msg-183819&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-4233342167989451695?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/4233342167989451695/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-running-nginx-as-reverse-proxy-with.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/4233342167989451695'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/4233342167989451695'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-running-nginx-as-reverse-proxy-with.html' title='Re: Running nginx as reverse proxy with Apache, rewrite problem'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-3426226511007354500</id><published>2011-03-18T12:37:00.000-07:00</published><updated>2011-03-18T12:38:45.199-07:00</updated><title type='text'>Re: Problem with nginx/0.8.54 and alias</title><content type='html'>Jim &lt;p&gt;Nice to see that you seem to have resolved the data eating problem. I hope my post here: &lt;a href="http://forum.nginx.org/read.php?6,30896"&gt;http://forum.nginx.org/read.php?6,30896&lt;/a&gt; helped to locate the bit of code that needed changing.&lt;p&gt;I hope you will also find the time to further improve the forum by adding the option to disable the preview for those that want this.&lt;p&gt;Well done and keep up the good work!&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,176110,183805#msg-183805"&gt;http://forum.nginx.org/read.php?2,176110,183805#msg-183805&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-3426226511007354500?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/3426226511007354500/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-problem-with-nginx0854-and-alias_18.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/3426226511007354500'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/3426226511007354500'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-problem-with-nginx0854-and-alias_18.html' title='Re: Problem with nginx/0.8.54 and alias'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-3440998004068158600</id><published>2011-03-18T11:42:00.000-07:00</published><updated>2011-03-18T11:44:46.714-07:00</updated><title type='text'>Running nginx as reverse proxy with Apache, rewrite problem</title><content type='html'>I&amp;#39;m using a cPanel plugin located here &lt;a href="http://cpnginx.com"&gt;cpnginx.com&lt;/a&gt; that allows me to use nginx to serve static content and Apache to serve dynamic content.  They use a method called Direct Push so that I&amp;#39;m still able to use my apache htaccess rules with the setup.  Tonight I&amp;#39;ve run into a problem trying to add a new rule to my .htaccess file to redirect all my mobile traffic:&lt;p&gt;RewriteCond %{HTTP_USER_AGENT} (mobile|android|blackberry|brew|htc|j2me|lg|midp|mot|netfront|nokia|obigo|openweb|opera mini|palm|psp|samsung|sanyo|sch|sonyericsson|symbian|symbos|teleca|up.browser|wap|webos|windows ce) [NC]&lt;br&gt;RewriteRule ^(.*)$ &lt;a href="http://url"&gt;http://url&lt;/a&gt; [R=302,L]&lt;p&gt;I&amp;#39;m constantly getting 500 internal server errors when I added this rule and the support at &lt;a href="http://cpnginx.com"&gt;cpnginx.com&lt;/a&gt; isn&amp;#39;t able to help me at all.  Is there anyone out there that can provide me with some advice?&lt;p&gt;Thanks&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,183798,183798#msg-183798"&gt;http://forum.nginx.org/read.php?2,183798,183798#msg-183798&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-3440998004068158600?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/3440998004068158600/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/running-nginx-as-reverse-proxy-with.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/3440998004068158600'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/3440998004068158600'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/running-nginx-as-reverse-proxy-with.html' title='Running nginx as reverse proxy with Apache, rewrite problem'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-348825245957142878</id><published>2011-03-18T05:59:00.000-07:00</published><updated>2011-03-18T06:00:43.699-07:00</updated><title type='text'>upstream with fastcgi_pass</title><content type='html'>I have a problem when use upstream,my config is like this(nginx&lt;br&gt;version:0.8.54):&lt;p&gt;    upstream &lt;a href="http://www.a.com"&gt;www.a.com&lt;/a&gt; {&lt;br&gt;           server &lt;a href="http://10.249.200.76:9000"&gt;10.249.200.76:9000&lt;/a&gt;;&lt;br&gt;           server &lt;a href="http://10.249.200.76:9001"&gt;10.249.200.76:9001&lt;/a&gt;;&lt;br&gt;     }&lt;p&gt;    server{&lt;p&gt;         .....&lt;p&gt;         location ~ \.php$ {&lt;br&gt;            root           html;&lt;br&gt;            fastcgi_pass   &lt;a href="http://www.a.com"&gt;www.a.com&lt;/a&gt;;&lt;br&gt;            fastcgi_index  index.php;&lt;br&gt;            fastcgi_param  SCRIPT_FILENAME  /var/www/$host&lt;br&gt;/$fastcgi_script_name;&lt;br&gt;            include        fastcgi_params;&lt;br&gt;        }&lt;br&gt;     }&lt;p&gt;    and then can success to visit &lt;a href="http://www.a.com"&gt;www.a.com&lt;/a&gt;;&lt;p&gt;    but when &amp;quot;fastcgi_pass   &lt;a href="http://www.a.com"&gt;www.a.com&lt;/a&gt;;&amp;quot; relace  by&lt;br&gt;    &amp;quot;fastcgi_pass $host;&amp;quot;, visit &lt;a href="http://www.a.com"&gt;www.a.com&lt;/a&gt; is failed.&lt;p&gt;     I don&amp;#39;t know why? can somebody know?&lt;p&gt;    new config like this:&lt;p&gt;    upstream &lt;a href="http://www.a.com"&gt;www.a.com&lt;/a&gt; {&lt;br&gt;           server &lt;a href="http://10.249.200.76:9000"&gt;10.249.200.76:9000&lt;/a&gt;;&lt;br&gt;           server &lt;a href="http://10.249.200.76:9001"&gt;10.249.200.76:9001&lt;/a&gt;;&lt;br&gt;     }&lt;p&gt;    server{&lt;p&gt;         .....&lt;p&gt;         location ~ \.php$ {&lt;br&gt;            root           html;&lt;br&gt;            fastcgi_pass   $host;&lt;br&gt;            fastcgi_index  index.php;&lt;br&gt;            fastcgi_param  SCRIPT_FILENAME  /var/www/$host&lt;br&gt;/$fastcgi_script_name;&lt;br&gt;            include        fastcgi_params;&lt;br&gt;        }&lt;br&gt;     }&lt;p&gt;-- &lt;br&gt;Posted via &lt;a href="http://www.ruby-forum.com/"&gt;http://www.ruby-forum.com/&lt;/a&gt;.&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-348825245957142878?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/348825245957142878/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/upstream-with-fastcgipass.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/348825245957142878'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/348825245957142878'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/upstream-with-fastcgipass.html' title='upstream with fastcgi_pass'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-2525512849396873652</id><published>2011-03-18T03:14:00.000-07:00</published><updated>2011-03-18T03:17:04.931-07:00</updated><title type='text'>Re: Purge Css and JS files</title><content type='html'>On 03/18/2011 09:37 AM, rajivv wrote:&lt;br&gt;&amp;gt; No that returns 404&lt;p&gt;Let&amp;#39;s see your configuration ...&lt;p&gt;-- &lt;br&gt;Simone&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-2525512849396873652?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/2525512849396873652/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-purge-css-and-js-files_9901.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/2525512849396873652'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/2525512849396873652'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-purge-css-and-js-files_9901.html' title='Re: Purge Css and JS files'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-4279626035403432764</id><published>2011-03-18T01:37:00.000-07:00</published><updated>2011-03-18T01:38:20.832-07:00</updated><title type='text'>Re: Purge Css and JS files</title><content type='html'>No that returns 404&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,183411,183666#msg-183666"&gt;http://forum.nginx.org/read.php?2,183411,183666#msg-183666&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-4279626035403432764?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/4279626035403432764/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-purge-css-and-js-files_18.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/4279626035403432764'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/4279626035403432764'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-purge-css-and-js-files_18.html' title='Re: Purge Css and JS files'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-1544651188872302143</id><published>2011-03-18T01:29:00.000-07:00</published><updated>2011-03-18T01:32:54.470-07:00</updated><title type='text'>Re: Purge Css and JS files</title><content type='html'>On 03/17/2011 05:41 AM, rajivv wrote:&lt;br&gt;&amp;gt; Just installed purge module and its working fine for url and images&lt;br&gt;&amp;gt; how do I purge Css and Js files&lt;br&gt;&amp;gt; eg need to purge the file /css/base.css&lt;br&gt;&amp;gt; and /js/virtualpaginate.js&lt;p&gt;If you used the default directory just call&lt;p&gt;/purge/js/virtualpaginate.js&lt;br&gt;/purge/css/base.css&lt;p&gt;Regards&lt;p&gt;-- &lt;br&gt;Simone&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-1544651188872302143?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/1544651188872302143/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-purge-css-and-js-files.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/1544651188872302143'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/1544651188872302143'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-purge-css-and-js-files.html' title='Re: Purge Css and JS files'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-7134769955340876693</id><published>2011-03-17T14:39:00.000-07:00</published><updated>2011-03-17T22:32:30.613-07:00</updated><title type='text'>Nginx for windows Found a bug,How to solve?</title><content type='html'>&lt;DIV&gt;Nginx for windows Found a bug,How to solve?&lt;/DIV&gt;  &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;  &lt;DIV&gt;You see next configuration file is on this machine with &lt;A href="http://www.xyz.com"&gt;www.xyz.com&lt;/A&gt;,. Net program can not properly proxy. I think the problem is nginx! &lt;/DIV&gt;  &lt;DIV&gt;There are windows version of the nginx load and multi-process multi-core load is not available, found that the memory will be overrun windows version &lt;BR&gt;Do not know why after a period of time will automatically pop up error window. Denial of service! Hope to resolve the following. .&lt;/DIV&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-7134769955340876693?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/7134769955340876693/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/nginx-for-windows-found-bughow-to-solve.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/7134769955340876693'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/7134769955340876693'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/nginx-for-windows-found-bughow-to-solve.html' title='Nginx for windows Found a bug,How to solve?'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-3439468939119077673</id><published>2011-03-17T14:03:00.000-07:00</published><updated>2011-03-17T14:05:12.782-07:00</updated><title type='text'>Re: Very Simple htaccess rule</title><content type='html'>try this:&lt;p&gt;location / {&lt;br&gt;   try_files $request_uri $request_uri/ site$request_uri site/index.php;&lt;br&gt;}&lt;p&gt;Note: You shold define the php location in order to serve php page.&lt;p&gt;Il 17/03/2011 11:03, michaelvv ha scritto:&lt;br&gt;&amp;gt; Hi Nginx.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Properly so simple you may laugh , but this world save my day :-)&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; RewriteEngine On&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; RewriteBase /&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; RewriteCond %{SCRIPT_FILENAME} !-f&lt;br&gt;&amp;gt; RewriteCond %{SCRIPT_FILENAME} !-d&lt;br&gt;&amp;gt; RewriteRule ^(.*)$ site/$1 [NC,L,QSA]&lt;br&gt;&amp;gt; RewriteRule ^$ site/index.php [NC,L,QSA]&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; When you hit the &lt;a href="http://domain.com"&gt;domain.com&lt;/a&gt; i simple need to access &lt;a href="http://domain.com/site/index.php"&gt;domain.com/site/index.php&lt;/a&gt;.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; After this info , i would like to study the rules more intense.&lt;br&gt;&amp;gt; But i&amp;#39;m in a shortage of time right now.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Thanks In advance..&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; /Michael&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,183435,183435#msg-183435"&gt;http://forum.nginx.org/read.php?2,183435,183435#msg-183435&lt;/a&gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; _______________________________________________&lt;br&gt;&amp;gt; nginx mailing list&lt;br&gt;&amp;gt; &lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-3439468939119077673?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/3439468939119077673/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-very-simple-htaccess-rule.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/3439468939119077673'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/3439468939119077673'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-very-simple-htaccess-rule.html' title='Re: Very Simple htaccess rule'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-3625148075852601488</id><published>2011-03-17T08:51:00.000-07:00</published><updated>2011-03-17T08:54:45.641-07:00</updated><title type='text'>Re: cant find openssl</title><content type='html'>well this is off topic a bit, but this might all be a moot point. We are putting nginx in front of apache for drupal implementation. &lt;br&gt;One requirement is SSO via apache auth_ntlm_windbind, for ntlm against AD. Nginx does not support keepalive as apache does? So it will not be able to utlize NTLM?&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,183476,183507#msg-183507"&gt;http://forum.nginx.org/read.php?2,183476,183507#msg-183507&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-3625148075852601488?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/3625148075852601488/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-cant-find-openssl_2187.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/3625148075852601488'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/3625148075852601488'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-cant-find-openssl_2187.html' title='Re: cant find openssl'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-2157973039043164746</id><published>2011-03-17T07:39:00.000-07:00</published><updated>2011-03-17T07:40:07.487-07:00</updated><title type='text'>Re: cant find openssl</title><content type='html'>Hello!&lt;p&gt;On Thu, Mar 17, 2011 at 09:51:45AM -0400, c_saunders wrote:&lt;p&gt;&amp;gt; OS:redhat 5.6&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; nginx version=nginx-0.8.54&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; getting following error&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; checking for OpenSSL library ... not found&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; ./configure: error: SSL modules require the OpenSSL library.&lt;br&gt;&amp;gt; You can either do not enable the modules, or install the OpenSSL library&lt;br&gt;&amp;gt; into the system, or build the OpenSSL library statically from the source&lt;br&gt;&amp;gt; with nginx by using --with-openssl=&amp;lt;path&amp;gt; option.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; openssl is installed&lt;br&gt;&amp;gt; -bash-3.2# which openssl&lt;br&gt;&amp;gt; /usr/bin/openssl&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; openssl-devel is as well&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; which lib is it looking forward?&lt;p&gt;nginx looks for openssl/ssl.h header and libssl and libcrypto &lt;br&gt;libraries.&lt;p&gt;Use something like&lt;p&gt;./configure --with-cc-opt=&amp;quot;-I /path/to/include&amp;quot; --with-ld-opt=&amp;quot;-L /path/to/lib&amp;quot;&lt;p&gt;if you don&amp;#39;t have these available to compiler by default.&lt;p&gt;Maxim Dounin&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-2157973039043164746?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/2157973039043164746/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-cant-find-openssl_17.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/2157973039043164746'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/2157973039043164746'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-cant-find-openssl_17.html' title='Re: cant find openssl'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-9222237831876022188</id><published>2011-03-17T07:02:00.001-07:00</published><updated>2011-03-17T07:02:41.474-07:00</updated><title type='text'>Re: cant find openssl</title><content type='html'>also seeing this in objs/autoconf.err&lt;p&gt;&lt;br&gt;gcc: unrecognized option &amp;#39;-R/lib64/&amp;#39;&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,183476,183481#msg-183481"&gt;http://forum.nginx.org/read.php?2,183476,183481#msg-183481&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-9222237831876022188?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/9222237831876022188/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-cant-find-openssl.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/9222237831876022188'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/9222237831876022188'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-cant-find-openssl.html' title='Re: cant find openssl'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-8114225322309627712</id><published>2011-03-17T06:51:00.000-07:00</published><updated>2011-03-17T06:52:59.195-07:00</updated><title type='text'>cant find openssl</title><content type='html'>OS:redhat 5.6&lt;p&gt;nginx version=nginx-0.8.54&lt;p&gt;getting following error&lt;p&gt;checking for OpenSSL library ... not found&lt;p&gt;./configure: error: SSL modules require the OpenSSL library.&lt;br&gt;You can either do not enable the modules, or install the OpenSSL library&lt;br&gt;into the system, or build the OpenSSL library statically from the source&lt;br&gt;with nginx by using --with-openssl=&amp;lt;path&amp;gt; option.&lt;p&gt;openssl is installed&lt;br&gt;-bash-3.2# which openssl&lt;br&gt;/usr/bin/openssl&lt;p&gt;openssl-devel is as well&lt;p&gt;which lib is it looking forward?&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,183476,183476#msg-183476"&gt;http://forum.nginx.org/read.php?2,183476,183476#msg-183476&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-8114225322309627712?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/8114225322309627712/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/cant-find-openssl.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/8114225322309627712'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/8114225322309627712'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/cant-find-openssl.html' title='cant find openssl'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-39554876166748416</id><published>2011-03-17T04:59:00.001-07:00</published><updated>2011-03-17T04:59:51.604-07:00</updated><title type='text'>Re: nginx resets connection</title><content type='html'>Hello!&lt;p&gt;On Thu, Mar 17, 2011 at 12:09:53AM +0100, Gerhard Heift wrote:&lt;p&gt;&amp;gt; Hello,&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; I found a bug in the request finalization on linux:&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; If the server has a keep-alive set to 0 and the client sends pipelined&lt;br&gt;&amp;gt; requests which exeeds client_header_buffer_size, nginx closes the&lt;br&gt;&amp;gt; connection and linux sends a TCP RST since there is still data in&lt;br&gt;&amp;gt; the TCP buffer of the kernel. This results in an incomplete transfer on&lt;br&gt;&amp;gt; the client site.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; One possible solution would be to allow pipelined request even if&lt;br&gt;&amp;gt; keep-alive is set to zero. Another one would be to wait until the kernel&lt;br&gt;&amp;gt; receives the ACK for all pending data in the send buffer.&lt;p&gt;Yes, thank you for report.  Pipilining in nginx currently have &lt;br&gt;some rough edges and need for lingering close is one of them.&lt;p&gt;Maxim Dounin&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-39554876166748416?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/39554876166748416/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-nginx-resets-connection.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/39554876166748416'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/39554876166748416'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-nginx-resets-connection.html' title='Re: nginx resets connection'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-3896201547372264608</id><published>2011-03-17T04:41:00.000-07:00</published><updated>2011-03-17T04:42:34.385-07:00</updated><title type='text'>Re: Issue in Lua-nginx-module when use both ngx.location.capture and ngx.exec</title><content type='html'>My Pleasure, ^_^&lt;br&gt;&lt;br&gt;Wating for your fixed version &lt;img goomoji="330" style="margin: 0pt 0.2ex; vertical-align: middle;" src="cid:330@goomoji.gmail"&gt;&lt;br&gt;&lt;br&gt;&lt;div class="gmail_quote"&gt;在 2011年3月17日 下午2:44，agentzh &lt;span dir="ltr"&gt;&amp;lt;&lt;a href="mailto:agentzh@gmail.com"&gt;agentzh@gmail.com&lt;/a&gt;&amp;gt;&lt;/span&gt;写道：&lt;br&gt; &lt;blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"&gt;&lt;div class="im"&gt;On Tue, Mar 15, 2011 at 7:45 PM, Wendal Chen &amp;lt;&lt;a href="mailto:wendal1985@gmail.com"&gt;wendal1985@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;  &amp;gt;&lt;br&gt; &amp;gt; #用中文再说一遍,英语水平有限:&lt;br&gt; &amp;gt; 我得到的最小集合就是:&lt;br&gt; &amp;gt; 1. nginx.conf&lt;br&gt; &amp;gt; location /test {&lt;br&gt; &amp;gt;     root html;&lt;br&gt; &amp;gt;     content_by_lua_file &amp;quot;conf/test.lua&amp;quot;;&lt;br&gt; &amp;gt; }&lt;br&gt; &amp;gt; server/http等配置按默认的, event module用的是 epoll&lt;br&gt; &amp;gt;&lt;br&gt; &amp;gt; 2. test.lua文件仅2行:&lt;br&gt; &amp;gt; ngx.location.capture(&amp;#39;/1.html&amp;#39;)&lt;br&gt; &amp;gt; ngx.exec(&amp;quot;/1.html&amp;quot;)&lt;br&gt; &amp;gt;&lt;br&gt; &amp;gt; 我尝试过,无论这两句话是否请求同一个文件,结果都一样.&lt;br&gt; &amp;gt;&lt;br&gt; &amp;gt; 3. 1.html文件里面仅有几个字母,我已经试过不同的文件大小,结果一样&lt;br&gt; &amp;gt;&lt;br&gt; &amp;gt;&lt;br&gt; &amp;gt; 我遇到的情况是这样的:&lt;br&gt; &amp;gt; 1. 通过wget/curl/Firefox来访问 localhost/test 都能正常显示1.html中的内容&lt;br&gt; &amp;gt; 2. 使用ab访问 localhost/1.html是正常的,能够pass&lt;br&gt; &amp;gt; 3. 使用ab进行测试,总是timeout ,&lt;br&gt; &lt;br&gt; &lt;/div&gt;I&amp;#39;ve reproduced it on my side. This is indeed a bug. When ngx.exec()&lt;br&gt; is used after ngx.location.capture() or ngx.location.capture_multi(),&lt;br&gt; nginx 0.8.11+ will not close the client connection due to leaked&lt;br&gt; request reference counter (r-&amp;gt;main-&amp;gt;count). A hacky work-around is to&lt;br&gt; disable nginx http keepalive and rely on the browser (and other http&lt;br&gt; clients) to actively close the connection. And that&amp;#39;s why wget, curl,&lt;br&gt; firefox, and other well-written http clients worked for you.&lt;br&gt; &lt;br&gt; Nginx 0.7.68 (and older) is confirmed to work in this context just&lt;br&gt; because older nginx does not use reference counting.&lt;br&gt; &lt;br&gt; I&amp;#39;ll attempt fix in the next few days. Thank you for reporting this&lt;br&gt; and sorry about this issue :)&lt;br&gt; &lt;br&gt; Cheers,&lt;br&gt; &lt;font color="#888888"&gt;-agentzh&lt;br&gt; &lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-3896201547372264608?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/3896201547372264608/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-issue-in-lua-nginx-module-when-use_17.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/3896201547372264608'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/3896201547372264608'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-issue-in-lua-nginx-module-when-use_17.html' title='Re: Issue in Lua-nginx-module when use both ngx.location.capture and ngx.exec'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-75569110777326386</id><published>2011-03-17T03:52:00.000-07:00</published><updated>2011-03-17T03:53:09.707-07:00</updated><title type='text'>Re: Performance impact of 100+ SSI directives</title><content type='html'>On Thu, Mar 17, 2011 at 1:30 AM, Hone Watson &amp;lt;&lt;a href="mailto:hone@codingstore.com"&gt;hone@codingstore.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; My personal experience is the more SSI includes you have the more&lt;br&gt;&amp;gt; CPU&amp;#39;s are used.&lt;p&gt;I personally don&amp;#39;t have any experience with SSI, but I think CPU usage&lt;br&gt;isn&amp;#39;t going to be a limiting factor in performance here: I can imagine&lt;br&gt;the CPU being used more, but with 100+ SSI includes, meaning 100+&lt;br&gt;files can&amp;#39;t mean anything else then 100+ IO operations. Having that&lt;br&gt;many separate files might become an issue without proper caching in&lt;br&gt;place. I&amp;#39;d strongly suggest you&amp;#39;d use a script to merge all that data&lt;br&gt;only each time the data changes, if you&amp;#39;d rather have it in separate&lt;br&gt;files. This way your web server won&amp;#39;t have the burden of managing&lt;br&gt;hundreds of includes/IOps at request-time.&lt;p&gt;Just my two cents,&lt;br&gt;Luit van Drongelen&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-75569110777326386?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/75569110777326386/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-performance-impact-of-100-ssi_17.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/75569110777326386'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/75569110777326386'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-performance-impact-of-100-ssi_17.html' title='Re: Performance impact of 100+ SSI directives'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-483699479633816610</id><published>2011-03-17T03:03:00.000-07:00</published><updated>2011-03-17T03:04:28.912-07:00</updated><title type='text'>Very Simple htaccess rule</title><content type='html'>Hi Nginx.&lt;p&gt;Properly so simple you may laugh , but this world save my day :-)&lt;p&gt;RewriteEngine On&lt;p&gt;RewriteBase /&lt;p&gt;RewriteCond %{SCRIPT_FILENAME} !-f&lt;br&gt;RewriteCond %{SCRIPT_FILENAME} !-d&lt;br&gt;RewriteRule ^(.*)$ site/$1 [NC,L,QSA]&lt;br&gt;RewriteRule ^$ site/index.php [NC,L,QSA]&lt;p&gt;When you hit the &lt;a href="http://domain.com"&gt;domain.com&lt;/a&gt; i simple need to access &lt;a href="http://domain.com/site/index.php"&gt;domain.com/site/index.php&lt;/a&gt;.&lt;p&gt;After this info , i would like to study the rules more intense.&lt;br&gt;But i&amp;#39;m in a shortage of time right now.&lt;p&gt;Thanks In advance..&lt;p&gt;/Michael&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,183435,183435#msg-183435"&gt;http://forum.nginx.org/read.php?2,183435,183435#msg-183435&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-483699479633816610?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/483699479633816610/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/very-simple-htaccess-rule.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/483699479633816610'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/483699479633816610'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/very-simple-htaccess-rule.html' title='Very Simple htaccess rule'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-4669839754276014601</id><published>2011-03-16T23:44:00.000-07:00</published><updated>2011-03-16T23:45:01.713-07:00</updated><title type='text'>Re: Issue in Lua-nginx-module when use both ngx.location.capture and ngx.exec</title><content type='html'>On Tue, Mar 15, 2011 at 7:45 PM, Wendal Chen &amp;lt;&lt;a href="mailto:wendal1985@gmail.com"&gt;wendal1985@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; #用中文再说一遍,英语水平有限:&lt;br&gt;&amp;gt; 我得到的最小集合就是:&lt;br&gt;&amp;gt; 1. nginx.conf&lt;br&gt;&amp;gt; location /test {&lt;br&gt;&amp;gt;     root html;&lt;br&gt;&amp;gt;     content_by_lua_file &amp;quot;conf/test.lua&amp;quot;;&lt;br&gt;&amp;gt; }&lt;br&gt;&amp;gt; server/http等配置按默认的, event module用的是 epoll&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; 2. test.lua文件仅2行:&lt;br&gt;&amp;gt; ngx.location.capture(&amp;#39;/1.html&amp;#39;)&lt;br&gt;&amp;gt; ngx.exec(&amp;quot;/1.html&amp;quot;)&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; 我尝试过,无论这两句话是否请求同一个文件,结果都一样.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; 3. 1.html文件里面仅有几个字母,我已经试过不同的文件大小,结果一样&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; 我遇到的情况是这样的:&lt;br&gt;&amp;gt; 1. 通过wget/curl/Firefox来访问 localhost/test 都能正常显示1.html中的内容&lt;br&gt;&amp;gt; 2. 使用ab访问 localhost/1.html是正常的,能够pass&lt;br&gt;&amp;gt; 3. 使用ab进行测试,总是timeout ,&lt;p&gt;I&amp;#39;ve reproduced it on my side. This is indeed a bug. When ngx.exec()&lt;br&gt;is used after ngx.location.capture() or ngx.location.capture_multi(),&lt;br&gt;nginx 0.8.11+ will not close the client connection due to leaked&lt;br&gt;request reference counter (r-&amp;gt;main-&amp;gt;count). A hacky work-around is to&lt;br&gt;disable nginx http keepalive and rely on the browser (and other http&lt;br&gt;clients) to actively close the connection. And that&amp;#39;s why wget, curl,&lt;br&gt;firefox, and other well-written http clients worked for you.&lt;p&gt;Nginx 0.7.68 (and older) is confirmed to work in this context just&lt;br&gt;because older nginx does not use reference counting.&lt;p&gt;I&amp;#39;ll attempt fix in the next few days. Thank you for reporting this&lt;br&gt;and sorry about this issue :)&lt;p&gt;Cheers,&lt;br&gt;-agentzh&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-4669839754276014601?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/4669839754276014601/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-issue-in-lua-nginx-module-when-use_16.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/4669839754276014601'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/4669839754276014601'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-issue-in-lua-nginx-module-when-use_16.html' title='Re: Issue in Lua-nginx-module when use both ngx.location.capture and ngx.exec'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-4676379590415098782</id><published>2011-03-16T21:51:00.000-07:00</published><updated>2011-03-16T21:52:20.890-07:00</updated><title type='text'>504 error Gateway Timeout.</title><content type='html'>HI;&lt;p&gt;I&amp;#39;m using Nginx in a reverse proxy setup with Apache. I&amp;#39;m having a&lt;br&gt;problem when I submit a large upload via php; while Mogrify is&lt;br&gt;processing the photo upload, Nginx returns a 504 error - Gateway&lt;br&gt;Timeout.&lt;p&gt;I tried adding in proxy_read_timeout 600; proxy_send_timeout 600;, but&lt;br&gt;I am still having the same problem.&lt;p&gt;I&amp;#39;ve searched for answers for quite a few hours now, and am at a loss.&lt;br&gt; All of my PHP memory and time out settings are quite high.&lt;p&gt;It works when I do smaller uploads. It is the ones that take Mogrify&lt;br&gt;more than about 60 to 90 seconds to process that cause the error.&lt;br&gt;(uploads of over about 50 MB of images).&lt;p&gt;I was able to upload / process with this system prior to installing&lt;br&gt;Nginx.  Please let me know if you want to see a copy of my config file&lt;br&gt;or any other information.&lt;p&gt;Thank You Kindly;&lt;p&gt;Jamie&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-4676379590415098782?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/4676379590415098782/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/504-error-gateway-timeout.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/4676379590415098782'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/4676379590415098782'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/504-error-gateway-timeout.html' title='504 error Gateway Timeout.'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-6231014210840503274</id><published>2011-03-16T21:41:00.000-07:00</published><updated>2011-03-16T21:42:15.758-07:00</updated><title type='text'>Purge Css and JS files</title><content type='html'>Hi, &lt;p&gt;Just installed purge module and its working fine for url and images&lt;br&gt;how do I purge Css and Js files&lt;br&gt;eg need to purge the file /css/base.css&lt;br&gt;and /js/virtualpaginate.js&lt;p&gt;Regards&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,183411,183411#msg-183411"&gt;http://forum.nginx.org/read.php?2,183411,183411#msg-183411&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-6231014210840503274?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/6231014210840503274/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/purge-css-and-js-files.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/6231014210840503274'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/6231014210840503274'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/purge-css-and-js-files.html' title='Purge Css and JS files'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-744732251659665289</id><published>2011-03-16T17:30:00.000-07:00</published><updated>2011-03-16T17:31:40.091-07:00</updated><title type='text'>Re: Performance impact of 100+ SSI directives</title><content type='html'>My personal experience is the more SSI includes you have the more&lt;br&gt;CPU&amp;#39;s are used.&lt;p&gt;On Thu, Mar 17, 2011 at 5:47 AM, Maxim Khitrov &amp;lt;&lt;a href="mailto:max@mxcrypt.com"&gt;max@mxcrypt.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; Hi everyone,&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; I&amp;#39;m trying to refactor a website composed entirely of static files.&lt;br&gt;&amp;gt; Part of the content is a long list of scientific publication&lt;br&gt;&amp;gt; references (&amp;gt; 100), which are all listed on a common publications&lt;br&gt;&amp;gt; page, and also repeated on other project-specific pages.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; I&amp;#39;m considering placing each reference (1 line of text) into a&lt;br&gt;&amp;gt; separate file and using SSI directives to include those files as&lt;br&gt;&amp;gt; needed throughout the site. The reason for doing this is that the&lt;br&gt;&amp;gt; references are not static. The publications go through several stages&lt;br&gt;&amp;gt; (under review, in press, published), which are reflected in the&lt;br&gt;&amp;gt; references. On top of that, we occasionally need to make formatting&lt;br&gt;&amp;gt; changes and it&amp;#39;s a bit problematic trying to remember all the&lt;br&gt;&amp;gt; different places where a reference is used.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; The question is how would nginx deal with more than 100 or even 200&lt;br&gt;&amp;gt; include directives on a single page? This setup would make my job of&lt;br&gt;&amp;gt; updating the references easier, but if there is a significant impact&lt;br&gt;&amp;gt; on the time it takes to serve the publications list, then I would&lt;br&gt;&amp;gt; rather write some search/replace shell scripts to handle the updates.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Any other suggestions are welcome, but databases and server-side&lt;br&gt;&amp;gt; coding are not an option :)&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; - Max&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; _______________________________________________&lt;br&gt;&amp;gt; nginx mailing list&lt;br&gt;&amp;gt; &lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;br&gt;&amp;gt;&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-744732251659665289?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/744732251659665289/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-performance-impact-of-100-ssi.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/744732251659665289'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/744732251659665289'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-performance-impact-of-100-ssi.html' title='Re: Performance impact of 100+ SSI directives'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-6967400699689490301</id><published>2011-03-16T16:09:00.000-07:00</published><updated>2011-03-16T16:10:22.394-07:00</updated><title type='text'>nginx resets connection</title><content type='html'>Hello,&lt;p&gt;I found a bug in the request finalization on linux:&lt;p&gt;If the server has a keep-alive set to 0 and the client sends pipelined&lt;br&gt;requests which exeeds client_header_buffer_size, nginx closes the&lt;br&gt;connection and linux sends a TCP RST since there is still data in&lt;br&gt;the TCP buffer of the kernel. This results in an incomplete transfer on&lt;br&gt;the client site.&lt;p&gt;One possible solution would be to allow pipelined request even if&lt;br&gt;keep-alive is set to zero. Another one would be to wait until the kernel&lt;br&gt;receives the ACK for all pending data in the send buffer.&lt;p&gt;Regards,&lt;br&gt;  Gerhard&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-6967400699689490301?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/6967400699689490301/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/nginx-resets-connection.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/6967400699689490301'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/6967400699689490301'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/nginx-resets-connection.html' title='nginx resets connection'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-2389721757172038227</id><published>2011-03-16T16:03:00.000-07:00</published><updated>2011-03-16T16:05:06.006-07:00</updated><title type='text'>Re: nginx access logs, timestamps "jump back"</title><content type='html'>That makes perfect sense, Maxim.  I hadn&amp;#39;t even thought about the HTTP 1.1 connections staying open.&lt;p&gt;Thanks.&lt;p&gt;David.&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,182969,183379#msg-183379"&gt;http://forum.nginx.org/read.php?2,182969,183379#msg-183379&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-2389721757172038227?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/2389721757172038227/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-nginx-access-logs-timestamps-jump_442.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/2389721757172038227'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/2389721757172038227'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-nginx-access-logs-timestamps-jump_442.html' title='Re: nginx access logs, timestamps &quot;jump back&quot;'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-3820715817521798930</id><published>2011-03-16T11:47:00.000-07:00</published><updated>2011-03-16T11:49:54.633-07:00</updated><title type='text'>Performance impact of 100+ SSI directives</title><content type='html'>Hi everyone,&lt;p&gt;I&amp;#39;m trying to refactor a website composed entirely of static files.&lt;br&gt;Part of the content is a long list of scientific publication&lt;br&gt;references (&amp;gt; 100), which are all listed on a common publications&lt;br&gt;page, and also repeated on other project-specific pages.&lt;p&gt;I&amp;#39;m considering placing each reference (1 line of text) into a&lt;br&gt;separate file and using SSI directives to include those files as&lt;br&gt;needed throughout the site. The reason for doing this is that the&lt;br&gt;references are not static. The publications go through several stages&lt;br&gt;(under review, in press, published), which are reflected in the&lt;br&gt;references. On top of that, we occasionally need to make formatting&lt;br&gt;changes and it&amp;#39;s a bit problematic trying to remember all the&lt;br&gt;different places where a reference is used.&lt;p&gt;The question is how would nginx deal with more than 100 or even 200&lt;br&gt;include directives on a single page? This setup would make my job of&lt;br&gt;updating the references easier, but if there is a significant impact&lt;br&gt;on the time it takes to serve the publications list, then I would&lt;br&gt;rather write some search/replace shell scripts to handle the updates.&lt;p&gt;Any other suggestions are welcome, but databases and server-side&lt;br&gt;coding are not an option :)&lt;p&gt;- Max&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-3820715817521798930?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/3820715817521798930/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/performance-impact-of-100-ssi.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/3820715817521798930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/3820715817521798930'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/performance-impact-of-100-ssi.html' title='Performance impact of 100+ SSI directives'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-4578743649375186731</id><published>2011-03-16T09:22:00.001-07:00</published><updated>2011-03-16T09:22:46.269-07:00</updated><title type='text'>Re: Nginx Access_log Bytes</title><content type='html'>Hello!&lt;p&gt;On Wed, Mar 16, 2011 at 11:57:21AM -0400, frankatchoopa wrote:&lt;p&gt;&amp;gt; In the directive for logging access logs i&amp;#39;m trying to determine &lt;br&gt;&amp;gt; if the following variable $bytes_sent also accounts for proxy &lt;br&gt;&amp;gt; traffic if i&amp;#39;m pulling content from an origin server?&lt;p&gt;&lt;a href="http://wiki.nginx.org/HttpLogModule#log_format"&gt;http://wiki.nginx.org/HttpLogModule#log_format&lt;/a&gt;&lt;p&gt;: $bytes_sent, the number of bytes transmitted to client&lt;p&gt;It accounts for traffic sent to client, nothing more nor less.&lt;p&gt;Maxim Dounin&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-4578743649375186731?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/4578743649375186731/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-nginx-accesslog-bytes.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/4578743649375186731'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/4578743649375186731'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-nginx-accesslog-bytes.html' title='Re: Nginx Access_log Bytes'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-7648308862940839648</id><published>2011-03-16T08:57:00.000-07:00</published><updated>2011-03-16T08:58:52.261-07:00</updated><title type='text'>Nginx Access_log Bytes</title><content type='html'>In the directive for logging access logs i&amp;#39;m trying to determine if the following variable $bytes_sent also accounts for proxy traffic if i&amp;#39;m pulling content from an origin server?&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,183270,183270#msg-183270"&gt;http://forum.nginx.org/read.php?2,183270,183270#msg-183270&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-7648308862940839648?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/7648308862940839648/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/nginx-accesslog-bytes.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/7648308862940839648'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/7648308862940839648'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/nginx-accesslog-bytes.html' title='Nginx Access_log Bytes'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-3000963697140061382</id><published>2011-03-16T07:25:00.000-07:00</published><updated>2011-03-16T07:26:31.734-07:00</updated><title type='text'>Re: nginx access logs, timestamps "jump back"</title><content type='html'>Hello!&lt;p&gt;On Tue, Mar 15, 2011 at 10:26:16PM -0400, assistlydavid wrote:&lt;p&gt;&amp;gt; Hi Maxim,&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; Thanks for the response.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; How are the workers allocated work?  I&amp;#39;m still curious as to why &lt;br&gt;&amp;gt; I&amp;#39;d see a large block of ELB-only traffic flushed to the log at &lt;br&gt;&amp;gt; the same time, rather than a mix.  Any thoughts on that?&lt;p&gt;Workers accept() connections and process requests on accepted &lt;br&gt;connections.&lt;p&gt;Depending on settings (notably accept_mutex) and number of already &lt;br&gt;accepted connections conditions on which workers call accept() &lt;br&gt;vary.  With accept_mutex turned on (default) it&amp;#39;s likely that on &lt;br&gt;underloaded servers all/most of new connections will be accepted by &lt;br&gt;the same worker.&lt;p&gt;&amp;gt; Presumably, the chance of multiple workers flushing the same &lt;br&gt;&amp;gt; type of log messages (ELB-only) at the same time is very low, &lt;br&gt;&amp;gt; especially when we&amp;#39;re seeing constant traffic from end-users &lt;br&gt;&amp;gt; more frequently than ELB health checks.  Am I perhaps seeing all &lt;br&gt;&amp;gt; ELB-only traffic flushed from the buffer of a single worker?  &lt;p&gt;Most likely health checks use single keepalive connection, and &lt;br&gt;that&amp;#39;s why all health checks go to the same worker.&lt;p&gt;And new client connections are currently accepted by another &lt;br&gt;worker.&lt;p&gt;&amp;gt; Are workers chosen based on server/location directives?&lt;p&gt;No.&lt;p&gt;Maxim Dounin&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-3000963697140061382?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/3000963697140061382/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-nginx-access-logs-timestamps-jump_16.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/3000963697140061382'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/3000963697140061382'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-nginx-access-logs-timestamps-jump_16.html' title='Re: nginx access logs, timestamps &quot;jump back&quot;'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-520000264661213660</id><published>2011-03-16T03:35:00.000-07:00</published><updated>2011-03-16T03:37:09.720-07:00</updated><title type='text'>Re: Upstream timeout issue</title><content type='html'>Great that you fixed it.... but how? Is it possible to write the solution?&lt;br&gt;thanks&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,165055,183229#msg-183229"&gt;http://forum.nginx.org/read.php?2,165055,183229#msg-183229&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-520000264661213660?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/520000264661213660/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-upstream-timeout-issue.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/520000264661213660'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/520000264661213660'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-upstream-timeout-issue.html' title='Re: Upstream timeout issue'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-1121142564128605789</id><published>2011-03-16T00:36:00.000-07:00</published><updated>2011-03-16T00:37:24.255-07:00</updated><title type='text'>Re: [ANN] ngx_echo v0.35: ability to POST/PUT local files as subrequest bodies</title><content type='html'>On Wed, Mar 16, 2011 at 3:22 PM, Alexander Kunz &amp;lt;&lt;a href="mailto:akunz@ntmedia.de"&gt;akunz@ntmedia.de&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Thanks so much for your detailed answer. Works like a charm :)&lt;br&gt;&amp;gt;&lt;p&gt;Cool :)&lt;p&gt;&amp;gt; But i see i can&amp;#39;t access this from LUA?&lt;br&gt;&amp;gt;&lt;p&gt;No :)&lt;p&gt;&amp;gt;&lt;br&gt;&amp;gt; but is it possible to get&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; echo_request_body&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; directly in nginx LUA?&lt;br&gt;&amp;gt;&lt;p&gt;It indeed can be ported from ngx_echo to ngx_lua. Patches welcome :)&lt;p&gt;For now you can just read your disk files directly from within Lua. See&lt;p&gt;    &lt;a href="http://www.lua.org/pil/21.2.html"&gt;http://www.lua.org/pil/21.2.html&lt;/a&gt;&lt;p&gt;It may be less efficient, depending on the size of your disk files.&lt;br&gt;But generally, it can not be too slow.&lt;p&gt;No request body hassle is really needed here, I think ;)&lt;p&gt;Cheers,&lt;br&gt;-agentzh&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-1121142564128605789?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/1121142564128605789/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-ann-ngxecho-v035-ability-to-postput_5666.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/1121142564128605789'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/1121142564128605789'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-ann-ngxecho-v035-ability-to-postput_5666.html' title='Re: [ANN] ngx_echo v0.35: ability to POST/PUT local files as subrequest bodies'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-3986009691825174010</id><published>2011-03-16T00:22:00.000-07:00</published><updated>2011-03-16T00:23:41.368-07:00</updated><title type='text'>Re: [ANN] ngx_echo v0.35: ability to POST/PUT local files as subrequest bodies</title><content type='html'>&lt;br&gt;     Thanks so much for your detailed answer. Works like a charm :)&lt;br&gt;     &lt;br&gt;     But i see i can't access this from LUA?&lt;br&gt;     &lt;br&gt;     &amp;gt; The &lt;code&gt;ngx.location.capture&lt;/code&gt; and &lt;code&gt;ngx.location.capture_multi&lt;/code&gt;     Lua methods cannot &lt;br&gt;     &amp;gt; capture     locations configured by ngx_echo module's &lt;code&gt;echo_location&lt;/code&gt;,     &lt;code&gt;echo_location_async&lt;/code&gt;, &lt;code&gt;&lt;br&gt;       &amp;gt; echo_subrequest&lt;/code&gt;, or &lt;code&gt;echo_subrequest_async&lt;/code&gt;     directives. This     won't be fixed in the future due to technical problems :)&lt;br&gt;     &lt;br&gt;     but is it possible to get&amp;nbsp;     &lt;pre wrap=""&gt;echo_request_body&lt;/pre&gt;     directly in nginx LUA? &lt;br&gt;     &lt;br&gt;     Thanks.&lt;br&gt;     &lt;br&gt;     Alexander&lt;br&gt;     &lt;br&gt;     &lt;pre wrap=""&gt;  &lt;/pre&gt;     &lt;br&gt;     On 16.03.2011 03:28, agentzh wrote:     &lt;blockquote       cite="mid:AANLkTinZ0heBRQ+f+djYZHyBPPpfEwv2QdLw-9HC-X0g@mail.gmail.com"       type="cite"&gt;       &lt;pre wrap=""&gt;On Wed, Mar 16, 2011 at 6:15 AM, Alexander Kunz &lt;a class="moz-txt-link-rfc2396E" href="mailto:akunz@ntmedia.de"&gt;&amp;lt;akunz@ntmedia.de&amp;gt;&lt;/a&gt; wrote: &lt;/pre&gt;       &lt;blockquote type="cite"&gt;         &lt;pre wrap=""&gt; Hello,  any chance to debug the -f function? I use the debug log, but get no information about the file... /body1 shows me "test" but /body2 shows nothing... no error, no body content...  &lt;/pre&gt;       &lt;/blockquote&gt;       &lt;pre wrap=""&gt; Because there's no error in your /body2 request, no log is expected to be printed ;)  &lt;/pre&gt;       &lt;blockquote type="cite"&gt;         &lt;pre wrap=""&gt;     location /body1 {            echo_subrequest POST /sub -b 'test';        }       location /body2 {            echo_subrequest POST /sub -f /tmp/hello.txt;        }         location /sub {            echo "body: $echo_request_body";        } &lt;/pre&gt;       &lt;/blockquote&gt;       &lt;pre wrap=""&gt; Why $echo_request_body is empty for /body2? Because "echo_subrequest /sub -f /tmp/hello.txt" produces a request body that consists of *file* buffers only (such that nginx does not bother reading the whole disk file into RAM at once) and $echo_request_body only respects pure *memory* buffers.  The following example comes from the ngx_echo's test suite:      location /main {         echo_subrequest POST /sub -f html/blah.txt;     }      location /sub {         echo "sub method: $echo_request_method";         # we don't need to call echo_read_client_body explicitly here         echo_request_body;     }  where html/blah.txt contains the following contents:      Hello, world  Then GET /main gives      sub method: POST     Hello, world  Cheers, -agentzh  _______________________________________________ nginx mailing list &lt;a class="moz-txt-link-abbreviated" href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt; &lt;a class="moz-txt-link-freetext" href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt; &lt;/pre&gt;     &lt;/blockquote&gt;     &lt;br&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-3986009691825174010?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/3986009691825174010/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-ann-ngxecho-v035-ability-to-postput_16.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/3986009691825174010'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/3986009691825174010'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-ann-ngxecho-v035-ability-to-postput_16.html' title='Re: [ANN] ngx_echo v0.35: ability to POST/PUT local files as subrequest bodies'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-466857204070468826</id><published>2011-03-15T19:28:00.000-07:00</published><updated>2011-03-15T19:29:42.386-07:00</updated><title type='text'>Re: [ANN] ngx_echo v0.35: ability to POST/PUT local files as subrequest bodies</title><content type='html'>On Wed, Mar 16, 2011 at 6:15 AM, Alexander Kunz &amp;lt;&lt;a href="mailto:akunz@ntmedia.de"&gt;akunz@ntmedia.de&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Hello,&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; any chance to debug the -f function? I use the debug log, but get no&lt;br&gt;&amp;gt; information about the file... /body1&lt;br&gt;&amp;gt; shows me &amp;quot;test&amp;quot; but /body2 shows nothing... no error, no body content...&lt;br&gt;&amp;gt;&lt;p&gt;Because there&amp;#39;s no error in your /body2 request, no log is expected to&lt;br&gt;be printed ;)&lt;p&gt;&amp;gt;      location /body1 {&lt;br&gt;&amp;gt;            echo_subrequest POST /sub -b &amp;#39;test&amp;#39;;&lt;br&gt;&amp;gt;        }&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;      location /body2 {&lt;br&gt;&amp;gt;            echo_subrequest POST /sub -f /tmp/hello.txt;&lt;br&gt;&amp;gt;        }&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;        location /sub {&lt;br&gt;&amp;gt;            echo &amp;quot;body: $echo_request_body&amp;quot;;&lt;br&gt;&amp;gt;        }&lt;p&gt;Why $echo_request_body is empty for /body2? Because &amp;quot;echo_subrequest&lt;br&gt;/sub -f /tmp/hello.txt&amp;quot; produces a request body that consists of&lt;br&gt;*file* buffers only (such that nginx does not bother reading the whole&lt;br&gt;disk file into RAM at once) and $echo_request_body only respects pure&lt;br&gt;*memory* buffers.&lt;p&gt;The following example comes from the ngx_echo&amp;#39;s test suite:&lt;p&gt;    location /main {&lt;br&gt;        echo_subrequest POST /sub -f html/blah.txt;&lt;br&gt;    }&lt;p&gt;    location /sub {&lt;br&gt;        echo &amp;quot;sub method: $echo_request_method&amp;quot;;&lt;br&gt;        # we don&amp;#39;t need to call echo_read_client_body explicitly here&lt;br&gt;        echo_request_body;&lt;br&gt;    }&lt;p&gt;where html/blah.txt contains the following contents:&lt;p&gt;    Hello, world&lt;p&gt;Then GET /main gives&lt;p&gt;    sub method: POST&lt;br&gt;    Hello, world&lt;p&gt;Cheers,&lt;br&gt;-agentzh&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-466857204070468826?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/466857204070468826/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-ann-ngxecho-v035-ability-to-postput_7067.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/466857204070468826'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/466857204070468826'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-ann-ngxecho-v035-ability-to-postput_7067.html' title='Re: [ANN] ngx_echo v0.35: ability to POST/PUT local files as subrequest bodies'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-1687408613962885640</id><published>2011-03-15T19:26:00.000-07:00</published><updated>2011-03-15T19:28:04.377-07:00</updated><title type='text'>Re: nginx access logs, timestamps "jump back"</title><content type='html'>Hi Maxim,&lt;p&gt;Thanks for the response.&lt;p&gt;How are the workers allocated work?  I&amp;#39;m still curious as to why I&amp;#39;d see a large block of ELB-only traffic flushed to the log at the same time, rather than a mix.  Any thoughts on that?&lt;p&gt;Presumably, the chance of multiple workers flushing the same type of log messages (ELB-only) at the same time is very low, especially when we&amp;#39;re seeing constant traffic from end-users more frequently than ELB health checks.  Am I perhaps seeing all ELB-only traffic flushed from the buffer of a single worker?  Are workers chosen based on server/location directives?&lt;p&gt;ps.  Each web server in the load balancer pool is dealing with approximately 60 simultaneous connections, approximately 6 requests per second, and an ELB health check is performed every 30 seconds for each of 4 ELBs.  The logs show that 3 of those health checks happen in the same second.&lt;p&gt;Cheers,&lt;br&gt;David.&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,182969,183186#msg-183186"&gt;http://forum.nginx.org/read.php?2,182969,183186#msg-183186&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-1687408613962885640?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/1687408613962885640/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-nginx-access-logs-timestamps-jump_15.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/1687408613962885640'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/1687408613962885640'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-nginx-access-logs-timestamps-jump_15.html' title='Re: nginx access logs, timestamps &quot;jump back&quot;'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-1065192833305092603</id><published>2011-03-15T16:13:00.000-07:00</published><updated>2011-03-15T16:14:39.565-07:00</updated><title type='text'>Re: nginx, from connected to first byte.</title><content type='html'>On Tue, Mar 15, 2011 at 12:05:52AM -0400, digginchina wrote:&lt;p&gt;Hi there,&lt;p&gt;&amp;gt; thanks a lot for the reply, i disable debug when compile the nginx, need i re-compile? i don&amp;#39;t know the exact meaning of &amp;quot;debug log&amp;quot;, whether it&amp;#39;s a general nginx log or another log?&lt;p&gt;Debug log: &lt;a href="http://nginx.org/en/docs/debugging_log.html"&gt;http://nginx.org/en/docs/debugging_log.html&lt;/a&gt;&lt;p&gt;Must be enabled at compile time.&lt;p&gt;&amp;gt; and one more question, how to check the status of nginx-fastcgi connection and the fastcgi-application interaction?&lt;p&gt;nginx-fastcgi: nginx is the client, your fastcgi server is the&lt;br&gt;server. Debug log shows the nginx side; tcpdump or something similar&lt;br&gt;can show the traffic between the two; and your server may have a &amp;quot;debug&amp;quot;&lt;br&gt;mode to show its idea of the interaction.&lt;p&gt;fastcgi-application: your fastcgi server and your application. Maybe&lt;br&gt;extra sleeps and prints can show what is going on?&lt;p&gt;&amp;gt; btw, i use unix file pid to connect fastcgi, could you please tell me whether this method or network port method is better?&lt;p&gt;If the fastcgi server is on a different machine, the network port method&lt;br&gt;is better because it works.&lt;p&gt;If nginx and fastcgi are on the same machine, the connection method&lt;br&gt;shouldn&amp;#39;t matter (much). Unix sockets should be better from an&lt;br&gt;access-control view. But there are suggestions on this list recently&lt;br&gt;that the combination of &amp;quot;sendfile on&amp;quot; and unix sockets on at least one&lt;br&gt;OS has problems with largish uploads.&lt;p&gt;The two options seem close enough to me, that if your testing doesn&amp;#39;t&lt;br&gt;show a good reason to pick one over the other, then choose either and&lt;br&gt;don&amp;#39;t worry about it.&lt;p&gt;Good luck with it,&lt;p&gt;	f&lt;br&gt;-- &lt;br&gt;Francis Daly        &lt;a href="mailto:francis@daoine.org"&gt;francis@daoine.org&lt;/a&gt;&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-1065192833305092603?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/1065192833305092603/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-nginx-from-connected-to-first-byte_15.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/1065192833305092603'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/1065192833305092603'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-nginx-from-connected-to-first-byte_15.html' title='Re: nginx, from connected to first byte.'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-7579792832919068457</id><published>2011-03-15T15:15:00.000-07:00</published><updated>2011-03-15T15:16:31.755-07:00</updated><title type='text'>Re: [ANN] ngx_echo v0.35: ability to POST/PUT local files as subrequest bodies</title><content type='html'>Hello,&lt;p&gt;any chance to debug the -f function? I use the debug log, but get no &lt;br&gt;information about the file... /body1&lt;br&gt;shows me &amp;quot;test&amp;quot; but /body2 shows nothing... no error, no body content...&lt;p&gt;       location /body1 {&lt;br&gt;             echo_subrequest POST /sub -b &amp;#39;test&amp;#39;;&lt;br&gt;         }&lt;p&gt;       location /body2 {&lt;br&gt;             echo_subrequest POST /sub -f /tmp/hello.txt;&lt;br&gt;         }&lt;p&gt;         location /sub {&lt;br&gt;             echo &amp;quot;body: $echo_request_body&amp;quot;;&lt;br&gt;         }&lt;p&gt;Thanks for your help.&lt;p&gt;Alexander&lt;p&gt;&lt;p&gt;&lt;p&gt;On 10.03.2011 10:34, agentzh wrote:&lt;br&gt;&amp;gt; On Thu, Mar 10, 2011 at 5:01 PM, Elena Zwetkow&amp;lt;&lt;a href="mailto:ezwetkow@gmx.de"&gt;ezwetkow@gmx.de&lt;/a&gt;&amp;gt;  wrote:&lt;br&gt;&amp;gt;&amp;gt; Thanks so much for the detailed information.&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; Storing uploaded data nonblocking sounds not so easy... What do you think about a solution sending data as base64 encoded sting, then i can use your form-input addon and send this data directly to redis?&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt; When your data is small enough to be hold in RAM, just use ngx_lua as&lt;br&gt;&amp;gt; the glue. Use&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;      lua_need_request_body on in nginx.conf&lt;br&gt;&amp;gt;         + client_body_in_single_buffer on in nginx.conf&lt;br&gt;&amp;gt;         + ngx.var.request_body + ngx.decode_base64() +&lt;br&gt;&amp;gt; ngx.location.capture() in Lua&lt;br&gt;&amp;gt;         + ngx_redis2 in nginx.conf&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Then it&amp;#39;ll no longer block on disk operations because no disk&lt;br&gt;&amp;gt; operations will be involved.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Cheers,&lt;br&gt;&amp;gt; -agentzh&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; _______________________________________________&lt;br&gt;&amp;gt; nginx mailing list&lt;br&gt;&amp;gt; &lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-7579792832919068457?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/7579792832919068457/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-ann-ngxecho-v035-ability-to-postput_15.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/7579792832919068457'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/7579792832919068457'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-ann-ngxecho-v035-ability-to-postput_15.html' title='Re: [ANN] ngx_echo v0.35: ability to POST/PUT local files as subrequest bodies'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-368919728889729968</id><published>2011-03-15T07:18:00.000-07:00</published><updated>2011-03-15T07:22:14.809-07:00</updated><title type='text'>Caching, purging &amp; gzip</title><content type='html'>Hello everybody,&lt;p&gt;I currently have Nginx running as a reverse static proxy cache. I cache CSS/JPG/JS file with proxy_cache directive. I&amp;#39;ve also cache purging with ngx_cache_purge module ( &lt;a href="http://labs.frickle.com/nginx_ngx_cache_purge/"&gt;http://labs.frickle.com/nginx_ngx_cache_purge/&lt;/a&gt; )&lt;p&gt;Now I would like to serve my CSS/JPG/JS gzipped. What do you think is the best way to achive this ? &lt;p&gt;1) Modify apache conf to serve gzipped file to Nginx&lt;br&gt;2) Configure NGINX to serve gzipped version with HttpGzipStaticModule&lt;p&gt;Please consider that :&lt;p&gt;1) I still want my CSS/JPG/JS to be cached by nginx&lt;br&gt;2) I still want be able to purge CSS/JPG/JS from the cache by using ngx_cache_purge module&lt;br&gt;3) I don&amp;#39;t want to overload the reverse proxy machine with gzip operations so I was thinking about &lt;a href="http://wiki.nginx.org/HttpGzipStaticModule#gzip_static"&gt;http://wiki.nginx.org/HttpGzipStaticModule#gzip_static&lt;/a&gt; directives&lt;p&gt;Waiting for your hints &lt;p&gt;Ciao&lt;p&gt;-- &lt;br&gt;Simone&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-368919728889729968?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/368919728889729968/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/caching-purging-gzip.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/368919728889729968'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/368919728889729968'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/caching-purging-gzip.html' title='Caching, purging &amp; gzip'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-3080762275349359824</id><published>2011-03-15T06:13:00.001-07:00</published><updated>2011-03-15T06:13:42.131-07:00</updated><title type='text'>Re: Nginx Cache not working with wget or curl</title><content type='html'>Hello!&lt;p&gt;On Tue, Mar 15, 2011 at 08:52:59AM -0400, Fred91 wrote:&lt;p&gt;&amp;gt; I found how to solve this problem : a cookie was set by the loadbalancer of our backends.&lt;br&gt;&amp;gt; I added Set-cookie to proxy_ignore_headers.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; What I don&amp;#39;t understand, however is why it&amp;#39;s working with standard web browsers.&lt;p&gt;Most likely standard browsers sent previously set cookie and &lt;br&gt;your backends doesn&amp;#39;t try to set new one.&lt;p&gt;Maxim Dounin&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-3080762275349359824?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/3080762275349359824/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-nginx-cache-not-working-with-wget-or_15.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/3080762275349359824'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/3080762275349359824'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-nginx-cache-not-working-with-wget-or_15.html' title='Re: Nginx Cache not working with wget or curl'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-376145739819105798</id><published>2011-03-15T05:52:00.000-07:00</published><updated>2011-03-15T05:54:13.288-07:00</updated><title type='text'>Re: Nginx Cache not working with wget or curl</title><content type='html'>I found how to solve this problem : a cookie was set by the loadbalancer of our backends.&lt;br&gt;I added Set-cookie to proxy_ignore_headers.&lt;p&gt;What I don&amp;#39;t understand, however is why it&amp;#39;s working with standard web browsers.&lt;p&gt;Fred&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,183034,183053#msg-183053"&gt;http://forum.nginx.org/read.php?2,183034,183053#msg-183053&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-376145739819105798?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/376145739819105798/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-nginx-cache-not-working-with-wget-or.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/376145739819105798'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/376145739819105798'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-nginx-cache-not-working-with-wget-or.html' title='Re: Nginx Cache not working with wget or curl'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-8634400145171938587</id><published>2011-03-15T04:45:00.000-07:00</published><updated>2011-03-15T04:46:22.247-07:00</updated><title type='text'>Re: Issue in Lua-nginx-module when use both ngx.location.capture and ngx.exec</title><content type='html'>nginx.conf&lt;br&gt;&lt;br&gt;location /test {&lt;br&gt;    root html;&lt;br&gt;    content_by_lua_file &amp;quot;conf/test.lua&amp;quot;;&lt;br&gt;}&lt;br&gt;&lt;br&gt;test.lua:&lt;br&gt;-- start&lt;br&gt;ngx.location.capture(&amp;#39;/1.html&amp;#39;)&lt;div id=":1pg"&gt;&lt;br&gt;ngx.exec(&amp;quot;/1.html&amp;quot;)&lt;br&gt; -- end&lt;br&gt;&lt;br&gt;Files in folder :&lt;br&gt;&lt;br&gt;nginx&lt;br&gt;    -- conf&lt;br&gt;        -- nginx.conf&lt;br&gt;        -- test.lua&lt;br&gt;    -- html&lt;br&gt;        -- 1.html&lt;br&gt;&lt;/div&gt;&lt;br&gt;That is all&lt;br&gt;&lt;br&gt;#用中文再说一遍,英语水平有限:&lt;br&gt;我得到的最小集合就是:&lt;br&gt;1. nginx.conf&lt;br&gt; location /test {&lt;br&gt;     root html;&lt;br&gt;     content_by_lua_file &amp;quot;conf/test.lua&amp;quot;;&lt;br&gt; }&lt;br&gt;server/http等配置按默认的, event module用的是 epoll&lt;br&gt;&lt;br&gt;2. test.lua文件仅2行:&lt;br&gt;ngx.location.capture(&amp;#39;/1.html&amp;#39;) &lt;div id=":1pg"&gt;&lt;br&gt;ngx.exec(&amp;quot;/1.html&amp;quot;)&lt;br&gt;&lt;br&gt;我尝试过,无论这两句话是否请求同一个文件,结果都一样.&lt;br&gt;&lt;br&gt;3. 1.html文件里面仅有几个字母,我已经试过不同的文件大小,结果一样&lt;br&gt;&lt;br&gt;&lt;br&gt;我遇到的情况是这样的:&lt;br&gt;1. 通过wget/curl/Firefox来访问 localhost/test 都能正常显示1.html中的内容&lt;br&gt;2. 使用ab访问 localhost/1.html是正常的,能够pass&lt;br&gt; 3. 使用ab进行测试,总是timeout , 我使用的语句是 ab -v 5 localhost/test  &lt;br&gt;Benchmarking localhost (be patient)...INFO: POST header == &lt;br&gt;---&lt;br&gt; GET /down2 HTTP/1.0&lt;br&gt;Host: localhost&lt;br&gt;User-Agent: ApacheBench/2.3&lt;br&gt;Accept: */*&lt;br&gt;&lt;br&gt;&lt;br&gt;---&lt;br&gt;LOG: header received:&lt;br&gt;HTTP/1.1 200 OK&lt;br&gt;Server: nginx/0.8.54&lt;br&gt;Date: Tue, 15 Mar 2011 07:22:30 GMT&lt;br&gt;Content-Type: text/plain&lt;br&gt;  Content-Length: 4&lt;br&gt;Last-Modified: Fri, 11 Mar 2011 09:32:28 GMT&lt;br&gt;Connection: close&lt;br&gt;Accept-Ranges: bytes&lt;br&gt;&lt;br&gt;ABC&lt;br&gt;&lt;br&gt;LOG: Response code = 200&lt;br&gt;&lt;span style="color:rgb(255, 0, 0)"&gt;apr_poll: The timeout specified has expired (70007)&lt;/span&gt;&lt;br&gt; &lt;/div&gt;&lt;br&gt;其中的ABC就是1.html的内容, 非常抱歉我之前写错了.&lt;br&gt;&lt;br&gt;对于0A0D的描述,仅仅是我的猜测,请无视之.&lt;br&gt;&lt;br&gt;单独写 ngx.exec(&amp;quot;/1.html&amp;quot;) 也是能够通过ab测试的.&lt;br&gt;&lt;br&gt;环境:&lt;br&gt;Ubuntu 10.10&lt;br&gt;Luajit-5.1-dev&lt;br&gt;Nginx 0.8.54&lt;br&gt;Lua-nginx-module 0.16rc2&lt;br&gt;&lt;br&gt; Thanks,&lt;br&gt;Wendal Chen&lt;br&gt;&lt;br&gt;&lt;div class="gmail_quote"&gt;2011/3/15 agentzh &lt;span dir="ltr"&gt;&amp;lt;&lt;a href="mailto:agentzh@gmail.com"&gt;agentzh@gmail.com&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"&gt; &lt;div class="im"&gt;On Tue, Mar 15, 2011 at 3:26 PM, Wendal Chen &amp;lt;&lt;a href="mailto:wendal1985@gmail.com"&gt;wendal1985@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt; &amp;gt; Hi,&lt;br&gt; &amp;gt;&lt;br&gt; &amp;gt; Lua-nginx-module 0.16RC2&lt;br&gt; &amp;gt; Nginx  0.8.54&lt;br&gt; &amp;gt;&lt;br&gt; &lt;/div&gt;[snip]&lt;br&gt; &lt;div class="im"&gt;&amp;gt;&lt;br&gt; &amp;gt; I am Best&lt;br&gt; &amp;gt;&lt;br&gt; &amp;gt; LOG: Response code = 200&lt;br&gt; &amp;gt; apr_poll: The timeout specified has expired (70007)&lt;br&gt; &amp;gt;&lt;br&gt; &lt;br&gt; &lt;/div&gt;Can you provide a minimized but complete example to help us reproduce&lt;br&gt; this issue?&lt;br&gt; &lt;br&gt; I do not understand where the output &amp;quot;I am Best&amp;quot; came from in your&lt;br&gt; sample, for example.&lt;br&gt; &lt;br&gt; And in particular, what exactly were you doing in &amp;quot;-- do something for res&amp;quot; ?&lt;br&gt; &lt;div class="im"&gt;&lt;br&gt; &amp;gt; I think lua-nginx-module lose some 0x0A 0x0D in resp.&lt;br&gt; &amp;gt;&lt;br&gt; &lt;br&gt; &lt;/div&gt;Where does &amp;quot;0x0A 0x0D&amp;quot; come from?&lt;br&gt; &lt;br&gt; Cheers,&lt;br&gt; &lt;font color="#888888"&gt;-agentzh&lt;br&gt; &lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-8634400145171938587?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/8634400145171938587/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-issue-in-lua-nginx-module-when-use_15.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/8634400145171938587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/8634400145171938587'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-issue-in-lua-nginx-module-when-use_15.html' title='Re: Issue in Lua-nginx-module when use both ngx.location.capture and ngx.exec'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-5173761178032751628</id><published>2011-03-15T04:19:00.001-07:00</published><updated>2011-03-15T04:19:47.871-07:00</updated><title type='text'>Nginx Cache not working with wget or curl</title><content type='html'>Hello,&lt;p&gt;I set up Ninx as a cache proxy for our webservers.&lt;p&gt;Everything is working fine when using a standard web browser (Firefox, IE, Chrome), pages are correctly cached according to the rules I have defined.&lt;p&gt;However, I noticed that non standard tools to retrieve web pages (wget, curl and some monitoring tools) are not caching pages and are always getting content from the backend. In the log file, I have upstream_cache_status with MISS (however, if I first call my page with Firefox, wget or curl are displaying the cached page).&lt;p&gt;I thought first it was due to the fact that the monitoring tool and wget are using HTTP/1.0 but curl is using HTTP/1.1 and the result is the same.&lt;p&gt;Is there a special parameters to allow such tools to cache pages ?&lt;p&gt;Thank you for your help,&lt;p&gt;Fred&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,183034,183034#msg-183034"&gt;http://forum.nginx.org/read.php?2,183034,183034#msg-183034&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-5173761178032751628?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/5173761178032751628/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/nginx-cache-not-working-with-wget-or.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/5173761178032751628'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/5173761178032751628'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/nginx-cache-not-working-with-wget-or.html' title='Nginx Cache not working with wget or curl'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-8051124347032087407</id><published>2011-03-15T03:38:00.000-07:00</published><updated>2011-03-15T03:40:00.745-07:00</updated><title type='text'>Re: Issue in Lua-nginx-module when use both ngx.location.capture and ngx.exec</title><content type='html'>On Tue, Mar 15, 2011 at 3:26 PM, Wendal Chen &amp;lt;&lt;a href="mailto:wendal1985@gmail.com"&gt;wendal1985@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; Hi,&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Lua-nginx-module 0.16RC2&lt;br&gt;&amp;gt; Nginx&amp;#160; 0.8.54&lt;br&gt;&amp;gt;&lt;br&gt;[snip]&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; I am Best&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; LOG: Response code = 200&lt;br&gt;&amp;gt; apr_poll: The timeout specified has expired (70007)&lt;br&gt;&amp;gt;&lt;p&gt;Can you provide a minimized but complete example to help us reproduce&lt;br&gt;this issue?&lt;p&gt;I do not understand where the output &amp;quot;I am Best&amp;quot; came from in your&lt;br&gt;sample, for example.&lt;p&gt;And in particular, what exactly were you doing in &amp;quot;-- do something for res&amp;quot; ?&lt;p&gt;&amp;gt; I think lua-nginx-module lose some 0x0A 0x0D in resp.&lt;br&gt;&amp;gt;&lt;p&gt;Where does &amp;quot;0x0A 0x0D&amp;quot; come from?&lt;p&gt;Cheers,&lt;br&gt;-agentzh&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-8051124347032087407?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/8051124347032087407/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-issue-in-lua-nginx-module-when-use.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/8051124347032087407'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/8051124347032087407'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-issue-in-lua-nginx-module-when-use.html' title='Re: Issue in Lua-nginx-module when use both ngx.location.capture and ngx.exec'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-4978694687054734480</id><published>2011-03-15T02:36:00.000-07:00</published><updated>2011-03-15T02:43:51.898-07:00</updated><title type='text'>Re: nginx cache exceeded, cache manager busy</title><content type='html'>Hi, we&amp;#39;re experiencing exactly the same issue using the local filesystem as cache store. We had the same issue with nginx 0.7.67 and now with 0.8.54. The cache grows outside the specified boundaries and nginx process uses the 100% of a single core. &lt;p&gt;I tried to strace the malfunctioning running process but all I got is tons of gettimeofday&lt;br&gt;gettimeofday({1300181425, 698292}, NULL) = 0&lt;br&gt;gettimeofday({1300181425, 698360}, NULL) = 0&lt;br&gt;gettimeofday({1300181425, 698410}, NULL) = 0&lt;br&gt;gettimeofday({1300181425, 698459}, NULL) = 0&lt;br&gt;gettimeofday({1300181425, 698508}, NULL) = 0&lt;br&gt;...&lt;p&gt;Are you using CentOS 5 64bit? Can you check nginx error log and see if you have crashed workers please?&lt;p&gt;Thanks.&lt;p&gt;--&lt;p&gt;nginx error log:&lt;p&gt;2011/03/12 09:09:09 [notice] 5979#0: signal 17 (SIGCHLD) received&lt;br&gt;2011/03/12 09:09:09 [alert] 5979#0: worker process 5988 exited on signal 11&lt;br&gt;2011/03/12 09:09:09 [notice] 5979#0: start worker process 29906&lt;br&gt;2011/03/12 09:09:09 [notice] 5979#0: signal 29 (SIGIO) received&lt;br&gt;*** glibc detected *** nginx: worker process: free(): invalid next size (normal): 0x00000000006e13c0 ***&lt;br&gt;======= Backtrace: =========&lt;br&gt;/lib64/libc.so.6[0x2b197d5f630f]&lt;br&gt;/lib64/libc.so.6(cfree+0x4b)[0x2b197d5f676b]&lt;br&gt;nginx: worker process[0x404ce4]&lt;br&gt;nginx: worker process[0x42701b]&lt;br&gt;nginx: worker process[0x427065]&lt;br&gt;nginx: worker process[0x42929f]&lt;br&gt;nginx: worker process[0x4346aa]&lt;br&gt;nginx: worker process[0x435056]&lt;br&gt;nginx: worker process[0x435130]&lt;br&gt;nginx: worker process[0x436c03]&lt;br&gt;nginx: worker process[0x435237]&lt;br&gt;nginx: worker process[0x41732e]&lt;br&gt;nginx: worker process[0x4171f0]&lt;br&gt;nginx: worker process[0x41c951]&lt;br&gt;nginx: worker process[0x41b2a7]&lt;br&gt;nginx: worker process[0x41d139]&lt;br&gt;nginx: worker process[0x40419a]&lt;br&gt;/lib64/libc.so.6(__libc_start_main+0xf4)[0x2b197d5a1994]&lt;br&gt;nginx: worker process[0x4029b9]&lt;br&gt;======= Memory map: ========&lt;br&gt;00400000-00468000 r-xp 00000000 ca:02 5210299                            /usr/local/nginx/sbin/nginx&lt;br&gt;00668000-00675000 rw-p 00068000 ca:02 5210299                            /usr/local/nginx/sbin/nginx&lt;br&gt;00675000-0074d000 rw-p 00675000 00:00 0                                  [heap]&lt;br&gt;2b197c9ad000-2b197c9c9000 r-xp 00000000 ca:02 4047069                    /lib64/&lt;a href="http://ld-2.5.so"&gt;ld-2.5.so&lt;/a&gt;&lt;br&gt;2b197c9c9000-2b197c9ca000 rw-p 2b197c9c9000 00:00 0 &lt;br&gt;2b197c9d1000-2b197c9ff000 rw-p 2b197c9d1000 00:00 0 &lt;br&gt;2b197cbc8000-2b197cbc9000 r--p 0001b000 ca:02 4047069                    /lib64/&lt;a href="http://ld-2.5.so"&gt;ld-2.5.so&lt;/a&gt;&lt;br&gt;2b197cbc9000-2b197cbca000 rw-p 0001c000 ca:02 4047069                    /lib64/&lt;a href="http://ld-2.5.so"&gt;ld-2.5.so&lt;/a&gt;&lt;br&gt;2b197cbca000-2b197cbd3000 r-xp 00000000 ca:02 606255                     /lib64/&lt;a href="http://libcrypt-2.5.so"&gt;libcrypt-2.5.so&lt;/a&gt;&lt;br&gt;2b197cbd3000-2b197cdd2000 ---p 00009000 ca:02 606255                     /lib64/&lt;a href="http://libcrypt-2.5.so"&gt;libcrypt-2.5.so&lt;/a&gt;&lt;br&gt;2b197cdd2000-2b197cdd3000 r--p 00008000 ca:02 606255                     /lib64/&lt;a href="http://libcrypt-2.5.so"&gt;libcrypt-2.5.so&lt;/a&gt;&lt;br&gt;2b197cdd3000-2b197cdd4000 rw-p 00009000 ca:02 606255                     /lib64/&lt;a href="http://libcrypt-2.5.so"&gt;libcrypt-2.5.so&lt;/a&gt;&lt;br&gt;2b197cdd4000-2b197ce02000 rw-p 2b197cdd4000 00:00 0 &lt;br&gt;2b197ce02000-2b197ce1d000 r-xp 00000000 ca:02 606375                     /lib64/libpcre.so.0.0.1&lt;br&gt;2b197ce1d000-2b197d01d000 ---p 0001b000 ca:02 606375                     /lib64/libpcre.so.0.0.1&lt;br&gt;2b197d01d000-2b197d01e000 rw-p 0001b000 ca:02 606375                     /lib64/libpcre.so.0.0.1&lt;br&gt;2b197d01e000-2b197d14b000 r-xp 00000000 ca:02 4047961                    /lib64/libcrypto.so.0.9.8e&lt;br&gt;2b197d14b000-2b197d34a000 ---p 0012d000 ca:02 4047961                    /lib64/libcrypto.so.0.9.8e&lt;br&gt;2b197d34a000-2b197d36b000 rw-p 0012c000 ca:02 4047961                    /lib64/libcrypto.so.0.9.8e&lt;br&gt;2b197d36b000-2b197d370000 rw-p 2b197d36b000 00:00 0 &lt;br&gt;2b197d370000-2b197d384000 r-xp 00000000 ca:02 5033221                    /usr/lib64/libz.so.1.2.3&lt;br&gt;2b197d384000-2b197d583000 ---p 00014000 ca:02 5033221                    /usr/lib64/libz.so.1.2.3&lt;br&gt;2b197d583000-2b197d584000 rw-p 00013000 ca:02 5033221                    /usr/lib64/libz.so.1.2.3&lt;br&gt;2b197d584000-2b197d6d2000 r-xp 00000000 ca:02 606251                     /lib64/&lt;a href="http://libc-2.5.so"&gt;libc-2.5.so&lt;/a&gt;&lt;br&gt;2b197d6d2000-2b197d8d1000 ---p 0014e000 ca:02 606251                     /lib64/&lt;a href="http://libc-2.5.so"&gt;libc-2.5.so&lt;/a&gt;&lt;br&gt;2b197d8d1000-2b197d8d5000 r--p 0014d000 ca:02 606251                     /lib64/&lt;a href="http://libc-2.5.so"&gt;libc-2.5.so&lt;/a&gt;&lt;br&gt;2b197d8d5000-2b197d8d6000 rw-p 00151000 ca:02 606251                     /lib64/&lt;a href="http://libc-2.5.so"&gt;libc-2.5.so&lt;/a&gt;&lt;br&gt;2b197d8d6000-2b197d8db000 rw-p 2b197d8d6000 00:00 0 &lt;br&gt;2b197d8db000-2b197d8dd000 r-xp 00000000 ca:02 606257                     /lib64/&lt;a href="http://libdl-2.5.so"&gt;libdl-2.5.so&lt;/a&gt;&lt;br&gt;2b197d8dd000-2b197dadd000 ---p 00002000 ca:02 606257                     /lib64/&lt;a href="http://libdl-2.5.so"&gt;libdl-2.5.so&lt;/a&gt;&lt;br&gt;2b197dadd000-2b197dade000 r--p 00002000 ca:02 606257                     /lib64/&lt;a href="http://libdl-2.5.so"&gt;libdl-2.5.so&lt;/a&gt;&lt;br&gt;2b197dade000-2b197dadf000 rw-p 00003000 ca:02 606257                     /lib64/&lt;a href="http://libdl-2.5.so"&gt;libdl-2.5.so&lt;/a&gt;&lt;br&gt;2b197dadf000-2b197dae1000 rw-p 2b197dadf000 00:00 0 &lt;br&gt;2b197dae1000-2b197daeb000 r-xp 00000000 ca:02 606383                     /lib64/&lt;a href="http://libnss_files-2.5.so"&gt;libnss_files-2.5.so&lt;/a&gt;&lt;br&gt;2b197daeb000-2b197dcea000 ---p 0000a000 ca:02 606383                     /lib64/&lt;a href="http://libnss_files-2.5.so"&gt;libnss_files-2.5.so&lt;/a&gt;&lt;br&gt;2b197dcea000-2b197dceb000 r--p 00009000 ca:02 606383                     /lib64/&lt;a href="http://libnss_files-2.5.so"&gt;libnss_files-2.5.so&lt;/a&gt;&lt;br&gt;2b197dceb000-2b197dcec000 rw-p 0000a000 ca:02 606383                     /lib64/&lt;a href="http://libnss_files-2.5.so"&gt;libnss_files-2.5.so&lt;/a&gt;&lt;br&gt;2b197dcec000-2b198a4ec000 rw-s 00000000 00:08 1855417355                 /dev/zero (deleted)&lt;br&gt;2b198a4ec000-2b198acec000 rw-s 00000000 00:08 1855417356                 /dev/zero (deleted)&lt;br&gt;2b198acec000-2b198aced000 rw-s 00000000 00:08 1855417359                 /dev/zero (deleted)&lt;br&gt;2b198aced000-2b198acfa000 r-xp 00000000 ca:02 4047067                    /lib64/libgcc_s-4.1.2-20080825.so.1&lt;br&gt;2b198acfa000-2b198aefa000 ---p 0000d000 ca:02 4047067                    /lib64/libgcc_s-4.1.2-20080825.so.1&lt;br&gt;2b198aefa000-2b198aefb000 rw-p 0000d000 ca:02 4047067                    /lib64/libgcc_s-4.1.2-20080825.so.1&lt;br&gt;7fff2e0e7000-7fff2e0fd000 rw-p 7fff2e0e7000 00:00 0                      [stack]&lt;br&gt;ffffffffff600000-ffffffffffe00000 ---p 00000000 00:00 0                  [vdso]&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,182995,183019#msg-183019"&gt;http://forum.nginx.org/read.php?2,182995,183019#msg-183019&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-4978694687054734480?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/4978694687054734480/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-nginx-cache-exceeded-cache-manager.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/4978694687054734480'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/4978694687054734480'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-nginx-cache-exceeded-cache-manager.html' title='Re: nginx cache exceeded, cache manager busy'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-1965264153970502139</id><published>2011-03-15T00:32:00.000-07:00</published><updated>2011-03-15T00:33:15.051-07:00</updated><title type='text'>nginx cache exceeded, cache manager busy</title><content type='html'>Hi,&lt;br&gt;     We are using nginx/0.8.15 on our front web server, mainly for caching and reverse proxy. Our cache is located in /dev/shm disk in order to obtain a better performance. Recently, we&amp;#39;ve found that sometimes the total size of the cache path would exceed the &amp;quot;max_size&amp;quot; in the configuration, and the process of &amp;quot;cache manager process&amp;quot; is quite busy, using 100% for one CPU. &lt;br&gt;     We presume that the cache manager process might not be able to delete those expired files in time, because the read/write frequency on the cache disk is very high in our production environment, so the total size of the cache path sometimes exceeds the configuration. Is it correct? The configuration about it is &amp;quot;proxy_cache_path /dev/shm/nginx/cache/ levels=2:2 keys_zone=proxy-cache:154m max_size=4g inactive=72h ;&amp;quot;&lt;p&gt;     Could someone tell us how to fix this problem?  Thanks a lot.&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,182995,182995#msg-182995"&gt;http://forum.nginx.org/read.php?2,182995,182995#msg-182995&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-1965264153970502139?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/1965264153970502139/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/nginx-cache-exceeded-cache-manager-busy.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/1965264153970502139'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/1965264153970502139'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/nginx-cache-exceeded-cache-manager-busy.html' title='nginx cache exceeded, cache manager busy'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-6189268078279812103</id><published>2011-03-15T00:26:00.000-07:00</published><updated>2011-03-15T00:28:01.271-07:00</updated><title type='text'>Issue in Lua-nginx-module when use both ngx.location.capture and ngx.exec</title><content type='html'>Hi,&lt;br&gt;&lt;br&gt;Lua-nginx-module 0.16RC2&lt;br&gt;Nginx  0.8.54&lt;br&gt;&lt;br&gt;my nginx.conf :&lt;br&gt;        location =/down2 {&lt;br&gt;                content_by_lua_file &amp;quot;conf/lua_test.lua&amp;quot;;&lt;br&gt;        }&lt;br&gt;&lt;br&gt;and lua_test.lua:&lt;br&gt;local res = ngx.location.capture(&amp;#39;/somepath&amp;#39;)&lt;br&gt; -- do something for res&lt;br&gt;&lt;br&gt;ngx.exec(&amp;quot;/down/pathXXX&amp;quot;)  -- File content is &amp;quot;ABC&amp;quot;&lt;br&gt;&lt;br&gt;then , If I use command:&lt;br&gt;curl localhost/down2&lt;br&gt;#print out ABC&lt;br&gt;&lt;br&gt;if I use Firefox to visit URL &amp;quot;&lt;a href="http://localhost/down/pathXXX"&gt;http://localhost/down/pathXXX&lt;/a&gt;&amp;quot; and then &amp;quot;ABC&amp;quot; show out.&lt;br&gt; &lt;br&gt;BUT , if I use ab to test it :&lt;br&gt;ab -v &lt;a href="http://localhost/down2"&gt;http://localhost/down2&lt;/a&gt;&lt;br&gt;#Fail with timeout&lt;br&gt;&lt;br&gt;Log of ab:&lt;br&gt;&lt;br&gt;Benchmarking localhost (be patient)...INFO: POST header == &lt;br&gt;---&lt;br&gt; GET /down2 HTTP/1.0&lt;br&gt;Host: localhost&lt;br&gt;User-Agent: ApacheBench/2.3&lt;br&gt;Accept: */*&lt;br&gt;&lt;br&gt;&lt;br&gt;---&lt;br&gt;LOG: header received:&lt;br&gt;HTTP/1.1 200 OK&lt;br&gt;Server: nginx/0.8.54&lt;br&gt;Date: Tue, 15 Mar 2011 07:22:30 GMT&lt;br&gt;Content-Type: text/plain&lt;br&gt; Content-Length: 10&lt;br&gt;Last-Modified: Fri, 11 Mar 2011 09:32:28 GMT&lt;br&gt;Connection: close&lt;br&gt;Accept-Ranges: bytes&lt;br&gt;&lt;br&gt;I am Best&lt;br&gt;&lt;br&gt;LOG: Response code = 200&lt;br&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;apr_poll: The timeout specified has expired (70007)&lt;/span&gt;&lt;br&gt; &lt;br&gt;I think lua-nginx-module lose some 0x0A 0x0D in resp.&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Wendal Chen&lt;br&gt;&lt;a href="http://myblog.sunfarms.net"&gt;http://myblog.sunfarms.net&lt;/a&gt;&lt;br&gt;&lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-6189268078279812103?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/6189268078279812103/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/issue-in-lua-nginx-module-when-use-both.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/6189268078279812103'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/6189268078279812103'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/issue-in-lua-nginx-module-when-use-both.html' title='Issue in Lua-nginx-module when use both ngx.location.capture and ngx.exec'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-131175705344695792</id><published>2011-03-14T22:36:00.000-07:00</published><updated>2011-03-14T22:37:33.771-07:00</updated><title type='text'>Re: nginx access logs, timestamps "jump back"</title><content type='html'>Hello!&lt;p&gt;On Tue, Mar 15, 2011 at 12:41:32AM -0400, assistlydavid wrote:&lt;p&gt;&amp;gt; We&amp;#39;re running multiple nginx web servers on EC2 behind multiple &lt;br&gt;&amp;gt; ELBs (load balancers).  I&amp;#39;m seeing strange behaviour in our &lt;br&gt;&amp;gt; nginx system logs.  This strange behaviour seems to coincide &lt;br&gt;&amp;gt; with brief outages spotted by our external monitoring (chartbeat &lt;br&gt;&amp;gt; &amp;amp; new relic).  I&amp;#39;m not sure whether I&amp;#39;m on the right track here, &lt;br&gt;&amp;gt; investigating this strange logging ... or if it&amp;#39;s just a &lt;br&gt;&amp;gt; coincidence and this is normal logging for nginx.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; It starts with typical nginx logging, timestamps increasing &lt;br&gt;&amp;gt; chronologically.  Then there&amp;#39;s a jump back in the timestamps &lt;br&gt;&amp;gt; while a large block of ELB-only traffic is logged (health &lt;br&gt;&amp;gt; checks).  After that, logging returns to normal (increasing &lt;br&gt;&amp;gt; chronologically) and the timestamps resume from where they left &lt;br&gt;&amp;gt; off before the ELB-only burst.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; For example (details changed to protect the innocent):&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; 1.2.3.4 - - [14/Mar/2011:06:39:08 +0000]  &amp;quot;GET /stuff HTTP/1.1&amp;quot; 301 178 &amp;quot;-&amp;quot; &amp;quot;Jakarta Commons-HttpClient/3.1&amp;quot; http &lt;a href="http://example.com"&gt;example.com&lt;/a&gt; /stuff&lt;br&gt;&amp;gt; 10.162.18.95 - - [14/Mar/2011:06:23:17 +0000]  &amp;quot;GET /host HTTP/1.1&amp;quot; 200 0 &amp;quot;-&amp;quot; &amp;quot;ELB-HealthChecker/1.0&amp;quot; - &lt;a href="http://10.162.217.229:80"&gt;10.162.217.229:80&lt;/a&gt; /host&lt;p&gt;[...]&lt;p&gt;&amp;gt; Notice the jump back in time, then ELB-only traffic is logged, &lt;br&gt;&amp;gt; then logging returns to normal once the ELB timestamps have &lt;br&gt;&amp;gt; caught up with user traffic.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; Should I expect all nginx log messages to increase &lt;br&gt;&amp;gt; chronologically?  What would explain these large jumps back?&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; We redefined our log format to use a 32k buffer.  Unfortunately, &lt;br&gt;&amp;gt; I can&amp;#39;t risk changing/disabling this in production to see if the &lt;br&gt;&amp;gt; behaviour changes.  Could there be more than one 32k buffer &lt;br&gt;&amp;gt; flushing at different times?&lt;p&gt;Each worker process has it&amp;#39;s own log buffer and flush it as soon &lt;br&gt;it&amp;#39;s filled up.  So the observed behaviour is normal with log &lt;br&gt;buffering used and low traffic.&lt;p&gt;Maxim Dounin&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-131175705344695792?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/131175705344695792/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-nginx-access-logs-timestamps-jump.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/131175705344695792'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/131175705344695792'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-nginx-access-logs-timestamps-jump.html' title='Re: nginx access logs, timestamps &quot;jump back&quot;'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-6439528378343994564</id><published>2011-03-14T21:41:00.000-07:00</published><updated>2011-03-14T21:42:11.108-07:00</updated><title type='text'>nginx access logs, timestamps "jump back"</title><content type='html'>Hi there,&lt;p&gt;We&amp;#39;re running multiple nginx web servers on EC2 behind multiple ELBs (load balancers).  I&amp;#39;m seeing strange behaviour in our nginx system logs.  This strange behaviour seems to coincide with brief outages spotted by our external monitoring (chartbeat &amp;amp; new relic).  I&amp;#39;m not sure whether I&amp;#39;m on the right track here, investigating this strange logging ... or if it&amp;#39;s just a coincidence and this is normal logging for nginx.&lt;p&gt;It starts with typical nginx logging, timestamps increasing chronologically.  Then there&amp;#39;s a jump back in the timestamps while a large block of ELB-only traffic is logged (health checks).  After that, logging returns to normal (increasing chronologically) and the timestamps resume from where they left off before the ELB-only burst.&lt;p&gt;For example (details changed to protect the innocent):&lt;p&gt;1.2.3.4 - - [14/Mar/2011:06:39:08 +0000]  &amp;quot;GET /stuff HTTP/1.1&amp;quot; 301 178 &amp;quot;-&amp;quot; &amp;quot;Jakarta Commons-HttpClient/3.1&amp;quot; http &lt;a href="http://example.com"&gt;example.com&lt;/a&gt; /stuff&lt;br&gt;10.162.18.95 - - [14/Mar/2011:06:23:17 +0000]  &amp;quot;GET /host HTTP/1.1&amp;quot; 200 0 &amp;quot;-&amp;quot; &amp;quot;ELB-HealthChecker/1.0&amp;quot; - &lt;a href="http://10.162.217.229:80"&gt;10.162.217.229:80&lt;/a&gt; /host&lt;br&gt;10.162.126.84 - - [14/Mar/2011:06:23:19 +0000]  &amp;quot;GET /host HTTP/1.1&amp;quot; 200 0 &amp;quot;-&amp;quot; &amp;quot;ELB-HealthChecker/1.0&amp;quot; - &lt;a href="http://10.162.217.229:80"&gt;10.162.217.229:80&lt;/a&gt; /host&lt;br&gt;10.162.151.170 - - [14/Mar/2011:06:23:19 +0000]  &amp;quot;GET /host HTTP/1.1&amp;quot; 200 0 &amp;quot;-&amp;quot; &amp;quot;ELB-HealthChecker/1.0&amp;quot; - &lt;a href="http://10.162.217.229:80"&gt;10.162.217.229:80&lt;/a&gt; /host&lt;br&gt;10.162.19.235 - - [14/Mar/2011:06:23:19 +0000]  &amp;quot;GET /host HTTP/1.1&amp;quot; 200 0 &amp;quot;-&amp;quot; &amp;quot;ELB-HealthChecker/1.0&amp;quot; - &lt;a href="http://10.162.217.229:80"&gt;10.162.217.229:80&lt;/a&gt; /host&lt;br&gt;. . .&lt;br&gt;LOTS (~ 100)&lt;br&gt;. . .&lt;br&gt;10.162.151.170 - - [14/Mar/2011:06:38:47 +0000]  &amp;quot;GET /host HTTP/1.1&amp;quot; 200 0 &amp;quot;-&amp;quot; &amp;quot;ELB-HealthChecker/1.0&amp;quot; - &lt;a href="http://10.162.217.229:80"&gt;10.162.217.229:80&lt;/a&gt; /host&lt;br&gt;10.162.19.235 - - [14/Mar/2011:06:38:47 +0000]  &amp;quot;GET /host HTTP/1.1&amp;quot; 200 0 &amp;quot;-&amp;quot; &amp;quot;ELB-HealthChecker/1.0&amp;quot; - &lt;a href="http://10.162.217.229:80"&gt;10.162.217.229:80&lt;/a&gt; /host&lt;br&gt;10.162.18.95 - - [14/Mar/2011:06:39:01 +0000]  &amp;quot;GET /host HTTP/1.1&amp;quot; 200 0 &amp;quot;-&amp;quot; &amp;quot;ELB-HealthChecker/1.0&amp;quot; - &lt;a href="http://10.162.217.229:80"&gt;10.162.217.229:80&lt;/a&gt; /host&lt;br&gt;10.162.126.84 - - [14/Mar/2011:06:39:03 +0000]  &amp;quot;GET /host HTTP/1.1&amp;quot; 200 0 &amp;quot;-&amp;quot; &amp;quot;ELB-HealthChecker/1.0&amp;quot; - &lt;a href="http://10.162.217.229:80"&gt;10.162.217.229:80&lt;/a&gt; /host&lt;br&gt;10.162.151.170 - - [14/Mar/2011:06:39:03 +0000]  &amp;quot;GET /host HTTP/1.1&amp;quot; 200 0 &amp;quot;-&amp;quot; &amp;quot;ELB-HealthChecker/1.0&amp;quot; - &lt;a href="http://10.162.217.229:80"&gt;10.162.217.229:80&lt;/a&gt; /host&lt;br&gt;10.162.19.235 - - [14/Mar/2011:06:39:03 +0000]  &amp;quot;GET /host HTTP/1.1&amp;quot; 200 0 &amp;quot;-&amp;quot; &amp;quot;ELB-HealthChecker/1.0&amp;quot; - &lt;a href="http://10.162.217.229:80"&gt;10.162.217.229:80&lt;/a&gt; /host&lt;br&gt;10.162.126.84 - - [14/Mar/2011:06:39:19 +0000]  &amp;quot;GET /host HTTP/1.1&amp;quot; 200 0 &amp;quot;-&amp;quot; &amp;quot;ELB-HealthChecker/1.0&amp;quot; - &lt;a href="http://10.162.217.229:80"&gt;10.162.217.229:80&lt;/a&gt; /host&lt;br&gt;10.162.151.170 - - [14/Mar/2011:06:39:19 +0000]  &amp;quot;GET /host HTTP/1.1&amp;quot; 200 0 &amp;quot;-&amp;quot; &amp;quot;ELB-HealthChecker/1.0&amp;quot; - &lt;a href="http://10.162.217.229:80"&gt;10.162.217.229:80&lt;/a&gt; /host&lt;br&gt;10.162.19.235 - - [14/Mar/2011:06:39:19 +0000]  &amp;quot;GET /host HTTP/1.1&amp;quot; 200 0 &amp;quot;-&amp;quot; &amp;quot;ELB-HealthChecker/1.0&amp;quot; - &lt;a href="http://10.162.217.229:80"&gt;10.162.217.229:80&lt;/a&gt; /host&lt;br&gt;10.162.151.170 - - [14/Mar/2011:06:39:35 +0000]  &amp;quot;GET /host HTTP/1.1&amp;quot; 200 0 &amp;quot;-&amp;quot; &amp;quot;ELB-HealthChecker/1.0&amp;quot; - &lt;a href="http://10.162.217.229:80"&gt;10.162.217.229:80&lt;/a&gt; /host&lt;br&gt;10.162.151.170 - - [14/Mar/2011:06:39:51 +0000]  &amp;quot;GET /host HTTP/1.1&amp;quot; 200 0 &amp;quot;-&amp;quot; &amp;quot;ELB-HealthChecker/1.0&amp;quot; - &lt;a href="http://10.162.217.229:80"&gt;10.162.217.229:80&lt;/a&gt; /host&lt;br&gt;2.3.4.5 - - [14/Mar/2011:06:39:58 +0000]  &amp;quot;GET /stuff HTTP/1.1&amp;quot; 200 113 &amp;quot;&lt;a href="http://example.com/stuff"&gt;http://example.com/stuff&lt;/a&gt;&amp;quot; &amp;quot;Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.133 Safari/534.16&amp;quot; http &lt;a href="http://example.com"&gt;example.com&lt;/a&gt; /stuff&lt;br&gt;3.4.5.6 - - [14/Mar/2011:06:39:59 +0000]  &amp;quot;GET /stuff HTTP/1.1&amp;quot; 200 113 &amp;quot;&lt;a href="http://example.com/stuff"&gt;http://example.com/stuff&lt;/a&gt;&amp;quot; &amp;quot;Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.133 Safari/534.16&amp;quot; http &lt;a href="http://example.com"&gt;example.com&lt;/a&gt; /stuff&lt;p&gt;Notice the jump back in time, then ELB-only traffic is logged, then logging returns to normal once the ELB timestamps have caught up with user traffic.&lt;p&gt;Should I expect all nginx log messages to increase chronologically?  What would explain these large jumps back?&lt;p&gt;We redefined our log format to use a 32k buffer.  Unfortunately, I can&amp;#39;t risk changing/disabling this in production to see if the behaviour changes.  Could there be more than one 32k buffer flushing at different times?&lt;p&gt;Thanks.&lt;p&gt;Cheers,&lt;br&gt;David.&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,182969,182969#msg-182969"&gt;http://forum.nginx.org/read.php?2,182969,182969#msg-182969&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-6439528378343994564?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/6439528378343994564/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/nginx-access-logs-timestamps-jump-back.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/6439528378343994564'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/6439528378343994564'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/nginx-access-logs-timestamps-jump-back.html' title='nginx access logs, timestamps &quot;jump back&quot;'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-6585843798320202435</id><published>2011-03-14T21:36:00.000-07:00</published><updated>2011-03-14T21:42:10.477-07:00</updated><title type='text'>Re: nginx, from connected to first byte.</title><content type='html'>On 15 Mar 2011 04h05 WET, &lt;a href="mailto:nginx-forum@nginx.us"&gt;nginx-forum@nginx.us&lt;/a&gt; wrote:&lt;p&gt;&amp;gt; hi Francis, thanks a lot for the reply, i disable debug when compile&lt;br&gt;&amp;gt; the nginx, need i re-compile? i don&amp;#39;t know the exact meaning of&lt;br&gt;&amp;gt; &amp;quot;debug log&amp;quot;, whether it&amp;#39;s a general nginx log or another log? and&lt;br&gt;&amp;gt; one more question, how to check the status of nginx-fastcgi&lt;br&gt;&amp;gt; connection and the fastcgi-application interaction?  btw, i use unix&lt;br&gt;&amp;gt; file pid to connect fastcgi, could you please tell me whether this&lt;br&gt; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;p&gt;Do you mean UNIX sockets? There&amp;#39;s no PID involved.&lt;p&gt;&amp;gt; method or network port method is better?  thanks a lot.  regards&lt;br&gt;&amp;gt; solo&lt;p&gt;There&amp;#39;s no harm in trying to use TCP sockets.&lt;p&gt;--- appa&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-6585843798320202435?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/6585843798320202435/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-nginx-from-connected-to-first-byte_37.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/6585843798320202435'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/6585843798320202435'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-nginx-from-connected-to-first-byte_37.html' title='Re: nginx, from connected to first byte.'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-6630103801113840331</id><published>2011-03-14T21:05:00.000-07:00</published><updated>2011-03-14T21:07:11.855-07:00</updated><title type='text'>Re: nginx, from connected to first byte.</title><content type='html'>hi Francis,&lt;br&gt;thanks a lot for the reply, i disable debug when compile the nginx, need i re-compile? i don&amp;#39;t know the exact meaning of &amp;quot;debug log&amp;quot;, whether it&amp;#39;s a general nginx log or another log? and one more question, how to check the status of nginx-fastcgi connection and the fastcgi-application interaction?&lt;br&gt;btw, i use unix file pid to connect fastcgi, could you please tell me whether this method or network port method is better?&lt;br&gt;thanks a lot.&lt;br&gt;regards&lt;br&gt;solo&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,182805,182963#msg-182963"&gt;http://forum.nginx.org/read.php?2,182805,182963#msg-182963&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-6630103801113840331?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/6630103801113840331/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-nginx-from-connected-to-first-byte_14.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/6630103801113840331'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/6630103801113840331'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-nginx-from-connected-to-first-byte_14.html' title='Re: nginx, from connected to first byte.'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-3971518920924467145</id><published>2011-03-14T11:07:00.000-07:00</published><updated>2011-03-14T11:08:07.513-07:00</updated><title type='text'>Re: Strange rewrite behaviour</title><content type='html'>On Mon, Mar 14, 2011 at 07:19:04PM +0200, Alexander Economou wrote:&lt;p&gt;Hi there,&lt;p&gt;&amp;gt; Thank you for your quick reply again Francis.&lt;p&gt;You&amp;#39;re welcome.&lt;p&gt;&amp;gt;             fastcgi_pass   &lt;a href="http://127.0.0.1:9000"&gt;127.0.0.1:9000&lt;/a&gt;;&lt;p&gt;Do you have the fastcgi server running on this address? Does that server&lt;br&gt;generate any logs to report if it exits?&lt;p&gt;&amp;gt; ---------------------------------------------------------------------------&lt;br&gt;&amp;gt; location / {&lt;br&gt;&amp;gt;     try_files $uri $uri/ /index.php?$uri&amp;amp;$args;&lt;br&gt;&amp;gt;  	}&lt;br&gt;&amp;gt; ---------------------------------------------------------------------------&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; but still php-cgi does not respond to any .php and after some minutes i &lt;br&gt;&amp;gt; get 402 gateway error.&lt;p&gt;You restart or reload nginx, then you access a particular url, and you&lt;br&gt;do not get the response you expect? The best I can suggest is &amp;quot;check&lt;br&gt;the logs&amp;quot;.&lt;p&gt;If the problem is with the fastcgi server exiting, then you&amp;#39;ll need to&lt;br&gt;investigate that. But so far, I fail to reproduce your problem.&lt;p&gt;Good luck with it,&lt;p&gt;	f&lt;br&gt;-- &lt;br&gt;Francis Daly        &lt;a href="mailto:francis@daoine.org"&gt;francis@daoine.org&lt;/a&gt;&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-3971518920924467145?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/3971518920924467145/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-strange-rewrite-behaviour_2775.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/3971518920924467145'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/3971518920924467145'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-strange-rewrite-behaviour_2775.html' title='Re: Strange rewrite behaviour'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-4825357838377070938</id><published>2011-03-14T10:19:00.001-07:00</published><updated>2011-03-14T10:19:44.702-07:00</updated><title type='text'>Re: Strange rewrite behaviour</title><content type='html'>Thank you for your quick reply again Francis.&lt;p&gt;I followed your instructions and made the following changes&lt;p&gt;---------------------------------------------------------------------------&lt;br&gt;#           root &lt;br&gt;/var/www/cluster-domains/2_socialwhale_com/htdocs/website;&lt;br&gt;---------------------------------------------------------------------------&lt;p&gt;Commented the above line since i have already set the root dir&lt;p&gt;---------------------------------------------------------------------------&lt;br&gt;             fastcgi_pass   &lt;a href="http://127.0.0.1:9000"&gt;127.0.0.1:9000&lt;/a&gt;;&lt;br&gt;             fastcgi_index  index.php;&lt;br&gt;#           fastcgi_param  SCRIPT_FILENAME &lt;br&gt;/var/www/cluster-domains/2_socialwhale_com/htdocs/website/$fastcgi_script_name;&lt;br&gt;---------------------------------------------------------------------------&lt;p&gt;Commented SCRIPT_FILENAME and added the line below :&lt;p&gt;---------------------------------------------------------------------------&lt;br&gt;             include        fastcgi.conf;&lt;br&gt;---------------------------------------------------------------------------&lt;p&gt;As for the authentication part now , the following works as a charm on a &lt;br&gt;cacti installation but not in the specified virtualhost (&lt;a href="http://2.socialwhale.com"&gt;2.socialwhale.com&lt;/a&gt;)&lt;p&gt;&lt;br&gt;location /var/www/html/cacti {&lt;br&gt;     auth_basic            &amp;quot;Restricted&amp;quot;;&lt;br&gt;     auth_basic_user_file  /var/www/html/cacti/.htpasswd;&lt;br&gt;     }&lt;p&gt;&lt;br&gt;As for the rewrite rule i tried your recommendation like below :&lt;p&gt;---------------------------------------------------------------------------&lt;br&gt;location / {&lt;br&gt;     try_files $uri $uri/ /index.php?$uri&amp;amp;$args;&lt;br&gt;  	}&lt;br&gt;---------------------------------------------------------------------------&lt;p&gt;but still php-cgi does not respond to any .php and after some minutes i &lt;br&gt;get 402 gateway error.&lt;p&gt;&lt;p&gt;&lt;br&gt;-- &lt;br&gt;---&lt;br&gt;Alex&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-4825357838377070938?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/4825357838377070938/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-strange-rewrite-behaviour_14.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/4825357838377070938'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/4825357838377070938'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-strange-rewrite-behaviour_14.html' title='Re: Strange rewrite behaviour'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-8992488956871122075</id><published>2011-03-14T09:49:00.000-07:00</published><updated>2011-03-14T09:50:09.806-07:00</updated><title type='text'>Re: Strange rewrite behaviour</title><content type='html'>On Mon, Mar 14, 2011 at 05:37:28PM +0200, Alexander Economou wrote:&lt;p&gt;Hi there,&lt;p&gt;a few suggestions first, which are *not* related to the reported problem:&lt;p&gt;&amp;gt; ------------------------------------------------------------------------&lt;br&gt;&amp;gt; server {&lt;br&gt;&amp;gt;      listen 80;&lt;br&gt;&amp;gt;      server_name &lt;a href="http://2.socialwhale.com"&gt;2.socialwhale.com&lt;/a&gt;;&lt;br&gt;&amp;gt;      access_log &lt;br&gt;&amp;gt; /var/www/cluster-domains/2_socialwhale_com/logs/2.socialwhale.log main;&lt;br&gt;&amp;gt;      error_log &lt;br&gt;&amp;gt; /var/www/cluster-domains/2_socialwhale_com/logs/2.socialwhale.err;&lt;br&gt;&amp;gt;      index index.html index.htm index.php;&lt;br&gt;&amp;gt;      root  /var/www/cluster-domains/2_socialwhale_com/htdocs/website;&lt;p&gt;Setting &amp;quot;root&amp;quot; there is good. If you don&amp;#39;t set it inside a particular&lt;br&gt;location{} block, that value will be inherited (and available as&lt;br&gt;$document_root)...&lt;p&gt;&amp;gt; location ~ \.php$ {&lt;br&gt;&amp;gt;             root &lt;br&gt;&amp;gt; /var/www/cluster-domains/2_socialwhale_com/htdocs/website;&lt;p&gt;...so you could safely omit that line...&lt;p&gt;&amp;gt;             fastcgi_pass   &lt;a href="http://127.0.0.1:9000"&gt;127.0.0.1:9000&lt;/a&gt;;&lt;br&gt;&amp;gt;             fastcgi_index  index.php;&lt;br&gt;&amp;gt;             fastcgi_param  SCRIPT_FILENAME &lt;br&gt;&amp;gt; /var/www/cluster-domains/2_socialwhale_com/htdocs/website/$fastcgi_script_name;&lt;p&gt;...and shorten that line. And then, in future, if you switch directory,&lt;br&gt;you&amp;#39;ll have fewer places to update in the config file.&lt;p&gt;&amp;gt;             include        fastcgi_params;&lt;p&gt;Or, instead, you could &amp;quot;include fastcgi.conf&amp;quot; and omit the SCRIPT_FILENAME&lt;br&gt;line altogether.&lt;p&gt;&amp;gt;         }&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt;         error_page  404              /404.html;&lt;br&gt;&amp;gt;        	location = /404.html {&lt;br&gt;&amp;gt;             root   /usr/share/nginx/html;&lt;br&gt;&amp;gt;         }&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; location  /var/www/cluster-domains/2_socialwhale_com/htdocs/website {&lt;br&gt;&amp;gt;     auth_basic            &amp;quot;Restricted&amp;quot;;&lt;br&gt;&amp;gt;     auth_basic_user_file &lt;br&gt;&amp;gt; /var/www/cluster-domains/2_socialwhale_com/htpasswd;&lt;br&gt;&amp;gt;     }&lt;p&gt;That block probably does not do what you want it to. &amp;quot;location&amp;quot; acts on&lt;br&gt;urls, not file paths. But it&amp;#39;s also unrelated to the reported problem.&lt;p&gt;&amp;gt; Now if i add the following just after the error_page definition&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; location / {&lt;br&gt;&amp;gt;    try_files $uri $uri/ index.php?$uri&amp;amp;$args;&lt;br&gt;&amp;gt; 	}&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; Nginx says the configuration is ok but php-cgi crashes....&lt;p&gt;I&amp;#39;d probably use &amp;quot;/index.php&amp;quot; instead of &amp;quot;index.php&amp;quot; up there. Depending&lt;br&gt;on what you mean by &amp;quot;php-cgi crashes&amp;quot;, maybe that will help?&lt;p&gt;If not, then details of what you see vs what you expect to see will&lt;br&gt;probably help find the problem.&lt;p&gt;Good luck with it,&lt;p&gt;	f&lt;br&gt;-- &lt;br&gt;Francis Daly        &lt;a href="mailto:francis@daoine.org"&gt;francis@daoine.org&lt;/a&gt;&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-8992488956871122075?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/8992488956871122075/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-strange-rewrite-behaviour.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/8992488956871122075'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/8992488956871122075'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-strange-rewrite-behaviour.html' title='Re: Strange rewrite behaviour'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-1478756522623055951</id><published>2011-03-14T08:37:00.000-07:00</published><updated>2011-03-14T08:38:22.093-07:00</updated><title type='text'>Strange rewrite behaviour</title><content type='html'>Greetings again,&lt;p&gt;I got this weird problem. I have the following virtual domain configuration:&lt;p&gt;&lt;br&gt;------------------------------------------------------------------------&lt;br&gt;server {&lt;br&gt;      listen 80;&lt;br&gt;      server_name &lt;a href="http://2.socialwhale.com"&gt;2.socialwhale.com&lt;/a&gt;;&lt;br&gt;      access_log &lt;br&gt;/var/www/cluster-domains/2_socialwhale_com/logs/2.socialwhale.log main;&lt;br&gt;      error_log &lt;br&gt;/var/www/cluster-domains/2_socialwhale_com/logs/2.socialwhale.err;&lt;br&gt;      index index.html index.htm index.php;&lt;br&gt;      root  /var/www/cluster-domains/2_socialwhale_com/htdocs/website;&lt;p&gt;&lt;br&gt;location ~ \.php$ {&lt;br&gt;             root &lt;br&gt;/var/www/cluster-domains/2_socialwhale_com/htdocs/website;&lt;br&gt;             fastcgi_pass   &lt;a href="http://127.0.0.1:9000"&gt;127.0.0.1:9000&lt;/a&gt;;&lt;br&gt;             fastcgi_index  index.php;&lt;br&gt;             fastcgi_param  SCRIPT_FILENAME &lt;br&gt;/var/www/cluster-domains/2_socialwhale_com/htdocs/website/$fastcgi_script_name;&lt;br&gt;             include        fastcgi_params;&lt;br&gt;         }&lt;p&gt;         error_page  404              /404.html;&lt;br&gt;        	location = /404.html {&lt;br&gt;             root   /usr/share/nginx/html;&lt;br&gt;         }&lt;p&gt;&lt;br&gt;location  /var/www/cluster-domains/2_socialwhale_com/htdocs/website {&lt;br&gt;     auth_basic            &amp;quot;Restricted&amp;quot;;&lt;br&gt;     auth_basic_user_file &lt;br&gt;/var/www/cluster-domains/2_socialwhale_com/htpasswd;&lt;br&gt;     }&lt;p&gt;&lt;br&gt;   }&lt;p&gt;------------------------------------------------------------------------&lt;p&gt;Now if i add the following just after the error_page definition&lt;p&gt;location / {&lt;br&gt;    try_files $uri $uri/ index.php?$uri&amp;amp;$args;&lt;br&gt;	}&lt;p&gt;Nginx says the configuration is ok but php-cgi crashes....&lt;p&gt;Just so you know i am using those lines to other virtual domains with no &lt;br&gt;problem.&lt;p&gt;Any ideas?&lt;p&gt;-- &lt;br&gt;---&lt;br&gt;Alex&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-1478756522623055951?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/1478756522623055951/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/strange-rewrite-behaviour.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/1478756522623055951'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/1478756522623055951'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/strange-rewrite-behaviour.html' title='Strange rewrite behaviour'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-4240818452362831668</id><published>2011-03-14T07:57:00.000-07:00</published><updated>2011-03-14T07:58:35.141-07:00</updated><title type='text'>Re: nginx, from connected to first byte.</title><content type='html'>On Mon, Mar 14, 2011 at 10:09:15AM -0400, digginchina wrote:&lt;p&gt;Hi there,&lt;p&gt;&amp;gt; i set up a nginx server with php fastcgi last month, but i found a little problem with it.&lt;br&gt;&amp;gt; my frontpage is loaded in 8-10 seconds, but there is 7 seconds waste from the time when connected server, to the time when start to send the first byte. the real time which is used by the process of connection and transmission is short, i can&amp;#39;t find a solution, could anybody help me?&lt;p&gt;The debug log will probably show what nginx thinks is happening during&lt;br&gt;the full 8-10 seconds. Look either side of the 7-second gap to see&lt;br&gt;whether you are better off examining nginx, the nginx-fastcgi connection,&lt;br&gt;or the fastcgi-application interaction.&lt;p&gt;Good luck with it,&lt;p&gt;	f&lt;br&gt;-- &lt;br&gt;Francis Daly        &lt;a href="mailto:francis@daoine.org"&gt;francis@daoine.org&lt;/a&gt;&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-4240818452362831668?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/4240818452362831668/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-nginx-from-connected-to-first-byte.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/4240818452362831668'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/4240818452362831668'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-nginx-from-connected-to-first-byte.html' title='Re: nginx, from connected to first byte.'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-6447240543438407564</id><published>2011-03-14T07:09:00.000-07:00</published><updated>2011-03-14T07:10:36.281-07:00</updated><title type='text'>nginx, from connected to first byte.</title><content type='html'>i set up a nginx server with php fastcgi last month, but i found a little problem with it.&lt;br&gt;my frontpage is loaded in 8-10 seconds, but there is 7 seconds waste from the time when connected server, to the time when start to send the first byte. the real time which is used by the process of connection and transmission is short, i can&amp;#39;t find a solution, could anybody help me?&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,182805,182805#msg-182805"&gt;http://forum.nginx.org/read.php?2,182805,182805#msg-182805&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-6447240543438407564?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/6447240543438407564/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/nginx-from-connected-to-first-byte.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/6447240543438407564'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/6447240543438407564'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/nginx-from-connected-to-first-byte.html' title='nginx, from connected to first byte.'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-4719966594429270382</id><published>2011-03-14T06:17:00.001-07:00</published><updated>2011-03-14T06:17:56.477-07:00</updated><title type='text'>Re: php auth &amp; fast_cgi</title><content type='html'>The problem seemed to be that after the initial auth , the credentials &lt;br&gt;could not change (diff user/pass).&lt;p&gt;Thanx alot Francis for the fast reply and sorry for the crappy problem &lt;br&gt;description but that was the only input i had. My colleague (the web &lt;br&gt;dev) , seems to have found a solution to his problem.&lt;p&gt;Cheers&lt;p&gt;-&lt;br&gt;Alex&lt;p&gt;On 03/14/2011 01:39 PM, Francis Daly wrote:&lt;br&gt;&amp;gt; On Mon, Mar 14, 2011 at 12:58:35PM +0200, Alexander Economou wrote:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Hi there,&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; A colleague of mine told me that these two lines in php doesn&amp;#39;t seem to&lt;br&gt;&amp;gt;&amp;gt; work on an nginx + fastcgi installation. Any thoughts?&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; They seem to work fine for me. Any expansion?&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; What does your colleague do, what does your colleague see, and what&lt;br&gt;&amp;gt; does your colleague expect to see? And, if it&amp;#39;s not obvious, what&amp;#39;s the&lt;br&gt;&amp;gt; difference between the last two?&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; header(&amp;#39;WWW-Authenticate: Basic realm=&amp;quot;SocialWhale Controller&amp;quot;&amp;#39;);&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; $_SERVER[&amp;#39;PHP_AUTH_USER&amp;#39;]&lt;br&gt;&amp;gt;&amp;gt; $_SERVER[&amp;#39;PHP_AUTH_PW&amp;#39;];&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; authcheck:&lt;br&gt;&amp;gt; ===&lt;br&gt;&amp;gt; &amp;lt;?php&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; if ($_SERVER[&amp;#39;PHP_AUTH_USER&amp;#39;] == &amp;quot;x&amp;quot;&amp;amp;&amp;amp;  $_SERVER[&amp;#39;PHP_AUTH_PW&amp;#39;] == &amp;quot;x&amp;quot;) {&lt;br&gt;&amp;gt;    echo &amp;quot;Well done, right credentials\n&amp;quot;;&lt;br&gt;&amp;gt; } else {&lt;br&gt;&amp;gt;    header(&amp;#39;WWW-Authenticate: Basic realm=&amp;quot;SocialWhale Controller&amp;quot;&amp;#39;);&lt;br&gt;&amp;gt; }&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; ?&amp;gt;&lt;br&gt;&amp;gt; ===&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; I expect &amp;quot;curl -i &lt;a href="http://localhost/authcheck"&gt;http://localhost/authcheck&lt;/a&gt;&amp;quot; to show me a HTTP 401,&lt;br&gt;&amp;gt; and &amp;quot;curl -i -u x:a &lt;a href="http://localhost/authcheck"&gt;http://localhost/authcheck&lt;/a&gt;&amp;quot; to show me a HTTP 401,&lt;br&gt;&amp;gt; and &amp;quot;curl -i -u x:x &lt;a href="http://localhost/authcheck"&gt;http://localhost/authcheck&lt;/a&gt;&amp;quot; to show me a HTTP 200.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; And that&amp;#39;s what I see.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; nginx.conf ensures that the php fastcgi server processes the request,&lt;br&gt;&amp;gt; of course.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; All the best,&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; 	f&lt;p&gt;-- &lt;br&gt;---&lt;br&gt;Alexander Loukas Economou&lt;br&gt;Systems &amp;amp; Network&lt;br&gt;Administrator&lt;br&gt;gsm : 6986 298 859&lt;br&gt;email : &lt;a href="mailto:aecon@sysadm.gr"&gt;aecon@sysadm.gr&lt;/a&gt;&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-4719966594429270382?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/4719966594429270382/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-php-auth-fastcgi_14.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/4719966594429270382'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/4719966594429270382'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-php-auth-fastcgi_14.html' title='Re: php auth &amp; fast_cgi'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-2446358055129826438</id><published>2011-03-14T05:42:00.000-07:00</published><updated>2011-03-14T05:43:21.124-07:00</updated><title type='text'>Re: Problem with nginx/0.8.54 and alias</title><content type='html'>Jim Ohlstein Wrote:&lt;br&gt;-------------------------------------------------------&lt;br&gt;&amp;gt; Maxim Dounin Wrote:&lt;br&gt;&amp;gt; --------------------------------------------------&lt;br&gt;&amp;gt; -----&lt;br&gt;&amp;gt; &amp;gt; Hello!&lt;br&gt;&amp;gt;  &lt;br&gt;&amp;gt; [...]&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; &amp;gt; Probably you have ancient PCRE library.  Try&lt;br&gt;&amp;gt; &amp;gt; (?P&amp;lt;name&amp;gt;) form &lt;br&gt;&amp;gt; &amp;gt; which is supported since PCRE 4.0.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; This one now quotes properly as well.&lt;p&gt;Now it appears to be formatted correctly.&lt;p&gt;&amp;gt; &lt;br&gt;&amp;gt; &amp;gt; &lt;br&gt;&amp;gt; &amp;gt;&lt;br&gt;&amp;gt; &lt;a href="http://nginx.org/en/docs/http/server_names.html#re"&gt;http://nginx.org/en/docs/http/server_names.html#re&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; &amp;gt; gex_names&lt;br&gt;&amp;gt; &amp;gt; &lt;br&gt;&amp;gt; &amp;gt; Maxim Dounin&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,176110,182785#msg-182785"&gt;http://forum.nginx.org/read.php?2,176110,182785#msg-182785&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-2446358055129826438?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/2446358055129826438/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-problem-with-nginx0854-and-alias_1131.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/2446358055129826438'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/2446358055129826438'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-problem-with-nginx0854-and-alias_1131.html' title='Re: Problem with nginx/0.8.54 and alias'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-952186203106310178</id><published>2011-03-14T05:31:00.000-07:00</published><updated>2011-03-14T05:33:02.309-07:00</updated><title type='text'>Re: Problem with nginx/0.8.54 and alias</title><content type='html'>Igor Sysoev Wrote:&lt;br&gt;-------------------------------------------------------&lt;p&gt;[...]&lt;p&gt;&amp;gt; &lt;br&gt;&amp;gt; Use late 0.8.x with this configuration:&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt;  location ~ ^/phpmyadmin/(?&amp;lt;NAME&amp;gt;.+\.php)$ {&lt;br&gt;&amp;gt;      fastcgi_pass &lt;a href="http://127.0.0.1:9000"&gt;127.0.0.1:9000&lt;/a&gt;;&lt;br&gt;&amp;gt;      fastcgi_param SCRIPT_FILENAME&lt;p&gt;&amp;gt;From my tests this is not only quoted correctly but formatted correctly&lt;br&gt;in email.&lt;p&gt;&amp;gt;                   &lt;br&gt;&amp;gt; /var/www/&lt;a href="http://monsite.fr/phpMyAdmin/$NAME"&gt;monsite.fr/phpMyAdmin/$NAME&lt;/a&gt;;&lt;br&gt;&amp;gt;      include fastcgi_params;&lt;br&gt;&amp;gt;  }&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; -- &lt;br&gt;&amp;gt; Igor Sysoev&lt;br&gt;&amp;gt; &lt;a href="http://sysoev.ru/en/"&gt;http://sysoev.ru/en/&lt;/a&gt;&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,176110,182782#msg-182782"&gt;http://forum.nginx.org/read.php?2,176110,182782#msg-182782&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-952186203106310178?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/952186203106310178/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-problem-with-nginx0854-and-alias_14.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/952186203106310178'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/952186203106310178'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-problem-with-nginx0854-and-alias_14.html' title='Re: Problem with nginx/0.8.54 and alias'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-4310621258126180405</id><published>2011-03-14T04:39:00.000-07:00</published><updated>2011-03-14T04:40:12.385-07:00</updated><title type='text'>Re: php auth &amp; fast_cgi</title><content type='html'>On Mon, Mar 14, 2011 at 12:58:35PM +0200, Alexander Economou wrote:&lt;p&gt;Hi there,&lt;p&gt;&amp;gt; A colleague of mine told me that these two lines in php doesn&amp;#39;t seem to &lt;br&gt;&amp;gt; work on an nginx + fastcgi installation. Any thoughts?&lt;p&gt;They seem to work fine for me. Any expansion?&lt;p&gt;What does your colleague do, what does your colleague see, and what&lt;br&gt;does your colleague expect to see? And, if it&amp;#39;s not obvious, what&amp;#39;s the&lt;br&gt;difference between the last two?&lt;p&gt;&amp;gt; header(&amp;#39;WWW-Authenticate: Basic realm=&amp;quot;SocialWhale Controller&amp;quot;&amp;#39;);&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; $_SERVER[&amp;#39;PHP_AUTH_USER&amp;#39;]&lt;br&gt;&amp;gt; $_SERVER[&amp;#39;PHP_AUTH_PW&amp;#39;];&lt;p&gt;authcheck:&lt;br&gt;===&lt;br&gt;&amp;lt;?php&lt;p&gt;if ($_SERVER[&amp;#39;PHP_AUTH_USER&amp;#39;] == &amp;quot;x&amp;quot; &amp;amp;&amp;amp; $_SERVER[&amp;#39;PHP_AUTH_PW&amp;#39;] == &amp;quot;x&amp;quot;) {&lt;br&gt;  echo &amp;quot;Well done, right credentials\n&amp;quot;;&lt;br&gt;} else {&lt;br&gt;  header(&amp;#39;WWW-Authenticate: Basic realm=&amp;quot;SocialWhale Controller&amp;quot;&amp;#39;);&lt;br&gt;}&lt;p&gt;?&amp;gt;&lt;br&gt;===&lt;p&gt;I expect &amp;quot;curl -i &lt;a href="http://localhost/authcheck"&gt;http://localhost/authcheck&lt;/a&gt;&amp;quot; to show me a HTTP 401,&lt;br&gt;and &amp;quot;curl -i -u x:a &lt;a href="http://localhost/authcheck"&gt;http://localhost/authcheck&lt;/a&gt;&amp;quot; to show me a HTTP 401,&lt;br&gt;and &amp;quot;curl -i -u x:x &lt;a href="http://localhost/authcheck"&gt;http://localhost/authcheck&lt;/a&gt;&amp;quot; to show me a HTTP 200.&lt;p&gt;And that&amp;#39;s what I see.&lt;p&gt;nginx.conf ensures that the php fastcgi server processes the request,&lt;br&gt;of course.&lt;p&gt;All the best,&lt;p&gt;	f&lt;br&gt;-- &lt;br&gt;Francis Daly        &lt;a href="mailto:francis@daoine.org"&gt;francis@daoine.org&lt;/a&gt;&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-4310621258126180405?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/4310621258126180405/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-php-auth-fastcgi.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/4310621258126180405'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/4310621258126180405'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-php-auth-fastcgi.html' title='Re: php auth &amp; fast_cgi'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-3632530571573662464</id><published>2011-03-14T03:58:00.000-07:00</published><updated>2011-03-14T03:59:36.526-07:00</updated><title type='text'>php auth &amp; fast_cgi</title><content type='html'>A colleague of mine told me that these two lines in php doesn&amp;#39;t seem to &lt;br&gt;work on an nginx + fastcgi installation. Any thoughts?&lt;p&gt;&lt;p&gt;header(&amp;#39;WWW-Authenticate: Basic realm=&amp;quot;SocialWhale Controller&amp;quot;&amp;#39;);&lt;p&gt;$_SERVER[&amp;#39;PHP_AUTH_USER&amp;#39;]&lt;br&gt;$_SERVER[&amp;#39;PHP_AUTH_PW&amp;#39;];&lt;p&gt;-- &lt;br&gt;---&lt;br&gt;Alex&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-3632530571573662464?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/3632530571573662464/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/php-auth-fastcgi.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/3632530571573662464'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/3632530571573662464'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/php-auth-fastcgi.html' title='php auth &amp; fast_cgi'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-5781511791376749452</id><published>2011-03-14T02:42:00.001-07:00</published><updated>2011-03-14T02:42:57.401-07:00</updated><title type='text'>Re: Question on Evan Miller's tutorial - Body filter?</title><content type='html'>Thanks for the answer. I&amp;#39;m trying the understand internals of nginx. I&lt;br&gt;changed it to pointer but still i can&amp;#39;t manage to write end of buffer.&lt;br&gt;Ok, i&amp;#39;ll keep trying :)&lt;p&gt;&lt;br&gt;Coskun,&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,181975,182749#msg-182749"&gt;http://forum.nginx.org/read.php?2,181975,182749#msg-182749&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-5781511791376749452?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/5781511791376749452/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-question-on-evan-millers-tutorial_7552.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/5781511791376749452'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/5781511791376749452'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-question-on-evan-millers-tutorial_7552.html' title='Re: Question on Evan Miller&apos;s tutorial - Body filter?'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-5437453003612522290</id><published>2011-03-14T00:57:00.000-07:00</published><updated>2011-03-14T00:58:23.441-07:00</updated><title type='text'>Re: Question on Evan Miller's tutorial - Body filter?</title><content type='html'>On Thu, Mar 10, 2011 at 11:06 PM, ctasdemir &amp;lt;&lt;a href="mailto:nginx-forum@nginx.us"&gt;nginx-forum@nginx.us&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; At the last line, added_link is being used as a structure pointer but at&lt;br&gt;&amp;gt; the beginning it&amp;#39;s defined as a structure. Am i missing something?&lt;br&gt;&amp;gt; Compiler gives error for this incompetible usage.&lt;br&gt;&amp;gt;&lt;p&gt;If it is a silly C grammatical error, just go ahead and fix it.&lt;p&gt;BTW,&lt;p&gt;1. we usually use ngx_chain_t pointers rather than plain structures on&lt;br&gt;the stack ;)&lt;br&gt;2. do not assume nobody writes body filter modules; that is silly.&lt;p&gt;&lt;br&gt;Cheers,&lt;br&gt;-agentzh&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-5437453003612522290?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/5437453003612522290/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-question-on-evan-millers-tutorial_14.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/5437453003612522290'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/5437453003612522290'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-question-on-evan-millers-tutorial_14.html' title='Re: Question on Evan Miller&apos;s tutorial - Body filter?'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-7097865150679344601</id><published>2011-03-14T00:47:00.000-07:00</published><updated>2011-03-14T00:48:31.860-07:00</updated><title type='text'>Re: Question on Evan Miller's tutorial - Body filter?</title><content type='html'>Didn&amp;#39;t anybody write body filter module?&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,181975,182737#msg-182737"&gt;http://forum.nginx.org/read.php?2,181975,182737#msg-182737&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-7097865150679344601?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/7097865150679344601/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-question-on-evan-millers-tutorial.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/7097865150679344601'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/7097865150679344601'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-question-on-evan-millers-tutorial.html' title='Re: Question on Evan Miller&apos;s tutorial - Body filter?'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-9074731202917596127</id><published>2011-03-13T18:25:00.000-07:00</published><updated>2011-03-13T18:26:24.539-07:00</updated><title type='text'>Re: Problem with nginx/0.8.54 and alias</title><content type='html'>That seemed to be a bit premature . They quote properly in the forum but&lt;br&gt;are sent out incorrectly in the emails.&lt;p&gt;Will look into this.&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,176110,182708#msg-182708"&gt;http://forum.nginx.org/read.php?2,176110,182708#msg-182708&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-9074731202917596127?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/9074731202917596127/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-problem-with-nginx0854-and-alias_1130.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/9074731202917596127'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/9074731202917596127'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-problem-with-nginx0854-and-alias_1130.html' title='Re: Problem with nginx/0.8.54 and alias'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-4788588140414652719</id><published>2011-03-13T18:20:00.000-07:00</published><updated>2011-03-13T18:22:27.349-07:00</updated><title type='text'>Re: Problem with nginx/0.8.54 and alias</title><content type='html'>Maxim Dounin Wrote:&lt;br&gt;-------------------------------------------------------&lt;br&gt;&amp;gt; Hello!&lt;br&gt; &lt;br&gt;[...]&lt;p&gt;&amp;gt; Probably you have ancient PCRE library.  Try&lt;br&gt;&amp;gt; (?P) form &lt;br&gt;&amp;gt; which is supported since PCRE 4.0.&lt;p&gt;This one now quotes properly as well.&lt;p&gt;&amp;gt; &lt;br&gt;&amp;gt; &lt;a href="http://nginx.org/en/docs/http/server_names.html#re"&gt;http://nginx.org/en/docs/http/server_names.html#re&lt;/a&gt;&lt;br&gt;&amp;gt; gex_names&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; Maxim Dounin&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,176110,182707#msg-182707"&gt;http://forum.nginx.org/read.php?2,176110,182707#msg-182707&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-4788588140414652719?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/4788588140414652719/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-problem-with-nginx0854-and-alias_13.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/4788588140414652719'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/4788588140414652719'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-problem-with-nginx0854-and-alias_13.html' title='Re: Problem with nginx/0.8.54 and alias'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-710418258142649297</id><published>2011-03-13T18:18:00.000-07:00</published><updated>2011-03-13T18:19:44.805-07:00</updated><title type='text'>Re: Problem with nginx/0.8.54 and alias</title><content type='html'>Maxim Dounin Wrote:&lt;br&gt;-------------------------------------------------------&lt;br&gt;&amp;gt; Hello!&lt;p&gt;[...]&lt;p&gt;&amp;gt; &lt;br&gt;&amp;gt; And as far as this indeed affects mailing list and&lt;br&gt;&amp;gt; forum, &lt;br&gt;&amp;gt; including people in this particular thread (note&lt;br&gt;&amp;gt; several messages &lt;br&gt;&amp;gt; with incorrect configs due to  being&lt;br&gt;&amp;gt; stripped) - I don&amp;#39;t &lt;br&gt;&amp;gt; consider private reporting to be better way to go.&lt;p&gt;This issue appears to be fixed as you can see in the above being quoted&lt;br&gt;correctly. Feel free to try it out yourself and let me know if you can&lt;br&gt;find other errors in this regard.&lt;p&gt;[...]&lt;p&gt;&amp;gt; &lt;br&gt;&amp;gt; Maxim Dounin&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,176110,182706#msg-182706"&gt;http://forum.nginx.org/read.php?2,176110,182706#msg-182706&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-710418258142649297?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/710418258142649297/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-problem-with-nginx0854-and-alias.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/710418258142649297'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/710418258142649297'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-problem-with-nginx0854-and-alias.html' title='Re: Problem with nginx/0.8.54 and alias'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-3873890022353132789</id><published>2011-03-13T16:52:00.000-07:00</published><updated>2011-03-13T16:53:21.704-07:00</updated><title type='text'>uwsgi_param UWSGI_SCHEME $scheme; ?</title><content type='html'>I had a problem where the url_scheme was not being set properly. I&lt;br&gt;tracked it down to this setting needing to be included in uwsgi_params&lt;br&gt;or nginx.conf:&lt;p&gt;uwsgi_param     UWSGI_SCHEME   $scheme;&lt;p&gt;Should this param be included in the default uwsgi_params that comes&lt;br&gt;with nginx?&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,182679,182679#msg-182679"&gt;http://forum.nginx.org/read.php?2,182679,182679#msg-182679&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-3873890022353132789?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/3873890022353132789/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/uwsgiparam-uwsgischeme-scheme.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/3873890022353132789'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/3873890022353132789'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/uwsgiparam-uwsgischeme-scheme.html' title='uwsgi_param UWSGI_SCHEME $scheme; ?'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-7569619585427008997</id><published>2011-03-13T12:13:00.000-07:00</published><updated>2011-03-13T12:14:55.919-07:00</updated><title type='text'>Re: Nginx suddenly lose configure file</title><content type='html'>On Sun, 2011-03-13 at 10:26 -0400, luca_tony wrote:&lt;br&gt;&amp;gt; Dear ,&lt;br&gt;&amp;gt; I install nginx stable version on CentOs 5.5.&lt;br&gt;&amp;gt; It works smoothly in 5 months without errors.&lt;br&gt;&amp;gt; But yesterday, I dont know why I can not access my website. &lt;br&gt;&amp;gt; After 10 minutes , I  found that ngnix lose configure files. So that&lt;br&gt;&amp;gt; ngnix can listen on port 80 and can not be started again.&lt;br&gt;&amp;gt; Do you think someone have my root password and remove nginx OR it&amp;#39;s a&lt;br&gt;&amp;gt; bug of nginx.&lt;br&gt;&amp;gt; Thank you very much.&lt;p&gt;Not a bug in Nginx.  We&amp;#39;d have heard of it before now.&lt;p&gt;1) What directory were the config files stored in?  &lt;br&gt;2) Did you install from source or a package?&lt;p&gt;Cliff&lt;p&gt;&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-7569619585427008997?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/7569619585427008997/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-nginx-suddenly-lose-configure-file.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/7569619585427008997'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/7569619585427008997'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-nginx-suddenly-lose-configure-file.html' title='Re: Nginx suddenly lose configure file'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-6542738719754345127</id><published>2011-03-13T07:26:00.000-07:00</published><updated>2011-03-13T07:28:08.612-07:00</updated><title type='text'>Nginx suddenly lose configure file</title><content type='html'>Dear ,&lt;br&gt;I install nginx stable version on CentOs 5.5.&lt;br&gt;It works smoothly in 5 months without errors.&lt;br&gt;But yesterday, I dont know why I can not access my website. &lt;br&gt;After 10 minutes , I  found that ngnix lose configure files. So that&lt;br&gt;ngnix can listen on port 80 and can not be started again.&lt;br&gt;Do you think someone have my root password and remove nginx OR it&amp;#39;s a&lt;br&gt;bug of nginx.&lt;br&gt;Thank you very much.&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,182596,182596#msg-182596"&gt;http://forum.nginx.org/read.php?2,182596,182596#msg-182596&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-6542738719754345127?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/6542738719754345127/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/nginx-suddenly-lose-configure-file.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/6542738719754345127'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/6542738719754345127'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/nginx-suddenly-lose-configure-file.html' title='Nginx suddenly lose configure file'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-8401399823385368940</id><published>2011-03-12T11:10:00.000-08:00</published><updated>2011-03-12T11:11:46.789-08:00</updated><title type='text'>Re: nginx/windows autoindex module URL charset problem</title><content type='html'>Hi.&lt;p&gt;I met the same problem with cyrilic code page.&lt;br&gt;It seems the problem is in utf8 - windows does not run programs with &lt;br&gt;one-byte locale &amp;quot;utf-8&amp;quot;, while other OSes (freebsd, linux) returns file &lt;br&gt;names to the program in utf8.&lt;p&gt;I was able to work around this problem by running nginx via cygwin on &lt;br&gt;windows.&lt;br&gt;I compiled nginx from source under cygwin and the problem disappers.&lt;p&gt;Good luck. Sorry for my english.&lt;p&gt;-- &lt;br&gt;Posted via &lt;a href="http://www.ruby-forum.com/"&gt;http://www.ruby-forum.com/&lt;/a&gt;.&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-8401399823385368940?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/8401399823385368940/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-nginxwindows-autoindex-module-url.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/8401399823385368940'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/8401399823385368940'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-nginxwindows-autoindex-module-url.html' title='Re: nginx/windows autoindex module URL charset problem'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-5335637552854504460</id><published>2011-03-11T12:39:00.000-08:00</published><updated>2011-03-11T12:40:20.988-08:00</updated><title type='text'>Re: Having trouble with the PCRE syntax</title><content type='html'>Hello,&lt;p&gt;thank you guys and thanks a bunch for the explanation!&lt;p&gt;I&amp;#39;ll stick to what Maxim suggested, because it will definitively save me&lt;br&gt;from headaches. But it&amp;#39;s good to have the explanation and so to&lt;br&gt;understand what the problem was as the syntax looks like fundamental&lt;br&gt;knowledge to me.&lt;p&gt;Wow, even the creator himself spent some of his very spare time in&lt;br&gt;writing a reply. :D&lt;p&gt;Thanks again!&lt;p&gt;Posted at Nginx Forum: &lt;a href="http://forum.nginx.org/read.php?2,182278,182349#msg-182349"&gt;http://forum.nginx.org/read.php?2,182278,182349#msg-182349&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-5335637552854504460?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/5335637552854504460/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-having-trouble-with-pcre-syntax_8528.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/5335637552854504460'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/5335637552854504460'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-having-trouble-with-pcre-syntax_8528.html' title='Re: Having trouble with the PCRE syntax'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-4230422816564021496</id><published>2011-03-11T11:16:00.000-08:00</published><updated>2011-03-11T11:29:55.236-08:00</updated><title type='text'>Trying to figure if nginx can be used</title><content type='html'>Hi,&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I&amp;#39;ve googled trying to find out the answers to my questions and a few remained unanswered / inconclusive.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I plan to replace my apache server with nginx.  I currently use:&lt;/div&gt; &lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;a) mod_deflate to compress the pages&lt;/div&gt;&lt;div&gt;b) mod_expires to add expires headers to certain images&lt;/div&gt;&lt;div&gt;c) mod_rewrite to, well, rewrite the requests to a bootstrap index.php (Zend Framework)&lt;/div&gt; &lt;div&gt;d) support php&lt;/div&gt;&lt;div&gt;e) support for SSL&lt;/div&gt;&lt;div&gt;f) support for name based virtual hosts&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I&amp;#39;ve found that nginx has built-in support for compression, support for virtual servers (name based), SSL and can host php scripts.  But:&lt;/div&gt; &lt;div&gt;a) does it support similar configuration like the one below?&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&amp;lt;Directory &amp;quot;/var/www/html&amp;quot;&amp;gt;&lt;/div&gt;&lt;div&gt;SetOutputFilter DEFLATE&lt;/div&gt;&lt;div&gt;BrowserMatch ^Mozilla/4 gzip-only-text/html&lt;/div&gt; &lt;div&gt;BrowserMatch ^Mozilla/4\.0[678] no-gzip&lt;/div&gt;&lt;div&gt;BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html&lt;/div&gt;&lt;div&gt;SetEnvIfNoCase Request_URI \&lt;/div&gt;&lt;div&gt;\.(?:gif|jpe?g|png|zip|exe|mp3)$ no-gzip dont-vary&lt;/div&gt;&lt;div&gt;Header append Vary User-Agent env=!dont-vary&lt;/div&gt; &lt;div&gt;&amp;lt;/Directory&amp;gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;b) Are there any known limitations or disadvantages on hosting PHP with nginx? &lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-4230422816564021496?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/4230422816564021496/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/trying-to-figure-if-nginx-can-be-used.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/4230422816564021496'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/4230422816564021496'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/trying-to-figure-if-nginx-can-be-used.html' title='Trying to figure if nginx can be used'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-5869237703724140752</id><published>2011-03-11T09:47:00.001-08:00</published><updated>2011-03-11T09:47:49.893-08:00</updated><title type='text'>Re: Having trouble with the PCRE syntax</title><content type='html'>On Mar 11, 2011, at 20:33 , Maxim Dounin wrote:&lt;p&gt;&amp;gt; Correct regexp-based solution would be&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt;    location ~* ^/(?:forum|forums|board)(?:/|$) {&lt;br&gt;&amp;gt;        rewrite ^/[^/]*/*(.*) &lt;a href="http://forum.my_domain.com/$2"&gt;http://forum.my_domain.com/$2&lt;/a&gt; permanent;&lt;br&gt;&amp;gt;    }&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; But recommended way is to avoid regexp-based solutions without &lt;br&gt;&amp;gt; real need.  It&amp;#39;s much simplier and much more scalable to write &lt;br&gt;&amp;gt; configuration with normal static locations, i.e.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt;    location = /forum {&lt;br&gt;&amp;gt;        rewrite ^ &lt;a href="http://forum.my_domain.com/"&gt;http://forum.my_domain.com/&lt;/a&gt; permanent;&lt;br&gt;&amp;gt;    }&lt;br&gt;&amp;gt;    location /forum/ {&lt;br&gt;&amp;gt;        rewrite ^/forum/(.*) &lt;a href="http://forum.my_domain.com/$1"&gt;http://forum.my_domain.com/$1&lt;/a&gt; permanent;&lt;br&gt;&amp;gt;    }&lt;br&gt;&amp;gt;    location = /board {&lt;br&gt;&amp;gt;        rewrite ^ &lt;a href="http://forum.my_domain.com/"&gt;http://forum.my_domain.com/&lt;/a&gt; permanent;&lt;br&gt;&amp;gt;    }&lt;br&gt;&amp;gt;    location /board/ {&lt;br&gt;&amp;gt;        rewrite ^/board/(.*) &lt;a href="http://forum.my_domain.com/$1"&gt;http://forum.my_domain.com/$1&lt;/a&gt; permanent;&lt;br&gt;&amp;gt;    }&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; This way you&amp;#39;ll save yourself a headache.&lt;p&gt;[ when configuration will eventually grow.&lt;br&gt;  And it will certainly grow eventually. ]&lt;p&gt;&amp;gt; As a side effect - it&amp;#39;s &lt;br&gt;&amp;gt; faster.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; Maxim Dounin&lt;p&gt;&lt;br&gt;--&lt;br&gt;Igor Sysoev&lt;br&gt;&lt;a href="http://sysoev.ru/en/"&gt;http://sysoev.ru/en/&lt;/a&gt;&lt;p&gt;&lt;br&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-5869237703724140752?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/5869237703724140752/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-having-trouble-with-pcre-syntax_9826.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/5869237703724140752'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/5869237703724140752'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-having-trouble-with-pcre-syntax_9826.html' title='Re: Having trouble with the PCRE syntax'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6722551504273460646.post-3792851502602535857</id><published>2011-03-11T09:33:00.001-08:00</published><updated>2011-03-11T09:33:55.080-08:00</updated><title type='text'>Re: Having trouble with the PCRE syntax</title><content type='html'>Hello!&lt;p&gt;On Fri, Mar 11, 2011 at 10:01:03AM -0500, strike wrote:&lt;p&gt;&amp;gt; Hi,&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; would anybody please tell me what I&amp;#39;m doing wrong here?&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; location ~* ^/(forum|forums|board)/? {&lt;br&gt;&amp;gt; &amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;rewrite ^/([^/]*)/*(.*) &lt;a href="http://forum.my_domain.com/$2"&gt;http://forum.my_domain.com/$2&lt;/a&gt;&lt;br&gt;&amp;gt; permanent;&lt;br&gt;&amp;gt; }&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; I&amp;#39;d like to make it redirect visitors from&lt;br&gt;&amp;gt; &lt;a href="http://www.my_domain.com/forum"&gt;http://www.my_domain.com/forum&lt;/a&gt; (note: there&amp;#39;s no trailing slash),&lt;br&gt;&amp;gt; &lt;a href="http://www.my_domain.com/forum/"&gt;http://www.my_domain.com/forum/&lt;/a&gt;, &lt;a href="http://www.my_domain.com/forums"&gt;http://www.my_domain.com/forums&lt;/a&gt; (again,&lt;br&gt;&amp;gt; there&amp;#39;s no trailing slash here), &lt;a href="http://www.my_domain.com/forums/"&gt;http://www.my_domain.com/forums/&lt;/a&gt;,&lt;br&gt;&amp;gt; &lt;a href="http://www.my_domain.com/board"&gt;http://www.my_domain.com/board&lt;/a&gt; (...yep) and&lt;br&gt;&amp;gt; &lt;a href="http://www.my_domain.com/board/"&gt;http://www.my_domain.com/board/&lt;/a&gt; to &lt;a href="http://forum.my_domain.com/"&gt;http://forum.my_domain.com/&lt;/a&gt;. Neither&lt;br&gt;&amp;gt; the path (except &amp;quot;forum&amp;quot;/&amp;quot;forums&amp;quot;/&amp;quot;board&amp;quot;) nor the query (if there&amp;#39;s&lt;br&gt;&amp;gt; one) should get cut off. It&amp;#39;s working so far, but it also redirects&lt;br&gt;&amp;gt; visitors from ex. &lt;a href="http://www.my_domain.com/forumfoobar/"&gt;http://www.my_domain.com/forumfoobar/&lt;/a&gt;, which isn&amp;#39;t&lt;br&gt;&amp;gt; what I want. :-(&lt;p&gt;Correct regexp-based solution would be&lt;p&gt;    location ~* ^/(?:forum|forums|board)(?:/|$) {&lt;br&gt;        rewrite ^/[^/]*/*(.*) &lt;a href="http://forum.my_domain.com/$2"&gt;http://forum.my_domain.com/$2&lt;/a&gt; permanent;&lt;br&gt;    }&lt;p&gt;But recommended way is to avoid regexp-based solutions without &lt;br&gt;real need.  It&amp;#39;s much simplier and much more scalable to write &lt;br&gt;configuration with normal static locations, i.e.&lt;p&gt;    location = /forum {&lt;br&gt;        rewrite ^ &lt;a href="http://forum.my_domain.com/"&gt;http://forum.my_domain.com/&lt;/a&gt; permanent;&lt;br&gt;    }&lt;br&gt;    location /forum/ {&lt;br&gt;        rewrite ^/forum/(.*) &lt;a href="http://forum.my_domain.com/$1"&gt;http://forum.my_domain.com/$1&lt;/a&gt; permanent;&lt;br&gt;    }&lt;br&gt;    location = /board {&lt;br&gt;        rewrite ^ &lt;a href="http://forum.my_domain.com/"&gt;http://forum.my_domain.com/&lt;/a&gt; permanent;&lt;br&gt;    }&lt;br&gt;    location /board/ {&lt;br&gt;        rewrite ^/board/(.*) &lt;a href="http://forum.my_domain.com/$1"&gt;http://forum.my_domain.com/$1&lt;/a&gt; permanent;&lt;br&gt;    }&lt;p&gt;This way you&amp;#39;ll save yourself a headache.  As a side effect - it&amp;#39;s &lt;br&gt;faster.&lt;p&gt;Maxim Dounin&lt;p&gt;_______________________________________________&lt;br&gt;nginx mailing list&lt;br&gt;&lt;a href="mailto:nginx@nginx.org"&gt;nginx@nginx.org&lt;/a&gt;&lt;br&gt;&lt;a href="http://nginx.org/mailman/listinfo/nginx"&gt;http://nginx.org/mailman/listinfo/nginx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6722551504273460646-3792851502602535857?l=nginx-maillist.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nginx-maillist.blogspot.com/feeds/3792851502602535857/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-having-trouble-with-pcre-syntax_5531.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/3792851502602535857'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6722551504273460646/posts/default/3792851502602535857'/><link rel='alternate' type='text/html' href='http://nginx-maillist.blogspot.com/2011/03/re-having-trouble-with-pcre-syntax_5531.html' title='Re: Having trouble with the PCRE syntax'/><author><name>HotLines</name><uri>http://www.blogger.com/profile/18185913968433528981</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_N8hJC8tTXNI/SokJpWl2YZI/AAAAAAAAAPQ/3n5ItSs_LJU/S220/1.JPG'/></author><thr:total>0</thr:total></entry></feed>
