# Server

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

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

---

## [DNS TTLs being ignored](https://www.ruby-forum.com/t/dns-ttls-being-ignored/213278)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 8\
**Last updated:** [February 6, 2012, 4:03pm UTC](https://www.ruby-forum.com/t/dns-ttls-being-ignored/213278 "2012-02-06T16:03:41Z")

</div>

I have recently come across several related issues which I have tracked down to nginx and the way it handles DNS. I run nginx as a proxy for several back end services. It works really well, except for 1 thing. My p…

---

## [A topology when nginx is in reverse-proxy mode? support?](https://www.ruby-forum.com/t/a-topology-when-nginx-is-in-reverse-proxy-mode-support/216444)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [February 6, 2012, 2:57pm UTC](https://www.ruby-forum.com/t/a-topology-when-nginx-is-in-reverse-proxy-mode-support/216444 "2012-02-06T14:57:46Z")

</div>

hi all: please see the following topology in my test-bed, it always accesses the first website in reverse-proxy. Topology Outside -------------------\[ NAT Device\] -----------------\[nginx with reverse-proxy\]------…

---

## [Is this how variable (set $var) inheritance works?](https://www.ruby-forum.com/t/is-this-how-variable-set-var-inheritance-works/216409)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 7\
**Last updated:** [February 4, 2012, 9:26pm UTC](https://www.ruby-forum.com/t/is-this-how-variable-set-var-inheritance-works/216409 "2012-02-04T21:26:16Z")

</div>

(doesn’t seem to be specified in documentation) My test showed: anything set in server { } block is inherited: server { set $something /usr/share/something; … location / { location /nested/ { # $something is set…

---

## [Php-fpm response codes](https://www.ruby-forum.com/t/php-fpm-response-codes/216435)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [February 4, 2012, 7:33pm UTC](https://www.ruby-forum.com/t/php-fpm-response-codes/216435 "2012-02-04T19:33:41Z")

</div>

Hi! Does anyone know where to find information about php-fpm response codes? I am interested in 302, looks like this response linked with my internal server error. thx!

---

## [Internal server error](https://www.ruby-forum.com/t/internal-server-error/216434)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [February 4, 2012, 6:05pm UTC](https://www.ruby-forum.com/t/internal-server-error/216434 "2012-02-04T18:05:53Z")

</div>

Hi all! I have got a Debian 6.0.3 server, with nginx 1.0.11 and php5-fpm 5.3.10. I have a virtualhost using PHPBB. I randomly get Internal Server Error 500 for this virtualhost. There is no trace of any error in ngin…

---

## [Redirecting based on cookie value](https://www.ruby-forum.com/t/redirecting-based-on-cookie-value/216418)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [February 3, 2012, 8:28pm UTC](https://www.ruby-forum.com/t/redirecting-based-on-cookie-value/216418 "2012-02-03T20:28:17Z")

</div>

Hi, I’m want to redirect the user based on the value of a cookie, if present. The scenario is one where there is a “starter” homepage for first time users. As soon as users login, I write a cookie with the relative p…

---

## [Running phpmyadmin on non-standard dir](https://www.ruby-forum.com/t/running-phpmyadmin-on-non-standard-dir/216398)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [February 3, 2012, 5:37pm UTC](https://www.ruby-forum.com/t/running-phpmyadmin-on-non-standard-dir/216398 "2012-02-03T17:37:29Z")

</div>

hi. I’m new to Nginx. I’d like to make serve phpmyadmin on a non-standard url. I’m on debian, and following this howto works great: http://rubyist-journal.com/2010/02/28/howto-nginx-php5-mysql-phpmyadmin-ubuntu-shorte…

---

## [Optimizing and cleaning config file](https://www.ruby-forum.com/t/optimizing-and-cleaning-config-file/216377)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [February 2, 2012, 10:32pm UTC](https://www.ruby-forum.com/t/optimizing-and-cleaning-config-file/216377 "2012-02-02T22:32:42Z")

</div>

Can someone help optimize and clean my config file Im sure it can be made better, also would like it so its easier to add other servers to it Thanks Daniel Posted at Nginx Forum:

---

## [Autoindex directive in 'if' section](https://www.ruby-forum.com/t/autoindex-directive-in-if-section/216151)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 11\
**Last updated:** [February 2, 2012, 6:32pm UTC](https://www.ruby-forum.com/t/autoindex-directive-in-if-section/216151 "2012-02-02T18:32:02Z")

</div>

Hello, I would like to use the following in my conf file: location a/ { if ($host ~\* “”) { root “”; autoindex on; } } But that doesn’t work: ‘nginx: \[emerg\] “autoindex” directive is not allowed here’ What shou…

---

## [Rtsp over http response blocked by nginx](https://www.ruby-forum.com/t/rtsp-over-http-response-blocked-by-nginx/216271)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [February 2, 2012, 3:33pm UTC](https://www.ruby-forum.com/t/rtsp-over-http-response-blocked-by-nginx/216271 "2012-02-02T15:33:15Z")

</div>

Hello I am trying to use NGINX as reverse proxy for streaming using QuickTime and rtsp over http. QuicKTime send an http GET to my reverse proxy in a public zone, then my reverse proxy send the request to my video se…

---

## [Apply URL encoding during rewrite rule](https://www.ruby-forum.com/t/apply-url-encoding-during-rewrite-rule/216333)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [February 1, 2012, 10:00pm UTC](https://www.ruby-forum.com/t/apply-url-encoding-during-rewrite-rule/216333 "2012-02-01T22:00:07Z")

</div>

Hi, I need to do a redirect and pass the old URL to the redirected destination. How might I achieve this using nginx? I tried a rewrite rule simply: rewrite ^/(.\*) $scheme://$server\_addr/?redirect\_to=$scheme://$host$…

---

## [Files in location](https://www.ruby-forum.com/t/files-in-location/216306)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [February 1, 2012, 8:09am UTC](https://www.ruby-forum.com/t/files-in-location/216306 "2012-02-01T08:09:24Z")

</div>

Hello, I would like to set up a rule redirecting the root location to another address, but to serve files inside this location directly. I tried the following: location = / { rewrite .\* http://inter.net permanent; …

---

## [Error\_page 413 in nginx 1.1.14](https://www.ruby-forum.com/t/error-page-413-in-nginx-1-1-14/216303)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [February 1, 2012, 6:17am UTC](https://www.ruby-forum.com/t/error-page-413-in-nginx-1-1-14/216303 "2012-02-01T06:17:41Z")

</div>

Hi, I was using nginx 1.1.14, and I have an error\_page configuration like this client\_body\_max\_size 10m; error\_page 413 /error/http/413; When I POST-ed a 15mb file to /error/test, what happened is that /error/test …

---

## [Ngx\_openresty stable version 1.0.10.48 released!](https://www.ruby-forum.com/t/ngx-openresty-stable-version-1-0-10-48-released/216302)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [February 1, 2012, 5:57am UTC](https://www.ruby-forum.com/t/ngx-openresty-stable-version-1-0-10-48-released/216302 "2012-02-01T05:57:59Z")

</div>

Hello, folks! I’m happy to announce that the new stable release of ngx\_openresty, 1.0.10.48, has just been kicked out of door: http://openresty.org/#Download This is the 3rd stable release of ngx\_openresty that is ba…

---

## [Ngx\_lua module v0.4.1 released!](https://www.ruby-forum.com/t/ngx-lua-module-v0-4-1-released/216300)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [February 1, 2012, 5:08am UTC](https://www.ruby-forum.com/t/ngx-lua-module-v0-4-1-released/216300 "2012-02-01T05:08:39Z")

</div>

Hi, folks! I’m happy to announce the v0.4.1 release of our ngx\_lua module. You can get the release tarball from the download page: https://github.com/chaoslawful/lua-nginx-module/tags Here’s the change log compared t…

---

## [Ip\_hash load balancer incompatible with IPv6 compat. sockets](https://www.ruby-forum.com/t/ip-hash-load-balancer-incompatible-with-ipv6-compat-sockets/216269)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [January 31, 2012, 4:19pm UTC](https://www.ruby-forum.com/t/ip-hash-load-balancer-incompatible-with-ipv6-compat-sockets/216269 "2012-01-31T16:19:50Z")

</div>

I’m using nginx to distribute the load over 3 webservers using the ip\_hash method. When the listening socket is IPv4/IPv6 compatible ( listen \[::\]:443; ) only one of the backend servers are used. With the socket in …

---

## [IPv6 support for reverse proxy](https://www.ruby-forum.com/t/ipv6-support-for-reverse-proxy/216266)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [January 31, 2012, 3:29pm UTC](https://www.ruby-forum.com/t/ipv6-support-for-reverse-proxy/216266 "2012-01-31T15:29:03Z")

</div>

Hi, Can we use nginx to act as a reverse proxy for IPv6 servers? i.e., server { listen \[::\]:80; listen 80; server\_name kame-experiment.net \*.kame-experiment.net; location / { proxy\_pass http://\[2…

---

## [A low keepalive and limit\_conn](https://www.ruby-forum.com/t/a-low-keepalive-and-limit-conn/216264)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [January 31, 2012, 1:49pm UTC](https://www.ruby-forum.com/t/a-low-keepalive-and-limit-conn/216264 "2012-01-31T13:49:59Z")

</div>

Using keepalive (on zero) and connection limit, will the limit\_conn ever be hit if I had a low keepalive? keepalive\_timeout 0; limit\_conn\_zone $binary\_remote\_addr zone=addr:10m; limit\_conn addr 10;

---

## [HttpRewriteModule and use more than 10 variables](https://www.ruby-forum.com/t/httprewritemodule-and-use-more-than-10-variables/216258)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [January 31, 2012, 1:38pm UTC](https://www.ruby-forum.com/t/httprewritemodule-and-use-more-than-10-variables/216258 "2012-01-31T13:38:51Z")

</div>

Hi, In a rewrite, is it possible to use more than 9 variables ? How i can use $10, $11, … ? rewrite “^/img/(\[0-9a-zA-Z\]{1})(\[0-9a-zA-Z\]{7})(\[0-9a-zA-Z\]{1})(\[0-9a-zA-Z\]{7})/(\[0-9\]{4})(\[0-9\]{2})(\[0-9\]{2})/(\[0-9a-fA-F\]{…

---

## [Nginx-1.1.14](https://www.ruby-forum.com/t/nginx-1-1-14/216230)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [January 31, 2012, 11:42am UTC](https://www.ruby-forum.com/t/nginx-1-1-14/216230 "2012-01-31T11:42:18Z")

</div>

Changes with nginx 1.1.14 30 Jan 2012 \*) Feature: multiple "limit\_req" limits may be used simultaneously. \*) Bugfix: in error handling while connecting to a backend. Thanks to…

---

## [MP4 (H264) migrating from lighttpd to nginx](https://www.ruby-forum.com/t/mp4-h264-migrating-from-lighttpd-to-nginx/216210)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [January 30, 2012, 5:10pm UTC](https://www.ruby-forum.com/t/mp4-h264-migrating-from-lighttpd-to-nginx/216210 "2012-01-30T17:10:07Z")

</div>

It is great that MP4 module came out. So we decided to migrate our video streaming servers to nginx. In fact those are our last non-nginx webservers (not counting IIS). However we have some troubles. In our Flash play…

---

## [Invalidate cache entry using X-Accel-Expires](https://www.ruby-forum.com/t/invalidate-cache-entry-using-x-accel-expires/216201)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [January 29, 2012, 6:16pm UTC](https://www.ruby-forum.com/t/invalidate-cache-entry-using-x-accel-expires/216201 "2012-01-29T18:16:37Z")

</div>

Hello, Right now I’m invalidating cache entries using X-Accel-Expires 1 response with 302 redirect of the resource to itself. I want to ask for your opinion on two issues: Do you see other response code (other tha…

---

## [Can i collect stats without modifying nginx core code?](https://www.ruby-forum.com/t/can-i-collect-stats-without-modifying-nginx-core-code/216197)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [January 29, 2012, 11:38am UTC](https://www.ruby-forum.com/t/can-i-collect-stats-without-modifying-nginx-core-code/216197 "2012-01-29T11:38:21Z")

</div>

Hello, I’m trying to write a module that will collect extended stats, that is more then what is offered by stub\_status. I’ve dumped a couple of stats, but had to modify source code outside the module. Modifying vanill…

---

## [Some requests no tshowing up in access\_log](https://www.ruby-forum.com/t/some-requests-no-tshowing-up-in-access-log/216193)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [January 28, 2012, 6:15pm UTC](https://www.ruby-forum.com/t/some-requests-no-tshowing-up-in-access-log/216193 "2012-01-28T18:15:48Z")

</div>

Hi everybody, I’m having following setup: nginx \<-unix\_socket-\> uwsgi -\> django What I noticed is, that some accesses which are successfully forwarded to uwsgi are NOT logged in my nginx access\_log file. Is this the…

---

## [Nginx doesn't seem to log all accesses forwarded to usgi](https://www.ruby-forum.com/t/nginx-doesnt-seem-to-log-all-accesses-forwarded-to-usgi/216191)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [January 28, 2012, 6:13pm UTC](https://www.ruby-forum.com/t/nginx-doesnt-seem-to-log-all-accesses-forwarded-to-usgi/216191 "2012-01-28T18:13:20Z")

</div>

Hi everybody, I hope the message does NOT show up three times. My news client always reports errors and I don’t know whether the message was sent out or not. I’m having following setup: nginx \<-unix\_socket-\> uwsgi -\>…

---

## [Imaps proxy with imaps backend?](https://www.ruby-forum.com/t/imaps-proxy-with-imaps-backend/216188)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [January 28, 2012, 3:19pm UTC](https://www.ruby-forum.com/t/imaps-proxy-with-imaps-backend/216188 "2012-01-28T15:19:36Z")

</div>

Hello, From the forum posts that I can find, imaps/pops is not supported on the backend of an nginx proxy, is this true? Is this a planned feature? I ask because we have a situation where we would like to use our comm…

---

## [Client\_max\_body\_size per $request\_uri](https://www.ruby-forum.com/t/client-max-body-size-per-request-uri/216185)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [January 28, 2012, 2:17pm UTC](https://www.ruby-forum.com/t/client-max-body-size-per-request-uri/216185 "2012-01-28T14:17:46Z")

</div>

Hi, I have found similar topics on discussion with location based request but because I’m using a PHP software that by default handles everything through a single PHP file (including processing POST uploads of files) …

---

## [How to proxy\_pass POST with headers](https://www.ruby-forum.com/t/how-to-proxy-pass-post-with-headers/216170)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [January 28, 2012, 10:59am UTC](https://www.ruby-forum.com/t/how-to-proxy-pass-post-with-headers/216170 "2012-01-28T10:59:59Z")

</div>

Hi, I’m using Typo3 as CMS with Apache on Ubuntu 10.04. I’m trying to set Nginx as a reverse proxy with a typo3 extension evo\_nginx\_boost that uses memcached. I have everything running on the same machine, Nginx on p…

---

## [Possible memory leak nginx 1.1.12 with pcre and jit enabled](https://www.ruby-forum.com/t/possible-memory-leak-nginx-1-1-12-with-pcre-and-jit-enabled/216077)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [January 27, 2012, 12:34pm UTC](https://www.ruby-forum.com/t/possible-memory-leak-nginx-1-1-12-with-pcre-and-jit-enabled/216077 "2012-01-27T12:34:52Z")

</div>

Hi all. I compiled nginx against pcre 8.21 and jit enabled. With this scenario in a few days the nginx processes are using more than 100MiB of RAM each. The same scenario with nginx 1.1.12 compiled against the system …

---

## [Nginx ridiculously slow with PHP+SSL combined](https://www.ruby-forum.com/t/nginx-ridiculously-slow-with-php-ssl-combined/216145)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [January 27, 2012, 6:53am UTC](https://www.ruby-forum.com/t/nginx-ridiculously-slow-with-php-ssl-combined/216145 "2012-01-27T06:53:39Z")

</div>

So, I’m having an issue with SSL and fastcgi\_pass, specifically to PHP. PHP over standard http gets me over 6,000 requests per second, without stressing the CPU. It’s limited by somaxconn and maximum php children. S…

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

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