<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Serverphorums.com - Nginx</title>
        <description>Nginx is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server. Written by Igor Sysoev in 2005, Nginx now hosts between 1% and 4% of all domains worldwide. Nginx is known for its high performance, stability, rich feature set, simple configuration, and low resource consumption. </description>
        <link>http://www.serverphorums.com/list.php?5</link>
        <lastBuildDate>Sun, 26 May 2013 08:13:21 +0200</lastBuildDate>
        <generator>Phorum 5.2.18</generator>
        <item>
            <guid>http://www.serverphorums.com/read.php?5,713031,713031#msg-713031</guid>
            <title>nginx got an 500 error when uploading files (no replies)</title>
            <link>http://www.serverphorums.com/read.php?5,713031,713031#msg-713031</link>
            <description><![CDATA[ Hi everyone,<br />
<br />
I am using nginx 1.4.1 and php-fpm 5.3.25.<br />
<br />
Everything is fine except when I uploading files to server.<br />
<br />
I have a Discuz! x3(a forum system) and when I post threads, except<br />
attachment everything is fine, but when I add a small files(such as 30k<br />
rar,jpg or else), nginx give me a 500 error.<br />
<br />
I checked the nginx/site error, but have no usefule information. nginx only<br />
tell me a got an 500 error, but didn't tell me why.<br />
<br />
I tried to increase the fast_cgi parama:<br />
<br />
  fastcgi_connect_timeout 300;<br />
  fastcgi_send_timeout 300;<br />
  fastcgi_read_timeout 300;<br />
  fastcgi_buffer_size 1024k;<br />
  fastcgi_buffers 32 64k;<br />
  fastcgi_busy_buffers_size 1500k;<br />
  fastcgi_temp_file_write_size 1800k;<br />
<br />
But still the same.<br />
<br />
<br />
So, please help me for solve this problem, I wonder where can I got the<br />
error message?<br />
<br />
Thank you.<br />
<br />
<br />
-- <br />
from:baalchina<br />
_______________________________________________<br />
nginx mailing list<br />
<a href="mailto:&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;">&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;</a><br />
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank"  rel="nofollow">http://mailman.nginx.org/mailman/listinfo/nginx</a>]]></description>
            <dc:creator>baalchina</dc:creator>
            <category>Nginx</category>
            <pubDate>Sun, 26 May 2013 06:10:01 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?5,712945,712945#msg-712945</guid>
            <title>fastcgi_read_timeout with PHP backend (no replies)</title>
            <link>http://www.serverphorums.com/read.php?5,712945,712945#msg-712945</link>
            <description><![CDATA[ Hello,<br />
<br />
I am trying to understand how fastcgi_read_timout works in Nginx.<br />
<br />
Here is what I wanna do:<br />
I list files (few MB each) on a distant place which I copy one by one<br />
(loop) on the local disk through PHP.<br />
I do not know the amount of files I need to copy, thus I do not know the<br />
total amount of time I need for the script to finish its execution. What I<br />
know is that I can ensure is a processing time limit per file.<br />
I would like my script not to be forcefully interrupted by either sides<br />
(PHP or Nginx) before completion.<br />
<br />
<br />
What I did so far:<br />
- PHP has a 'max_execution_time' of 30s (default?). In the loop copying<br />
files, I use the set_time_limit() procedure to reinitialize the limit<br />
before each file copy, hence each file processing has 30s to go: way enough!<br />
<br />
- The problem seems to lie on the Nginx side, with the<br />
'fastcgi_read_timeout' configuration entry.<br />
I can't ensure what maximum time I need, and I would like not to use<br />
way-off values such as 2 weeks or 1 year there. ;o)<br />
What I understood from the<br />
documentation&lt;<a href="http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_read_timeout&gt;is" target="_blank"  rel="nofollow">http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_read_timeout&gt;is</a><br />
that the timeout is reinitialized after a successful read: am I right?<br />
<br />
The challenge is now to cut any buffering occurring on the PHP side and let<br />
Nginx manage it (since the buffering will occur after content is being read<br />
from the backend). Here is what I did:<br />
* PHP's zlib.output_compression is deactivated by default in PHP<br />
* I deactivated PHP's output_buffering (default is 4096 bytes)<br />
* I am using the PHP flush() procedure at the end of each iteration of the<br />
copying loop, after a message is written to the output<br />
<br />
<br />
Current state:<br />
* The script seems to still be cut after the expiration of the<br />
'fastcgi_read_timout' limit (confirmed by the error log entry 'upstream<br />
timed out (110: Connection timed out) while reading upstream')<br />
* The PHP loop is entered several times since multiple files have been<br />
copied<br />
* The output sent to the browser is cut before any output from the loop<br />
appears<br />
<br />
It seems that there is still some unwanted buffering on the PHP side.<br />
I also note that the PHP's flush() procedure doesn't seem to work since the<br />
output in the browser doesn't contain any message written after eahc file<br />
copy.<br />
<br />
Am I misunderstanding something about Nginx here (especially about the<br />
'fastcgi_read_timeout' directive)?<br />
Have you any intel/piece of advice on hte matter?<br />
<br />
Thanks,<br />
---<br />
*B. R.*<br />
_______________________________________________<br />
nginx mailing list<br />
<a href="mailto:&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;">&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;</a><br />
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank"  rel="nofollow">http://mailman.nginx.org/mailman/listinfo/nginx</a>]]></description>
            <dc:creator>B.R.</dc:creator>
            <category>Nginx</category>
            <pubDate>Sat, 25 May 2013 19:10:02 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?5,712758,712758#msg-712758</guid>
            <title>Performance trouble after migration Squeeze to Wheezy (no replies)</title>
            <link>http://www.serverphorums.com/read.php?5,712758,712758#msg-712758</link>
            <description><![CDATA[ Hello,<br />
<br />
First of all I need to emphasize the fact that I know WHeezy is not yet<br />
supported.<br />
What I am trying to determine how WHeezy could impact Nginx (compiled for<br />
Squeeze) performance.<br />
<br />
Since I made the upgrade, big files are being served in a slow fashion<br />
(~200 kiB/s).<br />
The directory serving them is configured with AIO and worked perfectly<br />
before system changes.<br />
<br />
I know Sergey listed some changes in the<br />
dependencies<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank"  rel="nofollow">http://mailman.nginx.org/mailman/listinfo/nginx</a>,<br />
but what precisely would explain such a slow-down?<br />
Is there a defect somewhere that I can work on or just be patient and wait<br />
for the release of the Wheezy build of Nginx?<br />
<br />
Thanks,<br />
---<br />
*B. R.*<br />
_______________________________________________<br />
nginx mailing list<br />
<a href="mailto:&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;">&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;</a><br />
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank"  rel="nofollow">http://mailman.nginx.org/mailman/listinfo/nginx</a>]]></description>
            <dc:creator>B.R.</dc:creator>
            <category>Nginx</category>
            <pubDate>Fri, 24 May 2013 23:20:01 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?5,712713,712713#msg-712713</guid>
            <title>Rewriting and proxy problem (2 replies)</title>
            <link>http://www.serverphorums.com/read.php?5,712713,712713#msg-712713</link>
            <description><![CDATA[ H folks!<br />
<br />
I am completeley newbie to nginx<br />
<br />
I have the following config<br />
<br />
        # Forward request to /demo to tomcat.  This is for<br />
         # the BigBlueButton api demos.<br />
       location /demo {<br />
           rewrite ^ /upvc;<br />
           proxy_pass         <a href="http://127.0.0.1:8080" target="_blank"  rel="nofollow">http://127.0.0.1:8080</a>;<br />
           proxy_redirect     default;<br />
           proxy_set_header   X-Forwarded-For   $proxy_add_x_forwarded_for;<br />
<br />
        # Allow 30M uploaded presentation document.<br />
           client_max_body_size       30m;<br />
           client_body_buffer_size    128k;<br />
<br />
           proxy_connect_timeout      90;<br />
           proxy_send_timeout         90;<br />
           proxy_read_timeout         90;<br />
<br />
           proxy_buffer_size          4k;<br />
           proxy_buffers              4 32k;<br />
           proxy_busy_buffers_size    64k;<br />
           proxy_temp_file_write_size 64k;<br />
<br />
           include    fastcgi_params;<br />
       }<br />
<br />
<br />
location /upvc {<br />
        alias  /var/lib/tomcat6/webapps/demo;<br />
        index demo3.jsp;<br />
        expires 1m;<br />
}<br />
<br />
<br />
Rewrite is working but nginx is not.  proxying to tomcat, because of that<br />
returns the jsp file as a plain text file.<br />
<br />
Please could you help me?<br />
<br />
Thanks in advance!<br />
-- <br />
--<br />
Sergio Belkin  <a href="http://www.sergiobelkin.com" target="_blank"  rel="nofollow">http://www.sergiobelkin.com</a><br />
Watch More TV <a href="http://sebelk.blogspot.com" target="_blank"  rel="nofollow">http://sebelk.blogspot.com</a><br />
LPIC-2 Certified - <a href="http://www.lpi.org" target="_blank"  rel="nofollow">http://www.lpi.org</a><br />
_______________________________________________<br />
nginx mailing list<br />
<a href="mailto:&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;">&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;</a><br />
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank"  rel="nofollow">http://mailman.nginx.org/mailman/listinfo/nginx</a>]]></description>
            <dc:creator>Sergio Belkin</dc:creator>
            <category>Nginx</category>
            <pubDate>Sat, 25 May 2013 11:30:01 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?5,712272,712272#msg-712272</guid>
            <title>[ANN] ngx_openresty devel version 1.2.8.5 released (no replies)</title>
            <link>http://www.serverphorums.com/read.php?5,712272,712272#msg-712272</link>
            <description><![CDATA[ Hello guys!<br />
<br />
I am happy to announce that the new development version of<br />
ngx_openresty, 1.2.8.5, is now released:<br />
<br />
    <a href="http://openresty.org/#Download" target="_blank"  rel="nofollow">http://openresty.org/#Download</a><br />
<br />
Special thanks go to all our contributors and users for helping make<br />
this release happen!<br />
<br />
Below is the complete change log for this release, as compared to the<br />
last (devel) release, 1.2.8.3:<br />
<br />
 *   upgraded LuaNginxModule to 0.8.2.<br />
<br />
     *   feature: added &quot;ngx.HTTP_MKCOL&quot;, &quot;ngx.HTTP_COPY&quot;,<br />
         &quot;ngx.HTTP_MOVE&quot;, and other WebDAV request method constants;<br />
         also added corresponding support to ngx.req.set_method and<br />
         ngx.location.capture. thanks Adallom Roy for the patch.<br />
<br />
     *   feature: allow injecting new user Lua APIs (and overriding<br />
         existing Lua APIs) in the &quot;ngx&quot; table.<br />
<br />
     *   bugfix: ngx.req.set_body_file() always enabled Direct I/O<br />
         which caused the alert message &quot;fcntl(O_DIRECT) ... Invalid<br />
         argument&quot; in error logs on file systems lacking the Direct<br />
         I/O support. thanks Matthieu Tourne for reporting this<br />
         issue.<br />
<br />
     *   bugfix: buffer corruption might happen in<br />
         ngx.req.set_body_file() when Nginx upstream modules were<br />
         used later because ngx.req.set_body_file() incorrectly set<br />
         &quot;r-&gt;request_body-&gt;buf&quot; to the in-file buffer which could get<br />
         reused by &quot;ngx_http_upstream&quot; for its own purposes.<br />
<br />
     *   bugfix: no longer automatically turn underscores (_) to<br />
         dashes (-) in header names for ngx.req.set_header and<br />
         ngx.req.clear_header. thanks aviramc for the report.<br />
<br />
     *   bugfix: segmentation fault might happen in nginx 1.4.x when<br />
         calling ngx.req.set_header on the &quot;Cookie&quot; request headers<br />
         because recent versions of Nginx no longer always initialize<br />
         &quot;r-&gt;headers_in.cookies&quot;. thanks Rob W for reporting this<br />
         issue.<br />
<br />
     *   bugfix: fixed the C compiler warning &quot;argument 'nret' might<br />
         be clobbered by 'longjmp' or 'vfork'&quot; when compiling with<br />
         Ubuntu 13.04's gcc 4.7.3. thanks jacky and Rajeev's reports.<br />
<br />
     *   bugfix: temporary memory leaks might happen when using<br />
         ngx.escape_uri, ngx.unescape_uri, ngx.quote_sql_str,<br />
         ngx.decode_base64, and ngx.encode_base64 in tight Lua loops<br />
         because we allocated memory in nginx's request memory pool<br />
         for these methods.<br />
<br />
     *   optimize: ngx.escape_uri now runs faster when the input<br />
         string contains no special bytes to be escaped.<br />
<br />
     *   testing: added custom test scaffold t::TestNginxLua which<br />
         subclasses Test::Nginx::Socket. it supports the environment<br />
         &quot;TEST_NGINX_INIT_BY_LUA&quot; which can be used to add more<br />
         custom Lua code to the value of the init_by_lua directive in<br />
         the Nginx configuration.<br />
<br />
 *   upgraded SrcacheNginxModule to 0.21.<br />
<br />
     *   bugfix: responses with a status code smaller than all the<br />
         status codes specified in the srcache_store_statuses<br />
         directive were not skipped as expected. thanks Lanshun Zhou<br />
         for the patch.<br />
<br />
 *   feature: applied the invalid_referer_hash patch to the Nginx<br />
     core to make the $invalid_referer variable accessible in<br />
     embedded dynamic languages like Perl and Lua. thanks Fry-kun for<br />
     requesting this.<br />
<br />
 *   updated the dtrace patch for the Nginx core.<br />
<br />
     *   print out more info about the Nginx in-file bufs in the<br />
         tapset function &quot;ngx_chain_dump&quot;.<br />
<br />
The HTML version of the change log with lots of helpful hyper-links<br />
can be browsed here:<br />
<br />
    <a href="http://openresty.org/#ChangeLog1002008" target="_blank"  rel="nofollow">http://openresty.org/#ChangeLog1002008</a><br />
<br />
OpenResty (aka. ngx_openresty) is a full-fledged web application<br />
server by bundling the standard Nginx core, lots of 3rd-party Nginx<br />
modules and Lua libraries, as well as most of their external<br />
dependencies. See OpenResty's homepage for details:<br />
<br />
    <a href="http://openresty.org/" target="_blank"  rel="nofollow">http://openresty.org/</a><br />
<br />
We have been running extensive testing on our Amazon EC2 test cluster<br />
and ensure that all the components (including the Nginx core) play<br />
well together. The latest test report can always be found here:<br />
<br />
    <a href="http://qa.openresty.org" target="_blank"  rel="nofollow">http://qa.openresty.org</a><br />
<br />
Have fun!<br />
-agentzh<br />
<br />
_______________________________________________<br />
nginx mailing list<br />
<a href="mailto:&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;">&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;</a><br />
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank"  rel="nofollow">http://mailman.nginx.org/mailman/listinfo/nginx</a>]]></description>
            <dc:creator>agentzh</dc:creator>
            <category>Nginx</category>
            <pubDate>Fri, 24 May 2013 03:30:14 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?5,712266,712266#msg-712266</guid>
            <title>proxy only certain assets based on host header? (2 replies)</title>
            <link>http://www.serverphorums.com/read.php?5,712266,712266#msg-712266</link>
            <description><![CDATA[ We're trying to proxy only certain assets like png|jpg|css only when the<br />
host header is a certain DNS name. I tried to do this in the proxy.conf file<br />
using something the example below but it doesnt like the if statement. Is<br />
there a way to have nginx do what I am looking for?<br />
<br />
<br />
if ($http_host = dnsname.com) {<br />
  location ~ ^/(stylesheets|images|javascripts|tools|flash|components)/ {<br />
    proxy_pass <a href="http://assethost" target="_blank"  rel="nofollow">http://assethost</a><br />
  }<br />
}<br />
<br />
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,239494,239494#msg-239494" target="_blank"  rel="nofollow">http://forum.nginx.org/read.php?2,239494,239494#msg-239494</a><br />
<br />
_______________________________________________<br />
nginx mailing list<br />
<a href="mailto:&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;">&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;</a><br />
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank"  rel="nofollow">http://mailman.nginx.org/mailman/listinfo/nginx</a>]]></description>
            <dc:creator>amagad</dc:creator>
            <category>Nginx</category>
            <pubDate>Fri, 24 May 2013 15:10:02 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?5,712183,712183#msg-712183</guid>
            <title>Rewriting (5 replies)</title>
            <link>http://www.serverphorums.com/read.php?5,712183,712183#msg-712183</link>
            <description><![CDATA[ Hi,<br />
I use opencart with nginx+php-fpm. Sometimes it is necessary to redirect all clients, except admin (190.212.201.0/24), to &quot;Service unavailable&quot; page which is simple index.html file with logo, background image and some text, located in /unav directory.<br />
Below  some of nginx.conf<br />
<br />
<br />
location / {<br />
<br />
if ($remote_addr !~ '190\.212\.201\.[0-9]{0,3}') {<br />
rewrite ^/(.*)$ /unav/$1 break;<br />
return 403;<br />
}<br />
try_files $uri $uri/ @opencart;<br />
}<br />
<br />
location ^~ /unav {<br />
}<br />
<br />
location @opencart {<br />
rewrite ^/(.+)$ /index.php?_route_=$1 last;<br />
}<br />
<br />
[...skipped...]<br />
<br />
location ~ \.php$ {<br />
<br />
         try_files      $uri =404;<br />
         fastcgi_read_timeout 60s;<br />
         fastcgi_send_timeout 60s;<br />
         include           myphp-fpm.conf;<br />
<br />
                    }<br />
<br />
Problem  is in rewriting.<br />
This rule<br />
<br />
rewrite ^/(.*)$ /unav/$1 break;<br />
<br />
rewrite ONLY <a href="http://mysite.com/" target="_blank"  rel="nofollow">http://mysite.com/</a> request but in case <a href="http://mysite.com/index.php" target="_blank"  rel="nofollow">http://mysite.com/index.php</a> rewrite is none and request processed by location ~ \.php$ rule. Why??<br />
<br />
Thanks!<br />
<br />
<br />
_______________________________________________<br />
nginx mailing list<br />
<a href="mailto:&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;">&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;</a><br />
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank"  rel="nofollow">http://mailman.nginx.org/mailman/listinfo/nginx</a>]]></description>
            <dc:creator>wishmaster</dc:creator>
            <category>Nginx</category>
            <pubDate>Sat, 25 May 2013 17:40:02 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?5,712150,712150#msg-712150</guid>
            <title>NGINX error log format documentation (1 reply)</title>
            <link>http://www.serverphorums.com/read.php?5,712150,712150#msg-712150</link>
            <description><![CDATA[ Hey!<br />
<br />
I want to parse NGINX error logs. However, I did not find any <br />
documentation concerning the used log format. While the meaning of some <br />
fields like the data is pretty obvious, for some it is not at all. In <br />
addition, I cannot be sure that my parser is complete if I do not have a <br />
documentation of all the possible fields. Since it seems you can change <br />
the access log format, but not that of the error log, I really have no <br />
idea how to get the information I need.<br />
<br />
Is there such documentation?<br />
<br />
I also posted this question on StackOverflow: <br />
<a href="http://stackoverflow.com/questions/16711573/nginx-error-log-format-documentation/16711684" target="_blank"  rel="nofollow">http://stackoverflow.com/questions/16711573/nginx-error-log-format-documentation/16711684</a><br />
<br />
Thank you!<br />
<br />
<br />
_______________________________________________<br />
nginx mailing list<br />
<a href="mailto:&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;">&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;</a><br />
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank"  rel="nofollow">http://mailman.nginx.org/mailman/listinfo/nginx</a>]]></description>
            <dc:creator>Jan Teske</dc:creator>
            <category>Nginx</category>
            <pubDate>Thu, 23 May 2013 21:40:02 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?5,712020,712020#msg-712020</guid>
            <title>How to tell nginx to check dead backend in upstream adaptively? (no replies)</title>
            <link>http://www.serverphorums.com/read.php?5,712020,712020#msg-712020</link>
            <description><![CDATA[ Hi,<br />
<br />
Currently nginx will check every fail_timeout (default=10s) which is too<br />
frequent when the backend server dead completely that require manually<br />
replacement and it might take long time.<br />
<br />
Definitely we can mark it as down in the config, but that is not an<br />
automatic solution.<br />
<br />
Is it possible to config nginx that it check adaptively?<br />
e.g. start from 10s, then 20s, 40s, 60s etc?<br />
<br />
Or are there any better approach?<br />
<br />
Thanks.<br />
_______________________________________________<br />
nginx mailing list<br />
<a href="mailto:&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;">&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;</a><br />
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank"  rel="nofollow">http://mailman.nginx.org/mailman/listinfo/nginx</a>]]></description>
            <dc:creator>Ryan Chan</dc:creator>
            <category>Nginx</category>
            <pubDate>Thu, 23 May 2013 17:20:03 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?5,712009,712009#msg-712009</guid>
            <title>Override Content-Type header with proxied requests (4 replies)</title>
            <link>http://www.serverphorums.com/read.php?5,712009,712009#msg-712009</link>
            <description><![CDATA[ Hi !!<br />
<br />
i have a Nginx server that operates as a reverse proxy to a my bucket in<br />
Amazon S3.<br />
<br />
Amazon S3 service could deliver contents with wrong Content-Type header,<br />
so i would like to override this header by referring to file extension.<br />
<br />
In other servers i have just configured the &quot;types&quot; block with all mime<br />
types mapped with file estensions,<br />
but this approach only works when Nginx delivers contents directly (as a<br />
origin server).<br />
If the server is a reverse proxy, doesn't add a new Content-Type header, but<br />
honors Content-Type (if exists) received by the origin.<br />
<br />
Is it possible to override the content-type response header using &quot;types&quot;<br />
block? Is there any best practice to override content-type header by file<br />
extensions? Is &quot;map&quot; suggested for this purpose or using multiple &quot;location&quot;<br />
block is better?<br />
<br />
Thanks in advance!!<br />
---<br />
Andrea<br />
<br />
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,239473,239473#msg-239473" target="_blank"  rel="nofollow">http://forum.nginx.org/read.php?2,239473,239473#msg-239473</a><br />
<br />
_______________________________________________<br />
nginx mailing list<br />
<a href="mailto:&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;">&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;</a><br />
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank"  rel="nofollow">http://mailman.nginx.org/mailman/listinfo/nginx</a>]]></description>
            <dc:creator>andrea.mandolo</dc:creator>
            <category>Nginx</category>
            <pubDate>Fri, 24 May 2013 11:00:02 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?5,711386,711386#msg-711386</guid>
            <title>Problem with rewrite regexes when the URL contains a trailing slash (nginx-1.5.0) (3 replies)</title>
            <link>http://www.serverphorums.com/read.php?5,711386,711386#msg-711386</link>
            <description><![CDATA[ Hello.<br />
I'm having a problem with nginx's rewrite directive.<br />
Basically, when the URL contains a trailing point, it is ignored by the <br />
rewrite regexp.<br />
Let's do an example:<br />
I load <a href="http://uri/something" target="_blank"  rel="nofollow">http://uri/something</a>. (with the trailing point). Then, with the <br />
rewrite rule:<br />
rewrite ^/something\.$ /index.html<br />
I should see 'index.html', but instead that appears in the logfile (with <br />
rewrite_log set at on):<br />
2013/05/22 20:36:07 [notice] 6256#1440: *57 &quot;^/something\.$&quot; does not <br />
match &quot;/something&quot;, client: 127.0.0.1, server: localhost, request: &quot;GET <br />
/something. HTTP/1.1&quot;, host: &quot;localhost&quot;<br />
As you can see, the trailing point is missing from the &quot;does not match&quot; <br />
part of the log.<br />
<br />
Is there any workaround for that?<br />
Thank you in advance,<br />
Robertof<br />
<br />
_______________________________________________<br />
nginx mailing list<br />
<a href="mailto:&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;">&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;</a><br />
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank"  rel="nofollow">http://mailman.nginx.org/mailman/listinfo/nginx</a>]]></description>
            <dc:creator>Roberto F.</dc:creator>
            <category>Nginx</category>
            <pubDate>Wed, 22 May 2013 23:20:03 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?5,711066,711066#msg-711066</guid>
            <title>NGINX SE vs. Open Source (1 reply)</title>
            <link>http://www.serverphorums.com/read.php?5,711066,711066#msg-711066</link>
            <description><![CDATA[ Hello,<br />
<br />
on your Site (http://nginx.com/products.html) you are comparing NGINX SE<br />
with the Open Source version. The table states &quot;Basic&quot; and &quot;Enhanced&quot; on<br />
many core features of NGINX. The SE/&quot;Enhanced&quot; column offers additional<br />
information by hovering with the mouse over the rows. Those additional<br />
information are listing well known features from the Open Source version.<br />
Since there is no detailed comparison (and _NO HOVER_ on the &quot;Basic&quot;<br />
column), can you clarify:<br />
<br />
- what exactly the differences are on the listed features?<br />
- will currently offered features of the Open Source version be moved to the<br />
SE version? (means: removed from the Open Source version)<br />
- will there be a documentation of how SE features work and what they<br />
offer?<br />
<br />
Thanks.<br />
<br />
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,239424,239424#msg-239424" target="_blank"  rel="nofollow">http://forum.nginx.org/read.php?2,239424,239424#msg-239424</a><br />
<br />
_______________________________________________<br />
nginx mailing list<br />
<a href="mailto:&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;">&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;</a><br />
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank"  rel="nofollow">http://mailman.nginx.org/mailman/listinfo/nginx</a>]]></description>
            <dc:creator>JackB</dc:creator>
            <category>Nginx</category>
            <pubDate>Wed, 22 May 2013 14:10:02 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?5,710678,710678#msg-710678</guid>
            <title>Using http_limit_conn with a custom variable (2 replies)</title>
            <link>http://www.serverphorums.com/read.php?5,710678,710678#msg-710678</link>
            <description><![CDATA[ Hi,<br />
We're trying to use the limit_conn_zone directive to throttle incoming<br />
HTTP requests.<br />
<br />
We'd like to throttle based on the http basic auth variable<br />
($remote_user), however, we must do processing on this value so the<br />
zone does not overflow with illegitimate values. Ideally we'd want to<br />
do something like<br />
<br />
set $safe_remote_user &quot;&quot;;<br />
content_by_lua '<br />
-- Some code to filter $remote_user values, simplified to one line here<br />
ngx.var.safe_remote_user = $remote_user<br />
'<br />
limit_conn_zone $safe_remote_user zone:user 10m;<br />
<br />
However this runs into a problem that we can only set variables inside<br />
of the location context, but limit_conn_zone must be defined in the<br />
http context. So, as we understand it we cannot use a variable defined<br />
by lua in the limit_conn_zone directive. We were curious if anyone has<br />
run into this problem, and if there are workarounds that could help us<br />
solve this problem.<br />
<br />
Thanks,<br />
Kevin<br />
<br />
----<br />
Kevin Burke | 415-723-4116 | www.twilio.com<br />
<br />
_______________________________________________<br />
nginx mailing list<br />
<a href="mailto:&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;">&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;</a><br />
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank"  rel="nofollow">http://mailman.nginx.org/mailman/listinfo/nginx</a>]]></description>
            <dc:creator>Kevin Burke</dc:creator>
            <category>Nginx</category>
            <pubDate>Wed, 22 May 2013 16:40:03 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?5,710463,710463#msg-710463</guid>
            <title>streaming request (2 replies)</title>
            <link>http://www.serverphorums.com/read.php?5,710463,710463#msg-710463</link>
            <description><![CDATA[ Hi,<br />
<br />
I'm trying to do a streaming request that uses chunked encoding that gets<br />
forwarded to a back-end node.js http server. In this case the client does<br />
not end the request before it gets a response header from the server.<br />
This works well if using node.js standalone, but when fronted by Nginx,<br />
nginx does not forward the request to my node process and a minute later<br />
returns a 408 to the client.<br />
<br />
I'm using nginx 1.5.0 with the following configuration:<br />
<br />
upstream myservername {<br />
  server 127.0.0.1:8888;<br />
}<br />
<br />
server {<br />
  listen 80;<br />
  listen 443 ssl;<br />
<br />
  server_name myservername;<br />
<br />
  ssl_certificate ...<br />
  ssl_certificate_key ...<br />
<br />
  location / {<br />
    proxy_buffering off;<br />
    proxy_http_version 1.1;<br />
<br />
    proxy_pass <a href="http://myservername" target="_blank"  rel="nofollow">http://myservername</a>;<br />
  }<br />
}<br />
<br />
Any clues on how to solve this?<br />
<br />
TIA!<br />
<br />
-- <br />
Pedro<br />
<br />
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,239384,239384#msg-239384" target="_blank"  rel="nofollow">http://forum.nginx.org/read.php?2,239384,239384#msg-239384</a><br />
<br />
_______________________________________________<br />
nginx mailing list<br />
<a href="mailto:&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;">&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;</a><br />
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank"  rel="nofollow">http://mailman.nginx.org/mailman/listinfo/nginx</a>]]></description>
            <dc:creator>pgte</dc:creator>
            <category>Nginx</category>
            <pubDate>Thu, 23 May 2013 20:20:02 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?5,710286,710286#msg-710286</guid>
            <title>Looking to returning a 302 Redirect if a file is above a certain size... (no replies)</title>
            <link>http://www.serverphorums.com/read.php?5,710286,710286#msg-710286</link>
            <description><![CDATA[ Hey there,<br />
<br />
I was looking for some guidance for a project I'm working on.<br />
<br />
We're looking into CDNs here, and we are specifically looking for a decent<br />
origin pull service that also supports denying by referrer to prevent<br />
hotlinking. However, as it turns out almost all origin pull services<br />
*except* a service we'll call ACF restrict you to 100MB or less.<br />
<br />
As we're not looking to have bulletproof hotlinking protection, we've<br />
determined that the best way to handle it is to serve files through the main<br />
CDN (we'll call them FSL), but have our nginx cluster return a 302 redirect<br />
if the file the &quot;client&quot; is requesting is over 100MB. I've confirmed with<br />
FSL that they will honor and cache that 302, which would then send clients<br />
to ACF in as clean a fashion as possible.<br />
<br />
The long and short is: I'm trying to work out how to make nginx return a 302<br />
if a file is over 100MB, which I'm told the Lua module should be capable of.<br />
Seeking some advice on how to do so as I'm hopeless with Lua and my searches<br />
turned up nothing.<br />
<br />
Thanks,<br />
~ Benjamin<br />
<br />
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,239370,239370#msg-239370" target="_blank"  rel="nofollow">http://forum.nginx.org/read.php?2,239370,239370#msg-239370</a><br />
<br />
_______________________________________________<br />
nginx mailing list<br />
<a href="mailto:&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;">&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;</a><br />
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank"  rel="nofollow">http://mailman.nginx.org/mailman/listinfo/nginx</a>]]></description>
            <dc:creator>barntzen</dc:creator>
            <category>Nginx</category>
            <pubDate>Tue, 21 May 2013 07:30:02 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?5,710142,710142#msg-710142</guid>
            <title>Can't log/print in header_filter_by_lua (3 replies)</title>
            <link>http://www.serverphorums.com/read.php?5,710142,710142#msg-710142</link>
            <description><![CDATA[ Hi all,<br />
<br />
I've been experimenting with rewriting 'Set Cookie' headers in a<br />
nginx-reverse-proxy effort.<br />
<br />
The Set-Cookie rewrite doesn't seem to work yet, and more importantly, my<br />
log/print statements don't print to error_log as directed, making it very<br />
difficult to debug.<br />
<br />
http {<br />
<br />
server {<br />
     access_log /home/bhedia/access.log;<br />
     #error_log /home/bhedia/errors.log debug;<br />
     error_log /home/bhedia/errors.log notice;<br />
<br />
     listen   80;<br />
<br />
     root /usr/share/nginx/www;<br />
     #index index.html index.htm;<br />
<br />
     # Make site accessible from <a href="http://localhost:8080/" target="_blank"  rel="nofollow">http://localhost:8080/</a><br />
     server_name localhost;<br />
<br />
     location / {<br />
<br />
          proxy_pass           <a href="http://10.45.17.85:50088/" target="_blank"  rel="nofollow">http://10.45.17.85:50088/</a>;<br />
          proxy_set_header     Host booga.booga.com;<br />
          #proxy_cookie_domain    test-sites.com booga.booga.com;<br />
<br />
          header_filter_by_lua '<br />
       ngx.log(ngx.NOTICE, &quot;hello world&quot;)<br />
               local cookies = ngx.header.set_cookie<br />
               if not cookies then return end<br />
               if type(cookies) ~= &quot;table&quot; then cookies = {cookies} end<br />
               local newcookies = {}<br />
               for i, val in ipairs(cookies) do<br />
                   local newval = string.gsub(val,<br />
&quot;([dD]omain)=[%w_-\\\\.-]+&quot;,<br />
                          &quot;%1=booga.booga.com&quot;)<br />
   ngx.print(val)<br />
   ngx.print(newval)<br />
                   table.insert(newcookies, newval)<br />
               end<br />
               ngx.header.set_cookie = newcookies<br />
              ';<br />
     }<br />
}<br />
}<br />
<br />
Any help would be appreciated.<br />
<br />
Thanks!<br />
_______________________________________________<br />
nginx mailing list<br />
<a href="mailto:&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;">&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;</a><br />
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank"  rel="nofollow">http://mailman.nginx.org/mailman/listinfo/nginx</a>]]></description>
            <dc:creator>Ramesh Muraleedharan</dc:creator>
            <category>Nginx</category>
            <pubDate>Tue, 21 May 2013 02:20:01 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?5,709678,709678#msg-709678</guid>
            <title>Nginx balancing mechanism (no replies)</title>
            <link>http://www.serverphorums.com/read.php?5,709678,709678#msg-709678</link>
            <description><![CDATA[ Hello<br />
<br />
What balancing mechanism is used in nginx: connections are balanced, or<br />
messages in connections are balanced?<br />
<br />
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,239340,239340#msg-239340" target="_blank"  rel="nofollow">http://forum.nginx.org/read.php?2,239340,239340#msg-239340</a><br />
<br />
_______________________________________________<br />
nginx mailing list<br />
<a href="mailto:&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;">&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;</a><br />
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank"  rel="nofollow">http://mailman.nginx.org/mailman/listinfo/nginx</a>]]></description>
            <dc:creator>Sabik2006</dc:creator>
            <category>Nginx</category>
            <pubDate>Mon, 20 May 2013 12:40:01 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?5,709466,709466#msg-709466</guid>
            <title>Unbuffered requests in a reverse proxy? (1 reply)</title>
            <link>http://www.serverphorums.com/read.php?5,709466,709466#msg-709466</link>
            <description><![CDATA[ Hi<br />
<br />
Can nginx be configured to pass through a reverse proxy request before<br />
it has been transmitted completely?<br />
<br />
My set-up is a public facing nginx server accepting file uploads passed<br />
to another server via a reverse proxy configuration.<br />
I appears as nginx is reading the entire request before passing it on to<br />
the reverse proxy.<br />
<br />
The back end is written to abort early if the file size is not<br />
acceptable depending which account the client is logged in to or abort<br />
immediately if not logged in.<br />
Is there any buffer setting that can be set to 0 so that the request<br />
won't be buffered?<br />
<br />
<br />
<br />
<br />
_______________________________________________<br />
nginx mailing list<br />
<a href="mailto:&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;">&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;</a><br />
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank"  rel="nofollow">http://mailman.nginx.org/mailman/listinfo/nginx</a>]]></description>
            <dc:creator>Peter Hultqvist</dc:creator>
            <category>Nginx</category>
            <pubDate>Mon, 20 May 2013 10:00:02 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?5,709435,709435#msg-709435</guid>
            <title>[nginx] 1.4.1 + spdy + centos 6 + openssl-1.0.1e (static), firefox 21 ajax requests ssl spdy = segfault (1 reply)</title>
            <link>http://www.serverphorums.com/read.php?5,709435,709435#msg-709435</link>
            <description><![CDATA[ Hello, on one of my servers, nginx suddenly started crashing on some<br />
AJAX-heavy pages when accessed via SSL+SPDY. It seems to happen only when<br />
Firefox is the client (tested with Firefox 21), latest version of chrome<br />
uses SPDY without crashing.<br />
<br />
uname -a:<br />
Linux myserver.com 2.6.32-358.6.2.el6.x86_64 #1 SMP Thu May 16 20:59:36 UTC<br />
2013 x86_64 x86_64 x86_64 GNU/Linux<br />
<br />
nginx compile flags:<br />
CFLAGS=&quot;-g -O0&quot; ./configure --with-pcre=/usr/local/src/nginx-1.4.1/pcre-8.32<br />
 --sbin-path=/usr/local/sbin  --conf-path=/etc/nginx/nginx.conf <br />
--pid-path=/var/run/nginx.pid  --error-log-path=/var/log/nginx/error.log <br />
--http-log-path=/var/log/nginx/access.log  --with-http_realip_module <br />
--with-http_ssl_module <br />
--with-openssl=/usr/local/src/nginx-1.4.1/openssl-1.0.1e<br />
--with-http_spdy_module --http-client-body-temp-path=/tmp/nginx_client <br />
--http-proxy-temp-path=/tmp/nginx_proxy <br />
--http-fastcgi-temp-path=/tmp/nginx_fastcgi  --with-http_stub_status_module<br />
--with-debug<br />
<br />
nginx log when crash happens:<br />
2013/05/19 18:05:58 [notice] 26737#0: start worker process 26899<br />
2013/05/19 18:05:58 [notice] 26737#0: signal 29 (SIGIO) received<br />
2013/05/19 18:05:59 [notice] 26737#0: signal 17 (SIGCHLD) received<br />
2013/05/19 18:05:59 [alert] 26737#0: worker process 26897 exited on signal<br />
11 (core dumped)<br />
2013/05/19 18:05:59 [notice] 26737#0: start worker process 26907<br />
2013/05/19 18:05:59 [notice] 26737#0: signal 29 (SIGIO) received<br />
2013/05/19 18:06:00 [notice] 26737#0: signal 17 (SIGCHLD) received<br />
2013/05/19 18:06:00 [alert] 26737#0: worker process 26899 exited on signal<br />
11 (core dumped)<br />
2013/05/19 18:06:00 [notice] 26737#0: start worker process 26909<br />
2013/05/19 18:06:00 [notice] 26737#0: signal 29 (SIGIO) received<br />
<br />
nginx.conf<br />
<a href="http://pastebin.com/G9wAgyeh" target="_blank"  rel="nofollow">http://pastebin.com/G9wAgyeh</a><br />
<br />
gdb backtrace:<br />
# gdb /usr/local/sbin/nginx core.26899<br />
<br />
.... snip gpl stuff ...<br />
<br />
Reading symbols from /usr/local/sbin/nginx...done.<br />
[New Thread 26899]<br />
Missing separate debuginfo for<br />
Try: yum --disablerepo='*' --enablerepo='*-debug*' install<br />
/usr/lib/debug/.build-id/50/fc20fea18a6f375789f0f86e28f463d50714fd<br />
Reading symbols from /lib64/libpthread.so.0...(no debugging symbols<br />
found)...done.<br />
[Thread debugging using libthread_db enabled]<br />
Loaded symbols for /lib64/libpthread.so.0<br />
Reading symbols from /lib64/libcrypt.so.1...(no debugging symbols<br />
found)...done.<br />
Loaded symbols for /lib64/libcrypt.so.1<br />
Reading symbols from /lib64/libdl.so.2...(no debugging symbols<br />
found)...done.<br />
Loaded symbols for /lib64/libdl.so.2<br />
Reading symbols from /lib64/libz.so.1...(no debugging symbols<br />
found)...done.<br />
Loaded symbols for /lib64/libz.so.1<br />
Reading symbols from /lib64/libc.so.6...(no debugging symbols<br />
found)...done.<br />
Loaded symbols for /lib64/libc.so.6<br />
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols<br />
found)...done.<br />
Loaded symbols for /lib64/ld-linux-x86-64.so.2<br />
Reading symbols from /lib64/libfreebl3.so...(no debugging symbols<br />
found)...done.<br />
Loaded symbols for /lib64/libfreebl3.so<br />
Reading symbols from /lib64/libnss_files.so.2...(no debugging symbols<br />
found)...done.<br />
Loaded symbols for /lib64/libnss_files.so.2<br />
Core was generated by `nginx: worker process                         '.<br />
Program terminated with signal 11, Segmentation fault.<br />
#0  0x0000003455283c56 in __memset_sse2 () from /lib64/libc.so.6<br />
Missing separate debuginfos, use: debuginfo-install<br />
glibc-2.12-1.107.el6.x86_64 nss-softokn-freebl-3.12.9-11.el6.x86_64<br />
zlib-1.2.3-29.el6.x86_64<br />
(gdb) bt<br />
#0  0x0000003455283c56 in __memset_sse2 () from /lib64/libc.so.6<br />
#1  0x0000000000493a67 in ngx_http_spdy_state_data (sc=0x3035ba0,<br />
pos=0x37c78f8 &quot;&quot;, end=0x37c78f8 &quot;&quot;)<br />
    at src/http/ngx_http_spdy.c:1193<br />
#2  0x0000000000492673 in ngx_http_spdy_state_head (sc=0x3035ba0,<br />
pos=0x37c78f8 &quot;&quot;, end=0x37c78f8 &quot;&quot;)<br />
    at src/http/ngx_http_spdy.c:699<br />
#3  0x00000000004919e2 in ngx_http_spdy_read_handler (rev=0x7f0318ffe3b8) at<br />
src/http/ngx_http_spdy.c:364<br />
#4  0x000000000042ac31 in ngx_event_process_posted (cycle=0x2893a30,<br />
posted=0x8d1b68)<br />
    at src/event/ngx_event_posted.c:40<br />
#5  0x000000000042887c in ngx_process_events_and_timers (cycle=0x2893a30) at<br />
src/event/ngx_event.c:276<br />
#6  0x0000000000435ebd in ngx_worker_process_cycle (cycle=0x2893a30,<br />
data=0x1)<br />
    at src/os/unix/ngx_process_cycle.c:807<br />
#7  0x00000000004327ca in ngx_spawn_process (cycle=0x2893a30, proc=0x435cf7<br />
&lt;ngx_worker_process_cycle&gt;,<br />
    data=0x1, name=0x609c9b &quot;worker process&quot;, respawn=1) at<br />
src/os/unix/ngx_process.c:198<br />
#8  0x0000000000435906 in ngx_reap_children (cycle=0x2893a30) at<br />
src/os/unix/ngx_process_cycle.c:619<br />
#9  0x00000000004345ed in ngx_master_process_cycle (cycle=0x2893a30) at<br />
src/os/unix/ngx_process_cycle.c:180<br />
#10 0x00000000004041b6 in main (argc=3, argv=0x7fffb6c2dbd8) at<br />
src/core/nginx.c:412<br />
<br />
Server has a Core i3 540 with HT, OS is 64-bit CentOS 6 fully patched (as of<br />
date of this message).<br />
<br />
- kernel log when error occurred:<br />
May 19 18:06:00 saruman kernel: nginx[26899]: segfault at 0 ip<br />
0000003455283c56 sp 00007fffb6c2d498 error 6 in<br />
libc-2.12.so[3455200000+18a000]<br />
<br />
The crash is highly reproducible and when it crashes the ip and sp<br />
parameters and offsets are always the same.<br />
<br />
I hope I've posted enough info for devs to fix this, sorry for the long<br />
message.<br />
<br />
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,239327,239327#msg-239327" target="_blank"  rel="nofollow">http://forum.nginx.org/read.php?2,239327,239327#msg-239327</a><br />
<br />
_______________________________________________<br />
nginx mailing list<br />
<a href="mailto:&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;">&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;</a><br />
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank"  rel="nofollow">http://mailman.nginx.org/mailman/listinfo/nginx</a>]]></description>
            <dc:creator>epsilon2930</dc:creator>
            <category>Nginx</category>
            <pubDate>Mon, 20 May 2013 03:30:03 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?5,709427,709427#msg-709427</guid>
            <title>nginx cache opendir failed (3 replies)</title>
            <link>http://www.serverphorums.com/read.php?5,709427,709427#msg-709427</link>
            <description><![CDATA[ Hi<br />
<br />
On a Freebsd 9.1 machine<br />
Nginx 1.4.1<br />
<br />
opendir() &quot;/var/cache/www/nginx2&quot; failed (13: Permission denied)<br />
<br />
microcache dir  :<br />
drwxr-x--x  3 root  wheel  512 May 19 17:05 /var/cache<br />
drwxr-xr-x  3 www  www  512 May 19 17:06 /var/cache/www<br />
drwx------  2 www  www  512 May 19 17:06 nginx2<br />
<br />
<br />
How to correct this ?<br />
<br />
<br />
Thanks.<br />
<br />
<br />
_______________________________________________<br />
nginx mailing list<br />
<a href="mailto:&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;">&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;</a><br />
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank"  rel="nofollow">http://mailman.nginx.org/mailman/listinfo/nginx</a>]]></description>
            <dc:creator>Ronald Van Assche</dc:creator>
            <category>Nginx</category>
            <pubDate>Mon, 20 May 2013 11:30:02 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?5,709302,709302#msg-709302</guid>
            <title>valid_referers dynamic hostname (6 replies)</title>
            <link>http://www.serverphorums.com/read.php?5,709302,709302#msg-709302</link>
            <description><![CDATA[ Sorry for posting here - don't know for sure if it's the right place.<br />
<br />
I have an issue:<br />
<br />
1) I use nginx as reverse proxy, but I don't always know the domain name for<br />
which I'm serving, so my setup looks like this:<br />
<br />
server_name  _ $host 0.0.0.0;<br />
<br />
2) I try to block invalid referers but when I try to add $host to<br />
valid_referers - it doesn't seem to work:<br />
<br />
valid_referers none blocked server_names $host ~\.google\. ~\.yahoo\.<br />
~\.bing\. ~\.ask\. ~\.live\. ~\.googleusercontent.com\. ;<br />
<br />
<br />
How can I make this work?<br />
Also please note that I don't know regexp.<br />
<br />
<br />
Kind regards,<br />
Vlad<br />
<br />
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,239318,239318#msg-239318" target="_blank"  rel="nofollow">http://forum.nginx.org/read.php?2,239318,239318#msg-239318</a><br />
<br />
_______________________________________________<br />
nginx mailing list<br />
<a href="mailto:&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;">&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;</a><br />
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank"  rel="nofollow">http://mailman.nginx.org/mailman/listinfo/nginx</a>]]></description>
            <dc:creator>vlad031@binkmail.com</dc:creator>
            <category>Nginx</category>
            <pubDate>Fri, 24 May 2013 13:20:03 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?5,709274,709274#msg-709274</guid>
            <title>The truth about gzip_buffers? (1 reply)</title>
            <link>http://www.serverphorums.com/read.php?5,709274,709274#msg-709274</link>
            <description><![CDATA[ Reading the docs on nginx.org and searching around, it seems there's no<br />
consensus on how we should configure gzip_buffers.<br />
<br />
Some guides say that the total buffer needs to be greater than any file you<br />
want to gzip, or it will either not gzip the file or truncate it (I'm sure<br />
this is not true though!).  Other guides suggest arbitrary values.<br />
<br />
I guess I have a couple of questions to clear up this confusion:<br />
<br />
1. What happens if the response is greater than the total gzip buffer.  Will<br />
it simply keep the upstream connection open longer while it fills, gzips and<br />
transmits the buffers multiple times?<br />
<br />
2. If your page size is 4k, does that mean for best efficiency shoudl you<br />
keep the size of the buffers to 4k, but just increase the total number of<br />
buffers?  What is the consideration here?<br />
<br />
3. Would having larger buffer sizes potentially allow greater compression<br />
because each buffer is compressed individually?<br />
<br />
Thanks!<br />
<br />
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,239316,239316#msg-239316" target="_blank"  rel="nofollow">http://forum.nginx.org/read.php?2,239316,239316#msg-239316</a><br />
<br />
_______________________________________________<br />
nginx mailing list<br />
<a href="mailto:&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;">&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;</a><br />
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank"  rel="nofollow">http://mailman.nginx.org/mailman/listinfo/nginx</a>]]></description>
            <dc:creator>spdyg</dc:creator>
            <category>Nginx</category>
            <pubDate>Mon, 20 May 2013 13:30:04 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?5,709273,709273#msg-709273</guid>
            <title>Merging equivalent cache keys? (1 reply)</title>
            <link>http://www.serverphorums.com/read.php?5,709273,709273#msg-709273</link>
            <description><![CDATA[ We've got a route which is used to retrieve multiple objects in parallel. <br />
The client does a GET on /api/1/station/multi?id=123&amp;id=456&amp;id=789.  We<br />
cache these in our nginx config:<br />
<br />
       location ~ /api/[^/]+/station/multi {<br />
              proxy_pass <a href="http://localhost:8000" target="_blank"  rel="nofollow">http://localhost:8000</a>;<br />
              proxy_set_header X-Real-IP  $remote_addr;<br />
              proxy_set_header Host $host;<br />
              proxy_set_header X-Forwarded-Host $host;<br />
              proxy_set_header X-Forwarded-Server $host;<br />
              proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br />
<br />
              proxy_cache api;<br />
              proxy_cache_use_stale updating;<br />
       }<br />
<br />
The problem is, clients present the ids in random order. For example, one<br />
client might ask for id=1&amp;id=2, and another ask for id=2&amp;id=1.  Both should<br />
return exactly the same response, but map to different cache keys.  For two<br />
ids, it's not that bad, but many of the calls are for large numbers of ids<br />
and the combinatorics quickly spin out of control.<br />
<br />
Is there any way to rewrite the keys in nginx to canonicalize them?  Sorting<br />
all the ids in numerical order would do it.<br />
<br />
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,239315,239315#msg-239315" target="_blank"  rel="nofollow">http://forum.nginx.org/read.php?2,239315,239315#msg-239315</a><br />
<br />
_______________________________________________<br />
nginx mailing list<br />
<a href="mailto:&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;">&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;</a><br />
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank"  rel="nofollow">http://mailman.nginx.org/mailman/listinfo/nginx</a>]]></description>
            <dc:creator>roysmith649</dc:creator>
            <category>Nginx</category>
            <pubDate>Sat, 18 May 2013 15:50:02 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?5,709065,709065#msg-709065</guid>
            <title>404s logged in error.log? (5 replies)</title>
            <link>http://www.serverphorums.com/read.php?5,709065,709065#msg-709065</link>
            <description><![CDATA[ I was wondering if someone could confirm that requests resulting in a 404<br />
response are by default logged to error.log at error level &quot;error&quot;.<br />
<br />
Is that normal, or is there some piece of configuration I am missing that<br />
will stop them from being logged to error.log? I figured 404s would be an<br />
un-exceptional event that doesn't require error logging, but perhaps I'm<br />
simply not handling that situation correctly in my configuration. Worth<br />
double-checking.<br />
<br />
Thank you!<br />
<br />
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,239307,239307#msg-239307" target="_blank"  rel="nofollow">http://forum.nginx.org/read.php?2,239307,239307#msg-239307</a><br />
<br />
_______________________________________________<br />
nginx mailing list<br />
<a href="mailto:&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;">&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;</a><br />
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank"  rel="nofollow">http://mailman.nginx.org/mailman/listinfo/nginx</a>]]></description>
            <dc:creator>akurilin</dc:creator>
            <category>Nginx</category>
            <pubDate>Sat, 18 May 2013 06:00:07 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?5,709054,709054#msg-709054</guid>
            <title>Permissions check (1 reply)</title>
            <link>http://www.serverphorums.com/read.php?5,709054,709054#msg-709054</link>
            <description><![CDATA[ I just updated nginx and was warned about permissions.  Are these appropriate:<br />
<br />
/var/log/nginx:<br />
drwxr-x--- root root<br />
<br />
/var/lib/nginx/tmp and /var/lib/nginx/tmp/*:<br />
drwx------ nginx nginx<br />
<br />
- Grant<br />
<br />
_______________________________________________<br />
nginx mailing list<br />
<a href="mailto:&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;">&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;</a><br />
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank"  rel="nofollow">http://mailman.nginx.org/mailman/listinfo/nginx</a>]]></description>
            <dc:creator>Grant</dc:creator>
            <category>Nginx</category>
            <pubDate>Sat, 18 May 2013 03:40:02 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?5,708616,708616#msg-708616</guid>
            <title>Choosing source-address for upstream connections (2 replies)</title>
            <link>http://www.serverphorums.com/read.php?5,708616,708616#msg-708616</link>
            <description><![CDATA[ Is there a way to tell nginx to use a specific address when talking to<br />
an upstream?<br />
<br />
I would like to do something like:<br />
<br />
upstream bla {<br />
	server [D0C::1234]:8080 src [D0C::beaf];<br />
	server 1.2.3.4:8080 src 1.2.3.5;<br />
	server upstream.example.tld src site.example.tld;<br />
}<br />
<br />
<br />
My system has multiple local addresses and just one of them should be<br />
used to contact the given upstream.<br />
<br />
<br />
If host-name is provided the source address should be chosen of the<br />
same address family as the upstream address (so it's not necessary to<br />
explicitly state IP addresses and duplicate server entries for IPv4<br />
and IPv6).<br />
<br />
<br />
It's possible to do it via &quot;src&quot; attribute of routes though it would be<br />
more clean to do it on the application side.<br />
e.g.<br />
  ip route add D0C::1234/128 src D0C::beaf ethX<br />
  ip route add 1.2.3.4/32 src 1.2.3.5<br />
<br />
Bruno<br />
<br />
_______________________________________________<br />
nginx mailing list<br />
<a href="mailto:&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;">&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;</a><br />
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank"  rel="nofollow">http://mailman.nginx.org/mailman/listinfo/nginx</a>]]></description>
            <dc:creator>Bruno Prémont</dc:creator>
            <category>Nginx</category>
            <pubDate>Fri, 17 May 2013 15:30:02 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?5,707945,707945#msg-707945</guid>
            <title>Add [nginx] to subject lines on this mailing list? (11 replies)</title>
            <link>http://www.serverphorums.com/read.php?5,707945,707945#msg-707945</link>
            <description><![CDATA[ This mailing list is run by Gnu's Mailman application. The default <br />
configuration for Mailman adds a &quot;[NameOfMailList]&quot; prefix to the <br />
subject of every sent email, e.g.<br />
<br />
&gt;Subject: [Congregation] Tuesday's Notes<br />
<br />
This makes it very easy to sort out my inbox, and gives my spam <br />
filter something to key on.<br />
<br />
On the nginx mailing list this has been turned off, so I find it hard <br />
to figure out why someone unknown is writing me about &quot;bug?&quot;, and <br />
often find the list emails in my junk mail folder.<br />
<br />
I'd like to have the setting turned back on; would that be OK?<br />
<br />
<br />
Thanks,<br />
Dan<br />
<br />
-- <br />
Daniel T. Griscom             <a href="mailto:&#103;&#114;&#105;&#115;&#99;&#111;&#109;&#64;&#115;&#117;&#105;&#116;&#97;&#98;&#108;&#101;&#46;&#99;&#111;&#109;">&#103;&#114;&#105;&#115;&#99;&#111;&#109;&#64;&#115;&#117;&#105;&#116;&#97;&#98;&#108;&#101;&#46;&#99;&#111;&#109;</a><br />
Suitable Systems              <a href="http://www.suitable.com/" target="_blank"  rel="nofollow">http://www.suitable.com/</a><br />
1 Centre Street, Suite 204    (781) 665-0053<br />
Wakefield, MA  01880-2400<br />
<br />
_______________________________________________<br />
nginx mailing list<br />
<a href="mailto:&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;">&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;</a><br />
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank"  rel="nofollow">http://mailman.nginx.org/mailman/listinfo/nginx</a>]]></description>
            <dc:creator>Daniel Griscom</dc:creator>
            <category>Nginx</category>
            <pubDate>Fri, 17 May 2013 15:10:02 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?5,707778,707778#msg-707778</guid>
            <title>bug? (6 replies)</title>
            <link>http://www.serverphorums.com/read.php?5,707778,707778#msg-707778</link>
            <description><![CDATA[ Hy all!<br />
<br />
I have this error and i don't know how to slove it.<br />
<br />
<a href="https://gist.github.com/Stageline/9a643fa13d040d49f1d1" target="_blank"  rel="nofollow">https://gist.github.com/Stageline/9a643fa13d040d49f1d1</a><br />
<br />
Short details: I try request url with curl seems everithing OK, getting<br />
http 200 code, but if i try this url with external program (look program<br />
link down) getting internal server error 500.<br />
<br />
<a href="https://raw.github.com/arut/nginx-rtmp-module/master/ngx_rtmp_netcall_module.c" target="_blank"  rel="nofollow">https://raw.github.com/arut/nginx-rtmp-module/master/ngx_rtmp_netcall_module.c</a><br />
<br />
Missing some required http request header or content length wrong?<br />
<br />
Thanks<br />
_______________________________________________<br />
nginx mailing list<br />
<a href="mailto:&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;">&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;</a><br />
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank"  rel="nofollow">http://mailman.nginx.org/mailman/listinfo/nginx</a>]]></description>
            <dc:creator>suttya</dc:creator>
            <category>Nginx</category>
            <pubDate>Thu, 16 May 2013 15:00:03 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?5,707399,707399#msg-707399</guid>
            <title>Re: access log time format (5 replies)</title>
            <link>http://www.serverphorums.com/read.php?5,707399,707399#msg-707399</link>
            <description><![CDATA[ Is it possible to format the time Nginx uses in access.log to match this?<br />
  <br />
&quot;%Y-%m-%d %H:%M:%S&quot; or 2013-05-14 15:40:21<br />
 <br />
My goal is to have Nginx access logs match the time format of the rest of our<br />
environment so that monitoring tools/dashboards/etc. can adopt Nginx's<br />
access logs. From what I've read, it doesn't seem to be possible, but the<br />
posts I've seen are pretty old.<br />
 <br />
  <br />
Casey<br />
<br />
_______________________________________________<br />
nginx mailing list<br />
<a href="mailto:&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;">&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;</a><br />
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank"  rel="nofollow">http://mailman.nginx.org/mailman/listinfo/nginx</a>]]></description>
            <dc:creator>Casey Scott</dc:creator>
            <category>Nginx</category>
            <pubDate>Wed, 15 May 2013 18:30:01 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?5,707386,707386#msg-707386</guid>
            <title>Nginx + Mono (OpenBSD 5.3) (no replies)</title>
            <link>http://www.serverphorums.com/read.php?5,707386,707386#msg-707386</link>
            <description><![CDATA[ OK - I can confirm that nginx is in fact chroot(8) - After much playing<br />
around, I noticed a comment in the ports documentation that mentions this<br />
(I know, I know...)<br />
<br />
So to solve this particular problem, I just moved my socket to<br />
/var/www/&lt;blah&gt; and ensured that my user had the appropriate permissions.<br />
<br />
I am now able to serve a simple aspx - although mvc still remains a<br />
challenge.<br />
<br />
Thanks to everyone who posted!<br />
<br />
<br />
Thanks<br />
G<br />
_______________________________________________<br />
nginx mailing list<br />
<a href="mailto:&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;">&#110;&#103;&#105;&#110;&#120;&#64;&#110;&#103;&#105;&#110;&#120;&#46;&#111;&#114;&#103;</a><br />
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank"  rel="nofollow">http://mailman.nginx.org/mailman/listinfo/nginx</a>]]></description>
            <dc:creator>Gee</dc:creator>
            <category>Nginx</category>
            <pubDate>Wed, 15 May 2013 17:50:02 +0200</pubDate>
        </item>
    </channel>
</rss>
