# Server

**URL:** https://www.ruby-forum.com/c/server/33.md?page=79

[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:** 80

---

## [How to define dynamic proxy\_cache\_path directory](https://www.ruby-forum.com/t/how-to-define-dynamic-proxy-cache-path-directory/238608)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [January 21, 2014, 9:30am UTC](https://www.ruby-forum.com/t/how-to-define-dynamic-proxy-cache-path-directory/238608 "2014-01-21T09:30:01Z")

</div>

Hello, I use Nginx/1.4.4 as a reverse proxy caching server for multiple sites. So far I have been using same proxy\_cache\_path for all sites. Now I want to use separate cache path for all sites. Is there anyway to ma…

---

## [Decompressing a compressed response from upstream, applying transformations and then compressing for](https://www.ruby-forum.com/t/decompressing-a-compressed-response-from-upstream-applying-transformations-and-then-compressing-for/238612)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 4\
**Last updated:** [January 20, 2014, 6:44pm UTC](https://www.ruby-forum.com/t/decompressing-a-compressed-response-from-upstream-applying-transformations-and-then-compressing-for/238612 "2014-01-20T18:44:27Z")

</div>

Hello Is there a way we can achieve the following when nginx is acting as a reverse proxy Client sends HTTP request with Accept-Encoding as gzip Nginx proxy forwards the request with the request header intact Origin …

---

## ["ssl\_session\_cache" not working on windows Version](https://www.ruby-forum.com/t/ssl-session-cache-not-working-on-windows-version/238610)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [January 20, 2014, 12:27pm UTC](https://www.ruby-forum.com/t/ssl-session-cache-not-working-on-windows-version/238610 "2014-01-20T12:27:53Z")

</div>

Hello, I have an nginx in front of an Windows IIS to delete some headers send my IIS from proprietary application. Now I try to use the following parameter on nginx running on windows: SSL session cache #ssl\_session…

---

## [Duplicate Vary: Accept-Encoding header](https://www.ruby-forum.com/t/duplicate-vary-accept-encoding-header/238606)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [January 20, 2014, 9:31am UTC](https://www.ruby-forum.com/t/duplicate-vary-accept-encoding-header/238606 "2014-01-20T09:31:38Z")

</div>

Hello, I use nginx/1.4.4 with gunzip = on and gzip\_vary = on. This leads to a duplicate Vary Header. gzip\_vary should do nothing if the header is already present: moki@mysrv:~$ curl -I http://192.168.1.196/home.htmlh…

---

## [Cookie bomb - how to protect?](https://www.ruby-forum.com/t/cookie-bomb-how-to-protect/238601)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 5\
**Last updated:** [January 20, 2014, 1:46am UTC](https://www.ruby-forum.com/t/cookie-bomb-how-to-protect/238601 "2014-01-20T01:46:47Z")

</div>

very interesting read: from thze blogpost: "TL;DR I can craft a page “polluting” CDNs, blogging platforms and other major networks with my cookies. Your browser will keep sending those cookies and servers will reje…

---

## [Understanding proxy\_buffering](https://www.ruby-forum.com/t/understanding-proxy-buffering/238599)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [January 19, 2014, 12:49pm UTC](https://www.ruby-forum.com/t/understanding-proxy-buffering/238599 "2014-01-19T12:49:39Z")

</div>

Hi I’m trying to setup a reverse proxy for some private downloads. Here is our setup: 3 Storage servers with High capacity but slow HDDs running nginx 1 loadbalancing server with SSD and high internet uplink. my fi…

---

## [Nested location, proxy, alias and multiple "/" locations](https://www.ruby-forum.com/t/nested-location-proxy-alias-and-multiple-locations/238591)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [January 19, 2014, 12:03pm UTC](https://www.ruby-forum.com/t/nested-location-proxy-alias-and-multiple-locations/238591 "2014-01-19T12:03:03Z")

</div>

Ciao, I’m setting up several isolated Laravel apps in sub-folders of a single site. Web root folder of Laravel is called “public”, and I want to access such installation by URI “/app1/”. There are static files, mayb…

---

## [Rate limiting intervals](https://www.ruby-forum.com/t/rate-limiting-intervals/238581)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 4\
**Last updated:** [January 18, 2014, 12:26am UTC](https://www.ruby-forum.com/t/rate-limiting-intervals/238581 "2014-01-18T00:26:50Z")

</div>

Hello, With the rate limiting module you can easily rate limit based on seconds or on minutes. What I would like to do however is rate limit based on a 100 millisecond or 10 millisecond interval. That way you do n…

---

## [Try\_files (source)](https://www.ruby-forum.com/t/try-files-source/238583)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [January 17, 2014, 11:40pm UTC](https://www.ruby-forum.com/t/try-files-source/238583 "2014-01-17T23:40:18Z")

</div>

In ngx\_http\_core\_try\_files\_phase (ngx\_http\_core\_module.c) I can see how $uri $uri/ =404 are handled, but for example in; try\_files /test.html $uri $uri/ =404; where(or how) is /test.html handled? Posted at Nginx For…

---

## [Open Text Summarizer Upstream Module 1.0 Release](https://www.ruby-forum.com/t/open-text-summarizer-upstream-module-1-0-release/238577)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [January 17, 2014, 7:36pm UTC](https://www.ruby-forum.com/t/open-text-summarizer-upstream-module-1-0-release/238577 "2014-01-17T19:36:52Z")

</div>

Hi, I have developed a highly efficient version of OTS - the popular open source text summarizer s/w. For few documents, while OTS takes about 40ms to produce text summary, my version takes around 8ms only. I created…

---

## [Targeting homepage (not sub pages/dirs/)](https://www.ruby-forum.com/t/targeting-homepage-not-sub-pages-dirs/238576)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [January 17, 2014, 7:30pm UTC](https://www.ruby-forum.com/t/targeting-homepage-not-sub-pages-dirs/238576 "2014-01-17T19:30:51Z")

</div>

What should I add to this directive to target also the home page (root of the website, e.g. website.com)? I already have ‘index.php’ in the directive but what if I visit website.com(without /index.php)? if ($request…

---

## [Websocket tunnel broken with existing SSL session](https://www.ruby-forum.com/t/websocket-tunnel-broken-with-existing-ssl-session/238507)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 8\
**Last updated:** [January 17, 2014, 6:24pm UTC](https://www.ruby-forum.com/t/websocket-tunnel-broken-with-existing-ssl-session/238507 "2014-01-17T18:24:07Z")

</div>

We’ve been debugging this issue for 3 days now and even though we have a temporary fix, we’re still puzzled about it. There is an iOS app, which opens a websocket connection to our server over SSL. Our server runs Sm…

---

## [Errors using HttpUseridModule](https://www.ruby-forum.com/t/errors-using-httpuseridmodule/238559)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 4\
**Last updated:** [January 17, 2014, 6:07pm UTC](https://www.ruby-forum.com/t/errors-using-httpuseridmodule/238559 "2014-01-17T18:07:33Z")

</div>

Hi guys, I’m using the HttpUseridModule for storing session ids of our users. We’re receiving a lot of errors lately concerning the format of the userid cookie. Basically there are two types of errors: \[error\] 1581#…

---

## [Can't start nginx](https://www.ruby-forum.com/t/cant-start-nginx/171927)

<div class="topic-metadata">

**Author:** [@vieten](https://www.ruby-forum.com/u/vieten)\
**Replies:** 5\
**Last updated:** [January 17, 2014, 3:23pm UTC](https://www.ruby-forum.com/t/cant-start-nginx/171927 "2014-01-17T15:23:07Z")

</div>

Hello, I’ve tried a serveral times to start nginx but it always ends with no happy end. Download and compiling is no problem for me. So here goes my way that i do it: cd /tmp wget wget http://sysoev.ru/nginx/nginx…

---

## [Nginx configuration needed to dynamically rewrite a subdirectory to a subdomain](https://www.ruby-forum.com/t/nginx-configuration-needed-to-dynamically-rewrite-a-subdirectory-to-a-subdomain/238569)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [January 17, 2014, 2:58pm UTC](https://www.ruby-forum.com/t/nginx-configuration-needed-to-dynamically-rewrite-a-subdirectory-to-a-subdomain/238569 "2014-01-17T14:58:02Z")

</div>

How to configure NGINX daemon so that blog.xxx.com becomes XXX Sex - Free Porn Videos at XXX.com Can anyone help me? Posted at Nginx Forum:

---

## [Add proxy\_next\_upstream\_action to distinguish diffrient network actions](https://www.ruby-forum.com/t/add-proxy-next-upstream-action-to-distinguish-diffrient-network-actions/238522)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [January 17, 2014, 10:11am UTC](https://www.ruby-forum.com/t/add-proxy-next-upstream-action-to-distinguish-diffrient-network-actions/238522 "2014-01-17T10:11:56Z")

</div>

Hi all: The directive “proxy\_next\_upstream error timeout” takes effect on three network actions: connection, send and recieve. In practice ,we realy want to try next upstream according to in which actions we are. For…

---

## [Re: fastcgi\_cache\_path empty](https://www.ruby-forum.com/t/re-fastcgi-cache-path-empty/238567)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [January 17, 2014, 1:14am UTC](https://www.ruby-forum.com/t/re-fastcgi-cache-path-empty/238567 "2014-01-17T01:14:14Z")

</div>

Thanks Steve for the reply!! Ok, so tell me if I understood correcty. You just have in your “vhost” server block this: fastcgi\_cache\_path /var/cache/nginx levels=1:2 keys\_zone=microcache:10m max\_size=1000m inactive=6…

---

## [A 503 page gets written to my proxy cache, overwriting the 200](https://www.ruby-forum.com/t/a-503-page-gets-written-to-my-proxy-cache-overwriting-the-200/238552)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 4\
**Last updated:** [January 16, 2014, 11:08pm UTC](https://www.ruby-forum.com/t/a-503-page-gets-written-to-my-proxy-cache-overwriting-the-200/238552 "2014-01-16T23:08:39Z")

</div>

Hi, I’m trying to use the proxy cache to store regular pages (200) from my web server so that when the web server goes into maintenance mode and starts returning 503 nginx can still serve the good page out of cache. …

---

## [Fastcgi\_cache\_path empty](https://www.ruby-forum.com/t/fastcgi-cache-path-empty/238493)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [January 16, 2014, 9:07pm UTC](https://www.ruby-forum.com/t/fastcgi-cache-path-empty/238493 "2014-01-16T21:07:52Z")

</div>

I wanted to try fastcgi\_cache on my nginx 1.5.8 as shown here http://seravo.fi/2013/optimizing-web-server-performance-with-nginx-and-php In nginx conf, http section, I added: fastcgi\_cache\_path /var/cache/nginx levels…

---

## [HttpUseridModule](https://www.ruby-forum.com/t/httpuseridmodule/221555)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [January 16, 2014, 8:20pm UTC](https://www.ruby-forum.com/t/httpuseridmodule/221555 "2014-01-16T20:20:57Z")

</div>

Hi, I am trying to use the HttpUseridModule but I am not able to set the cookie, however I can see that the request has been sent and the browser allows cookie. $uid\_got $uid\_set - uid=4D01310AD0BA075025…

---

## [Proxy\_cache purge details](https://www.ruby-forum.com/t/proxy-cache-purge-details/238549)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [January 16, 2014, 6:03pm UTC](https://www.ruby-forum.com/t/proxy-cache-purge-details/238549 "2014-01-16T18:03:01Z")

</div>

Hello, we’ve got a problem with the proxy\_cache feature in nginx. To be more precise, the problem occurs when the cache loader kicks in and starts deleting the expired files that are stored on a LVM-striped (non-raid) …

---

## [Question on some simple codes in ngx\_buf.c](https://www.ruby-forum.com/t/question-on-some-simple-codes-in-ngx-buf-c/238538)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [January 16, 2014, 5:50pm UTC](https://www.ruby-forum.com/t/question-on-some-simple-codes-in-ngx-buf-c/238538 "2014-01-16T17:50:58Z")

</div>

Hello there, code snippet in the definition of ngx\_chain\_add\_copy in ngx\_buf.c: ll = chain; for (cl = \*chain; cl; cl = cl-\>next) { ll = &cl-\>next; } Why is ll assigned repeatedly? I’m sorry for failed thinking …

---

## [Fast CGI module "multipart/mixed" problem (it only accepts 1 "Content-Type" header)](https://www.ruby-forum.com/t/fast-cgi-module-multipart-mixed-problem-it-only-accepts-1-content-type-header/238527)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [January 16, 2014, 4:59pm UTC](https://www.ruby-forum.com/t/fast-cgi-module-multipart-mixed-problem-it-only-accepts-1-content-type-header/238527 "2014-01-16T16:59:00Z")

</div>

It seems, when my FCGI server responds to NGINX with “Status: 200 OK\\r\\nContent-Type: multipart/mixed;boundary=whatever\\r\\n\\r\\nboundary=whatever\\r\\nContent-Type: image/jpeg\\r\\n\\r\\n” The FASTCGI module is taking the 2…

---

## [Does it possible to submit duplicated request with the proxy\_next\_upstream on](https://www.ruby-forum.com/t/does-it-possible-to-submit-duplicated-request-with-the-proxy-next-upstream-on/238322)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 5\
**Last updated:** [January 16, 2014, 10:20am UTC](https://www.ruby-forum.com/t/does-it-possible-to-submit-duplicated-request-with-the-proxy-next-upstream-on/238322 "2014-01-16T10:20:38Z")

</div>

Hi all: I am wondering if I set: proxy\_next\_upstream error timeout; Fox example , if the requested service is a counter , I issue the request use the interface http://example.com/incr . The request is failed on my f…

---

## [Is it possible to rewrite links on a webpage into an other format?](https://www.ruby-forum.com/t/is-it-possible-to-rewrite-links-on-a-webpage-into-an-other-format/238535)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [January 16, 2014, 5:58am UTC](https://www.ruby-forum.com/t/is-it-possible-to-rewrite-links-on-a-webpage-into-an-other-format/238535 "2014-01-16T05:58:41Z")

</div>

Hello Everyone! Is it possible to rewrite links on a webpage with the format “domain/file” into the format “file.domain”? Please can anyone help? Posted at Nginx Forum:

---

## [Imap connection to gmail closes connection](https://www.ruby-forum.com/t/imap-connection-to-gmail-closes-connection/238526)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [January 15, 2014, 6:03pm UTC](https://www.ruby-forum.com/t/imap-connection-to-gmail-closes-connection/238526 "2014-01-15T18:03:17Z")

</div>

I am running nginx 1.1.19 on an Ubuntu 12.04.4 64but server. I have nginx configured to enter on port 143 and go out to 127.0.0.1:143 where it goes through stunnel to go to imap.gmail.com:993. If I talk directly to 12…

---

## [Src/http/ngx\_http\_spdy\_filter\_module.c, latest changesets compiler warnings](https://www.ruby-forum.com/t/src-http-ngx-http-spdy-filter-module-c-latest-changesets-compiler-warnings/238510)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 8\
**Last updated:** [January 15, 2014, 11:09am UTC](https://www.ruby-forum.com/t/src-http-ngx-http-spdy-filter-module-c-latest-changesets-compiler-warnings/238510 "2014-01-15T11:09:07Z")

</div>

src/http/ngx\_http\_spdy\_filter\_module.c, latest changesets compiler warnings In ngx\_http\_spdy\_send\_chain(ngx\_connection\_t \*fc, ngx\_chain\_t \*in, off\_t limit): src/http/ngx\_http\_spdy\_filter\_module.c(682) : warning C4244…

---

## [SSL ciphers, disable or not to disable RC4?](https://www.ruby-forum.com/t/ssl-ciphers-disable-or-not-to-disable-rc4/238428)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 28\
**Last updated:** [January 14, 2014, 11:13pm UTC](https://www.ruby-forum.com/t/ssl-ciphers-disable-or-not-to-disable-rc4/238428 "2014-01-14T23:13:47Z")

</div>

Hi My current values in my nginx configuration for ssl\_protocols/ciphers what i use is this: ssl\_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2; ssl\_ciphers RC4:HIGH:!aNULL:!MD5; ssl\_prefer\_server\_ciphers on…

---

## [Is it possible that nginx will not buffer the client body?](https://www.ruby-forum.com/t/is-it-possible-that-nginx-will-not-buffer-the-client-body/225495)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 36\
**Last updated:** [January 14, 2014, 11:12pm UTC](https://www.ruby-forum.com/t/is-it-possible-that-nginx-will-not-buffer-the-client-body/225495 "2014-01-14T23:12:05Z")

</div>

Hello! is it possible that nginx will not buffer the client body before handle the request to upstream? we want to use nginx as a reverse proxy to upload very very big file to the upstream, but the default behavior…

---

## [Username mapping for imap/pop](https://www.ruby-forum.com/t/username-mapping-for-imap-pop/238472)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [January 14, 2014, 10:56pm UTC](https://www.ruby-forum.com/t/username-mapping-for-imap-pop/238472 "2014-01-14T22:56:04Z")

</div>

I need to map from username to login name where I wish to map from just username to removed\_email\_address@domain.invalid for gmail and windomain\\username for an exchange server. Is there a way for me to build in hooks…

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

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