# Server

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

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

---

## [Http\_log\_module filter by status](https://www.ruby-forum.com/t/http-log-module-filter-by-status/220458)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [June 13, 2012, 9:37am UTC](https://www.ruby-forum.com/t/http-log-module-filter-by-status/220458 "2012-06-13T09:37:43Z")

</div>

I was interested in having nginx log 404s to their own file. Essentially, i hate 404s, so I like to parse access logs find and report all 404s. However, as-is, parsing large access logs can be quite inefficient since …

---

## [Duplicated directive on reverse proxy](https://www.ruby-forum.com/t/duplicated-directive-on-reverse-proxy/220530)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [June 12, 2012, 7:12pm UTC](https://www.ruby-forum.com/t/duplicated-directive-on-reverse-proxy/220530 "2012-06-12T19:12:28Z")

</div>

Hi, everyone, I’m going through some trouble with a nginx reverse proxy, and I’m kinda newbie to this tool. Fact is, I used to have 2 reverse proxies for addressing requests from Internet on port 80 to their respecti…

---

## [WordPress multisite/network domain mapping with multiple server blocks](https://www.ruby-forum.com/t/wordpress-multisite-network-domain-mapping-with-multiple-server-blocks/220533)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [June 12, 2012, 5:48pm UTC](https://www.ruby-forum.com/t/wordpress-multisite-network-domain-mapping-with-multiple-server-blocks/220533 "2012-06-12T17:48:55Z")

</div>

I’m thinking of setting up multiple server blocks with the same document root (all one WP mutisite), rather than one server block with a long list of aliases in the server\_name. Trivial set up would be that they are a…

---

## [Nginx and uwsgi](https://www.ruby-forum.com/t/nginx-and-uwsgi/220480)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [June 12, 2012, 3:19pm UTC](https://www.ruby-forum.com/t/nginx-and-uwsgi/220480 "2012-06-12T15:19:16Z")

</div>

nginx mailing list removed\_email\_address@domain.invalid http://mailman.nginx.org/mailman/listinfo/nginx

---

## [Video Streaming using non http backend, Ref ngx\_drizzle](https://www.ruby-forum.com/t/video-streaming-using-non-http-backend-ref-ngx-drizzle/220249)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 6\
**Last updated:** [June 12, 2012, 9:01am UTC](https://www.ruby-forum.com/t/video-streaming-using-non-http-backend-ref-ngx-drizzle/220249 "2012-06-12T09:01:35Z")

</div>

Hi All, I am trying to stream video it can be mp4, flv anything using nginx. The video streams in the form of 1024 size will be available from the backend non-http server. For achieveing this I followed the ngx\_http\_…

---

## [Sharing config between two sites](https://www.ruby-forum.com/t/sharing-config-between-two-sites/220511)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [June 12, 2012, 6:02am UTC](https://www.ruby-forum.com/t/sharing-config-between-two-sites/220511 "2012-06-12T06:02:50Z")

</div>

I’ve got two sites, example.com and beta.example.com. The configuration for these two sites is almost identical, except for the root directory (/var/www/sitename/live/public/ for the first domain, and /var/www/sitenam…

---

## [IPv6 fails for set\_real\_ip\_from in 1.2.1](https://www.ruby-forum.com/t/ipv6-fails-for-set-real-ip-from-in-1-2-1/220479)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [June 11, 2012, 9:30pm UTC](https://www.ruby-forum.com/t/ipv6-fails-for-set-real-ip-from-in-1-2-1/220479 "2012-06-11T21:30:17Z")

</div>

I noticed in the 1.2.1 changelog that set\_real\_ip\_from is supposed to support IPv6 addresses. Unfortunaly I get a configuration error when I try it. This works fine: set\_real\_ip\_from 127.0.0.1; real\_ip\_header X-Forw…

---

## [Display problem](https://www.ruby-forum.com/t/display-problem/220498)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [June 11, 2012, 8:57pm UTC](https://www.ruby-forum.com/t/display-problem/220498 "2012-06-11T20:57:34Z")

</div>

Hi all, i have just recently installed nginx. it works great but periodically the pages get all messed up. like now on this page http://www.sociology.org i posted an article and then tried to view but it’s all messed …

---

## [Error while connecting to apache from nginx running on same machine](https://www.ruby-forum.com/t/error-while-connecting-to-apache-from-nginx-running-on-same-machine/220408)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [June 11, 2012, 4:36pm UTC](https://www.ruby-forum.com/t/error-while-connecting-to-apache-from-nginx-running-on-same-machine/220408 "2012-06-11T16:36:16Z")

</div>

Hi, I have an LB setup with nginx for an ssl enabled website. It will be listening at 443 port. For some requests, i need to proxy them to apache running at 7443 port in the same machine. but when i send the request, …

---

## [Reverse proxy with Route Lookup Handler](https://www.ruby-forum.com/t/reverse-proxy-with-route-lookup-handler/220483)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [June 11, 2012, 4:23pm UTC](https://www.ruby-forum.com/t/reverse-proxy-with-route-lookup-handler/220483 "2012-06-11T16:23:58Z")

</div>

Hi, I need to configure Nginx as a reverse proxy. This is the scenario: server1.example.com (webserver) server2.example.com (webserver) proxy.example.com (reverse proxy) The connection from users whose data lives on…

---

## [Nginx + php-fpm and cookie](https://www.ruby-forum.com/t/nginx-php-fpm-and-cookie/220482)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [June 11, 2012, 4:22pm UTC](https://www.ruby-forum.com/t/nginx-php-fpm-and-cookie/220482 "2012-06-11T16:22:48Z")

</div>

HI, I dont know if it is nginx related or not, but i give a try here. we have a setup of nginx+php-fpm for cs cart shopping software. everything is works fine but one big problem. users can not login in all browsers …

---

## [Is this Usecase posible?](https://www.ruby-forum.com/t/is-this-usecase-posible/220467)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [June 11, 2012, 1:28pm UTC](https://www.ruby-forum.com/t/is-this-usecase-posible/220467 "2012-06-11T13:28:02Z")

</div>

Hi all, i have the following use case. I need an http/s Server that can do the following. Parse GET Request from the client → call an internal module that do something (that have an response) → use the response and m…

---

## [Disable logging for certain response](https://www.ruby-forum.com/t/disable-logging-for-certain-response/220470)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [June 11, 2012, 8:47am UTC](https://www.ruby-forum.com/t/disable-logging-for-certain-response/220470 "2012-06-11T08:47:32Z")

</div>

Hi I am using nginx lua to return a 302 for certain requests - probably about 50% of total requests e.g. (lua code) if (res.status == ngx.HTTP\_MOVED\_TEMPORARILY) then local loc = res.header\["X-Locatio…

---

## [What's the difference between fashion jeans and normal jeans?](https://www.ruby-forum.com/t/whats-the-difference-between-fashion-jeans-and-normal-jeans/220466)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [June 11, 2012, 4:40am UTC](https://www.ruby-forum.com/t/whats-the-difference-between-fashion-jeans-and-normal-jeans/220466 "2012-06-11T04:40:24Z")

</div>

Hey, I have a huge interest in clothes but I don’t get why people spend hundreds of pounds on jeans, when any good shop will have a pair that fit and look decent. I once when I was younger ignorantly bought some £210 …

---

## [How can i rewrite this?](https://www.ruby-forum.com/t/how-can-i-rewrite-this/220456)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [June 10, 2012, 12:57pm UTC](https://www.ruby-forum.com/t/how-can-i-rewrite-this/220456 "2012-06-10T12:57:32Z")

</div>

i want to rewrite: http://a.com/abcde.jpg to http://a.com/ab/cde.jpg here is my nginx config: rewrite “^/(\[a-z\]{2})(\[a-z\]{3}).jpg$” /$1/$2.jpg last; but it not works Posted at Nginx Forum:

---

## [Nginx worker segfault, NULL pool](https://www.ruby-forum.com/t/nginx-worker-segfault-null-pool/220414)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 7\
**Last updated:** [June 10, 2012, 12:50pm UTC](https://www.ruby-forum.com/t/nginx-worker-segfault-null-pool/220414 "2012-06-10T12:50:31Z")

</div>

Hi, Running nginx on ARM I’m having it segfault at about any request (those known not to crash are /status/nginx and /status/php-fpm). Attaching it with GDB I get the following trace: Program received signal SIGSEGV,…

---

## [Fastcgi\_cache php5-fpm and ssi problem](https://www.ruby-forum.com/t/fastcgi-cache-php5-fpm-and-ssi-problem/220450)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [June 9, 2012, 8:04pm UTC](https://www.ruby-forum.com/t/fastcgi-cache-php5-fpm-and-ssi-problem/220450 "2012-06-09T20:04:29Z")

</div>

Hi, I’m try to use ssi with fastcgi\_cache (fpm) with but the ssi isn’t executed. When I view the source, the include command is listed and nothing appends: Is there any incompatibility about running ssi and fastcgi…

---

## [Freebsd/jail: nginx ignores IP in listen directive](https://www.ruby-forum.com/t/freebsd-jail-nginx-ignores-ip-in-listen-directive/220437)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [June 9, 2012, 5:20pm UTC](https://www.ruby-forum.com/t/freebsd-jail-nginx-ignores-ip-in-listen-directive/220437 "2012-06-09T17:20:16Z")

</div>

FreeBSD 8.3/amd64 nginx 1.2.1 jail default config, but listen is: server { listen ip\_addr\_of\_jail:80; … } but $ telnet 127.0.0.1 80 gets answer from nginx. If I remark this listen directive - nginx isn’t …

---

## [Unable to start php-fpm](https://www.ruby-forum.com/t/unable-to-start-php-fpm/219272)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [June 9, 2012, 12:59pm UTC](https://www.ruby-forum.com/t/unable-to-start-php-fpm/219272 "2012-06-09T12:59:03Z")

</div>

Unable to start php-fpm. \[root@ip-10-28-197-14 html\]# service php-fpm start Starting php-fpm: \[ OK \] \[26-Apr-2012 07:22:32\] ERROR: \[pool www\] cannot get uid for user ‘apache…

---

## [Nginx default server not used](https://www.ruby-forum.com/t/nginx-default-server-not-used/217018)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [June 9, 2012, 10:41am UTC](https://www.ruby-forum.com/t/nginx-default-server-not-used/217018 "2012-06-09T10:41:42Z")

</div>

Hi, I am currently evaluating nginx as an apache replacement and came across some (at least for me) odd behavior and hope someone can explain to me what is happening. nginx is ignoring my default server and instead p…

---

## [Filtering access logs](https://www.ruby-forum.com/t/filtering-access-logs/220423)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [June 8, 2012, 7:39pm UTC](https://www.ruby-forum.com/t/filtering-access-logs/220423 "2012-06-08T19:39:05Z")

</div>

I have an nginx server that terminates SSL and subsequently logs usernames and passwords send in the URL string in the logs. There is a particular compliance regulation that required me to scrub these out with xxxx o…

---

## [Expires Headers under https](https://www.ruby-forum.com/t/expires-headers-under-https/220421)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [June 8, 2012, 6:40pm UTC](https://www.ruby-forum.com/t/expires-headers-under-https/220421 "2012-06-08T18:40:36Z")

</div>

Hey all, I’m having a Nginx problem with my Rails app. When I try setting Expires Headers for Static Assets in an https server block they 404. I’ve tried a couple different ways but can’t seem to get it to work. He…

---

## [Nginx configure error when use zsh](https://www.ruby-forum.com/t/nginx-configure-error-when-use-zsh/220407)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [June 8, 2012, 1:55pm UTC](https://www.ruby-forum.com/t/nginx-configure-error-when-use-zsh/220407 "2012-06-08T13:55:55Z")

</div>

Hello. nginx configure error when I use zsh. This is my environment: operating system: Linux(3.3.7-1-ARCH) zsh: 4.3.17 (i686-pc-linux-gnu) Nginx: 1.3.1 This is configure message: checking for OS Linux 3.3.7-1-…

---

## [Converse Comme des Garcons Play Online](https://www.ruby-forum.com/t/converse-comme-des-garcons-play-online/220401)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [June 8, 2012, 4:26am UTC](https://www.ruby-forum.com/t/converse-comme-des-garcons-play-online/220401 "2012-06-08T04:26:11Z")

</div>

Material used for the Converse Comme des Garcons Play Online are mostly corduroy, canvas and woolrich. This is not it! You can also pick various styles like converse comme des garcons play shoes on’s.We would like t…

---

## [Code coverage on nginx using lcov (gcov)](https://www.ruby-forum.com/t/code-coverage-on-nginx-using-lcov-gcov/220392)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [June 7, 2012, 11:00pm UTC](https://www.ruby-forum.com/t/code-coverage-on-nginx-using-lcov-gcov/220392 "2012-06-07T23:00:46Z")

</div>

Hi I am trying to measure code coverage on nginx with lcov (gcov) tool. So far I am able to get code coverage results, but they are always the same. Here is a short recap on what I’ve done. Downloaded source code. $…

---

## [Nginx-1.3.1](https://www.ruby-forum.com/t/nginx-1-3-1/220295)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 10\
**Last updated:** [June 7, 2012, 10:24pm UTC](https://www.ruby-forum.com/t/nginx-1-3-1/220295 "2012-06-07T22:24:32Z")

</div>

Changes with nginx 1.3.1 05 Jun 2012 \*) Security: now nginx/Windows ignores trailing dot in URI path component, and does not allow URIs with ":$" in it. Thanks to Vladimir …

---

## [Status of Nginx centralised logging](https://www.ruby-forum.com/t/status-of-nginx-centralised-logging/220362)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [June 7, 2012, 7:33pm UTC](https://www.ruby-forum.com/t/status-of-nginx-centralised-logging/220362 "2012-06-07T19:33:12Z")

</div>

Hi all - As many of us will have discovered over the course of our careers, centralised/non-local logging is an important part of any non-trivial infrastructure. I’m aware of different patches that add syslogging cap…

---

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

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [June 7, 2012, 3:23pm UTC](https://www.ruby-forum.com/t/ngx-openresty-devel-version-1-0-15-9-released/220385 "2012-06-07T15:23:42Z")

</div>

Hello! After more than one week’s active development, the new development version of ngx\_openresty, 1.0.15.9, is now released: OpenResty® - Open source Below is the change log for this release: upgraded LuaNginxMo…

---

## [Possible to limit\_req based on requests coming from a Class C (/24 subnet) instead of per IP (/32)?](https://www.ruby-forum.com/t/possible-to-limit-req-based-on-requests-coming-from-a-class-c-24-subnet-instead-of-per-ip-32/220371)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [June 7, 2012, 10:34am UTC](https://www.ruby-forum.com/t/possible-to-limit-req-based-on-requests-coming-from-a-class-c-24-subnet-instead-of-per-ip-32/220371 "2012-06-07T10:34:26Z")

</div>

Hello, Is it Possible to limit\_req based on requests coming from a Class C (/24 subnet) instead of per IP (/32) ? If so can anybody please provide an example. Regards, Joseph

---

## [Exposing request start time as a variable to use in a custom header](https://www.ruby-forum.com/t/exposing-request-start-time-as-a-variable-to-use-in-a-custom-header/220368)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [June 7, 2012, 4:49am UTC](https://www.ruby-forum.com/t/exposing-request-start-time-as-a-variable-to-use-in-a-custom-header/220368 "2012-06-07T04:49:39Z")

</div>

Hi, I’m using New Relic RPM for performance profiling and they have an optional metric for time spent in request queueing. In order to compute this metric, they require that the frontend server add an X-QUEUE-START r…

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

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