# Server

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

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

---

## [Setting environment variable](https://www.ruby-forum.com/t/setting-environment-variable/175544)

<div class="topic-metadata">

**Author:** [@myschizobuddy](https://www.ruby-forum.com/u/myschizobuddy)\
**Replies:** 4\
**Last updated:** [September 15, 2009, 3:43pm UTC](https://www.ruby-forum.com/t/setting-environment-variable/175544 "2009-09-15T15:43:06Z")

</div>

How do I set an environment variable based on the domainFor ex if the domain is http://dev.flow3.local then FLOW3\_CONTEXT = Development. Otherwise its Production Nginx 0.8.15

---

## [Bug? Closing upstream fastcgi requests on 0.8.15/0.7.62](https://www.ruby-forum.com/t/bug-closing-upstream-fastcgi-requests-on-0-8-15-0-7-62/175542)

<div class="topic-metadata">

**Author:** [@jwigal](https://www.ruby-forum.com/u/jwigal)\
**Replies:** 3\
**Last updated:** [September 15, 2009, 2:24pm UTC](https://www.ruby-forum.com/t/bug-closing-upstream-fastcgi-requests-on-0-8-15-0-7-62/175542 "2009-09-15T14:24:39Z")

</div>

Hi all, I’m seeing a massive spike of nginx connections in read state, which appears to be related to fastcgi upstream connections \[1\]. Usually I’ll have 0.6 avg and ~25 max connections in read state, but with 0.8.1…

---

## [Ways to control the gzip\_vary directive from nginx 0.6.34 and 	above?](https://www.ruby-forum.com/t/ways-to-control-the-gzip-vary-directive-from-nginx-0-6-34-and-above/175522)

<div class="topic-metadata">

**Author:** [@Zev\_B](https://www.ruby-forum.com/u/Zev_B)\
**Replies:** 13\
**Last updated:** [September 15, 2009, 1:36pm UTC](https://www.ruby-forum.com/t/ways-to-control-the-gzip-vary-directive-from-nginx-0-6-34-and-above/175522 "2009-09-15T13:36:05Z")

</div>

Hello, Nginx 0.6.34 and above have changed the gzip\_vary directive to add the “Vary: Accept-Encoding” header to uncompressed responses as well as compressed responses. The change is specifically: " Changes with ngi…

---

## [Bugs in nginx](https://www.ruby-forum.com/t/bugs-in-nginx/175270)

<div class="topic-metadata">

**Author:** [@gloomen](https://www.ruby-forum.com/u/gloomen)\
**Replies:** 12\
**Last updated:** [September 15, 2009, 9:10am UTC](https://www.ruby-forum.com/t/bugs-in-nginx/175270 "2009-09-15T09:10:17Z")

</div>

Friends, help deal with nginx. I can not go to the site. 502 Bad Gateway nginx/0.7.61 ee /var/log/nginx-error.log 2009/09/10 14:58:19 734#0: \*3 upstream prematurely closed connection while reading response header f…

---

## [Setting a cookie from the webserver level like apache2 and mod\_rewrite can](https://www.ruby-forum.com/t/setting-a-cookie-from-the-webserver-level-like-apache2-and-mod-rewrite-can/175507)

<div class="topic-metadata">

**Author:** [@David\_Taveras](https://www.ruby-forum.com/u/David_Taveras)\
**Replies:** 0\
**Last updated:** [September 15, 2009, 12:27am UTC](https://www.ruby-forum.com/t/setting-a-cookie-from-the-webserver-level-like-apache2-and-mod-rewrite-can/175507 "2009-09-15T00:27:35Z")

</div>

Hello, We are evaluating migrating to nginx from apache2 with mod\_rewrite. Currently we have something like this in apache2 .htaccess: RewriteRule ^(.)$ - \[CO=%1:%2:.ourdomain.com,R=301\] RewriteRule (.) $1? \[R=301,L\] …

---

## [Ngx\_http\_redis-0.1.2](https://www.ruby-forum.com/t/ngx-http-redis-0-1-2/175500)

<div class="topic-metadata">

**Author:** [@Sergey\_ASOsokin](https://www.ruby-forum.com/u/Sergey_ASOsokin)\
**Replies:** 0\
**Last updated:** [September 14, 2009, 9:51pm UTC](https://www.ruby-forum.com/t/ngx-http-redis-0-1-2/175500 "2009-09-14T21:51:16Z")

</div>

Hello, this is module support redis for nginx, 0.1.2. http://people.freebsd.org/~osa/ngx\_http\_redis-0.1.2.tar.gz MD5 (ngx\_http\_redis-0.1.2.tar.gz) = 1009e21976b6d66576bbbe21903be44a SHA256 (ngx\_http\_redis-0.1.2.tar.g…

---

## [Ngx\_http\_fstorage\_module for simple File Storage Software - fstorage](https://www.ruby-forum.com/t/ngx-http-fstorage-module-for-simple-file-storage-software-fstorage/175493)

<div class="topic-metadata">

**Author:** [@SSSSSukasz\_Podkalic](https://www.ruby-forum.com/u/SSSSSukasz_Podkalic)\
**Replies:** 0\
**Last updated:** [September 14, 2009, 7:19pm UTC](https://www.ruby-forum.com/t/ngx-http-fstorage-module-for-simple-file-storage-software-fstorage/175493 "2009-09-14T19:19:02Z")

</div>

Hi, My last release of Fstorage (http://fstorage.pl) in stable version 0.2 has support for Nginx. Dear Sirs, I hope you will find information below useful for yours network applications. Hardly every website start-…

---

## [Nginx-0.7.62](https://www.ruby-forum.com/t/nginx-0-7-62/175485)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 0\
**Last updated:** [September 14, 2009, 3:44pm UTC](https://www.ruby-forum.com/t/nginx-0-7-62/175485 "2009-09-14T15:44:46Z")

</div>

Changes with nginx 0.7.62 14 Sep 2009 \*) Security: a segmentation fault might occur in worker process while specially crafted request handling. Thanks to Chris Ries. \*) Featu…

---

## [Nginx-0.5.38](https://www.ruby-forum.com/t/nginx-0-5-38/175482)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 0\
**Last updated:** [September 14, 2009, 3:41pm UTC](https://www.ruby-forum.com/t/nginx-0-5-38/175482 "2009-09-14T15:41:50Z")

</div>

Changes with nginx 0.5.38 14 Sep 2009 \*) Security: a segmentation fault might occur in worker process while specially crafted request handling. Thanks to Chris Ries. \*) Bugfi…

---

## [Nginx-0.8.15](https://www.ruby-forum.com/t/nginx-0-8-15/175483)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 0\
**Last updated:** [September 14, 2009, 3:41pm UTC](https://www.ruby-forum.com/t/nginx-0-8-15/175483 "2009-09-14T15:41:15Z")

</div>

Changes with nginx 0.8.15 14 Sep 2009 \*) Security: a segmentation fault might occur in worker process while specially crafted request handling. Thanks to Chris Ries. \*) Bugfi…

---

## [Nginx-0.6.39](https://www.ruby-forum.com/t/nginx-0-6-39/175484)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 0\
**Last updated:** [September 14, 2009, 3:39pm UTC](https://www.ruby-forum.com/t/nginx-0-6-39/175484 "2009-09-14T15:39:30Z")

</div>

Changes with nginx 0.6.39 14 Sep 2009 \*) Security: a segmentation fault might occur in worker process while specially crafted request handling. Thanks to Chris Ries. \*) Bugfi…

---

## [How to configure phpmyadmin with nginx?](https://www.ruby-forum.com/t/how-to-configure-phpmyadmin-with-nginx/175403)

<div class="topic-metadata">

**Author:** [@SE7EN](https://www.ruby-forum.com/u/SE7EN)\
**Replies:** 7\
**Last updated:** [September 14, 2009, 3:27pm UTC](https://www.ruby-forum.com/t/how-to-configure-phpmyadmin-with-nginx/175403 "2009-09-14T15:27:47Z")

</div>

Hi, phpmyadmin is installed in /usr/share/phpmyadmin and i have the following vhost configuration file. How to configure phpmyadmin so i can use: http://mydomain.com/phpmyadminThank youserver { Â listen 8…

---

## [Need this apache rewrites rewrite to nginx rewrite](https://www.ruby-forum.com/t/need-this-apache-rewrites-rewrite-to-nginx-rewrite/175418)

<div class="topic-metadata">

**Author:** [@johnt519](https://www.ruby-forum.com/u/johnt519)\
**Replies:** 3\
**Last updated:** [September 14, 2009, 1:47pm UTC](https://www.ruby-forum.com/t/need-this-apache-rewrites-rewrite-to-nginx-rewrite/175418 "2009-09-14T13:47:59Z")

</div>

Options +FollowSymlinks RewriteEngine on RewriteRule visit/(.)/$ /logs.php?q=visit&linkfull=$1 RewriteRule go/(.)/$ /logs.php?q=go&linkcode=$1 RewriteRule link/(.)/$ /logs.php?q=link&linkid=$1 RewriteRule site/(.)/$…

---

## [SSI virtual, revisited](https://www.ruby-forum.com/t/ssi-virtual-revisited/175468)

<div class="topic-metadata">

**Author:** [@Toni\_M](https://www.ruby-forum.com/u/Toni_M)\
**Replies:** 1\
**Last updated:** [September 14, 2009, 1:18pm UTC](https://www.ruby-forum.com/t/ssi-virtual-revisited/175468 "2009-09-14T13:18:26Z")

</div>

Hi, I’m still pondering about how to enable virtual paths with “…” in them. Although I can imagine why they have been disallowed, I am dissatisfied with this course of events. It breaks my usage scenario, which is to…

---

## [SubversionProblem: Reverse Proxying to Apache with mod\_dav\_svn](https://www.ruby-forum.com/t/subversionproblem-reverse-proxying-to-apache-with-mod-dav-svn/175456)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [September 14, 2009, 10:22am UTC](https://www.ruby-forum.com/t/subversionproblem-reverse-proxying-to-apache-with-mod-dav-svn/175456 "2009-09-14T10:22:13Z")

</div>

Hi everyone. I have NGINGX installed in front of an Apache with mod\_dav\_svn to access my Subversion Repositories via WebBrowser and with SVN-Clients. Adding and committing small files is working well. But when I try …

---

## [Replace WINCH signal](https://www.ruby-forum.com/t/replace-winch-signal/175443)

<div class="topic-metadata">

**Author:** [@asmo](https://www.ruby-forum.com/u/asmo)\
**Replies:** 1\
**Last updated:** [September 14, 2009, 10:04am UTC](https://www.ruby-forum.com/t/replace-winch-signal/175443 "2009-09-14T10:04:39Z")

</div>

Hi I have few development boxes where nginx is running on foreground (screen session). It gets annoying when workers are stopped by SIGWINCH when I just mis-click my terminal window. I’d like to replace WINCH with s…

---

## [Possible to determine which FastCGI server responded?](https://www.ruby-forum.com/t/possible-to-determine-which-fastcgi-server-responded/175436)

<div class="topic-metadata">

**Author:** [@Davy\_C](https://www.ruby-forum.com/u/Davy_C)\
**Replies:** 1\
**Last updated:** [September 14, 2009, 9:56am UTC](https://www.ruby-forum.com/t/possible-to-determine-which-fastcgi-server-responded/175436 "2009-09-14T09:56:26Z")

</div>

If I have a configuration like this for FastCGI, is it possible to determine which server responded to the request? Is there a variable that would tell this that I can use for nginx’s log? upstream phpservers { s…

---

## [Proxy\_pass and remote\_addr](https://www.ruby-forum.com/t/proxy-pass-and-remote-addr/175434)

<div class="topic-metadata">

**Author:** [@Johan\_BergstrSSSSm](https://www.ruby-forum.com/u/Johan_BergstrSSSSm)\
**Replies:** 1\
**Last updated:** [September 14, 2009, 9:52am UTC](https://www.ruby-forum.com/t/proxy-pass-and-remote-addr/175434 "2009-09-14T09:52:55Z")

</div>

Good evening, I know I’m not the first to ask - but I can’t seem to find an answer on this mailing list, hence yet another question regarding passing remote\_addr. I’m proxying IIS 6.0 (with a caching nginx) which unf…

---

## [Limit\_except strange by bug or design?](https://www.ruby-forum.com/t/limit-except-strange-by-bug-or-design/175430)

<div class="topic-metadata">

**Author:** [@Micha\_G](https://www.ruby-forum.com/u/Micha_G)\
**Replies:** 1\
**Last updated:** [September 13, 2009, 10:55pm UTC](https://www.ruby-forum.com/t/limit-except-strange-by-bug-or-design/175430 "2009-09-13T22:55:03Z")

</div>

I have a problem with the limit\_except command. I try to offer a public Mercurial-Repository with nginx as frontend. In short: GET is allowed, POST needs authentification. In my simple mind I thought this config would…

---

## [Could someone explain weights in upstream? thanks!](https://www.ruby-forum.com/t/could-someone-explain-weights-in-upstream-thanks/175424)

<div class="topic-metadata">

**Author:** [@iberci](https://www.ruby-forum.com/u/iberci)\
**Replies:** 1\
**Last updated:** [September 13, 2009, 7:10pm UTC](https://www.ruby-forum.com/t/could-someone-explain-weights-in-upstream-thanks/175424 "2009-09-13T19:10:16Z")

</div>

Does a higher weight mean higher priority or the other way around? Thanks

---

## [Correct upstream configuration for php-fpm?](https://www.ruby-forum.com/t/correct-upstream-configuration-for-php-fpm/175421)

<div class="topic-metadata">

**Author:** [@iberci](https://www.ruby-forum.com/u/iberci)\
**Replies:** 1\
**Last updated:** [September 13, 2009, 5:45pm UTC](https://www.ruby-forum.com/t/correct-upstream-configuration-for-php-fpm/175421 "2009-09-13T17:45:57Z")

</div>

this is what i have: upstream handlephp { server 127.0.0.1:9000; server 192.168.1.3:9000; } server { location ~ .php$ { include fcgi; fastcgi\_pass http://handlephp; } } This gives configuration error of: in…

---

## [ExpiresByType](https://www.ruby-forum.com/t/expiresbytype/175416)

<div class="topic-metadata">

**Author:** [@gogobu](https://www.ruby-forum.com/u/gogobu)\
**Replies:** 1\
**Last updated:** [September 13, 2009, 1:07pm UTC](https://www.ruby-forum.com/t/expiresbytype/175416 "2009-09-13T13:07:21Z")

</div>

Hi, Is there any way to configure nginx to set the expiration based on the mime type? Something similar to Apache’s “ExpiresByType”: http://httpd.apache.org/docs/2.0/mod/mod\_expires.html#expiresbytype Thanks, Micha…

---

## [Nginx upload progress module v0.6](https://www.ruby-forum.com/t/nginx-upload-progress-module-v0-6/175402)

<div class="topic-metadata">

**Author:** [@Brice\_F](https://www.ruby-forum.com/u/Brice_F)\
**Replies:** 0\
**Last updated:** [September 12, 2009, 11:26pm UTC](https://www.ruby-forum.com/t/nginx-upload-progress-module-v0-6/175402 "2009-09-12T23:26:46Z")

</div>

Hi, I’m proud to announce the availability of the version 0.6 of the nginx\_upload\_progress\_module. This version fixes one high traffic bug and is a recommended upgrade. This version seems now stable to be used in pro…

---

## [PHP\_SELF not set](https://www.ruby-forum.com/t/php-self-not-set/175370)

<div class="topic-metadata">

**Author:** [@durist](https://www.ruby-forum.com/u/durist)\
**Replies:** 4\
**Last updated:** [September 12, 2009, 1:17am UTC](https://www.ruby-forum.com/t/php-self-not-set/175370 "2009-09-12T01:17:39Z")

</div>

I am trying to configure cacti under nginx. It makes heavy use of the $\_SERVER\[‘PHP\_SELF’\] variable, but this isn’t getting set. I’ve tried setting it explicitly; e.g. fastcgi\_param PHP\_SELF $fastcgi\_script\_name; but…

---

## [Ngx\_array zero capacity support](https://www.ruby-forum.com/t/ngx-array-zero-capacity-support/175349)

<div class="topic-metadata">

**Author:** [@Peter\_SchSSS\_ller](https://www.ruby-forum.com/u/Peter_SchSSS_ller)\
**Replies:** 2\
**Last updated:** [September 11, 2009, 11:36pm UTC](https://www.ruby-forum.com/t/ngx-array-zero-capacity-support/175349 "2009-09-11T23:36:23Z")

</div>

Hello, attached is a patch to make the ngx\_array\_push() support zero-capacity arrays. Previously it would fail to grow the data buffer correctly (2 0 = 0).

---

## [Text area posting to php](https://www.ruby-forum.com/t/text-area-posting-to-php/175344)

<div class="topic-metadata">

**Author:** [@dcian](https://www.ruby-forum.com/u/dcian)\
**Replies:** 4\
**Last updated:** [September 11, 2009, 7:13pm UTC](https://www.ruby-forum.com/t/text-area-posting-to-php/175344 "2009-09-11T19:13:33Z")

</div>

Hi All, I have a site written in php, that I am trying to move onto nginx. The site works on my test machine = Windows, Apache2.2. and php5. It does not work on the production machine (Ubuntu, nginx, php5). The post…

---

## [Question about proxy\_cache\_valid](https://www.ruby-forum.com/t/question-about-proxy-cache-valid/175288)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [September 11, 2009, 3:20pm UTC](https://www.ruby-forum.com/t/question-about-proxy-cache-valid/175288 "2009-09-11T15:20:33Z")

</div>

Hi, what is the difference between the proxy\_cache\_valid directive and the “inactive” parameter of the proxy\_cache\_path directive? When I set “proxy\_cache\_valid 10m;” and “inactive=1h”, how long will the request be s…

---

## ["zero length URI to proxy" in ngx\_http\_proxy\_module.c (more forward proxy troubles)](https://www.ruby-forum.com/t/zero-length-uri-to-proxy-in-ngx-http-proxy-module-c-more-forward-proxy-troubles/175339)

<div class="topic-metadata">

**Author:** [@mpaxton](https://www.ruby-forum.com/u/mpaxton)\
**Replies:** 1\
**Last updated:** [September 11, 2009, 1:21pm UTC](https://www.ruby-forum.com/t/zero-length-uri-to-proxy-in-ngx-http-proxy-module-c-more-forward-proxy-troubles/175339 "2009-09-11T13:21:06Z")

</div>

Hi All, I’m getting the “zero length URI to proxy” error from line 925 in ngx\_http\_proxy\_module.c. I’m the guy using nginx as a forward proxy, using Igor’s config suggestion from yesterday: http { resolver 127.0.…

---

## [If condition and question](https://www.ruby-forum.com/t/if-condition-and-question/175294)

<div class="topic-metadata">

**Author:** [@Tomasz\_P](https://www.ruby-forum.com/u/Tomasz_P)\
**Replies:** 2\
**Last updated:** [September 11, 2009, 1:10pm UTC](https://www.ruby-forum.com/t/if-condition-and-question/175294 "2009-09-11T13:10:34Z")

</div>

Hello, When a request comes to the server i want to check if the $remote\_addr is in my list of addresses, if it is then serve the normal content if not, then serve a static page. I tried something like this but it do…

---

## [\_\_utm.gif --- how to redirect request?](https://www.ruby-forum.com/t/utm-gif-how-to-redirect-request/175315)

<div class="topic-metadata">

**Author:** [@iberci](https://www.ruby-forum.com/u/iberci)\
**Replies:** 6\
**Last updated:** [September 11, 2009, 7:31am UTC](https://www.ruby-forum.com/t/utm-gif-how-to-redirect-request/175315 "2009-09-11T07:31:38Z")

</div>

Hi All, Simple question, I think. Our error log is flooded with file not found requests for \_\_utm.gif. This is part of google analytics and for some reason, the requested pages (some) are trying to load it locally. …

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

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