# Server

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

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

---

## [Connect\_timeout option for proxy\_next\_upstream](https://www.ruby-forum.com/t/connect-timeout-option-for-proxy-next-upstream/225082)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [December 11, 2012, 10:15pm UTC](https://www.ruby-forum.com/t/connect-timeout-option-for-proxy-next-upstream/225082 "2012-12-11T22:15:56Z")

</div>

I posted this question in another thread but I received no answer, sorry to ask again. On my current set up, I’m using the timeout option to make sure the request is passed to the next upstream if the first server i…

---

## [Ngx\_openresty devel version 1.2.4.13 released](https://www.ruby-forum.com/t/ngx-openresty-devel-version-1-2-4-13-released/229240)

<div class="topic-metadata">

**Author:** [@agentzh](https://www.ruby-forum.com/u/agentzh)\
**Replies:** 0\
**Last updated:** [December 11, 2012, 9:07pm UTC](https://www.ruby-forum.com/t/ngx-openresty-devel-version-1-2-4-13-released/229240 "2012-12-11T21:07:00Z")

</div>

Hello, folks! I am happy to announce the new development version of ngx\_openresty, 1.2.4.13: http://openresty.org/#Download This is possibly the last development release in the 1.2.4.x series if no regressions are r…

---

## [Dynamic Mass vhosts / reverse proxying](https://www.ruby-forum.com/t/dynamic-mass-vhosts-reverse-proxying/225078)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [December 11, 2012, 4:34pm UTC](https://www.ruby-forum.com/t/dynamic-mass-vhosts-reverse-proxying/225078 "2012-12-11T16:34:41Z")

</div>

I’m trying to configure mass (300+) dynamic vhosts and reverse proxying. users come in at: https://test.abc.example.com and should be transparantly proxied to: http://foo.abc.somethingelse.net Anyone who has this kin…

---

## [Cannot PUT file with nginx-mogilefs-module](https://www.ruby-forum.com/t/cannot-put-file-with-nginx-mogilefs-module/195627)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [December 11, 2012, 2:38pm UTC](https://www.ruby-forum.com/t/cannot-put-file-with-nginx-mogilefs-module/195627 "2012-12-11T14:38:37Z")

</div>

hi, I’m dai I’m trying to PUT file to MogileFS with nginx-mogilefs-module 1.0.4, But I cannot. I compiled with ‘–with-debug’ option, and the log seems “create\_close” request is not send to MogileFS tracker. How can …

---

## [Auth\_request and nested locations](https://www.ruby-forum.com/t/auth-request-and-nested-locations/225071)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [December 11, 2012, 2:36pm UTC](https://www.ruby-forum.com/t/auth-request-and-nested-locations/225071 "2012-12-11T14:36:05Z")

</div>

Except for a few exceptions, I want to require authentication for an entire site. The safest place would be to put the auth\_request directive at the http level but there’s no way to allow the exceptions. If I put th…

---

## [Nginx mail starttls ip based](https://www.ruby-forum.com/t/nginx-mail-starttls-ip-based/225076)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [December 11, 2012, 1:31pm UTC](https://www.ruby-forum.com/t/nginx-mail-starttls-ip-based/225076 "2012-12-11T13:31:48Z")

</div>

Hello, I’m new in nginx world. I would like to configure a single nginx server to proxy imap/pop servers with starttls option. I would like that the “starttls” could be “on” on a list of known safe IPs and “only” on…

---

## [Nginx on multi ip address](https://www.ruby-forum.com/t/nginx-on-multi-ip-address/226509)

<div class="topic-metadata">

**Author:** [@asetzler](https://www.ruby-forum.com/u/asetzler)\
**Replies:** 2\
**Last updated:** [December 11, 2012, 1:23pm UTC](https://www.ruby-forum.com/t/nginx-on-multi-ip-address/226509 "2012-12-11T13:23:01Z")

</div>

My webserver has two ip(192.168.0.10 and 200.12.12.10). And I have many hosts running on these ip. most of them configured like this: server { server\_name server1; listen 80; }; server { server\_name server2; lis…

---

## [Fwd: reverse proxy](https://www.ruby-forum.com/t/fwd-reverse-proxy/225074)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [December 11, 2012, 11:02am UTC](https://www.ruby-forum.com/t/fwd-reverse-proxy/225074 "2012-12-11T11:02:13Z")

</div>

Hi all, I configured an nginx server as a reverse proxy few months ago. i have apache server as a back end of the reverse proxy. Every thing worked well until i start to use ssl. When i try to redirect https://mydoma…

---

## [RE: nginx and tomcat integrated but how to serve static files](https://www.ruby-forum.com/t/re-nginx-and-tomcat-integrated-but-how-to-serve-static-files/225023)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 6\
**Last updated:** [December 11, 2012, 9:49am UTC](https://www.ruby-forum.com/t/re-nginx-and-tomcat-integrated-but-how-to-serve-static-files/225023 "2012-12-11T09:49:46Z")

</div>

Hi pals, I have my applications running on tomcat and to improve performance I have put nginx infront.Nginx proxy pass successfully pass all request to tomcat server. There are some html static files and images in …

---

## [Proxy Cache: how much shared memory is "enough"?](https://www.ruby-forum.com/t/proxy-cache-how-much-shared-memory-is-enough/226502)

<div class="topic-metadata">

**Author:** [@SSChristian\_BSSnnin](https://www.ruby-forum.com/u/SSChristian_BSSnnin)\
**Replies:** 2\
**Last updated:** [December 11, 2012, 9:19am UTC](https://www.ruby-forum.com/t/proxy-cache-how-much-shared-memory-is-enough/226502 "2012-12-11T09:19:24Z")

</div>

Hi, I’m planning to deploy some big websites which will make heavy usage of proxy cacheing (e.g. 1.5 million actively accessed objects in cache). The ratio of plain HTML vs images should be about 50/50 if that does h…

---

## [Proxy Pass](https://www.ruby-forum.com/t/proxy-pass/225070)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [December 11, 2012, 3:48am UTC](https://www.ruby-forum.com/t/proxy-pass/225070 "2012-12-11T03:48:44Z")

</div>

I’m attempting to use the proxy pass directive to send traffic to a non-https Apache server on the same server as Nginx. The server is behind a firewall, and I’m using a port forward to send traffic from a custom por…

---

## [Rewrite help please](https://www.ruby-forum.com/t/rewrite-help-please/226484)

<div class="topic-metadata">

**Author:** [@steveybaby](https://www.ruby-forum.com/u/steveybaby)\
**Replies:** 4\
**Last updated:** [December 10, 2012, 8:51pm UTC](https://www.ruby-forum.com/t/rewrite-help-please/226484 "2012-12-10T20:51:36Z")

</div>

I’ve got a WP site that also provides landing pages for a number of other sites. I’ve set it up as the default server config for that IP, and that’s working fine. However, the requirement I’ve got is to go to a specif…

---

## [Memcached\_gzip\_flag](https://www.ruby-forum.com/t/memcached-gzip-flag/225066)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [December 10, 2012, 6:15pm UTC](https://www.ruby-forum.com/t/memcached-gzip-flag/225066 "2012-12-10T18:15:02Z")

</div>

I’m running nginx 1.3.9 with memcached\_pass and I have set memcached\_gzip\_flag in an attempt to serve gzipped content directly from memcached (mainly to save memory on my memcached processes, which get pretty large).…

---

## [Re: proxy\_cache\_bypass and proxy\_no\_cache](https://www.ruby-forum.com/t/re-proxy-cache-bypass-and-proxy-no-cache/225063)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [December 10, 2012, 3:09pm UTC](https://www.ruby-forum.com/t/re-proxy-cache-bypass-and-proxy-no-cache/225063 "2012-12-10T15:09:45Z")

</div>

set $dont\_cache 0; it. You have to set it at the server level to make it work. set $dont\_cache 1; if ($cookie\_route) { set $dont\_cache 0; } location /test { proxy\_pass http://a/; proxy\_cache\_b…

---

## [Turn basic authentication on and off for specific HTTP user agent](https://www.ruby-forum.com/t/turn-basic-authentication-on-and-off-for-specific-http-user-agent/224782)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [December 10, 2012, 2:32pm UTC](https://www.ruby-forum.com/t/turn-basic-authentication-on-and-off-for-specific-http-user-agent/224782 "2012-12-10T14:32:21Z")

</div>

Hello All! Is it possible to turn authentication on and off for a specific user agent in some location? When I configure the following location /specloc/ { if ($http\_user\_agent ~ MSIE) { auth\_basic “priv…

---

## [Re: proxy\_cache\_bypass and proxy\_no\_cache](https://www.ruby-forum.com/t/re-proxy-cache-bypass-and-proxy-no-cache/225058)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 7\
**Last updated:** [December 10, 2012, 11:16am UTC](https://www.ruby-forum.com/t/re-proxy-cache-bypass-and-proxy-no-cache/225058 "2012-12-10T11:16:01Z")

</div>

You can use at the http level: map $cookie\_no\_cache $dont\_cache { 0 1; 1 0; } Then use the $dont\_cache variable instead. –appa amodpandey removed\_email\_address@domain.invalid a écrit :

---

## [Re: proxy\_cache\_bypass and proxy\_no\_cache](https://www.ruby-forum.com/t/re-proxy-cache-bypass-and-proxy-no-cache/225059)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [December 10, 2012, 9:55am UTC](https://www.ruby-forum.com/t/re-proxy-cache-bypass-and-proxy-no-cache/225059 "2012-12-10T09:55:22Z")

</div>

Another option is to use an if. set $dont\_cache 0; if ($cookie\_no\_cache) { set $dont\_cache 1; } –appa amodpandey removed\_email\_address@domain.invalid a écrit :

---

## [Proxy\_cache\_bypass and proxy\_no\_cache](https://www.ruby-forum.com/t/proxy-cache-bypass-and-proxy-no-cache/226491)

<div class="topic-metadata">

**Author:** [@amodpandey](https://www.ruby-forum.com/u/amodpandey)\
**Replies:** 0\
**Last updated:** [December 10, 2012, 8:20am UTC](https://www.ruby-forum.com/t/proxy-cache-bypass-and-proxy-no-cache/226491 "2012-12-10T08:20:38Z")

</div>

I want to proxy\_cache responses only with a specific cookie in request. I thought to use proxy\_cache\_bypass ! $cookie\_cache; proxy\_no\_cache ! $cookie\_cache; That ( ! ) does not work. One more question,…

---

## [Nginx removes X-Client-IP header added by loadbalancer](https://www.ruby-forum.com/t/nginx-removes-x-client-ip-header-added-by-loadbalancer/225042)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [December 10, 2012, 3:59am UTC](https://www.ruby-forum.com/t/nginx-removes-x-client-ip-header-added-by-loadbalancer/225042 "2012-12-10T03:59:31Z")

</div>

Hi, I have a HAProxy running in front of Nginx, and I add ‘X-Client-IP’ header to reflect the actual IP of the client. If the request is routed directly to the application server (Tornado in my case), this header is…

---

## [Storing/serving images securely and efficiently](https://www.ruby-forum.com/t/storing-serving-images-securely-and-efficiently/225052)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [December 9, 2012, 4:02pm UTC](https://www.ruby-forum.com/t/storing-serving-images-securely-and-efficiently/225052 "2012-12-09T16:02:45Z")

</div>

What is the best practice for storing and serving images securely without hurting performance? Is it possible to store user images in a folder that’s not web accessible (possibly higher up and before /www?) and serv…

---

## ["Hacking" the event model of Nginx](https://www.ruby-forum.com/t/hacking-the-event-model-of-nginx/134582)

<div class="topic-metadata">

**Author:** [@FranSSSSois\_Battail](https://www.ruby-forum.com/u/FranSSSSois_Battail)\
**Replies:** 12\
**Last updated:** [December 9, 2012, 12:26pm UTC](https://www.ruby-forum.com/t/hacking-the-event-model-of-nginx/134582 "2012-12-09T12:26:14Z")

</div>

Hi All! I’m new on this nice discussion list but I’m a long time lurker. I’m working on a very specific module for Nginx: a complete CMS. It may sounds strange since upstream servers and scripting languages are the n…

---

## [Lockdown a website, password protect](https://www.ruby-forum.com/t/lockdown-a-website-password-protect/226483)

<div class="topic-metadata">

**Author:** [@S\_Ahmed](https://www.ruby-forum.com/u/S_Ahmed)\
**Replies:** 1\
**Last updated:** [December 9, 2012, 12:04pm UTC](https://www.ruby-forum.com/t/lockdown-a-website-password-protect/226483 "2012-12-09T12:04:57Z")

</div>

Before I launch my website, I want to be able to test it live in production but don’t want anyone else to view it. Would it be possible to lock down the website except for the main page, all other pages require me t…

---

## [Passing variables to handler function](https://www.ruby-forum.com/t/passing-variables-to-handler-function/225048)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [December 9, 2012, 11:20am UTC](https://www.ruby-forum.com/t/passing-variables-to-handler-function/225048 "2012-12-09T11:20:02Z")

</div>

Good morning, I’m writing a custom Nginx module and am using NGX\_AGAIN to call the handler several times, however am at a loss about how to pass a variable between calls. I want to use the variable to differentiate be…

---

## [Passing variables to handler function](https://www.ruby-forum.com/t/passing-variables-to-handler-function/226485)

<div class="topic-metadata">

**Author:** [@preinde](https://www.ruby-forum.com/u/preinde)\
**Replies:** 0\
**Last updated:** [December 9, 2012, 11:17am UTC](https://www.ruby-forum.com/t/passing-variables-to-handler-function/226485 "2012-12-09T11:17:03Z")

</div>

Good morning, I’m writing a custom Nginx module and am using NGX\_AGAIN to call the handler several times, however am at a loss about how to pass a variable between calls. I want to use the variable to differentiate b…

---

## [What can lead to a zone memory exhaustion and how Nginx reacts to it?](https://www.ruby-forum.com/t/what-can-lead-to-a-zone-memory-exhaustion-and-how-nginx-reacts-to-it/226476)

<div class="topic-metadata">

**Author:** [@Mehhy](https://www.ruby-forum.com/u/Mehhy)\
**Replies:** 2\
**Last updated:** [December 8, 2012, 1:16pm UTC](https://www.ruby-forum.com/t/what-can-lead-to-a-zone-memory-exhaustion-and-how-nginx-reacts-to-it/226476 "2012-12-08T13:16:27Z")

</div>

What is a possible scenario for exhausting the memory designated to a connection zone with limit\_conn\_zone directive and what are the implication in this case? Suppose I have this in my configuration: http { limit…

---

## [Ngx\_openresty devel version 1.2.4.11 released](https://www.ruby-forum.com/t/ngx-openresty-devel-version-1-2-4-11-released/226480)

<div class="topic-metadata">

**Author:** [@agentzh](https://www.ruby-forum.com/u/agentzh)\
**Replies:** 0\
**Last updated:** [December 8, 2012, 9:32am UTC](https://www.ruby-forum.com/t/ngx-openresty-devel-version-1-2-4-11-released/226480 "2012-12-08T09:32:44Z")

</div>

Hello, folks! I am happy to announce the new development version of ngx\_openresty, 1.2.4.11: http://openresty.org/#Download Special thanks go to all our contributors and users for helping make this happen! Below i…

---

## [Help with apache rewrite rule to nginx](https://www.ruby-forum.com/t/help-with-apache-rewrite-rule-to-nginx/225034)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [December 7, 2012, 8:19pm UTC](https://www.ruby-forum.com/t/help-with-apache-rewrite-rule-to-nginx/225034 "2012-12-07T20:19:07Z")

</div>

Hello, would like to convert the below rule from Apache to nginx, but to be honest I have no clue how. RewriteCond %{REQUEST\_FILENAME} -f \[OR\] RewriteCond %{REQUEST\_FILENAME} -d \[OR\] RewriteCond %{REQUEST\_FILENAME} g…

---

## [Use next Balanced member if 503 error](https://www.ruby-forum.com/t/use-next-balanced-member-if-503-error/225001)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [December 7, 2012, 8:06pm UTC](https://www.ruby-forum.com/t/use-next-balanced-member-if-503-error/225001 "2012-12-07T20:06:41Z")

</div>

Hello I am working with nginx as balancer between two jetty servers. The balancing is working but I am facing a problem when a 503 error is generated by one of the servers, I added the line proxy\_next\_upstream err…

---

## [Setting large proxy\_buffer\_size](https://www.ruby-forum.com/t/setting-large-proxy-buffer-size/225003)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [December 7, 2012, 5:19pm UTC](https://www.ruby-forum.com/t/setting-large-proxy-buffer-size/225003 "2012-12-07T17:19:36Z")

</div>

Ran into an issue that I needed to set a larger proxy\_buffer\_size (e.g. to 128k). It works after increasing. However my question is: what’s the disadvantages of setting a large buffer size? If there is no disadvanta…

---

## [Ngx\_cache\_purge-2.0](https://www.ruby-forum.com/t/ngx-cache-purge-2-0/225019)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [December 7, 2012, 9:54am UTC](https://www.ruby-forum.com/t/ngx-cache-purge-2-0/225019 "2012-12-07T09:54:22Z")

</div>

Version 2.0 is now available at: http://labs.frickle.com/nginx\_ngx\_cache\_purge/ GitHub repository is available at: Changes: 2012-12-07 VERSION 2.0 \* Add alternative “same location” syntax. From CloudFlare. Bes…

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

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