# Server

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

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

---

## [Nginx-1.2.5](https://www.ruby-forum.com/t/nginx-1-2-5/224479)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [November 14, 2012, 3:45am UTC](https://www.ruby-forum.com/t/nginx-1-2-5/224479 "2012-11-14T03:45:15Z")

</div>

Changes with nginx 1.2.5 13 Nov 2012 \*) Feature: the "optional\_no\_ca" parameter of the “ssl\_verify\_client” directive. Thanks to Mike K. and Eric O’Connor. \*) Feature: the $b…

---

## [GeoIP country blocking - whitelist specific IPs](https://www.ruby-forum.com/t/geoip-country-blocking-whitelist-specific-ips/224458)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [November 13, 2012, 12:24pm UTC](https://www.ruby-forum.com/t/geoip-country-blocking-whitelist-specific-ips/224458 "2012-11-13T12:24:13Z")

</div>

Hello NGINX users, I’m facing a little issue with country bans over GeoIP. I’m using the following code within my server directive: if ($geoip\_country\_code ~ (BR|CN|KR|RU) ) { return 123; } 123 returns an error pag…

---

## [Problem with filename encoding](https://www.ruby-forum.com/t/problem-with-filename-encoding/224471)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 6\
**Last updated:** [November 13, 2012, 10:42am UTC](https://www.ruby-forum.com/t/problem-with-filename-encoding/224471 "2012-11-13T10:42:29Z")

</div>

Hello list, I got an issue with a filename containing “strange” characters. It seems that nginx is not able to url\_decode correctly, and then get the right file. Yes, the filename is ugly : “Capture dcran 2010-09-25…

---

## [Nginx, the future of SPDY and End-of-Life for SPDY/2](https://www.ruby-forum.com/t/nginx-the-future-of-spdy-and-end-of-life-for-spdy-2/224433)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [November 12, 2012, 3:48pm UTC](https://www.ruby-forum.com/t/nginx-the-future-of-spdy-and-end-of-life-for-spdy-2/224433 "2012-11-12T15:48:38Z")

</div>

Hi, The SPDY/2 patch at http://nginx.org/patches/spdy/ hasn’t seen any development in the last three months despite a number of TODO and XXX marks in the code. From nginx-dev@ talk I’ve understood the patch in consid…

---

## [Valid\_referers directive not working correctly](https://www.ruby-forum.com/t/valid-referers-directive-not-working-correctly/224442)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [November 12, 2012, 10:47am UTC](https://www.ruby-forum.com/t/valid-referers-directive-not-working-correctly/224442 "2012-11-12T10:47:04Z")

</div>

I am trying to block all requests which do not come from my own server. A quick read of the nginx wiki led me to the valid\_referers directive. I implemented it like: server { listen 80; server\_name ~^(?.+).my-doma…

---

## [How many connections can nginx handle?](https://www.ruby-forum.com/t/how-many-connections-can-nginx-handle/224370)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [November 12, 2012, 9:31am UTC](https://www.ruby-forum.com/t/how-many-connections-can-nginx-handle/224370 "2012-11-12T09:31:38Z")

</div>

I have a server running proxy\_pass the http request(mainly GET,html,jpg etc.) to backend server(20+ server running nginx cache). this server with 32 core CPU,64G RAM,2X 10G NIC,RHEL 6.3,backend server with 1000M NIC. …

---

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

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [November 12, 2012, 5:40am UTC](https://www.ruby-forum.com/t/ngx-openresty-devel-version-1-2-4-7-released/224438 "2012-11-12T05:40:47Z")

</div>

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

---

## [Nginx reload vs restart](https://www.ruby-forum.com/t/nginx-reload-vs-restart/224428)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [November 11, 2012, 8:47pm UTC](https://www.ruby-forum.com/t/nginx-reload-vs-restart/224428 "2012-11-11T20:47:15Z")

</div>

Hello all I am new to nginx and wanted to confirm if my understanding is correct. To retart nginx like any other service would cause downtime. If I change nginx configurations I can do a reload to cause the new confi…

---

## [Cache manager process exited with fatal code 2 and cannot be respawned](https://www.ruby-forum.com/t/cache-manager-process-exited-with-fatal-code-2-and-cannot-be-respawned/224303)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 14\
**Last updated:** [November 9, 2012, 9:38pm UTC](https://www.ruby-forum.com/t/cache-manager-process-exited-with-fatal-code-2-and-cannot-be-respawned/224303 "2012-11-09T21:38:48Z")

</div>

Hi, after restarting nginx I find 2012/11/07 10:24:02 \[alert\] 23635#0: 512 worker\_connections are not enough 2012/11/07 10:24:02 \[alert\] 23636#0: 512 worker\_connections are not enough 2012/11/07 10:24:04 \[alert\] 23…

---

## [Nginx\_status not found](https://www.ruby-forum.com/t/nginx-status-not-found/224384)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [November 9, 2012, 4:25pm UTC](https://www.ruby-forum.com/t/nginx-status-not-found/224384 "2012-11-09T16:25:26Z")

</div>

Hi, i use nginx as a proxy for apache on Gentoo to deliver only static contents When i try to acces http://myhost/nginx\_status i got an error: Not Found The requested URL /nginx\_status was not found on this server. n…

---

## [Nginx not showing client ip](https://www.ruby-forum.com/t/nginx-not-showing-client-ip/224382)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [November 9, 2012, 4:23pm UTC](https://www.ruby-forum.com/t/nginx-not-showing-client-ip/224382 "2012-11-09T16:23:05Z")

</div>

Dear All, I have setup nginx reverse proxy with IIS webserver. Client —\> Nginx RP —\> IIS 7 But i am unable to get client ip on IIS server’s log. i am getting Ngnix server’s ip. Can anybody help me to achieve this ? …

---

## [Create a virtual-host (server block)](https://www.ruby-forum.com/t/create-a-virtual-host-server-block/224364)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [November 9, 2012, 10:00am UTC](https://www.ruby-forum.com/t/create-a-virtual-host-server-block/224364 "2012-11-09T10:00:52Z")

</div>

hello I try to put a virtual host (server block) on my website, i have some issue. I have read the nginx tutorial for creat server block but after a lot of time i can’t get my server block and i dont understand why. …

---

## [Can I really assume location match start with /?](https://www.ruby-forum.com/t/can-i-really-assume-location-match-start-with/224371)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [November 9, 2012, 5:02am UTC](https://www.ruby-forum.com/t/can-i-really-assume-location-match-start-with/224371 "2012-11-09T05:02:53Z")

</div>

From the doc, it said… ========== location / { matches any query, since all queries begin with /, but regular ========== But I am wondering, if it always start with /, why not use ^ instead? e.g. location ^/ { l…

---

## [Fastcgi\_intercept\_errors & error\_page](https://www.ruby-forum.com/t/fastcgi-intercept-errors-error-page/224257)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [November 9, 2012, 4:34am UTC](https://www.ruby-forum.com/t/fastcgi-intercept-errors-error-page/224257 "2012-11-09T04:34:46Z")

</div>

According to the doc: http://wiki.nginx.org/HttpFastcgiModule#fastcgi\_intercept\_errors Note: You need to explicitly define the error\_page handler for this for it to be useful. As Igor says, “nginx does not intercept …

---

## [No upstream\_response\_time in access log file](https://www.ruby-forum.com/t/no-upstream-response-time-in-access-log-file/224216)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [November 9, 2012, 4:12am UTC](https://www.ruby-forum.com/t/no-upstream-response-time-in-access-log-file/224216 "2012-11-09T04:12:32Z")

</div>

i use nginx as reverse proxy server , and php-fpm as fast cgi upstream. i found some access in nginx access log file doesen’t has a “$upstream\_response\_time” value but a “-” character instead , and also has “$re…

---

## [How to view Nginx wiki history?](https://www.ruby-forum.com/t/how-to-view-nginx-wiki-history/224211)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [November 9, 2012, 4:09am UTC](https://www.ruby-forum.com/t/how-to-view-nginx-wiki-history/224211 "2012-11-09T04:09:36Z")

</div>

For example, this page: http://wiki.nginx.org/WordPress In the Google cache: http://webcache.googleusercontent.com/search?q=cache:\_fqHWtIaxmsJ:wiki.nginx.org/WordPress+&cd=1&hl=zh-CN&ct=clnk It contains the following …

---

## [Nginx auth\_basic with proxy pass to tomcat](https://www.ruby-forum.com/t/nginx-auth-basic-with-proxy-pass-to-tomcat/224292)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 6\
**Last updated:** [November 9, 2012, 12:07am UTC](https://www.ruby-forum.com/t/nginx-auth-basic-with-proxy-pass-to-tomcat/224292 "2012-11-09T00:07:38Z")

</div>

Hi Guys, I need to add basic auth to my home page (index.html) (Served by nginx) and other directories resides on tomcat7. is there anyway i can add only authentication to index.html . i was using the following ngi…

---

## [I have a issue with virtual host](https://www.ruby-forum.com/t/i-have-a-issue-with-virtual-host/224352)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [November 8, 2012, 4:59pm UTC](https://www.ruby-forum.com/t/i-have-a-issue-with-virtual-host/224352 "2012-11-08T16:59:58Z")

</div>

hy everybody I try to create a virtual host (server block) on nginx, and i have two issue. When i m going to\* http://localhost\* ,i see my website But when i try to go to the virtual host (server block) \* http://loca…

---

## [I have a issue with a server block (virtual host)](https://www.ruby-forum.com/t/i-have-a-issue-with-a-server-block-virtual-host/224338)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [November 7, 2012, 10:45pm UTC](https://www.ruby-forum.com/t/i-have-a-issue-with-a-server-block-virtual-host/224338 "2012-11-07T22:45:31Z")

</div>

hy everybody I try to create a virtual host (server block) on nginx, and i have two issue. When i m going to\* http://localhost\* ,i see my website But when i try to go to the virtual host (server block) \* http://loca…

---

## [502 Bad Gateway - Wordpress](https://www.ruby-forum.com/t/502-bad-gateway-wordpress/217154)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [November 7, 2012, 4:00pm UTC](https://www.ruby-forum.com/t/502-bad-gateway-wordpress/217154 "2012-11-07T16:00:23Z")

</div>

Greetings, I’m having another issue with my nginx + php-fpm + mysql install. I’ve been having a lot of issues today after fixing my previous one and I’ve finally decided that I am stumped on this one. Ok, so I am try…

---

## [Load balancing between 3 servers where nginx and apache installed on each of them](https://www.ruby-forum.com/t/load-balancing-between-3-servers-where-nginx-and-apache-installed-on-each-of-them/224329)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [November 7, 2012, 3:50pm UTC](https://www.ruby-forum.com/t/load-balancing-between-3-servers-where-nginx-and-apache-installed-on-each-of-them/224329 "2012-11-07T15:50:27Z")

</div>

Hello, I have 3 servers and on each server is installed nginx and apache. I want to set these 3 servers load balance each other. One of them will be main server that will accept the traffic from clients and balance t…

---

## [Nginx auth\_basic with proxy pass to tomcat](https://www.ruby-forum.com/t/nginx-auth-basic-with-proxy-pass-to-tomcat/226408)

<div class="topic-metadata">

**Author:** [@Tharanga\_Abeyseela](https://www.ruby-forum.com/u/Tharanga_Abeyseela)\
**Replies:** 1\
**Last updated:** [November 7, 2012, 11:12am UTC](https://www.ruby-forum.com/t/nginx-auth-basic-with-proxy-pass-to-tomcat/226408 "2012-11-07T11:12:32Z")

</div>

Hi Guys, I need to add basic auth to my home page (index.html) (Served by nginx) and other directories resides on tomcat7. is there anyway i can add only authentication to index.html . i was using the following ngi…

---

## [Sticky module was -\> RE: AJP](https://www.ruby-forum.com/t/sticky-module-was-re-ajp/224293)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [November 7, 2012, 5:57am UTC](https://www.ruby-forum.com/t/sticky-module-was-re-ajp/224293 "2012-11-07T05:57:37Z")

</div>

Hi Late reply, wondering if any one has any example of setting up stick module and using jsessionid cookie ? Alex

---

## [Writing the total request time in seconds to an nginx access log, possibly using a calculated variab](https://www.ruby-forum.com/t/writing-the-total-request-time-in-seconds-to-an-nginx-access-log-possibly-using-a-calculated-variab/224287)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [November 6, 2012, 11:32pm UTC](https://www.ruby-forum.com/t/writing-the-total-request-time-in-seconds-to-an-nginx-access-log-possibly-using-a-calculated-variab/224287 "2012-11-06T23:32:59Z")

</div>

I’m trying to modify my nginx access log format to include the request duration, in seconds. I see two possible variables I could use: $request\_time (http://wiki.nginx.org/HttpLogModule#log\_format) $upstream\_resp…

---

## [Any caveat in using post\_action?](https://www.ruby-forum.com/t/any-caveat-in-using-post-action/224281)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [November 6, 2012, 3:43pm UTC](https://www.ruby-forum.com/t/any-caveat-in-using-post-action/224281 "2012-11-06T15:43:47Z")

</div>

Hi, I am going to use post\_action for mirroring the load for performance testing to new backend. But according to the doc: Note: this directive “has subtleties” according to Maxim D., so use at your own risk. S…

---

## [Example.com/foo redirect to example.com/foo/index.php](https://www.ruby-forum.com/t/example-com-foo-redirect-to-example-com-foo-index-php/224279)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [November 6, 2012, 2:38pm UTC](https://www.ruby-forum.com/t/example-com-foo-redirect-to-example-com-foo-index-php/224279 "2012-11-06T14:38:21Z")

</div>

hello, my config looks like: server { listen 443; server\_name foobar; access\_log /var/log/nginx/https.access\_log; error\_log /var/log/nginx/https.error\_log debug; index index.php index.h…

---

## [Dynamic error\_log location using regex captures](https://www.ruby-forum.com/t/dynamic-error-log-location-using-regex-captures/224267)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [November 6, 2012, 1:34pm UTC](https://www.ruby-forum.com/t/dynamic-error-log-location-using-regex-captures/224267 "2012-11-06T13:34:03Z")

</div>

Why can’t I use a dynamic error\_log location like I do with access\_log? Example config: server\_name ~^(?.+).my-domain.com$; root /srv/www/accounts/$username/app; access\_log /var/log/nginx/accounts/$username/access.lo…

---

## [Relocatable installations](https://www.ruby-forum.com/t/relocatable-installations/224263)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [November 5, 2012, 10:52pm UTC](https://www.ruby-forum.com/t/relocatable-installations/224263 "2012-11-05T22:52:54Z")

</div>

Hello, Is it possible to compile nginx such that installations can be moved? For instance, say we install nginx to /tmp/original/nginx: ./configure --prefix=/tmp/original/nginx make make install And we then move the …

---

## [Nginx rewrite of certain mime types and request processing order](https://www.ruby-forum.com/t/nginx-rewrite-of-certain-mime-types-and-request-processing-order/224250)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [November 5, 2012, 12:21pm UTC](https://www.ruby-forum.com/t/nginx-rewrite-of-certain-mime-types-and-request-processing-order/224250 "2012-11-05T12:21:30Z")

</div>

Hi, Having following nginx virtual host config: #============================================== upstream cf-domain { server unix:/data/www/prod/domain.com/cf/cf-domain.sock; } server { listen 10.0.0.1:80; listen …

---

## [How to find a suitable number for the keepalive connections?](https://www.ruby-forum.com/t/how-to-find-a-suitable-number-for-the-keepalive-connections/224247)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [November 5, 2012, 8:45am UTC](https://www.ruby-forum.com/t/how-to-find-a-suitable-number-for-the-keepalive-connections/224247 "2012-11-05T08:45:48Z")

</div>

The |/connections/| parameter should be set low enough(??) to allow upstream servers to process additional new incoming connections as well. I am very confused about the keepalive http://nginx.org/en/docs/http/ngx\_ht…

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

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