# NGINX

**URL:** https://www.ruby-forum.com/c/server/nginx/21.md?page=50

[Latest](https://www.ruby-forum.com/latest.md) · [Categories](https://www.ruby-forum.com/categories.md) · [Tags](https://www.ruby-forum.com/tags.md)

**Page:** 51

---

## [Max File Size Allowed In Cache](https://www.ruby-forum.com/t/max-file-size-allowed-in-cache/232052)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 5\
**Last updated:** [October 1, 2014, 5:39am UTC](https://www.ruby-forum.com/t/max-file-size-allowed-in-cache/232052 "2014-10-01T05:39:24Z")

</div>

Is there any way to limit the maximum size of an individual object in a proxy cache? Looking through the documentation ( Module ngx\_http\_proxy\_module ) I’m not seeing anything directly related to that. I might be mi…

---

## [List proxy\_cache keys](https://www.ruby-forum.com/t/list-proxy-cache-keys/232293)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [October 1, 2014, 2:22am UTC](https://www.ruby-forum.com/t/list-proxy-cache-keys/232293 "2014-10-01T02:22:59Z")

</div>

Hello! Is a quick way to easily list all the keys stored in a proxy\_cache memory zone? I would like to be able to list all cache elements without implementing a custom tracking solution. I looked through the source of …

---

## [Weird behavior when checking the existence of a cookie](https://www.ruby-forum.com/t/weird-behavior-when-checking-the-existence-of-a-cookie/232233)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [October 1, 2014, 12:25am UTC](https://www.ruby-forum.com/t/weird-behavior-when-checking-the-existence-of-a-cookie/232233 "2014-10-01T00:25:21Z")

</div>

Hi list, this is my first post here, so If I commit any blunder please let me know. I have this location block: location /some\_path/ { # this sets the mobile\_rewrite variable based on a regex against the user\_agent …

---

## [Re: Weird behavior when checking the existence of a cookie](https://www.ruby-forum.com/t/re-weird-behavior-when-checking-the-existence-of-a-cookie/232292)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [September 30, 2014, 10:26pm UTC](https://www.ruby-forum.com/t/re-weird-behavior-when-checking-the-existence-of-a-cookie/232292 "2014-09-30T22:26:48Z")

</div>

Hmmm… that’s not really an option. The upstream does not know that it’s under a subdir of the domain (and the devs insist that it shouldn’t be coupled to that). Also, if the cookie detection lines are commented out, …

---

## [Rewriting location directive by upstream servers](https://www.ruby-forum.com/t/rewriting-location-directive-by-upstream-servers/232217)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [September 30, 2014, 8:57pm UTC](https://www.ruby-forum.com/t/rewriting-location-directive-by-upstream-servers/232217 "2014-09-30T20:57:12Z")

</div>

Hi, I have two back end application servers behind nginx. The configuration is as follows upstream backend1 { server 10.1.1.11; } upstream backend2 { server 10.2.2.2; } server { listen 80; server…

---

## [Support team says Nginx + Passenger harder to support than Apache](https://www.ruby-forum.com/t/support-team-says-nginx-passenger-harder-to-support-than-apache/232288)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [September 30, 2014, 7:16pm UTC](https://www.ruby-forum.com/t/support-team-says-nginx-passenger-harder-to-support-than-apache/232288 "2014-09-30T19:16:40Z")

</div>

I work for a big news organization in the South East… The support team is arguing that it’s more difficult to support Nginx + Passenger because any patches, etc are made by updating source ( compiling modules static…

---

## [Fail2ban + nginx+PHP](https://www.ruby-forum.com/t/fail2ban-nginx-php/232289)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [September 30, 2014, 6:50pm UTC](https://www.ruby-forum.com/t/fail2ban-nginx-php/232289 "2014-09-30T18:50:05Z")

</div>

Good morning! 1 Is it possible to have nginx create another log entry on new lines/several error\_log() PHP function? Now mmultiple error\_log()-s are logged as one nginx error.log line. Apache logs them separatly eve…

---

## [Pull from HLS to trigger non-static RTMP pull](https://www.ruby-forum.com/t/pull-from-hls-to-trigger-non-static-rtmp-pull/232284)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [September 30, 2014, 1:24pm UTC](https://www.ruby-forum.com/t/pull-from-hls-to-trigger-non-static-rtmp-pull/232284 "2014-09-30T13:24:13Z")

</div>

I have set up an RTMP relay of all streams on a remote location. This works fine as long as there is an RTMP request to trigger the pull from the remote server. However HLS requests only work for as long as the RTMP …

---

## [Nginx cannot listen to port 8090](https://www.ruby-forum.com/t/nginx-cannot-listen-to-port-8090/232263)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 5\
**Last updated:** [September 29, 2014, 3:13pm UTC](https://www.ruby-forum.com/t/nginx-cannot-listen-to-port-8090/232263 "2014-09-29T15:13:49Z")

</div>

Hello all, I am trying to enable nginx to listen to port 8090 via default.conf file under /etc/nginx/conf.d directory but it fails with following error : – Unit nginx.service has begun starting up. Sep 29 01:13:58…

---

## [Forward single request to upstream server via proxy\_store!](https://www.ruby-forum.com/t/forward-single-request-to-upstream-server-via-proxy-store/232153)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 16\
**Last updated:** [September 29, 2014, 3:06pm UTC](https://www.ruby-forum.com/t/forward-single-request-to-upstream-server-via-proxy-store/232153 "2014-09-29T15:06:02Z")

</div>

Hi, When the multiple users request for same file on edge server via proxy\_store and requested file is still not downloaded on the edge server, the nginx keeps on proxying those requests towards the origin server due …

---

## [Nginx run into Stat D](https://www.ruby-forum.com/t/nginx-run-into-stat-d/232223)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [September 29, 2014, 1:07pm UTC](https://www.ruby-forum.com/t/nginx-run-into-stat-d/232223 "2014-09-29T13:07:10Z")

</div>

Hi community, We are using Nginx as static http server to cache/send static smal file. The average file size is about 10k ~ 200k -, and nginx server can process ~10000 request per second. It runs well but some times …

---

## [Modify response code based on upstream response](https://www.ruby-forum.com/t/modify-response-code-based-on-upstream-response/232262)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [September 28, 2014, 10:51pm UTC](https://www.ruby-forum.com/t/modify-response-code-based-on-upstream-response/232262 "2014-09-28T22:51:53Z")

</div>

I have a set of webservers with nginx acting as a reverse proxy for tomcat behind an AWS ELB. Request -\> AWS ELB -\> Nginx -\> Tomcat To understand if my application is healthy or not I have to send a request for /stat…

---

## [Unable to use custom variable with limit\_conn\_zone](https://www.ruby-forum.com/t/unable-to-use-custom-variable-with-limit-conn-zone/232249)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [September 27, 2014, 9:57pm UTC](https://www.ruby-forum.com/t/unable-to-use-custom-variable-with-limit-conn-zone/232249 "2014-09-27T21:57:02Z")

</div>

I am trying to use the limit connections / limit request. I have the server behind a proxy, the proxy has the following line : proxy\_set\_header X-Real-IP $remote\_addr; and in my nginx.conf on my server …

---

## [Lua\_shared\_dict](https://www.ruby-forum.com/t/lua-shared-dict/232242)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [September 27, 2014, 12:56am UTC](https://www.ruby-forum.com/t/lua-shared-dict/232242 "2014-09-27T00:56:09Z")

</div>

Hello I am using Lua | NGINX I am storing a set of of ids. local a\_uuid = "… a\_dict.set(a\_dict, a\_uuid, a\_uuid) Ideally it would be more efficient for my use case to have lua\_shared\_set or lua\_shared\_bloom\_filter …

---

## [Underscore between variables](https://www.ruby-forum.com/t/underscore-between-variables/232230)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [September 26, 2014, 4:11pm UTC](https://www.ruby-forum.com/t/underscore-between-variables/232230 "2014-09-26T16:11:48Z")

</div>

Hello, I’m trying to rewrite URL with parameters x, y, z to filename by such template: file\_{x}{y}{z}.txt location /path { rewrite ^ /path/file\_$arg\_x\_$arg\_y\_$arg\_z.txt break; root /var/www; } But it is not workin…

---

## [Shellshock protection using nginx?](https://www.ruby-forum.com/t/shellshock-protection-using-nginx/232224)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [September 26, 2014, 11:16am UTC](https://www.ruby-forum.com/t/shellshock-protection-using-nginx/232224 "2014-09-26T11:16:39Z")

</div>

Hi I have seen eg. Netscaler response policy which can detect if someone is trying shellshock bug using http headers. I am using nginx as reverse proxy so is there good way to make a similar protection using nginx fe…

---

## [Prepend a php script in all requests](https://www.ruby-forum.com/t/prepend-a-php-script-in-all-requests/232215)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [September 25, 2014, 11:45pm UTC](https://www.ruby-forum.com/t/prepend-a-php-script-in-all-requests/232215 "2014-09-25T23:45:15Z")

</div>

Hey guys, Once i have nginx installed with php fastcgi. Is it possible to preppend a php script to be executed when serving any request? (similar to apache prepend function). If yes could I please have an example. Tha…

---

## [CVE-2014-6271 : Remote code execution through bash](https://www.ruby-forum.com/t/cve-2014-6271-remote-code-execution-through-bash/232207)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [September 25, 2014, 9:27am UTC](https://www.ruby-forum.com/t/cve-2014-6271-remote-code-execution-through-bash/232207 "2014-09-25T09:27:42Z")

</div>

hi list, the following bug (Remote code execution through bash) http://www.reddit.com/r/netsec/comments/2hbxtc/cve20146271\_remote\_code\_execution\_through\_bash/ might affect you if you use a shell/bash - based fcgi-wra…

---

## [Alternate POST request to nginx failing](https://www.ruby-forum.com/t/alternate-post-request-to-nginx-failing/234824)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 1\
**Last updated:** [September 25, 2014, 6:50am UTC](https://www.ruby-forum.com/t/alternate-post-request-to-nginx-failing/234824 "2014-09-25T06:50:18Z")

</div>

Hello We are experiencing a strange issue with nginx. If I send multiple POST request to server one after the other, all the alternate POST request fails. I tried debugging the nginx code and found that on every POST…

---

## [Trouble changing uri to query string](https://www.ruby-forum.com/t/trouble-changing-uri-to-query-string/232038)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [September 24, 2014, 2:51pm UTC](https://www.ruby-forum.com/t/trouble-changing-uri-to-query-string/232038 "2014-09-24T14:51:07Z")

</div>

i have a url looking as such: mysite.com/some/path/rest/v2/giveit.view&user=282&imageid=23&size=80 i want the cache key to match imageid=23&size=80 without the “user” part. $args isn’t matching because incoming url l…

---

## [Redirect to a different url based on a query](https://www.ruby-forum.com/t/redirect-to-a-different-url-based-on-a-query/232112)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [September 24, 2014, 2:40pm UTC](https://www.ruby-forum.com/t/redirect-to-a-different-url-based-on-a-query/232112 "2014-09-24T14:40:29Z")

</div>

We have a wordpress installation and need to redirect lost password link to another different url for this we trying to setup a redirect rule but this is not working. Can anyone please help us. location / { proxy\_p…

---

## [New session id on each request](https://www.ruby-forum.com/t/new-session-id-on-each-request/232101)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [September 24, 2014, 1:47pm UTC](https://www.ruby-forum.com/t/new-session-id-on-each-request/232101 "2014-09-24T13:47:21Z")

</div>

I have Nginx as a reverse proxy in front of a Tomcat server running a webapp. This works ok using Firefox but not Chrome or IE… When using Chrome or IE, the JSESSIONID gets a new value for each request (instead of ke…

---

## [Worker processes not shutting down](https://www.ruby-forum.com/t/worker-processes-not-shutting-down/216080)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 15\
**Last updated:** [September 24, 2014, 12:07am UTC](https://www.ruby-forum.com/t/worker-processes-not-shutting-down/216080 "2014-09-24T00:07:51Z")

</div>

Following an upgrade from nginx 1.0.2 to 1.0.11 I’ve experienced a problem with worker processes that are not shutting down. When looking in the list of running processes the worker processes appears to be shutting do…

---

## [Nginx proxy websocket to multi nodes](https://www.ruby-forum.com/t/nginx-proxy-websocket-to-multi-nodes/232171)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [September 23, 2014, 5:11am UTC](https://www.ruby-forum.com/t/nginx-proxy-websocket-to-multi-nodes/232171 "2014-09-23T05:11:54Z")

</div>

I use nginx as proxy server, backend are socketio services. Follow the document , nginx configuration, ip\_hash instruction that indicates the connections will be sticky. upstream socketio { ip\_hash; server…

---

## [No Cache Header On Proxy Request](https://www.ruby-forum.com/t/no-cache-header-on-proxy-request/232158)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [September 22, 2014, 1:49am UTC](https://www.ruby-forum.com/t/no-cache-header-on-proxy-request/232158 "2014-09-22T01:49:15Z")

</div>

Hi All, Can someone tell me or point me to an example of how to set a no cache header on a proxy request . Currently I have PHP application that I’m reverse proxying to php-fpm. However when I try to post to the login …

---

## [Nginx chunked transfer encoding, cannot get it to work](https://www.ruby-forum.com/t/nginx-chunked-transfer-encoding-cannot-get-it-to-work/232039)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [September 20, 2014, 9:39pm UTC](https://www.ruby-forum.com/t/nginx-chunked-transfer-encoding-cannot-get-it-to-work/232039 "2014-09-20T21:39:15Z")

</div>

I am using an implemention of nginx with jetty servlets. For the purpose of my project I need to initialize two connection to the jetty servlet and keep them open. To initialize the downlink I use a normal request and…

---

## [Zero size buf in output!](https://www.ruby-forum.com/t/zero-size-buf-in-output/231744)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 6\
**Last updated:** [September 19, 2014, 4:47pm UTC](https://www.ruby-forum.com/t/zero-size-buf-in-output/231744 "2014-09-19T16:47:05Z")

</div>

We’re facing following error on edge server with nginx-1.6.1, using proxy\_store on edge. 2014/08/27 20:35:05 \[alert\] 5701#0: \*21244 zero size buf in output t:0 r:0 f:0 0000000002579840 0000000002579840-000000000257A8…

---

## [2 certs, 1 domain, 1 IP](https://www.ruby-forum.com/t/2-certs-1-domain-1-ip/232066)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 5\
**Last updated:** [September 19, 2014, 4:29pm UTC](https://www.ruby-forum.com/t/2-certs-1-domain-1-ip/232066 "2014-09-19T16:29:48Z")

</div>

is it possible with SNI and nginx to have both an ECDSA and RSA cert serving 1 website on 1 IP ? best practices ?

---

## [Proxy\_store downloading half videos!](https://www.ruby-forum.com/t/proxy-store-downloading-half-videos/232106)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 10\
**Last updated:** [September 19, 2014, 8:08am UTC](https://www.ruby-forum.com/t/proxy-store-downloading-half-videos/232106 "2014-09-19T08:08:20Z")

</div>

Hi, We’re using proxy\_store on the edge server for replicating requested mp4 files and some of our users reported that some of the videos are half sized and therefore they are unable to stream whole video file on th…

---

## [Using location.capture to post a form](https://www.ruby-forum.com/t/using-location-capture-to-post-a-form/232070)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [September 18, 2014, 7:14pm UTC](https://www.ruby-forum.com/t/using-location-capture-to-post-a-form/232070 "2014-09-18T19:14:45Z")

</div>

Hi All, I am calling an webapplication from nginx. I want to capture the response and post the response body as a post parameter to another application. I am doing something like this local maken\_res = ngx.location…

[Previous page](https://www.ruby-forum.com/c/server/nginx/21.md?page=49)

[Next page](https://www.ruby-forum.com/c/server/nginx/21.md?page=51)
