# Server

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

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

---

## [Access\_log to track failed logins](https://www.ruby-forum.com/t/access-log-to-track-failed-logins/225158)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [December 20, 2012, 3:02pm UTC](https://www.ruby-forum.com/t/access-log-to-track-failed-logins/225158 "2012-12-20T15:02:48Z")

</div>

I have a login page that redirects (actually appends the parameter “?error=true” to the URL and lets the user try again). I was trying to re-define “access\_log” with a full path and (for now) “combined” to a separate …

---

## [Display/log value of document\_root](https://www.ruby-forum.com/t/display-log-value-of-document-root/225196)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [December 20, 2012, 12:04pm UTC](https://www.ruby-forum.com/t/display-log-value-of-document-root/225196 "2012-12-20T12:04:04Z")

</div>

I am currently debugging a problem where PHP-FPM claims that there is “No input file specified”, but the file clearly exists in that location. Is it possible to ask nginx to log the value or display the value of $doc…

---

## [Upstream sent unexpected FastCGI record: 3 while reading response header from upstream](https://www.ruby-forum.com/t/upstream-sent-unexpected-fastcgi-record-3-while-reading-response-header-from-upstream/225205)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [December 20, 2012, 10:11am UTC](https://www.ruby-forum.com/t/upstream-sent-unexpected-fastcgi-record-3-while-reading-response-header-from-upstream/225205 "2012-12-20T10:11:54Z")

</div>

Recently,i have a problem about nginx\_error : 22634269 upstream sent unexpected FastCGI record: 3 while reading response header from upstream, client: 223.204.194.89, server: kingslave.boyaagame.com, request: “POST x…

---

## [Websockets](https://www.ruby-forum.com/t/websockets/226559)

<div class="topic-metadata">

**Author:** [@Nick\_Zavaritsky](https://www.ruby-forum.com/u/Nick_Zavaritsky)\
**Replies:** 5\
**Last updated:** [December 20, 2012, 4:36am UTC](https://www.ruby-forum.com/t/websockets/226559 "2012-12-20T04:36:01Z")

</div>

Hi! According to the roadmap at Roadmap – nginx, the support for websockets is planned for release in 2 month. Is there any preview code available yet? It would be nice to start playing with this feature early on. S…

---

## [How to bind nginx to ipv4 and ipv6 interface?](https://www.ruby-forum.com/t/how-to-bind-nginx-to-ipv4-and-ipv6-interface/224802)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [December 19, 2012, 8:02pm UTC](https://www.ruby-forum.com/t/how-to-bind-nginx-to-ipv4-and-ipv6-interface/224802 "2012-12-19T20:02:26Z")

</div>

Hello, any one can tell me what is wrong on my nginx 1.2.5 version compied with ipv6 suppot ? I try to start nginx on both ipv4 and ipv6. I read on internet if I put in my config file: listen \[::\]:80; is enought and …

---

## [Nginx Response Timing Range](https://www.ruby-forum.com/t/nginx-response-timing-range/225184)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [December 19, 2012, 1:09pm UTC](https://www.ruby-forum.com/t/nginx-response-timing-range/225184 "2012-12-19T13:09:27Z")

</div>

To test the stability of my Nginx installation, I use a load generator on a static\_30K.html page of 30KB. I added $response\_time to my log file and generated 100 threads x 10 loops of static\_30K.html My top show …

---

## [Strange nginx hang after ~18600 requests](https://www.ruby-forum.com/t/strange-nginx-hang-after-18600-requests/226575)

<div class="topic-metadata">

**Author:** [@gadh](https://www.ruby-forum.com/u/gadh)\
**Replies:** 8\
**Last updated:** [December 19, 2012, 11:48am UTC](https://www.ruby-forum.com/t/strange-nginx-hang-after-18600-requests/226575 "2012-12-19T11:48:49Z")

</div>

I’m developing a module that uses a handler module and header+body filter module at my handler phase (registered in the nginx rewrite phase) i stop the request (return NGX\_OK), then issue a subrequest to another ser…

---

## [Re: List of all request headers in perl?](https://www.ruby-forum.com/t/re-list-of-all-request-headers-in-perl/229252)

<div class="topic-metadata">

**Author:** [@ESWestbrook](https://www.ruby-forum.com/u/ESWestbrook)\
**Replies:** 2\
**Last updated:** [December 18, 2012, 6:03pm UTC](https://www.ruby-forum.com/t/re-list-of-all-request-headers-in-perl/229252 "2012-12-18T18:03:48Z")

</div>

I’m very confused… there’s not an “$r” to be seen at that link. Perhaps I asked the original question poorly, or in the wrong place? Thanks again, Eric On Mon, Dec 17, 2012 at 7:38 PM, Bob S. removed\_email\_address@d…

---

## [Trouble compiling nginx on AIX 5.3](https://www.ruby-forum.com/t/trouble-compiling-nginx-on-aix-5-3/225149)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [December 18, 2012, 3:40pm UTC](https://www.ruby-forum.com/t/trouble-compiling-nginx-on-aix-5-3/225149 "2012-12-18T15:40:40Z")

</div>

I am having issues getting nginx v1.2.6 compiled on AIX 5.3. This is the first time I have tried on AIX. I am using the configure line: ./configure --without-http\_rewrite\_module --without-http\_gzip\_module –with-http…

---

## [Accessing custom upstream proxy header](https://www.ruby-forum.com/t/accessing-custom-upstream-proxy-header/225146)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [December 18, 2012, 1:01pm UTC](https://www.ruby-forum.com/t/accessing-custom-upstream-proxy-header/225146 "2012-12-18T13:01:47Z")

</div>

Good morning, Using ngx\_http\_request\_t, how can I access a custom upstream header within a module, for example: r-\>upstream-\>headers\_in-\>xxx\_my\_header-\>value No matter what I try, it doesn’t appear to be working P…

---

## [Nginx add trailing slash](https://www.ruby-forum.com/t/nginx-add-trailing-slash/225147)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [December 18, 2012, 9:30am UTC](https://www.ruby-forum.com/t/nginx-add-trailing-slash/225147 "2012-12-18T09:30:18Z")

</div>

I’m having troubles figuring out the following problem. Basically, we have a jekyll blog which we decided to separate physically on the server from our main website ie. it is not served from the main application serv…

---

## [List of all request headers in perl?](https://www.ruby-forum.com/t/list-of-all-request-headers-in-perl/226569)

<div class="topic-metadata">

**Author:** [@ESWestbrook](https://www.ruby-forum.com/u/ESWestbrook)\
**Replies:** 1\
**Last updated:** [December 18, 2012, 3:39am UTC](https://www.ruby-forum.com/t/list-of-all-request-headers-in-perl/226569 "2012-12-18T03:39:48Z")

</div>

Hi! I’m new to the list; so please accept my apologies and do kindly correct me if I’ve missed something in my research, or if I’m not complying with any particular social custom or etiquette on this list. I’m using …

---

## [How exactly is NGINX spelled?](https://www.ruby-forum.com/t/how-exactly-is-nginx-spelled/225126)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [December 17, 2012, 11:17am UTC](https://www.ruby-forum.com/t/how-exactly-is-nginx-spelled/225126 "2012-12-17T11:17:12Z")

</div>

Hi, this got me thinking: nginx.com says “NGINX” in all-caps on the frontpage, the page with the links to FAQ and handbook also spells it like “NGINX” - at least three times out of four the FAQ itself spells it “ngi…

---

## [Set-Cookie is missing via proxy](https://www.ruby-forum.com/t/set-cookie-is-missing-via-proxy/224973)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 7\
**Last updated:** [December 17, 2012, 11:02am UTC](https://www.ruby-forum.com/t/set-cookie-is-missing-via-proxy/224973 "2012-12-17T11:02:35Z")

</div>

Hi, I am using nginx as a reverse proxy for apache. I have the following symptom: Sessions of users get mixed up. The original html from the apache looks like this via curl: \[…\] \[...\] If I get this page through n…

---

## [Image\_filter don't resize](https://www.ruby-forum.com/t/image-filter-dont-resize/225140)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [December 17, 2012, 9:17am UTC](https://www.ruby-forum.com/t/image-filter-dont-resize/225140 "2012-12-17T09:17:25Z")

</div>

hello I’m using nginx 1.2.4 with image\_filter and i recently found a problem. If i try to make come down the jpeg quality, and the size (800-600), for an image in the same resolution, NGinx does nothing. In other wo…

---

## [By default does nginx just use a single log file?](https://www.ruby-forum.com/t/by-default-does-nginx-just-use-a-single-log-file/225119)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 7\
**Last updated:** [December 15, 2012, 9:32pm UTC](https://www.ruby-forum.com/t/by-default-does-nginx-just-use-a-single-log-file/225119 "2012-12-15T21:32:20Z")

</div>

By default does nginx just keep appending to the same log file? (for both access and error log files) Is there a reason why there is no built in way of having it create a new file per day/hour or something? I guess …

---

## [Did nginx fixed the php/pathinfo exploit in the core?](https://www.ruby-forum.com/t/did-nginx-fixed-the-php-pathinfo-exploit-in-the-core/229263)

<div class="topic-metadata">

**Author:** [@howard\_chen](https://www.ruby-forum.com/u/howard_chen)\
**Replies:** 1\
**Last updated:** [December 15, 2012, 3:20pm UTC](https://www.ruby-forum.com/t/did-nginx-fixed-the-php-pathinfo-exploit-in-the-core/229263 "2012-12-15T15:20:51Z")

</div>

Now tried to test for the exploit ( http://forum.nginx.org/read.php?2,88845,88996) , nginx return 403 directly without hitting my backend php =============== curl -s -D - ‘http://www.example.com/test.jpg/f.php’ HT…

---

## [Nginx server\_name command being ignored](https://www.ruby-forum.com/t/nginx-server-name-command-being-ignored/226545)

<div class="topic-metadata">

**Author:** [@constable1](https://www.ruby-forum.com/u/constable1)\
**Replies:** 14\
**Last updated:** [December 15, 2012, 12:47pm UTC](https://www.ruby-forum.com/t/nginx-server-name-command-being-ignored/226545 "2012-12-15T12:47:12Z")

</div>

Hi, I’m running ubuntu server 12.04 and the latest version of nginx. The problem I am having is that nginx seems to be ignoring the server\_name command, I am able to access the server by going to the IP address of the …

---

## [SSL performance optimization with cache](https://www.ruby-forum.com/t/ssl-performance-optimization-with-cache/226542)

<div class="topic-metadata">

**Author:** [@justin](https://www.ruby-forum.com/u/justin)\
**Replies:** 4\
**Last updated:** [December 14, 2012, 11:52pm UTC](https://www.ruby-forum.com/t/ssl-performance-optimization-with-cache/226542 "2012-12-14T23:52:40Z")

</div>

Hello, I am optimizing our install of nginx for SSL performance, since our SaaS app is served exclusively over https. I have the following SSL performance directives: ssl\_session\_cache shared:SSL\_CACHE:4m; ssl\_sessi…

---

## [I want help](https://www.ruby-forum.com/t/i-want-help/226500)

<div class="topic-metadata">

**Author:** [@janke](https://www.ruby-forum.com/u/janke)\
**Replies:** 4\
**Last updated:** [December 14, 2012, 10:58pm UTC](https://www.ruby-forum.com/t/i-want-help/226500 "2012-12-14T22:58:56Z")

</div>

Hello all, What is the best way to block un-expected submissions? For example, I have this puzzle: ((aaa=(\\d{1,8}.)+(\\d{1,8}))&(bbb=\\w{10,30})&(ccc=\\d{1,10})) aaa is uuid, bbb is alphanumric, ccc is just numeric. I …

---

## [Nginx 1.x and Vary header HTTP](https://www.ruby-forum.com/t/nginx-1-x-and-vary-header-http/226550)

<div class="topic-metadata">

**Author:** [@Davide\_DSAmico](https://www.ruby-forum.com/u/Davide_DSAmico)\
**Replies:** 0\
**Last updated:** [December 14, 2012, 9:46pm UTC](https://www.ruby-forum.com/t/nginx-1-x-and-vary-header-http/226550 "2012-12-14T21:46:28Z")

</div>

Hi, I’m reading this web page: http://www.notthewizard.com/2012/02/27/nginx-reverse-proxy-can-cause-ie-to-fail/ that leads to this statement (Module ngx\_http\_proxy\_module): “nginx does not handle “Vary” headers when …

---

## [Please helpe me, hacking the module Gzip Pre-Compression Module](https://www.ruby-forum.com/t/please-helpe-me-hacking-the-module-gzip-pre-compression-module/225117)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [December 14, 2012, 6:57pm UTC](https://www.ruby-forum.com/t/please-helpe-me-hacking-the-module-gzip-pre-compression-module/225117 "2012-12-14T18:57:37Z")

</div>

Hello, I wrote to Igor but do not have the response so I write my question here and please help me. Firse of all, excuse me for my bad english!!! I hack the module “ngx\_http\_gzip\_static\_module.c” and I know that if …

---

## [Setting expires header to multiple locations](https://www.ruby-forum.com/t/setting-expires-header-to-multiple-locations/226544)

<div class="topic-metadata">

**Author:** [@howard\_chen](https://www.ruby-forum.com/u/howard_chen)\
**Replies:** 5\
**Last updated:** [December 14, 2012, 3:39pm UTC](https://www.ruby-forum.com/t/setting-expires-header-to-multiple-locations/226544 "2012-12-14T15:39:01Z")

</div>

Currently I need to use tricks since I have multiple locations in my site config. e.g. ===================================== location ~\* /a { location ~\* ^/.\*.(?:css|js|jpg|jpeg|gif|png)$ { expires 1y; } } loca…

---

## [Nginx to listen on two IPs](https://www.ruby-forum.com/t/nginx-to-listen-on-two-ips/225115)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [December 14, 2012, 2:57pm UTC](https://www.ruby-forum.com/t/nginx-to-listen-on-two-ips/225115 "2012-12-14T14:57:33Z")

</div>

Hello I have this server with Nginx that have like 4 subdomains and default localhost set. I also have as econd network card that have an internal IP 192.168.1.2. How can I define another server that will listen to t…

---

## [Set cookie if not already set](https://www.ruby-forum.com/t/set-cookie-if-not-already-set/225108)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [December 14, 2012, 12:36am UTC](https://www.ruby-forum.com/t/set-cookie-if-not-already-set/225108 "2012-12-14T00:36:31Z")

</div>

I figured out a simple solution so thought to share it ( to get feedback or may be to help ). In an earlier discussion I got to know about map and why one should avoid to use if an try to use map. http { map $cooki…

---

## [Help with specific redirect to https](https://www.ruby-forum.com/t/help-with-specific-redirect-to-https/225100)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 8\
**Last updated:** [December 13, 2012, 6:04pm UTC](https://www.ruby-forum.com/t/help-with-specific-redirect-to-https/225100 "2012-12-13T18:04:33Z")

</div>

I’m trying to redirect anyURL that contains “UserLogin” (ie: Mediawiki) to https. This is what I’ve tried: rewrite .UserLogin. https://domain.com$request\_uri? permanent; rewrite UserLogin https://domain.com$request\_u…

---

## [Random Internal Server Error](https://www.ruby-forum.com/t/random-internal-server-error/226533)

<div class="topic-metadata">

**Author:** [@mattphi](https://www.ruby-forum.com/u/mattphi)\
**Replies:** 2\
**Last updated:** [December 13, 2012, 12:44pm UTC](https://www.ruby-forum.com/t/random-internal-server-error/226533 "2012-12-13T12:44:59Z")

</div>

Hi, I’m having trouble with my nginx showing totally random Internal Server Error. I’m running gunicorn with nginx as a reverse proxy. My error log (info) shows: “upstream sent too much data while reading upstream” …

---

## [Nginx-1.2.6](https://www.ruby-forum.com/t/nginx-1-2-6/226510)

<div class="topic-metadata">

**Author:** [@Maxim\_D](https://www.ruby-forum.com/u/Maxim_D)\
**Replies:** 7\
**Last updated:** [December 12, 2012, 1:30pm UTC](https://www.ruby-forum.com/t/nginx-1-2-6/226510 "2012-12-12T13:30:56Z")

</div>

Changes with nginx 1.2.6 11 Dec 2012 \*) Feature: the $request\_time and $msec variables can now be used not only in the “log\_format” directive. \*) Bugfix: cache manager and ca…

---

## [Upload Progress](https://www.ruby-forum.com/t/upload-progress/225083)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [December 12, 2012, 1:10pm UTC](https://www.ruby-forum.com/t/upload-progress/225083 "2012-12-12T13:10:29Z")

</div>

Hello, I recently installed NGINX Upload Progress Module | NGINX with nginx 1.2.6. On the client side I have a request coming every second to check on the upload status. As I watch the access.log I can see all of the …

---

## [Help me About Content-Type header parse](https://www.ruby-forum.com/t/help-me-about-content-type-header-parse/226506)

<div class="topic-metadata">

**Author:** [@goosman.lei](https://www.ruby-forum.com/u/goosman.lei)\
**Replies:** 1\
**Last updated:** [December 12, 2012, 8:49am UTC](https://www.ruby-forum.com/t/help-me-about-content-type-header-parse/226506 "2012-12-12T08:49:48Z")

</div>

When I used multipart/form-data, I find that: Content-Type: multipart/form-data; boundary=----------------------------4db878605894\\r\\n Content-Type: multipart/form-data; boundary=----------------------------4db878605…

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

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