# Server

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

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

---

## [Upstream closed prematurely FastCGI stdout while reading response header from upstream,](https://www.ruby-forum.com/t/upstream-closed-prematurely-fastcgi-stdout-while-reading-response-header-from-upstream/191266)

<div class="topic-metadata">

**Author:** [@Alexander\_Skwar](https://www.ruby-forum.com/u/Alexander_Skwar)\
**Replies:** 0\
**Last updated:** [July 8, 2010, 2:35pm UTC](https://www.ruby-forum.com/t/upstream-closed-prematurely-fastcgi-stdout-while-reading-response-header-from-upstream/191266 "2010-07-08T14:35:58Z")

</div>

Hello. I’m trying to setup nginx 0.8.29 on an internal Solaris 10 system, so that it can serve simple CGI scripts. I read http://wiki.nginx.org/NginxSimpleCGI and I’m trying to follow this setup. When I try to exec…

---

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

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 5\
**Last updated:** [July 8, 2010, 10:12am UTC](https://www.ruby-forum.com/t/nginx-and-requests/191229 "2010-07-08T10:12:29Z")

</div>

Hi, How does Nginx behave against …/…/ hackish requests? Does it allow requests to go outside of the root directive?

---

## [Nginx error handling/error page](https://www.ruby-forum.com/t/nginx-error-handling-error-page/191238)

<div class="topic-metadata">

**Author:** [@steve\_yan](https://www.ruby-forum.com/u/steve_yan)\
**Replies:** 0\
**Last updated:** [July 8, 2010, 12:03am UTC](https://www.ruby-forum.com/t/nginx-error-handling-error-page/191238 "2010-07-08T00:03:48Z")

</div>

Hi, This is a newbie question and was probably asked before. I have an Apache web server, and nginx is used as reverse proxy server. In nginx, I need to parse the response from Apache, if the error code from Apache …

---

## [KQueue: 2 or more IPv6 listen ports + HUPing causes repeated log spam](https://www.ruby-forum.com/t/kqueue-2-or-more-ipv6-listen-ports-huping-causes-repeated-log-spam/191218)

<div class="topic-metadata">

**Author:** [@WolfSage](https://www.ruby-forum.com/u/WolfSage)\
**Replies:** 5\
**Last updated:** [July 7, 2010, 6:10pm UTC](https://www.ruby-forum.com/t/kqueue-2-or-more-ipv6-listen-ports-huping-causes-repeated-log-spam/191218 "2010-07-07T18:10:14Z")

</div>

With 2 or more IPv6 listen ports enabled in nginx, if you send it about 3-4 HUPs, it will start to log spam repeatedly in /var/log/nginx-error.log until the partition fills up with the following error message: I’ve …

---

## [Files truncated](https://www.ruby-forum.com/t/files-truncated/191217)

<div class="topic-metadata">

**Author:** [@axel](https://www.ruby-forum.com/u/axel)\
**Replies:** 2\
**Last updated:** [July 7, 2010, 6:00pm UTC](https://www.ruby-forum.com/t/files-truncated/191217 "2010-07-07T18:00:16Z")

</div>

Hi guys, another quick question: I’m still trying to figure out why sometimes some files are truncated when they arrive on the client’s browser. For instance, a video that lasts 1 minute is cut after 5 second on the …

---

## ["alias" directive may not be used inside location given](https://www.ruby-forum.com/t/alias-directive-may-not-be-used-inside-location-given/191200)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 6\
**Last updated:** [July 7, 2010, 5:41pm UTC](https://www.ruby-forum.com/t/alias-directive-may-not-be-used-inside-location-given/191200 "2010-07-07T17:41:31Z")

</div>

I don’t understand the following error: the “alias” directive may not be used inside location given by regular expression From the docs it seems possible: http://wiki.nginx.org/NginxHttpCoreModule#alias I’m running …

---

## [If (-f $request\_filename) VS location ~\* ^.+(css|gif|htm)](https://www.ruby-forum.com/t/if-f-request-filename-vs-location-css-gif-htm/191213)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 1\
**Last updated:** [July 7, 2010, 4:50pm UTC](https://www.ruby-forum.com/t/if-f-request-filename-vs-location-css-gif-htm/191213 "2010-07-07T16:50:34Z")

</div>

Hi, Which is best between: location / { root /var/www/mysite; if (-f $request\_filename) { break; } } AND location ~\* ^.+(css|gif|html|jpeg|jpg|js|ogv|png|swf) { root /var/www/mysite; }

---

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

<div class="topic-metadata">

**Author:** [@axel](https://www.ruby-forum.com/u/axel)\
**Replies:** 3\
**Last updated:** [July 7, 2010, 4:40pm UTC](https://www.ruby-forum.com/t/nginx/191210 "2010-07-07T16:40:00Z")

</div>

Hi guys, I just upgraded to nginx 0.7.67 and I noticed there were nor access neither error log any longer. I have in my nginx.conf: error\_log /var/log/nginx/error.log warn; access\_log /var/log/nginx/access.lo…

---

## [Nginx-0.8.43](https://www.ruby-forum.com/t/nginx-0-8-43/190914)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 4\
**Last updated:** [July 7, 2010, 4:08pm UTC](https://www.ruby-forum.com/t/nginx-0-8-43/190914 "2010-07-07T16:08:38Z")

</div>

Changes with nginx 0.8.43 30 Jun 2010 \*) Feature: large geo ranges base loading speed-up. \*) Bugfix: an error\_page redirection to "location /zero { return 204; }" without chan…

---

## [Pam authentication question](https://www.ruby-forum.com/t/pam-authentication-question/191211)

<div class="topic-metadata">

**Author:** [@Antoine\_Nguyen](https://www.ruby-forum.com/u/Antoine_Nguyen)\
**Replies:** 0\
**Last updated:** [July 7, 2010, 4:01pm UTC](https://www.ruby-forum.com/t/pam-authentication-question/191211 "2010-07-07T16:01:22Z")

</div>

Hi list, I’m trying to setup PAM authentication for nginx and I’m wondering if it is possible to authenticate using pam\_unix.so… Here is the content of my /etc/pam.d/nginx file: @include common-auth @include common-…

---

## [Howto set variable base on header content](https://www.ruby-forum.com/t/howto-set-variable-base-on-header-content/191206)

<div class="topic-metadata">

**Author:** [@Vincent\_MAUGE](https://www.ruby-forum.com/u/Vincent_MAUGE)\
**Replies:** 0\
**Last updated:** [July 7, 2010, 3:37pm UTC](https://www.ruby-forum.com/t/howto-set-variable-base-on-header-content/191206 "2010-07-07T15:37:56Z")

</div>

Hey, I get nginx as reverse proxy. I want to set a variable base on X-Forwarded-For like I can do with geo module. What is the proper way to do that ? The purpose is to change some behavior base on the original clien…

---

## [How to set a option within a location block](https://www.ruby-forum.com/t/how-to-set-a-option-within-a-location-block/191190)

<div class="topic-metadata">

**Author:** [@SSS\_UxBoD\_S-S](https://www.ruby-forum.com/u/SSS_UxBoD_S-S)\
**Replies:** 13\
**Last updated:** [July 7, 2010, 1:30pm UTC](https://www.ruby-forum.com/t/how-to-set-a-option-within-a-location-block/191190 "2010-07-07T13:30:50Z")

</div>

Hi, I have the URL .xyz Domain Names | Join Generation XYZ and I need to be able to set http\_timeout only when /dav/ is present in the URL. The problem is that the configuration is third party supplied and they alrea…

---

## [Nginx-0.8.44 + uwsgi-0.9.5.4 make error](https://www.ruby-forum.com/t/nginx-0-8-44-uwsgi-0-9-5-4-make-error/191180)

<div class="topic-metadata">

**Author:** [@beta4better](https://www.ruby-forum.com/u/beta4better)\
**Replies:** 1\
**Last updated:** [July 7, 2010, 6:10am UTC](https://www.ruby-forum.com/t/nginx-0-8-44-uwsgi-0-9-5-4-make-error/191180 "2010-07-07T06:10:37Z")

</div>

Hi, I am following the The uWSGI project — uWSGI 2.0 documentation and LEMP Server on Debian 5 (Lenny) | Linode Docs , try to make uwsgi workable with nginx. But some error come out while make stop. objs/addon/ngi…

---

## [Upstream SSL Support](https://www.ruby-forum.com/t/upstream-ssl-support/191166)

<div class="topic-metadata">

**Author:** [@Troy\_Bartlett](https://www.ruby-forum.com/u/Troy_Bartlett)\
**Replies:** 1\
**Last updated:** [July 6, 2010, 10:13pm UTC](https://www.ruby-forum.com/t/upstream-ssl-support/191166 "2010-07-06T22:13:32Z")

</div>

Hi, I need an IMAP proxy with support for SSL on the backend/upstream side. I plan to use nginx for this, but I’m pretty sure it doesn’t support SSL on the upstream side. Can anyone confirm this? Assuming it does n…

---

## [Nginx GeoIP\_City not working](https://www.ruby-forum.com/t/nginx-geoip-city-not-working/191165)

<div class="topic-metadata">

**Author:** [@kokomos](https://www.ruby-forum.com/u/kokomos)\
**Replies:** 0\
**Last updated:** [July 6, 2010, 8:35pm UTC](https://www.ruby-forum.com/t/nginx-geoip-city-not-working/191165 "2010-07-06T20:35:46Z")

</div>

Here is what I set for fastcgi\_param fastcgi\_param GEOIP\_COUNTRY\_NAME $geoip\_city\_country\_name; fastcgi\_param GEOIP\_COUNTRY\_CODE $geoip\_city\_country\_code3; fastcgi\_param GEOIP\_REGION $geoip\_reg…

---

## [Nginx win32 release code](https://www.ruby-forum.com/t/nginx-win32-release-code/182518)

<div class="topic-metadata">

**Author:** [@sree\_skm1](https://www.ruby-forum.com/u/sree_skm1)\
**Replies:** 9\
**Last updated:** [July 6, 2010, 3:19pm UTC](https://www.ruby-forum.com/t/nginx-win32-release-code/182518 "2010-07-06T15:19:34Z")

</div>

Hi, In the nginx windows section it is mentioned that nginx / windows uses native win32 API and not cygwin emulation model. But I could not find the windows release source in the windows package. Could somebody shar…

---

## [Problem with nginx-0.7.67 logs](https://www.ruby-forum.com/t/problem-with-nginx-0-7-67-logs/191124)

<div class="topic-metadata">

**Author:** [@Xin\_L](https://www.ruby-forum.com/u/Xin_L)\
**Replies:** 4\
**Last updated:** [July 6, 2010, 2:59pm UTC](https://www.ruby-forum.com/t/problem-with-nginx-0-7-67-logs/191124 "2010-07-06T14:59:04Z")

</div>

Hi all, My server is Debian. And I installed nginx (0.7.67-1) to host my webpage. The problem is that, everyday on 06:25PM (New York time), nginx will generate a new log file and rename the old log file nginx.log.1. …

---

## [Ngx\_slab\_alloc() failed: no memory in cache keys zone](https://www.ruby-forum.com/t/ngx-slab-alloc-failed-no-memory-in-cache-keys-zone/191106)

<div class="topic-metadata">

**Author:** [@Davide\_DSAmico](https://www.ruby-forum.com/u/Davide_DSAmico)\
**Replies:** 1\
**Last updated:** [July 6, 2010, 11:51am UTC](https://www.ruby-forum.com/t/ngx-slab-alloc-failed-no-memory-in-cache-keys-zone/191106 "2010-07-06T11:51:05Z")

</div>

Hi, I’m setting up a nginx reverse proxy on fbsd 8.1rc2 with this server config: proxy\_cache\_path /usr/local/cache/zoneA levels=1:2 keys\_zone=IMAGES:10m inactive=1h max\_size=1g; After two days of running, I noticed …

---

## [Fastcgi\_param PHP\_ADMIN\_VALUE](https://www.ruby-forum.com/t/fastcgi-param-php-admin-value/191119)

<div class="topic-metadata">

**Author:** [@IllSSSSGSSSSbor](https://www.ruby-forum.com/u/IllSSSSGSSSSbor)\
**Replies:** 1\
**Last updated:** [July 5, 2010, 11:14pm UTC](https://www.ruby-forum.com/t/fastcgi-param-php-admin-value/191119 "2010-07-05T23:14:45Z")

</div>

Hello! Does anybody have any idea how to activate the option open\_basedir / domain? This: location ~ .php$ { … fastcgi\_param PHP\_ADMIN\_VALUE “open\_basedir=/usr/local/www/data/domain.hu/”; } not work for me. ng…

---

## [Problem with error\_handler (redirect loop?)](https://www.ruby-forum.com/t/problem-with-error-handler-redirect-loop/246533)

<div class="topic-metadata">

**Author:** [@bkirkbri](https://www.ruby-forum.com/u/bkirkbri)\
**Replies:** 0\
**Last updated:** [July 5, 2010, 9:49pm UTC](https://www.ruby-forum.com/t/problem-with-error-handler-redirect-loop/246533 "2010-07-05T21:49:51Z")

</div>

I’m running into a problem where requests that trigger an error\_page handler get caught in a redirect loop and eventually fail with a 500 response. It looks like this may be related to our server\_name being a regex w…

---

## [Nginx-0.8.44](https://www.ruby-forum.com/t/nginx-0-8-44/191102)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 0\
**Last updated:** [July 5, 2010, 5:26pm UTC](https://www.ruby-forum.com/t/nginx-0-8-44/191102 "2010-07-05T17:26:25Z")

</div>

éÚÍÅÎÅÎÉÑ × nginx 0.8.44 05.07.2010 \*) éÚÍÅÎÅÎÉÅ: ÔÅÐÅÒØ nginx ÐÏ ÕÍÏÌÞÁÎÉÀ ÎÅ ËÜÛÉÒÕÅÔ ÏÔ×ÅÔÙ ÂÜËÅÎÄÏ×, × ÚÁÇÏÌÏ×ËÅ ËÏÔÏÒÙÈ ÅÓÔØ ÓÔÒÏËÁ "Set-Cookie". \*) äÏÂÁ×ÌÅÎÉÅ: ÄÉÒÅËÔÉ…

---

## [HP-UX (IA64) download file only 64k](https://www.ruby-forum.com/t/hp-ux-ia64-download-file-only-64k/190940)

<div class="topic-metadata">

**Author:** [@cauherk](https://www.ruby-forum.com/u/cauherk)\
**Replies:** 2\
**Last updated:** [July 3, 2010, 7:33pm UTC](https://www.ruby-forum.com/t/hp-ux-ia64-download-file-only-64k/190940 "2010-07-03T19:33:48Z")

</div>

nginx nginx-0.7.62 OS HP-UX B.11.31 U ia64 gcc hp-gcc-4.4.3 when a file bigger than 64K , download the file just only 64k. The error.log contains \[alert\] 8222#0: \*6 writev() failed (246: Operati…

---

## [CFP for Surge Scalability Conference 2010](https://www.ruby-forum.com/t/cfp-for-surge-scalability-conference-2010/191024)

<div class="topic-metadata">

**Author:** [@Jason\_Dixon](https://www.ruby-forum.com/u/Jason_Dixon)\
**Replies:** 0\
**Last updated:** [July 2, 2010, 8:40pm UTC](https://www.ruby-forum.com/t/cfp-for-surge-scalability-conference-2010/191024 "2010-07-02T20:40:04Z")

</div>

A quick reminder that there’s one week left to submit your abstract for this year’s Surge Scalability Conference. The event is taking place on Sept 30 and Oct 1, 2010 in Baltimore, MD. Surge focuses on case studies …

---

## [Logging which SSL cipher a client is using](https://www.ruby-forum.com/t/logging-which-ssl-cipher-a-client-is-using/191020)

<div class="topic-metadata">

**Author:** [@Calomel\_Org](https://www.ruby-forum.com/u/Calomel_Org)\
**Replies:** 2\
**Last updated:** [July 2, 2010, 8:23pm UTC](https://www.ruby-forum.com/t/logging-which-ssl-cipher-a-client-is-using/191020 "2010-07-02T20:23:40Z")

</div>

Does anyone know of a way to log which SSL cipher a remote client connects with? For example, if a Firefox v3.6.x client connects and uses AES256 with Diffie-Hellman then I could log the cipher string “DHE-RSA-AES256…

---

## [Help to set cookie with nginx](https://www.ruby-forum.com/t/help-to-set-cookie-with-nginx/191003)

<div class="topic-metadata">

**Author:** [@ShivaS](https://www.ruby-forum.com/u/ShivaS)\
**Replies:** 0\
**Last updated:** [July 2, 2010, 10:26am UTC](https://www.ruby-forum.com/t/help-to-set-cookie-with-nginx/191003 "2010-07-02T10:26:31Z")

</div>

Hi all, I have recently been trying to convert the following rule from Apache to Nginx without any success: RewriteRule ^/id=(\[0-9\])(&lÐ°ng=((de)|(es)|(fr)))?$ - \[CO=id:$1:.domain.com:525600:/\] Have anybody tried an…

---

## [Video files truncated](https://www.ruby-forum.com/t/video-files-truncated/190802)

<div class="topic-metadata">

**Author:** [@axel](https://www.ruby-forum.com/u/axel)\
**Replies:** 1\
**Last updated:** [July 2, 2010, 9:23am UTC](https://www.ruby-forum.com/t/video-files-truncated/190802 "2010-07-02T09:23:53Z")

</div>

Hi, I was reported some issues regarding videos playback. MP4 videos are delivered by nginx. Some clients are complaining because videos stop after 5 seconds. Our videos are at least 50s long. I cannot reproduce this…

---

## [Ngx\_http\_request\_t's subrequests is what meaning be ï¼Ÿ](https://www.ruby-forum.com/t/ngx-http-request-ts-subrequests-is-what-meaning-be-i-y/190950)

<div class="topic-metadata">

**Author:** [@monad](https://www.ruby-forum.com/u/monad)\
**Replies:** 4\
**Last updated:** [July 2, 2010, 5:04am UTC](https://www.ruby-forum.com/t/ngx-http-request-ts-subrequests-is-what-meaning-be-i-y/190950 "2010-07-02T05:04:35Z")

</div>

hi all. I am reading nginx’s source(version is 0.7.66), but i don’t understand this section: ngx\_int\_t ngx\_http\_subrequest(ngx\_http\_request\_t \*r, ngx\_str\_t \*uri, ngx\_str\_t \*args, ngx\_http\_request\_t \*\*psr, ngx\_htt…

---

## [FRiCKLE pres. ngx\_coolkit](https://www.ruby-forum.com/t/frickle-pres-ngx-coolkit/190982)

<div class="topic-metadata">

**Author:** [@piotrs](https://www.ruby-forum.com/u/piotrs)\
**Replies:** 0\
**Last updated:** [July 1, 2010, 10:09pm UTC](https://www.ruby-forum.com/t/frickle-pres-ngx-coolkit/190982 "2010-07-01T22:09:33Z")

</div>

Hi list, I’m pleased to announce ngx\_coolkit. This module is collection of small nginx add-ons. Those add-ons are pretty useless alone, but they are nice for gluing together different modules and/or enabling new use …

---

## [SSLv2 bad detection, patch](https://www.ruby-forum.com/t/sslv2-bad-detection-patch/190958)

<div class="topic-metadata">

**Author:** [@MirosSSSS\_aw\_Jawors](https://www.ruby-forum.com/u/MirosSSSS_aw_Jawors)\
**Replies:** 1\
**Last updated:** [July 1, 2010, 7:01pm UTC](https://www.ruby-forum.com/t/sslv2-bad-detection-patch/190958 "2010-07-01T19:01:36Z")

</div>

Problem: old web application supporting SSLv2 only can’t connect to the web service migrated behind ssl-offloading nginx. Analysis: nginx considers connection as plain http. Traffic analysis using various client opt…

---

## [How to deny the SSL v2.0 handshake when SSL v2.0 is disabled](https://www.ruby-forum.com/t/how-to-deny-the-ssl-v2-0-handshake-when-ssl-v2-0-is-disabled/190926)

<div class="topic-metadata">

**Author:** [@Calomel\_Org](https://www.ruby-forum.com/u/Calomel_Org)\
**Replies:** 2\
**Last updated:** [July 1, 2010, 5:10pm UTC](https://www.ruby-forum.com/t/how-to-deny-the-ssl-v2-0-handshake-when-ssl-v2-0-is-disabled/190926 "2010-07-01T17:10:21Z")

</div>

Is there any way to completely disable the SSL v2.0 handshake when SSL v2.0 support is disabled in nginx.conf ? This is the SSL configuration used and only TLSv1 is enabled in “ssl\_protocols”. Nginx SSL (FIPS 140-2 …

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

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