<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Nginx Forum - Nginx Mailing List - English</title>
<description>A portal to and from from the mailing list.</description><link>http://forum.nginx.org/list.php?2</link><lastBuildDate>Sat, 25 May 2013 16:15:33 -0400</lastBuildDate>
<generator>Phorum 5.2.16</generator>
<item>
<guid>http://forum.nginx.org/read.php?2,239535,239535#msg-239535</guid>
<title>fastcgi_read_timeout with PHP backend (no replies)</title><link>http://forum.nginx.org/read.php?2,239535,239535#msg-239535</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;http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_read_timeout&gt;is<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 />nginx@nginx.org<br />http://mailman.nginx.org/mailman/listinfo/nginx]]></description>
<dc:creator>B.R.</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Sat, 25 May 2013 13:04:00 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?2,239528,239528#msg-239528</guid>
<title>Performance trouble after migration Squeeze to Wheezy (no replies)</title><link>http://forum.nginx.org/read.php?2,239528,239528#msg-239528</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 />dependencieshttp://mailman.nginx.org/mailman/listinfo/nginx,<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 />nginx@nginx.org<br />http://mailman.nginx.org/mailman/listinfo/nginx]]></description>
<dc:creator>B.R.</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Fri, 24 May 2013 17:18:00 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?2,239522,239522#msg-239522</guid>
<title>Rewriting and proxy problem (2 replies)</title><link>http://forum.nginx.org/read.php?2,239522,239522#msg-239522</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 http://127.0.0.1:8080;<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 http://www.sergiobelkin.com<br />Watch More TV http://sebelk.blogspot.com<br />LPIC-2 Certified - http://www.lpi.org<br />_______________________________________________<br />nginx mailing list<br />nginx@nginx.org<br />http://mailman.nginx.org/mailman/listinfo/nginx]]></description>
<dc:creator>Sergio Belkin</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Sat, 25 May 2013 05:28:01 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?2,239495,239495#msg-239495</guid>
<title>[ANN] ngx_openresty devel version 1.2.8.5 released (no replies)</title><link>http://forum.nginx.org/read.php?2,239495,239495#msg-239495</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 />http://openresty.org/#Download<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 />http://openresty.org/#ChangeLog1002008<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 />http://openresty.org/<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 />http://qa.openresty.org<br /><br />Have fun!<br />-agentzh<br /><br />_______________________________________________<br />nginx mailing list<br />nginx@nginx.org<br />http://mailman.nginx.org/mailman/listinfo/nginx]]></description>
<dc:creator>agentzh</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Thu, 23 May 2013 21:22:01 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?2,239494,239494#msg-239494</guid>
<title>proxy only certain assets based on host header? (2 replies)</title><link>http://forum.nginx.org/read.php?2,239494,239494#msg-239494</link><description><![CDATA[We're trying to proxy only certain assets like png|jpg|css only when the host header is a certain DNS name. I tried to do this in the proxy.conf file using something the example below but it doesnt like the if statement. Is 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 http://assethost<br />}<br />}]]></description>
<dc:creator>amagad</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Fri, 24 May 2013 09:08:02 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?2,239486,239486#msg-239486</guid>
<title>Rewriting (3 replies)</title><link>http://forum.nginx.org/read.php?2,239486,239486#msg-239486</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 http://mysite.com/ request but in case http://mysite.com/index.php rewrite is none and request processed by location ~ \.php$ rule. Why??<br /><br />Thanks!<br /><br /><br />_______________________________________________<br />nginx mailing list<br />nginx@nginx.org<br />http://mailman.nginx.org/mailman/listinfo/nginx]]></description>
<dc:creator>artem</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Sat, 25 May 2013 06:08:01 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?2,239483,239483#msg-239483</guid>
<title>NGINX error log format documentation (1 reply)</title><link>http://forum.nginx.org/read.php?2,239483,239483#msg-239483</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 />http://stackoverflow.com/questions/16711573/nginx-error-log-format-documentation/16711684<br /><br />Thank you!<br /><br /><br />_______________________________________________<br />nginx mailing list<br />nginx@nginx.org<br />http://mailman.nginx.org/mailman/listinfo/nginx]]></description>
<dc:creator>Jan Teske</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Thu, 23 May 2013 15:32:01 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?2,239475,239475#msg-239475</guid>
<title>How to tell nginx to check dead backend in upstream adaptively? (no replies)</title><link>http://forum.nginx.org/read.php?2,239475,239475#msg-239475</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 />nginx@nginx.org<br />http://mailman.nginx.org/mailman/listinfo/nginx]]></description>
<dc:creator>Ryan Chan</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Thu, 23 May 2013 11:18:01 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?2,239473,239473#msg-239473</guid>
<title>Override Content-Type header with proxied requests (4 replies)</title><link>http://forum.nginx.org/read.php?2,239473,239473#msg-239473</link><description><![CDATA[Hi !!<br /><br />i have a Nginx server that operates as a reverse proxy to a my bucket in 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 types mapped with file estensions,<br />but this approach only works when Nginx delivers contents directly (as a origin server).<br />If the server is a reverse proxy, doesn't add a new Content-Type header, but 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; block? Is there any best practice to override content-type header by file extensions? Is &quot;map&quot; suggested for this purpose or using multiple &quot;location&quot; block is better?<br /><br />Thanks in advance!!<br />---<br />Andrea]]></description>
<dc:creator>andrea.mandolo</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Fri, 24 May 2013 04:58:49 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?2,239445,239445#msg-239445</guid>
<title>Problem with rewrite regexes when the URL contains a trailing slash (nginx-1.5.0) (3 replies)</title><link>http://forum.nginx.org/read.php?2,239445,239445#msg-239445</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 http://uri/something. (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 />nginx@nginx.org<br />http://mailman.nginx.org/mailman/listinfo/nginx]]></description>
<dc:creator>Roberto F.</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Wed, 22 May 2013 17:18:02 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?2,239424,239424#msg-239424</guid>
<title>NGINX SE vs. Open Source (1 reply)</title><link>http://forum.nginx.org/read.php?2,239424,239424#msg-239424</link><description><![CDATA[Hello,<br /><br />on your Site (http://nginx.com/products.html) you are comparing NGINX SE with the Open Source version. The table states &quot;Basic&quot; and &quot;Enhanced&quot; on many core features of NGINX. The SE/&quot;Enhanced&quot; column offers additional information by hovering with the mouse over the rows. Those additional 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; 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 SE version? (means: removed from the Open Source version)<br />- will there be a documentation of how SE features work and what they offer?<br /><br />Thanks.]]></description>
<dc:creator>JackB</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Wed, 22 May 2013 08:06:02 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?2,239398,239398#msg-239398</guid>
<title>Using http_limit_conn with a custom variable (2 replies)</title><link>http://forum.nginx.org/read.php?2,239398,239398#msg-239398</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 />nginx@nginx.org<br />http://mailman.nginx.org/mailman/listinfo/nginx]]></description>
<dc:creator>Kevin Burke</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Wed, 22 May 2013 10:36:07 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?2,239384,239384#msg-239384</guid>
<title>streaming request (2 replies)</title><link>http://forum.nginx.org/read.php?2,239384,239384#msg-239384</link><description><![CDATA[Hi,<br /><br />I'm trying to do a streaming request that uses chunked encoding that gets forwarded to a back-end node.js http server. In this case the client does 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, nginx does not forward the request to my node process and a minute later 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 http://myservername;<br />}<br />}<br /><br />Any clues on how to solve this?<br /><br />TIA!<br /><br />--<br />Pedro]]></description>
<dc:creator>pgte</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Thu, 23 May 2013 14:14:01 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?2,239370,239370#msg-239370</guid>
<title>Looking to returning a 302 Redirect if a file is above a certain size... (no replies)</title><link>http://forum.nginx.org/read.php?2,239370,239370#msg-239370</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 origin pull service that also supports denying by referrer to prevent hotlinking. However, as it turns out almost all origin pull services *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 determined that the best way to handle it is to serve files through the main CDN (we'll call them FSL), but have our nginx cluster return a 302 redirect if the file the &quot;client&quot; is requesting is over 100MB. I've confirmed with FSL that they will honor and cache that 302, which would then send clients 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 if a file is over 100MB, which I'm told the Lua module should be capable of. Seeking some advice on how to do so as I'm hopeless with Lua and my searches turned up nothing.<br /><br />Thanks,<br />~ Benjamin]]></description>
<dc:creator>barntzen</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Tue, 21 May 2013 01:27:40 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?2,239356,239356#msg-239356</guid>
<title>Can't log/print in header_filter_by_lua (3 replies)</title><link>http://forum.nginx.org/read.php?2,239356,239356#msg-239356</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 http://localhost:8080/<br />server_name localhost;<br /><br />location / {<br /><br />proxy_pass http://10.45.17.85:50088/;<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 />nginx@nginx.org<br />http://mailman.nginx.org/mailman/listinfo/nginx]]></description>
<dc:creator>bhedia</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Mon, 20 May 2013 20:20:01 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?2,239340,239340#msg-239340</guid>
<title>Nginx balancing mechanism (no replies)</title><link>http://forum.nginx.org/read.php?2,239340,239340#msg-239340</link><description><![CDATA[Hello<br /><br />What balancing mechanism is used in nginx: connections are balanced, or messages in connections are balanced?]]></description>
<dc:creator>Sabik2006</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Mon, 20 May 2013 06:39:05 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?2,239329,239329#msg-239329</guid>
<title>Unbuffered requests in a reverse proxy? (1 reply)</title><link>http://forum.nginx.org/read.php?2,239329,239329#msg-239329</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 />nginx@nginx.org<br />http://mailman.nginx.org/mailman/listinfo/nginx]]></description>
<dc:creator>Peter Hultqvist</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Mon, 20 May 2013 03:58:02 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?2,239327,239327#msg-239327</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://forum.nginx.org/read.php?2,239327,239327#msg-239327</link><description><![CDATA[Hello, on one of my servers, nginx suddenly started crashing on some AJAX-heavy pages when accessed via SSL+SPDY. It seems to happen only when Firefox is the client (tested with Firefox 21), latest version of chrome 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 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 --sbin-path=/usr/local/sbin --conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --with-http_realip_module --with-http_ssl_module --with-openssl=/usr/local/src/nginx-1.4.1/openssl-1.0.1e --with-http_spdy_module --http-client-body-temp-path=/tmp/nginx_client --http-proxy-temp-path=/tmp/nginx_proxy --http-fastcgi-temp-path=/tmp/nginx_fastcgi --with-http_stub_status_module --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 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 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 />http://pastebin.com/G9wAgyeh<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 /usr/lib/debug/.build-id/50/fc20fea18a6f375789f0f86e28f463d50714fd<br />Reading symbols from /lib64/libpthread.so.0...(no debugging symbols 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 found)...done.<br />Loaded symbols for /lib64/libcrypt.so.1<br />Reading symbols from /lib64/libdl.so.2...(no debugging symbols found)...done.<br />Loaded symbols for /lib64/libdl.so.2<br />Reading symbols from /lib64/libz.so.1...(no debugging symbols found)...done.<br />Loaded symbols for /lib64/libz.so.1<br />Reading symbols from /lib64/libc.so.6...(no debugging symbols found)...done.<br />Loaded symbols for /lib64/libc.so.6<br />Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done.<br />Loaded symbols for /lib64/ld-linux-x86-64.so.2<br />Reading symbols from /lib64/libfreebl3.so...(no debugging symbols found)...done.<br />Loaded symbols for /lib64/libfreebl3.so<br />Reading symbols from /lib64/libnss_files.so.2...(no debugging symbols 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 glibc-2.12-1.107.el6.x86_64 nss-softokn-freebl-3.12.9-11.el6.x86_64 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, 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, 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 src/http/ngx_http_spdy.c:364<br />#4 0x000000000042ac31 in ngx_event_process_posted (cycle=0x2893a30, posted=0x8d1b68)<br />at src/event/ngx_event_posted.c:40<br />#5 0x000000000042887c in ngx_process_events_and_timers (cycle=0x2893a30) at src/event/ngx_event.c:276<br />#6 0x0000000000435ebd in ngx_worker_process_cycle (cycle=0x2893a30, data=0x1)<br />at src/os/unix/ngx_process_cycle.c:807<br />#7 0x00000000004327ca in ngx_spawn_process (cycle=0x2893a30, proc=0x435cf7 &lt;ngx_worker_process_cycle&gt;,<br />data=0x1, name=0x609c9b &quot;worker process&quot;, respawn=1) at src/os/unix/ngx_process.c:198<br />#8 0x0000000000435906 in ngx_reap_children (cycle=0x2893a30) at src/os/unix/ngx_process_cycle.c:619<br />#9 0x00000000004345ed in ngx_master_process_cycle (cycle=0x2893a30) at src/os/unix/ngx_process_cycle.c:180<br />#10 0x00000000004041b6 in main (argc=3, argv=0x7fffb6c2dbd8) at 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 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 0000003455283c56 sp 00007fffb6c2d498 error 6 in libc-2.12.so[3455200000+18a000]<br /><br />The crash is highly reproducible and when it crashes the ip and sp 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 message.]]></description>
<dc:creator>epsilon2930</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Sun, 19 May 2013 21:20:57 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?2,239326,239326#msg-239326</guid>
<title>nginx cache opendir failed (3 replies)</title><link>http://forum.nginx.org/read.php?2,239326,239326#msg-239326</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 />nginx@nginx.org<br />http://mailman.nginx.org/mailman/listinfo/nginx]]></description>
<dc:creator>Ronald Van Assche</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Mon, 20 May 2013 05:28:01 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?2,239318,239318#msg-239318</guid>
<title>valid_referers dynamic hostname (6 replies)</title><link>http://forum.nginx.org/read.php?2,239318,239318#msg-239318</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 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 valid_referers - it doesn't seem to work:<br /><br />valid_referers none blocked server_names $host ~\.google\. ~\.yahoo\. ~\.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]]></description>
<dc:creator>vlad031@binkmail.com</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Fri, 24 May 2013 07:10:46 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?2,239316,239316#msg-239316</guid>
<title>The truth about gzip_buffers? (1 reply)</title><link>http://forum.nginx.org/read.php?2,239316,239316#msg-239316</link><description><![CDATA[Reading the docs on nginx.org and searching around, it seems there's no 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 want to gzip, or it will either not gzip the file or truncate it (I'm sure 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 it simply keep the upstream connection open longer while it fills, gzips and transmits the buffers multiple times?<br /><br />2. If your page size is 4k, does that mean for best efficiency shoudl you keep the size of the buffers to 4k, but just increase the total number of buffers? What is the consideration here?<br /><br />3. Would having larger buffer sizes potentially allow greater compression because each buffer is compressed individually?<br /><br />Thanks!]]></description>
<dc:creator>spdyg</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Mon, 20 May 2013 07:28:02 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?2,239315,239315#msg-239315</guid>
<title>Merging equivalent cache keys? (1 reply)</title><link>http://forum.nginx.org/read.php?2,239315,239315#msg-239315</link><description><![CDATA[We've got a route which is used to retrieve multiple objects in parallel. The client does a GET on /api/1/station/multi?id=123&amp;id=456&amp;id=789. We cache these in our nginx config:<br /><br />location ~ /api/[^/]+/station/multi {<br />proxy_pass http://localhost:8000;<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 client might ask for id=1&amp;id=2, and another ask for id=2&amp;id=1. Both should return exactly the same response, but map to different cache keys. For two ids, it's not that bad, but many of the calls are for large numbers of ids and the combinatorics quickly spin out of control.<br /><br />Is there any way to rewrite the keys in nginx to canonicalize them? Sorting all the ids in numerical order would do it.]]></description>
<dc:creator>roysmith649</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Sat, 18 May 2013 09:46:01 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?2,239307,239307#msg-239307</guid>
<title>404s logged in error.log? (5 replies)</title><link>http://forum.nginx.org/read.php?2,239307,239307#msg-239307</link><description><![CDATA[I was wondering if someone could confirm that requests resulting in a 404 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 will stop them from being logged to error.log? I figured 404s would be an un-exceptional event that doesn't require error logging, but perhaps I'm simply not handling that situation correctly in my configuration. Worth double-checking.<br /><br />Thank you!]]></description>
<dc:creator>akurilin</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Fri, 17 May 2013 23:51:02 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?2,239305,239305#msg-239305</guid>
<title>Permissions check (1 reply)</title><link>http://forum.nginx.org/read.php?2,239305,239305#msg-239305</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 />nginx@nginx.org<br />http://mailman.nginx.org/mailman/listinfo/nginx]]></description>
<dc:creator>Grant</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Fri, 17 May 2013 21:36:00 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?2,239294,239294#msg-239294</guid>
<title>Choosing source-address for upstream connections (2 replies)</title><link>http://forum.nginx.org/read.php?2,239294,239294#msg-239294</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 />nginx@nginx.org<br />http://mailman.nginx.org/mailman/listinfo/nginx]]></description>
<dc:creator>Bruno Prémont</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Fri, 17 May 2013 09:28:02 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?2,239264,239264#msg-239264</guid>
<title>Add [nginx] to subject lines on this mailing list? (10 replies)</title><link>http://forum.nginx.org/read.php?2,239264,239264#msg-239264</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 griscom@suitable.com<br />Suitable Systems http://www.suitable.com/<br />1 Centre Street, Suite 204 (781) 665-0053<br />Wakefield, MA 01880-2400<br /><br />_______________________________________________<br />nginx mailing list<br />nginx@nginx.org<br />http://mailman.nginx.org/mailman/listinfo/nginx]]></description>
<dc:creator>Daniel Griscom</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Fri, 17 May 2013 09:06:01 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?2,239253,239253#msg-239253</guid>
<title>bug? (6 replies)</title><link>http://forum.nginx.org/read.php?2,239253,239253#msg-239253</link><description><![CDATA[Hy all!<br /><br />I have this error and i don't know how to slove it.<br /><br />https://gist.github.com/Stageline/9a643fa13d040d49f1d1<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 />https://raw.github.com/arut/nginx-rtmp-module/master/ngx_rtmp_netcall_module.c<br /><br />Missing some required http request header or content length wrong?<br /><br />Thanks<br />_______________________________________________<br />nginx mailing list<br />nginx@nginx.org<br />http://mailman.nginx.org/mailman/listinfo/nginx]]></description>
<dc:creator>suttya</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Thu, 16 May 2013 09:00:03 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?2,239240,239240#msg-239240</guid>
<title>Re: access log time format (4 replies)</title><link>http://forum.nginx.org/read.php?2,239240,239240#msg-239240</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 />nginx@nginx.org<br />http://mailman.nginx.org/mailman/listinfo/nginx]]></description>
<dc:creator>Casey Scott</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Wed, 15 May 2013 12:26:02 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?2,239235,239235#msg-239235</guid>
<title>Nginx + Mono (OpenBSD 5.3) (no replies)</title><link>http://forum.nginx.org/read.php?2,239235,239235#msg-239235</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 />nginx@nginx.org<br />http://mailman.nginx.org/mailman/listinfo/nginx]]></description>
<dc:creator>Gee</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Wed, 15 May 2013 11:50:01 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?2,239207,239207#msg-239207</guid>
<title>Can I cache a page conditionally based on cookie value? (2 replies)</title><link>http://forum.nginx.org/read.php?2,239207,239207#msg-239207</link><description><![CDATA[Hi,<br /><br />Using NginX as a reverse proxy, I want to cache the response ONLY if the user has NOT logged in, which can be checked by testing the existence of a cookie.<br /><br />First I tried to use &quot;if&quot;, but NginX complained that I cannot put a proxy_cache_valid inside an &quot;if&quot;:<br /><br />location / {<br />proxy_pass http://www.xyz.com;<br />if ($cookie_login = '') {<br />proxy_cache my-cache;<br />proxy_cache_valid 200 301 302 60m;<br />}<br />}<br /><br /><br />Then I tried to set the cache-duration to 0s by using a variable, but then NginX complained the time value is incorrect.<br />set $cacheDuration 60m;<br />if ($cookie_login != '') {<br />set $cacheDuration 0s;<br />}<br /><br />proxy_cache my-cache;<br />proxy_cache_valid 200 301 302 $cacheDuration<br /><br /><br />So is there any way to cache conditionally based on the existence of a cookie?<br /><br />Thanks.<br /><br />- Patrick]]></description>
<dc:creator>patng323</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Wed, 15 May 2013 06:15:31 -0400</pubDate></item>
</channel>
</rss>