# Server

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

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

---

## [Full request line variable](https://www.ruby-forum.com/t/full-request-line-variable/175763)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 6\
**Last updated:** [September 21, 2009, 5:00am UTC](https://www.ruby-forum.com/t/full-request-line-variable/175763 "2009-09-21T05:00:47Z")

</div>

What 0.7.62 variable gives the full request line? We need to defeat proxying attempts. Here’s what we find in access logs: Good: GET /valid HTTP/1.1 Evil: GET http://www.externaldomain.com/ HTTP/1.1 The proxy at…

---

## [Set worker\_processes to \_SERVER](https://www.ruby-forum.com/t/set-worker-processes-to-server/175744)

<div class="topic-metadata">

**Author:** [@myschizobuddy](https://www.ruby-forum.com/u/myschizobuddy)\
**Replies:** 3\
**Last updated:** [September 19, 2009, 7:52am UTC](https://www.ruby-forum.com/t/set-worker-processes-to-server/175744 "2009-09-19T07:52:32Z")

</div>

can i set worker\_processes to \_SERVER\[“NUMBER\_OF\_PROCESSORS”\] looking in phpinfo there is a server variable that mentions the number of processors

---

## [Define var $foo=bar;](https://www.ruby-forum.com/t/define-var-foo-bar/175750)

<div class="topic-metadata">

**Author:** [@myschizobuddy](https://www.ruby-forum.com/u/myschizobuddy)\
**Replies:** 1\
**Last updated:** [September 19, 2009, 1:29am UTC](https://www.ruby-forum.com/t/define-var-foo-bar/175750 "2009-09-19T01:29:44Z")

</div>

Is there a way to define my own variables like in any programming language

---

## [Nginx internal DNS cache poisoning](https://www.ruby-forum.com/t/nginx-internal-dns-cache-poisoning/175649)

<div class="topic-metadata">

**Author:** [@Matthew\_Dempsky](https://www.ruby-forum.com/u/Matthew_Dempsky)\
**Replies:** 3\
**Last updated:** [September 18, 2009, 11:09pm UTC](https://www.ruby-forum.com/t/nginx-internal-dns-cache-poisoning/175649 "2009-09-18T23:09:50Z")

</div>

nginx maintains an internal DNS cache for resolved domain names. However, when searching the cache, nginx only checks that the crc32 of the names match and that the shorter name is a prefix of the longer name. It doe…

---

## [Heart beat](https://www.ruby-forum.com/t/heart-beat/175143)

<div class="topic-metadata">

**Author:** [@ojaro](https://www.ruby-forum.com/u/ojaro)\
**Replies:** 4\
**Last updated:** [September 18, 2009, 9:10pm UTC](https://www.ruby-forum.com/t/heart-beat/175143 "2009-09-18T21:10:27Z")

</div>

Hi all, Does anyone know how to implement heart beat when using Nginx for load balancing between web servers? Ideally I would like it to work, so that it checks the content for a web page and if that is not correct t…

---

## [Proxy\_pass: invalid number of arguments](https://www.ruby-forum.com/t/proxy-pass-invalid-number-of-arguments/175739)

<div class="topic-metadata">

**Author:** [@metra](https://www.ruby-forum.com/u/metra)\
**Replies:** 1\
**Last updated:** [September 18, 2009, 8:52pm UTC](https://www.ruby-forum.com/t/proxy-pass-invalid-number-of-arguments/175739 "2009-09-18T20:52:53Z")

</div>

Ð¯ Ñ‚Ð¾Ð¶Ðµ (ÑÐ»Ð°Ð±Ð¾) Ð³Ð¾Ð²Ð¾Ñ€ÑŽ Ð¿Ð¾ Ñ€ÑƒÑÐºÐ¸. I’m on Debian, setting up nginx to serve media and pass the django requests to apache on port 8080. I successfully set up apache with django before, but when I in…

---

## [Fastcgi\_hide\_header inside an IF statement](https://www.ruby-forum.com/t/fastcgi-hide-header-inside-an-if-statement/175733)

<div class="topic-metadata">

**Author:** [@Kaspars\_Dambis](https://www.ruby-forum.com/u/Kaspars_Dambis)\
**Replies:** 2\
**Last updated:** [September 18, 2009, 8:52pm UTC](https://www.ruby-forum.com/t/fastcgi-hide-header-inside-an-if-statement/175733 "2009-09-18T20:52:18Z")

</div>

I have two php scripts (css.php and js.php) which combine all css and js files. To make things faster on the client side, I want to set expires header to far future not set cookies for those request Here is what work…

---

## [Question on Rewrite / If statements](https://www.ruby-forum.com/t/question-on-rewrite-if-statements/175648)

<div class="topic-metadata">

**Author:** [@Resicow](https://www.ruby-forum.com/u/Resicow)\
**Replies:** 4\
**Last updated:** [September 18, 2009, 5:53pm UTC](https://www.ruby-forum.com/t/question-on-rewrite-if-statements/175648 "2009-09-18T17:53:46Z")

</div>

Hello, I have learned that the http\_referer module does not support variables. I am trying to work around this with if / rewrite statements, but may have run into the same issue. How can I make this work? set $myva…

---

## [Error compiling Nginx with mod\_wsgi](https://www.ruby-forum.com/t/error-compiling-nginx-with-mod-wsgi/175588)

<div class="topic-metadata">

**Author:** [@Shu\_Hung\_SKoala](https://www.ruby-forum.com/u/Shu_Hung_SKoala)\
**Replies:** 2\
**Last updated:** [September 18, 2009, 1:27pm UTC](https://www.ruby-forum.com/t/error-compiling-nginx-with-mod-wsgi/175588 "2009-09-18T13:27:25Z")

</div>

Hello all, I was trying to compile Nginx 0.6.38 with the latest mod\_wsgi, and there came and error “wsgi not found”. (the detailed logs were listed below) Versions Python 2.5 Nginx 0.6.38 mod\_wsgi (downloaded from …

---

## [Conditional fastcgi\_param](https://www.ruby-forum.com/t/conditional-fastcgi-param/175720)

<div class="topic-metadata">

**Author:** [@myschizobuddy](https://www.ruby-forum.com/u/myschizobuddy)\
**Replies:** 2\
**Last updated:** [September 18, 2009, 12:08pm UTC](https://www.ruby-forum.com/t/conditional-fastcgi-param/175720 "2009-09-18T12:08:22Z")

</div>

fastcgi\_param isn’t allowed inside an if statement The code below doesn’t work. Any workaround available if ($host ~\* ^dev.flow3.local$) { fastcgi\_param FLOW3\_CONTEXT Development; } if ($host ~\* ^flow3.local$) { …

---

## [NGX\_DONE from body\_filter, and what's next?](https://www.ruby-forum.com/t/ngx-done-from-body-filter-and-whats-next/175673)

<div class="topic-metadata">

**Author:** [@bbm](https://www.ruby-forum.com/u/bbm)\
**Replies:** 1\
**Last updated:** [September 18, 2009, 12:02pm UTC](https://www.ruby-forum.com/t/ngx-done-from-body-filter-and-whats-next/175673 "2009-09-18T12:02:31Z")

</div>

Hi, I’m writing a filter which do something like this: collect incoming data from chains enqueues some asynchronous connections using nginx event mechanism returns NGX\_DONE How should I finalize work of this filter f…

---

## [Merge\_slashes relate with VU#180065](https://www.ruby-forum.com/t/merge-slashes-relate-with-vu-180065/175656)

<div class="topic-metadata">

**Author:** [@zhijianpeng](https://www.ruby-forum.com/u/zhijianpeng)\
**Replies:** 2\
**Last updated:** [September 17, 2009, 6:14pm UTC](https://www.ruby-forum.com/t/merge-slashes-relate-with-vu-180065/175656 "2009-09-17T18:14:09Z")

</div>

Does the VU#180065 relate with merge\_slashes directive? what is the meanings of merge\_slashes directive? http://sysoev.ru/nginx/patch.180065.txt Posted at Nginx Forum:

---

## [Ngx\_resolver.c leaks memory?](https://www.ruby-forum.com/t/ngx-resolver-c-leaks-memory/175594)

<div class="topic-metadata">

**Author:** [@Matthew\_Dempsky](https://www.ruby-forum.com/u/Matthew_Dempsky)\
**Replies:** 6\
**Last updated:** [September 17, 2009, 3:39pm UTC](https://www.ruby-forum.com/t/ngx-resolver-c-leaks-memory/175594 "2009-09-17T15:39:01Z")

</div>

I’m still familiarizing myself with nginx’s architecture, but it looks like ngx\_resolver.c leaks memory in a few places. Before I spend any time tracking more down, I thought I’d point out one apparent leak so someon…

---

## [Add\_header Set-Cookie: $arg\_PARAMETER yields: 32049#0: unknown "arg\_parameter" variable](https://www.ruby-forum.com/t/add-header-set-cookie-arg-parameter-yields-32049-0-unknown-arg-parameter-variable/175626)

<div class="topic-metadata">

**Author:** [@David\_Taveras](https://www.ruby-forum.com/u/David_Taveras)\
**Replies:** 1\
**Last updated:** [September 17, 2009, 1:23pm UTC](https://www.ruby-forum.com/t/add-header-set-cookie-arg-parameter-yields-32049-0-unknown-arg-parameter-variable/175626 "2009-09-17T13:23:47Z")

</div>

Hello all, Iam trying to create a cookie globally based on a QUERY string var… for this Iam doing: add\_header Set-Cookie: $arg\_PARAMETER; When nginx is started it fails and errors: \[emerg\] 32049#0: unknown “arg\_p…

---

## [Is there a way to configure nginx not to block request from a specific IP address?](https://www.ruby-forum.com/t/is-there-a-way-to-configure-nginx-not-to-block-request-from-a-specific-ip-address/175661)

<div class="topic-metadata">

**Author:** [@machineatube](https://www.ruby-forum.com/u/machineatube)\
**Replies:** 4\
**Last updated:** [September 17, 2009, 12:34pm UTC](https://www.ruby-forum.com/t/is-there-a-way-to-configure-nginx-not-to-block-request-from-a-specific-ip-address/175661 "2009-09-17T12:34:01Z")

</div>

Hi I’d like do some static file tests on nginx, because I’d like to use nginx as my static file server so I wrote a loop(500000 loops) to send request and retrive response from nginx through a 100M speed network (LAN…

---

## [Gzip min\_length with upstream + ssi](https://www.ruby-forum.com/t/gzip-min-length-with-upstream-ssi/175670)

<div class="topic-metadata">

**Author:** [@191919](https://www.ruby-forum.com/u/191919)\
**Replies:** 5\
**Last updated:** [September 17, 2009, 12:31pm UTC](https://www.ruby-forum.com/t/gzip-min-length-with-upstream-ssi/175670 "2009-09-17T12:31:41Z")

</div>

Hi there, I encountered a problem when using gzip\_min\_length with upstream + ssi: ssi on; gzip\_min\_length 1024; upstream fastcgi\_backends { server unix:/tmp/nx-fastcgi.sock.00; } I wrote a PHP script as: \<? head…

---

## [Proxy\_set\_header in http section works in 0.6.32 but not 0.7.62](https://www.ruby-forum.com/t/proxy-set-header-in-http-section-works-in-0-6-32-but-not-0-7-62/175660)

<div class="topic-metadata">

**Author:** [@matt](https://www.ruby-forum.com/u/matt)\
**Replies:** 1\
**Last updated:** [September 17, 2009, 11:52am UTC](https://www.ruby-forum.com/t/proxy-set-header-in-http-section-works-in-0-6-32-but-not-0-7-62/175660 "2009-09-17T11:52:28Z")

</div>

I have found that proxy\_set\_header directives in the http section works in version 0.6.32 but not in 0.7.62, instead I have to place them under the location context. The specific directives I am using are: proxy\_s…

---

## [Urgent help - 145: Connection timed out](https://www.ruby-forum.com/t/urgent-help-145-connection-timed-out/175654)

<div class="topic-metadata">

**Author:** [@Kevin\_Castiglione](https://www.ruby-forum.com/u/Kevin_Castiglione)\
**Replies:** 2\
**Last updated:** [September 17, 2009, 8:45am UTC](https://www.ruby-forum.com/t/urgent-help-145-connection-timed-out/175654 "2009-09-17T08:45:08Z")

</div>

hi i have the nginx config below, and the fascgi backend takes lot of time to process the request. this is expected. but nginx returns error before it is over: upstream timed out (145: Connection timed out) while r…

---

## [Security advisory](https://www.ruby-forum.com/t/security-advisory/175487)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 6\
**Last updated:** [September 17, 2009, 7:54am UTC](https://www.ruby-forum.com/t/security-advisory/175487 "2009-09-17T07:54:48Z")

</div>

A patch to fix VU#180064 vulnerability: http://sysoev.ru/nginx/patch.180065.txt The patch is not required for 0.8.15, 0.7.62, 0.6.39, and 0.5.38.

---

## [SCRIPT\_FILENAME relative or absolute](https://www.ruby-forum.com/t/script-filename-relative-or-absolute/175573)

<div class="topic-metadata">

**Author:** [@myschizobuddy](https://www.ruby-forum.com/u/myschizobuddy)\
**Replies:** 3\
**Last updated:** [September 17, 2009, 7:12am UTC](https://www.ruby-forum.com/t/script-filename-relative-or-absolute/175573 "2009-09-17T07:12:04Z")

</div>

I have seen nginx.conf for linux systems and they start with a / which means its an absolute path. For windows, is it absolute or relative. same goes for the root directive is it absolute path or relative path

---

## [Unknown directive "env"](https://www.ruby-forum.com/t/unknown-directive-env/175565)

<div class="topic-metadata">

**Author:** [@myschizobuddy](https://www.ruby-forum.com/u/myschizobuddy)\
**Replies:** 6\
**Last updated:** [September 17, 2009, 7:10am UTC](https://www.ruby-forum.com/t/unknown-directive-env/175565 "2009-09-17T07:10:54Z")

</div>

Where does the env directive go. I’m using it under the Server scope

---

## [Ubuntu Hardy LTS (8.04) and Nginx and Openssl](https://www.ruby-forum.com/t/ubuntu-hardy-lts-8-04-and-nginx-and-openssl/175621)

<div class="topic-metadata">

**Author:** [@xmichielx](https://www.ruby-forum.com/u/xmichielx)\
**Replies:** 4\
**Last updated:** [September 17, 2009, 3:09am UTC](https://www.ruby-forum.com/t/ubuntu-hardy-lts-8-04-and-nginx-and-openssl/175621 "2009-09-17T03:09:44Z")

</div>

Hi, I am having problems to use Nginx with the openssl version Ubuntu 8.04 server shipped. See: Bug #395637 “SSL fails in hardy” : Bugs : nginx package : Ubuntu I use the Nginx backported version: nginx\_0.6.34-2ubun…

---

## [NGiNX to prevent DDoS](https://www.ruby-forum.com/t/nginx-to-prevent-ddos/175617)

<div class="topic-metadata">

**Author:** [@gromminger](https://www.ruby-forum.com/u/gromminger)\
**Replies:** 3\
**Last updated:** [September 16, 2009, 5:00pm UTC](https://www.ruby-forum.com/t/nginx-to-prevent-ddos/175617 "2009-09-16T17:00:19Z")

</div>

Hello Folks i got setup where nginx acts as reverse proxy for 3 apache backends. yesterday we had the case that some kind of bot or spider started attacking one domain which gets through nginx. is there any possibili…

---

## [Problems with rewrite on windows](https://www.ruby-forum.com/t/problems-with-rewrite-on-windows/175281)

<div class="topic-metadata">

**Author:** [@halfd](https://www.ruby-forum.com/u/halfd)\
**Replies:** 10\
**Last updated:** [September 16, 2009, 3:50pm UTC](https://www.ruby-forum.com/t/problems-with-rewrite-on-windows/175281 "2009-09-16T15:50:04Z")

</div>

Hello everyone! I am experiencing a rather unsuspected problem with rewrites in nginx on a Windows 2003 server. I have a system running behind nginx, which generates HTML files and places them in folders. In my con…

---

## [Upstream timed out](https://www.ruby-forum.com/t/upstream-timed-out/175570)

<div class="topic-metadata">

**Author:** [@myschizobuddy](https://www.ruby-forum.com/u/myschizobuddy)\
**Replies:** 1\
**Last updated:** [September 16, 2009, 11:24am UTC](https://www.ruby-forum.com/t/upstream-timed-out/175570 "2009-09-16T11:24:19Z")

</div>

upstream timed out (10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond) while …

---

## [Nginx enforces case-sensitivity incorrectly](https://www.ruby-forum.com/t/nginx-enforces-case-sensitivity-incorrectly/175513)

<div class="topic-metadata">

**Author:** [@Matthew\_Dempsky](https://www.ruby-forum.com/u/Matthew_Dempsky)\
**Replies:** 3\
**Last updated:** [September 16, 2009, 9:47am UTC](https://www.ruby-forum.com/t/nginx-enforces-case-sensitivity-incorrectly/175513 "2009-09-16T09:47:44Z")

</div>

According to RFC 2616, the “HTTP” string literal in the HTTP-Version part of the Request-Line is case-insensitive. (Rationale: Section 2.1 says quoted string literals are case-insensitive unless otherwise stated, and…

---

## [Nginx-0.6.32-3: proxy\_pass and $content\_type](https://www.ruby-forum.com/t/nginx-0-6-32-3-proxy-pass-and-content-type/175553)

<div class="topic-metadata">

**Author:** [@cedjo](https://www.ruby-forum.com/u/cedjo)\
**Replies:** 1\
**Last updated:** [September 15, 2009, 8:08pm UTC](https://www.ruby-forum.com/t/nginx-0-6-32-3-proxy-pass-and-content-type/175553 "2009-09-15T20:08:52Z")

</div>

Hello, We stumbled into a nice problem: we’d like to filter what nginx returns when used as a proxy\_pass. We want nginx to return content only if content\_type is an image, else en error like 403: server { location /…

---

## [Proxy\_pass and $content\_type](https://www.ruby-forum.com/t/proxy-pass-and-content-type/175548)

<div class="topic-metadata">

**Author:** [@cedjo](https://www.ruby-forum.com/u/cedjo)\
**Replies:** 8\
**Last updated:** [September 15, 2009, 6:24pm UTC](https://www.ruby-forum.com/t/proxy-pass-and-content-type/175548 "2009-09-15T18:24:41Z")

</div>

Hello all, We’re wanting to use nginx as a proxy between a varnish and a S3 storage. We’re using debian lenny, nginx version is 0.6.32-3. What we’re dowing: server { location / { proxy\_pass … if ($content\_type !~\*…

---

## [Form Fields application/x-www-form-urlencoded"](https://www.ruby-forum.com/t/form-fields-application-x-www-form-urlencoded/175568)

<div class="topic-metadata">

**Author:** [@Ranier\_Vilela](https://www.ruby-forum.com/u/Ranier_Vilela)\
**Replies:** 0\
**Last updated:** [September 15, 2009, 6:11pm UTC](https://www.ruby-forum.com/t/form-fields-application-x-www-form-urlencoded/175568 "2009-09-15T18:11:13Z")

</div>

Hello Igor, are you fine? Is possible populate the \*variables field in struct request with all form fields received by “application/x-www-form-/urlencoded”?// Sorry for disturb, bat I can´t get the field form inside …

---

## [Full URL in http GET](https://www.ruby-forum.com/t/full-url-in-http-get/175509)

<div class="topic-metadata">

**Author:** [@eggnet](https://www.ruby-forum.com/u/eggnet)\
**Replies:** 3\
**Last updated:** [September 15, 2009, 5:52pm UTC](https://www.ruby-forum.com/t/full-url-in-http-get/175509 "2009-09-15T17:52:28Z")

</div>

Hello, I’m trying to get nginx to work with a squid back end. In our environment, we require the full URL in the GET line, which is how squid can distinguish between an http and https request. The role of nginx is …

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

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