# Server

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

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

---

## [Memory consumption in case of huge number of configs](https://www.ruby-forum.com/t/memory-consumption-in-case-of-huge-number-of-configs/220729)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [June 20, 2012, 7:43am UTC](https://www.ruby-forum.com/t/memory-consumption-in-case-of-huge-number-of-configs/220729 "2012-06-20T07:43:15Z")

</div>

Hello, I noticed following behavior of nginx recently, everything I describe here is related to the case when we have huge number of configuration files(\> 1000). Once nginx is started it occupies more than 100MB of m…

---

## [Location regular expression not filtering some characters](https://www.ruby-forum.com/t/location-regular-expression-not-filtering-some-characters/220760)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 6\
**Last updated:** [June 19, 2012, 8:33pm UTC](https://www.ruby-forum.com/t/location-regular-expression-not-filtering-some-characters/220760 "2012-06-19T20:33:24Z")

</div>

I am looking to filter all characters other then those specified in the “location” regular expression. For example, \[\\w.\]+$ should only allow one or more letters, numbers, underscore and period just like \[a-zA-Z0-9\_.\] …

---

## [Best approach for Dynamic routing](https://www.ruby-forum.com/t/best-approach-for-dynamic-routing/220743)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [June 19, 2012, 4:19pm UTC](https://www.ruby-forum.com/t/best-approach-for-dynamic-routing/220743 "2012-06-19T16:19:33Z")

</div>

Hi All, What is the best approach for implementing Dynamic routing for the below use case -Route web service calls to a separate server (location based) -Route user UI Web requests to a separate server (location base…

---

## [Nginx keeps passing the same http\_cookie to uwsgi](https://www.ruby-forum.com/t/nginx-keeps-passing-the-same-http-cookie-to-uwsgi/220735)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [June 19, 2012, 3:41pm UTC](https://www.ruby-forum.com/t/nginx-keeps-passing-the-same-http-cookie-to-uwsgi/220735 "2012-06-19T15:41:33Z")

</div>

I have a small python app running via uwsgi with requests served by nginx. I’m printing the environment variables… and it looks like after a couple of ok requests, nginx is sending the same HTTP\_COOKIE param for unre…

---

## [Nginx hangs when you use try\_files, map, request\_uri and long url](https://www.ruby-forum.com/t/nginx-hangs-when-you-use-try-files-map-request-uri-and-long-url/220730)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [June 19, 2012, 12:52pm UTC](https://www.ruby-forum.com/t/nginx-hangs-when-you-use-try-files-map-request-uri-and-long-url/220730 "2012-06-19T12:52:34Z")

</div>

Hi, For some reason, when I use long key with Map Module the whole nginx seems to hang. Some background: I have two backends, say old\_app and new\_app. both have own named locations, @new\_app and old\_app. In order to…

---

## [Correct commands to enable nonssl, ssl, ipv6, spdy](https://www.ruby-forum.com/t/correct-commands-to-enable-nonssl-ssl-ipv6-spdy/220677)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [June 18, 2012, 12:48pm UTC](https://www.ruby-forum.com/t/correct-commands-to-enable-nonssl-ssl-ipv6-spdy/220677 "2012-06-18T12:48:23Z")

</div>

Wanting to enable ssl+spdy+ipv6 on port 443, and ipv6 on port 80. server { server\_name secure.domain.com; # listen \[::\]80; listen \[::\]:443 ssl spdy default ipv6only=on; #listen \[::\]:443; #l…

---

## [Events module documentation](https://www.ruby-forum.com/t/events-module-documentation/220685)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [June 18, 2012, 9:18am UTC](https://www.ruby-forum.com/t/events-module-documentation/220685 "2012-06-18T09:18:03Z")

</div>

Hello, I can find documentation for the events module on the wiki but cannot find it on nginx.org. I must be missing something. Would someone please direct me to the events module documentation on nginx.org? Also, …

---

## [Joomla multilingual subdomain redirect/rewrite](https://www.ruby-forum.com/t/joomla-multilingual-subdomain-redirect-rewrite/220664)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [June 17, 2012, 8:15pm UTC](https://www.ruby-forum.com/t/joomla-multilingual-subdomain-redirect-rewrite/220664 "2012-06-17T20:15:44Z")

</div>

Hi all, I have a multilingual Joomla website, whose URL currently look like the following : http://www.example.com/fr/test/test.html (note the FR posision after the server name) In order to achieve some SEO, I’d lik…

---

## [Try\_files acting weird, maybe affected by IF?](https://www.ruby-forum.com/t/try-files-acting-weird-maybe-affected-by-if/220684)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [June 17, 2012, 10:47am UTC](https://www.ruby-forum.com/t/try-files-acting-weird-maybe-affected-by-if/220684 "2012-06-17T10:47:16Z")

</div>

Hi, I’ve been trying to force nginx to dynamically handle hosts. This is my configuration file server { listen 127.0.0.1:80; server\_name ~^(:?(?.+).)?(?\[^.\]+.\[^.\]+)$; index …

---

## [Nginx Server : Desired Domain Name on Local Host](https://www.ruby-forum.com/t/nginx-server-desired-domain-name-on-local-host/220681)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [June 16, 2012, 7:32pm UTC](https://www.ruby-forum.com/t/nginx-server-desired-domain-name-on-local-host/220681 "2012-06-16T19:32:21Z")

</div>

Hi, I’m on Fedora 16 with nginx installed using yum. /etc/nginx/conf.d contains : default.conf ssl.conf virtual.conf /etc/init.d/ contains : nginx (to start,stop etc server) /usr/share/nginx …

---

## [Why return HTTP 500 when use the require "resty.memcached" in HttpLuaModule module?](https://www.ruby-forum.com/t/why-return-http-500-when-use-the-require-resty-memcached-in-httpluamodule-module/220674)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [June 16, 2012, 5:33pm UTC](https://www.ruby-forum.com/t/why-return-http-500-when-use-the-require-resty-memcached-in-httpluamodule-module/220674 "2012-06-16T17:33:45Z")

</div>

i use agentzh’s three modules. CentOS 5.5 x86\_64 nginx version is 1.3.1 LUA version: \[root@db2 conf\]# \*lua -v \*Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio \[root@db2 conf\]# \*luac -v \*Lua 5.1.5 Copyright…

---

## [Route non-existant .php requests through try\_files?](https://www.ruby-forum.com/t/route-non-existant-php-requests-through-try-files/220645)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [June 16, 2012, 5:59am UTC](https://www.ruby-forum.com/t/route-non-existant-php-requests-through-try-files/220645 "2012-06-16T05:59:06Z")

</div>

Hi everyone, I’m investigating moving one of my sites from another web server to Nginx. The app is a PHP app that uses the “front controller” pattern (everything routes via index.php), and the app takes care of URL ro…

---

## [Ngx\_openresty devel version 1.0.15.11 released](https://www.ruby-forum.com/t/ngx-openresty-devel-version-1-0-15-11-released/220673)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [June 16, 2012, 5:50am UTC](https://www.ruby-forum.com/t/ngx-openresty-devel-version-1-0-15-11-released/220673 "2012-06-16T05:50:20Z")

</div>

Hi, folks! After more than one week’s active development, I’m happy to announce that the new development version of ngx\_openresty, 1.0.15.11, is now released: OpenResty® - Open source Below is the change log for thi…

---

## [An unexpected newline appears when use memc and echo\_location\_async, how to delete the newline?](https://www.ruby-forum.com/t/an-unexpected-newline-appears-when-use-memc-and-echo-location-async-how-to-delete-the-newline/220661)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [June 16, 2012, 5:36am UTC](https://www.ruby-forum.com/t/an-unexpected-newline-appears-when-use-memc-and-echo-location-async-how-to-delete-the-newline/220661 "2012-06-16T05:36:52Z")

</div>

I use the agenzh’s two modules \*\* nginx configuration: location ~ "^/property/(\[0-9\]+)" { charset utf-8; default\_type 'text/javascript'; echo -n "$arg\_callback({\\"property\_$1\\":\\""; echo\_location\_asy…

---

## [HP-UX (IA64) sendmsg() failed](https://www.ruby-forum.com/t/hp-ux-ia64-sendmsg-failed/220476)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [June 16, 2012, 3:14am UTC](https://www.ruby-forum.com/t/hp-ux-ia64-sendmsg-failed/220476 "2012-06-16T03:14:52Z")

</div>

nginx nginx-1.2.1 OS HP-UX B.11.23 U ia64 built by gcc 4.2.3 When I start the nginx server,it throws some errors. The error.log contains 2012/06/11 16:46:07 \[notice\] 6820#0: using the “/dev/poll” event method 2012/…

---

## [SEO language URI redirection + existing directories](https://www.ruby-forum.com/t/seo-language-uri-redirection-existing-directories/220667)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [June 15, 2012, 6:08pm UTC](https://www.ruby-forum.com/t/seo-language-uri-redirection-existing-directories/220667 "2012-06-15T18:08:37Z")

</div>

Hello, I currently have URI built to have URI like website.my/en made to send the content from ‘website.my’ in the en language. My Ngingx conf is as follows: location ~\* “^/\[a-z\]{2}(/.\*)?$” { rewrite “^/(\[a-z\]{2})/…

---

## [An unexpected newline appears when use memc and echo location async, how to delete the newline?](https://www.ruby-forum.com/t/an-unexpected-newline-appears-when-use-memc-and-echo-location-async-how-to-delete-the-newline/220660)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [June 15, 2012, 3:57pm UTC](https://www.ruby-forum.com/t/an-unexpected-newline-appears-when-use-memc-and-echo-location-async-how-to-delete-the-newline/220660 "2012-06-15T15:57:07Z")

</div>

I use the agenzh’s two modules \*nginx configuration: \* location ~ “^/property/(\[0-9\]+)” { charset utf-8; default\_type ‘text/javascript’; echo -n “$arg\_callback({"property\_$1":"”; echo\_location\_async /statistic/o…

---

## [Fwd: Announcing SPDY draft 2 implementation in nginx](https://www.ruby-forum.com/t/fwd-announcing-spdy-draft-2-implementation-in-nginx/220658)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [June 15, 2012, 3:40pm UTC](https://www.ruby-forum.com/t/fwd-announcing-spdy-draft-2-implementation-in-nginx/220658 "2012-06-15T15:40:45Z")

</div>

For those who don’t read -devel but still want to try the patch: http://nginx.org/patches/spdy/ -------- Original Message -------- Subject: Announcing SPDY draft 2 implementation in nginx Date: Fri, 15 Jun 2012 16:40…

---

## [Different cache\_valid per location](https://www.ruby-forum.com/t/different-cache-valid-per-location/220657)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [June 15, 2012, 12:42pm UTC](https://www.ruby-forum.com/t/different-cache-valid-per-location/220657 "2012-06-15T12:42:30Z")

</div>

Hi, I’m trying to find the correct way to have different cache times per location. The problem I have is that all locations are redirected using try\_files to the same file and then to fastcgi. I was thinking about s…

---

## [Proxy\_next\_upstream, only "connect" timeout?, try 2](https://www.ruby-forum.com/t/proxy-next-upstream-only-connect-timeout-try-2/220654)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [June 15, 2012, 12:30pm UTC](https://www.ruby-forum.com/t/proxy-next-upstream-only-connect-timeout-try-2/220654 "2012-06-15T12:30:14Z")

</div>

regarding my original email: http://article.gmane.org/gmane.comp.web.nginx.english/34175 i assume the silence means there is no such way. would it be hard to implement it? i can try it, but i’d need to know if it’s a…

---

## [Nginx and TPROXY](https://www.ruby-forum.com/t/nginx-and-tproxy/220648)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [June 15, 2012, 7:56am UTC](https://www.ruby-forum.com/t/nginx-and-tproxy/220648 "2012-06-15T07:56:45Z")

</div>

Hi all, I just run into the need to have nginx support the Linux TPROXY feature: there is not REDIRECT target for IPv6. As there is no support for TPROXY in nginx I created a small patch for core & http modules again…

---

## [Running mailman within a domain](https://www.ruby-forum.com/t/running-mailman-within-a-domain/220598)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 10\
**Last updated:** [June 14, 2012, 11:59pm UTC](https://www.ruby-forum.com/t/running-mailman-within-a-domain/220598 "2012-06-14T23:59:57Z")

</div>

Greetings, this is my first take at nginx. I try to add /cgi-bin/mailman/… to an existing server instance (mail.sys4.de). At the moment I can call scripts directly e.g. https://mail.sys4.de/cgi-bin/mailman/listinfo w…

---

## [Nginx Log Parser](https://www.ruby-forum.com/t/nginx-log-parser/196203)

<div class="topic-metadata">

**Author:** [@valor](https://www.ruby-forum.com/u/valor)\
**Replies:** 1\
**Last updated:** [June 14, 2012, 10:59pm UTC](https://www.ruby-forum.com/t/nginx-log-parser/196203 "2012-06-14T22:59:09Z")

</div>

Hello Everyone, First pardon me if this have already been discussed in the russian mailinglist. Second, thank you igor for this wonderful software, it’s amazing speed and stability. After googling and searching arou…

---

## [500 Internal Server Error only on wp-admin/ directory](https://www.ruby-forum.com/t/500-internal-server-error-only-on-wp-admin-directory/220604)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [June 14, 2012, 8:26am UTC](https://www.ruby-forum.com/t/500-internal-server-error-only-on-wp-admin-directory/220604 "2012-06-14T08:26:53Z")

</div>

I upgraded my Wordpress install (via svn) and now trying to access the wp-admin/ directory results in a 500 Internal Server Error, despite the fact my config hasn’t changed at all. The most annoying part is that no er…

---

## [Nginx proxy overhead with / out keep alive requests](https://www.ruby-forum.com/t/nginx-proxy-overhead-with-out-keep-alive-requests/220542)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [June 13, 2012, 10:50pm UTC](https://www.ruby-forum.com/t/nginx-proxy-overhead-with-out-keep-alive-requests/220542 "2012-06-13T22:50:44Z")

</div>

I have a test setup to measure the nginx overhead when plugged in front of a Jboss tomcat server. In tomcat I have deployed a test.jsp and use ab to measure the performance with the following scenarios With out keep …

---

## [Rewrite url segment staging site and live site](https://www.ruby-forum.com/t/rewrite-url-segment-staging-site-and-live-site/220531)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [June 13, 2012, 6:31pm UTC](https://www.ruby-forum.com/t/rewrite-url-segment-staging-site-and-live-site/220531 "2012-06-13T18:31:55Z")

</div>

I have a staging site that I test anything relating to the website before we deploy. I have an nginx config that I also test with for this staging site. I wanted to rewrite a uri segment where a section of the site c…

---

## [Proxy\_next\_upstream, only "connect" timeout?](https://www.ruby-forum.com/t/proxy-next-upstream-only-connect-timeout/220573)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [June 13, 2012, 2:10pm UTC](https://www.ruby-forum.com/t/proxy-next-upstream-only-connect-timeout/220573 "2012-06-13T14:10:02Z")

</div>

hi, is there any way to tell nginx to fallback to the next upstream in case of timeout, but only if the timeout occured during connection (for example because the upstream’s backlog is full), and not when the upstre…

---

## [PROPFIND and OPTIONS support in Nginx?](https://www.ruby-forum.com/t/propfind-and-options-support-in-nginx/220468)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [June 13, 2012, 1:06pm UTC](https://www.ruby-forum.com/t/propfind-and-options-support-in-nginx/220468 "2012-06-13T13:06:20Z")

</div>

I was wondering why the Nginx devs do not add WebDAV support for PROPFIND and OPTIONS. There is a module available in Github but still, I would love to have this officially supported by Nginx: Are there any plans to …

---

## [Ngx\_openresty stable version 1.0.15.10 released](https://www.ruby-forum.com/t/ngx-openresty-stable-version-1-0-15-10-released/220570)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [June 13, 2012, 12:50pm UTC](https://www.ruby-forum.com/t/ngx-openresty-stable-version-1-0-15-10-released/220570 "2012-06-13T12:50:34Z")

</div>

Hello, folks! I’m happy to announce that the new stable version of ngx\_openresty, 1.0.15.10, has just been released: OpenResty® - Open source This release is essentially equivalent to the devel version 1.0.15.9 exce…

---

## [Nginx clear static file cache without restarting](https://www.ruby-forum.com/t/nginx-clear-static-file-cache-without-restarting/220554)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [June 13, 2012, 12:37pm UTC](https://www.ruby-forum.com/t/nginx-clear-static-file-cache-without-restarting/220554 "2012-06-13T12:37:43Z")

</div>

i’m using nginx1.0.15 stable to serve static files, and with following configurations: sendfile on; tcp\_nopush on; tcp\_nodelay on; open\_file\_cache max=1048000 inactive=604800s; open\_file\_cache\_min\_uses 1;…

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

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