# Server

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

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

---

## [Code Contribution](https://www.ruby-forum.com/t/code-contribution/203187)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [February 16, 2011, 6:24pm UTC](https://www.ruby-forum.com/t/code-contribution/203187 "2011-02-16T18:24:36Z")

</div>

Hey I’m a developer of Zimbra and responsible of Nginx-Zimbra Extension. Zimbra have some mail related code to contribute, for example mail SASL authentication, IMAP ID command suport, etc… If u are interested, contac…

---

## [Proxy\_store issue](https://www.ruby-forum.com/t/proxy-store-issue/203257)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [February 16, 2011, 3:45pm UTC](https://www.ruby-forum.com/t/proxy-store-issue/203257 "2011-02-16T15:45:09Z")

</div>

I’m using proxy\_store. It’s works perfectly. Until now, we’re fetching a HTML page. The error that I got is, the HTML which is fetched, shows me β8D! {}1’w\[4M~9ͯCE2eBߧ}t\`A Is there anybody knows why it’s happended?…

---

## [I want to use limit\_req\_zone and limit\_zone to limit all ip but not include 67.67.67.67!How to?](https://www.ruby-forum.com/t/i-want-to-use-limit-req-zone-and-limit-zone-to-limit-all-ip-but-not-include-67-67-67-67-how-to/203258)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [February 16, 2011, 3:13pm UTC](https://www.ruby-forum.com/t/i-want-to-use-limit-req-zone-and-limit-zone-to-limit-all-ip-but-not-include-67-67-67-67-how-to/203258 "2011-02-16T15:13:09Z")

</div>

I want to use limit\_req\_zone and limit\_zone to limit all ip but not include 67.67.67.67! How to? … … … limit\_zone crawler $binary\_remote\_addr 10m; limit\_req\_zone $binary\_remote\_addr zone=all:10m rate=60r/m; …

---

## [Memcache and garbled text returned by Nginx](https://www.ruby-forum.com/t/memcache-and-garbled-text-returned-by-nginx/203206)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 8\
**Last updated:** [February 16, 2011, 11:28am UTC](https://www.ruby-forum.com/t/memcache-and-garbled-text-returned-by-nginx/203206 "2011-02-16T11:28:41Z")

</div>

I have a php script that writes the whole page output (using output buffering and PECL memcache module) to memcache using keys such as: $host$request\_uri \<?php function memcache\_ob($output) { $time\_start = microtim…

---

## [Install problem using .deb package](https://www.ruby-forum.com/t/install-problem-using-deb-package/203239)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [February 16, 2011, 2:45am UTC](https://www.ruby-forum.com/t/install-problem-using-deb-package/203239 "2011-02-16T02:45:50Z")

</div>

Hi, I’m trying to install nginx 0.8.54 on Debian Squeeze. It builds successfully, and I’ve created a .deb package using checkinstall. However when I try to install the package I run into an error: # dpkg -i nginx\_90.…

---

## [Basic Authentication and PHP files](https://www.ruby-forum.com/t/basic-authentication-and-php-files/203205)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [February 15, 2011, 5:50pm UTC](https://www.ruby-forum.com/t/basic-authentication-and-php-files/203205 "2011-02-15T17:50:25Z")

</div>

I have a configuration block like this : location /members/ { index main.php; } location ~ ^/members/(?:text1|text2|text3)/(?!noinclude)\[^\\/\]+/ { auth\_basic "Restricted Area"; auth\_basic\_u…

---

## [Image files (jpg,png) could not be opened](https://www.ruby-forum.com/t/image-files-jpg-png-could-not-be-opened/202743)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [February 15, 2011, 5:55am UTC](https://www.ruby-forum.com/t/image-files-jpg-png-could-not-be-opened/202743 "2011-02-15T05:55:51Z")

</div>

Hi all, Image files like .png and .jpg could not be opened when click on it. It works fine for others like .txt or .xls. I got a prompt window where I can select a program to open the file but for image files I got 40…

---

## [What is the ultimate fastest platform for php? Is it nginx+freebsd?](https://www.ruby-forum.com/t/what-is-the-ultimate-fastest-platform-for-php-is-it-nginx-freebsd/203190)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [February 15, 2011, 4:19am UTC](https://www.ruby-forum.com/t/what-is-the-ultimate-fastest-platform-for-php-is-it-nginx-freebsd/203190 "2011-02-15T04:19:33Z")

</div>

I was wondering what is better for a php server. I heard that nginx is the fastest server and freebsd is fastest unix os. Would freebsd 64bit + nginx be the best choice? Some even say iis 7.5 on winserver 2008 r2 is t…

---

## [New Ubuntu-Light ppa with the latest nginx code](https://www.ruby-forum.com/t/new-ubuntu-light-ppa-with-the-latest-nginx-code/203166)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [February 14, 2011, 10:28pm UTC](https://www.ruby-forum.com/t/new-ubuntu-light-ppa-with-the-latest-nginx-code/203166 "2011-02-14T22:28:57Z")

</div>

Hello List, I have just set up an Ubuntu ppa to always keep a tab on the latest Nnginx code (currently 0.9.4). As usual in Ubuntu, you may install it using the following commands: sudo add-apt-repository ppa:malan/de…

---

## [Reverse proxy and keep-alive](https://www.ruby-forum.com/t/reverse-proxy-and-keep-alive/203170)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [February 14, 2011, 8:34pm UTC](https://www.ruby-forum.com/t/reverse-proxy-and-keep-alive/203170 "2011-02-14T20:34:16Z")

</div>

Hi list, I was wondering if Nginx can do keep-alive on proxy\_pass (reverse proxy). The wiki says: "It is an HTTP/1.0 proxy without the ability for keep-alive requests yet." I’m curious about the meaning of “yet”, d…

---

## [Waiting Patiently](https://www.ruby-forum.com/t/waiting-patiently/203160)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [February 14, 2011, 6:25pm UTC](https://www.ruby-forum.com/t/waiting-patiently/203160 "2011-02-14T18:25:10Z")

</div>

Me and alot of people are waiting patinently for nginx persistant connection support for http proxy backends. Ive been looking into writing a module myself but finaly given up (I realised how much I really do hate C). …

---

## [Using Nginx as an injection proxy](https://www.ruby-forum.com/t/using-nginx-as-an-injection-proxy/202102)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [February 14, 2011, 4:46pm UTC](https://www.ruby-forum.com/t/using-nginx-as-an-injection-proxy/202102 "2011-02-14T16:46:50Z")

</div>

Hi, I’d like to know whether it is possible to use Nginx as an injection proxy (for 100% legal and professionnal use ! :slight\_smile: ), notably to analyse the headers or content of a response, and perform automated c…

---

## [How to get nginx version by shell script?](https://www.ruby-forum.com/t/how-to-get-nginx-version-by-shell-script/203153)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [February 14, 2011, 10:38am UTC](https://www.ruby-forum.com/t/how-to-get-nginx-version-by-shell-script/203153 "2011-02-14T10:38:38Z")

</div>

i have try to get nginx version,use: root@vps:~# nv=/usr/local/nginx/sbin -v root@vps:~# echo $nv but echo $nv was blank. i also have try php or other program was work.

---

## [Passing request directly to named location](https://www.ruby-forum.com/t/passing-request-directly-to-named-location/203054)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [February 13, 2011, 1:52pm UTC](https://www.ruby-forum.com/t/passing-request-directly-to-named-location/203054 "2011-02-13T13:52:12Z")

</div>

Hello all. I currently have my php set up as so ... location ~ \\..\*/.\*\\.php$ { return 403; } location ~\* ^.+\\.php$ { try\_files $uri/fail @proxy; } location @proxy { proxy pass etc } location s…

---

## [V 0.9.4: unexpected end of file, expecting "; " or "}" in /etc/mime.types:789](https://www.ruby-forum.com/t/v-0-9-4-unexpected-end-of-file-expecting-or-in-etc-mime-types-789/203110)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [February 13, 2011, 6:11am UTC](https://www.ruby-forum.com/t/v-0-9-4-unexpected-end-of-file-expecting-or-in-etc-mime-types-789/203110 "2011-02-13T06:11:56Z")

</div>

Hi Folks I couldn’t see a reference to this in the recent archives, and googling didn’t help. I’ve just installed Debian 6 on a new laptop, and compiled nginx 0.9.4 with: ./configure --with-http\_ssl\_module --with-ht…

---

## [Nested Locations Better?](https://www.ruby-forum.com/t/nested-locations-better/203100)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [February 12, 2011, 9:55pm UTC](https://www.ruby-forum.com/t/nested-locations-better/203100 "2011-02-12T21:55:48Z")

</div>

Just noticed that in Igor’s response to an earlier query of mine on a separate issue, he took code I had shown effectively as … location /set/subset/ { abc; } location /set/ { xyz; } … and wrote it like this in his…

---

## [Fastcgi\_cache\_bypass and 502 Bad Gateway](https://www.ruby-forum.com/t/fastcgi-cache-bypass-and-502-bad-gateway/203006)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 15\
**Last updated:** [February 12, 2011, 1:49pm UTC](https://www.ruby-forum.com/t/fastcgi-cache-bypass-and-502-bad-gateway/203006 "2011-02-12T13:49:33Z")

</div>

Using Nginx 0.8.54. I’m trying to use fastcgi\_cache\_bypass with an HTTP header for Nginx to request a new response from the backend and cache it. if ($http\_cookie ~\* "comment\_author\_|wordpress\_(?!test\_cookie)|wp-postp…

---

## [Uninstall/Install](https://www.ruby-forum.com/t/uninstall-install/203086)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [February 12, 2011, 3:36am UTC](https://www.ruby-forum.com/t/uninstall-install/203086 "2011-02-12T03:36:05Z")

</div>

I uninstalled Mailman in hopes to start over, but when I try to install I get the following errors: No updates are necessary. Starting Mailman master qrunner mailmanctl Traceback (most recent call last): File “/us…

---

## [Nginx 0.8.54: Index files bug?](https://www.ruby-forum.com/t/nginx-0-8-54-index-files-bug/203057)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 13\
**Last updated:** [February 11, 2011, 6:55pm UTC](https://www.ruby-forum.com/t/nginx-0-8-54-index-files-bug/203057 "2011-02-11T18:55:22Z")

</div>

Just noticed an issue with my 0.8.54 installation. URL = www.site.com, Result = 500 error server { ... index index.html; location / { try\_files $uri $uri/; } } URL = www.site.com, Result = 500 error server…

---

## [502 Bad Gateway (php-fastcgi processes crashing)](https://www.ruby-forum.com/t/502-bad-gateway-php-fastcgi-processes-crashing/203001)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [February 11, 2011, 6:40pm UTC](https://www.ruby-forum.com/t/502-bad-gateway-php-fastcgi-processes-crashing/203001 "2011-02-11T18:40:57Z")

</div>

Our site is currently on a linux VPS with DreamHost and using nginx 0.8.53 as the web server and php-fcgi version 5.2.15. On occasion, our php-fastcgi processes just suddenly crash, and our users are left with a “502 …

---

## [Migrating from Lighttpd/Apache combo: extra path on static files](https://www.ruby-forum.com/t/migrating-from-lighttpd-apache-combo-extra-path-on-static-files/203068)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [February 11, 2011, 5:05pm UTC](https://www.ruby-forum.com/t/migrating-from-lighttpd-apache-combo-extra-path-on-static-files/203068 "2011-02-11T17:05:41Z")

</div>

Hi, I’m migrating a setup for a friend, and hit a snag, I can’t seem to find the proper way to do this on nginx. Assume a directory /my/files/ with a.gif inside. He is using: location /files { alias /my/files; } b…

---

## [Trying to get alias and seo urls working with uwsgi but no luck](https://www.ruby-forum.com/t/trying-to-get-alias-and-seo-urls-working-with-uwsgi-but-no-luck/203053)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [February 11, 2011, 11:16am UTC](https://www.ruby-forum.com/t/trying-to-get-alias-and-seo-urls-working-with-uwsgi-but-no-luck/203053 "2011-02-11T11:16:51Z")

</div>

hi there, I’m new to nginx and trying to configure nginx and uwsgi to get alias+seo url working, something like this: http://domain.com/shop/product/123 - /shop is an alias and shop dir doesnt exist in filesystem und…

---

## [Help With Mailman](https://www.ruby-forum.com/t/help-with-mailman/203014)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 12\
**Last updated:** [February 11, 2011, 4:40am UTC](https://www.ruby-forum.com/t/help-with-mailman/203014 "2011-02-11T04:40:50Z")

</div>

Hello everyone. I am having a little issue with mailman. I’ve installed and configured mailman for mulyoo.net which works. On this particular server the software is Ubuntu 10 (Lucid). On a different server, I did the…

---

## [Redirect based on php-set cookies](https://www.ruby-forum.com/t/redirect-based-on-php-set-cookies/183712)

<div class="topic-metadata">

**Author:** [@tqvn2004](https://www.ruby-forum.com/u/tqvn2004)\
**Replies:** 6\
**Last updated:** [February 10, 2011, 1:12pm UTC](https://www.ruby-forum.com/t/redirect-based-on-php-set-cookies/183712 "2011-02-10T13:12:54Z")

</div>

Hi guys, I am planning to use nginx as reserve proxy in front my Apache server. Our site is under heavy DoS attack, where attacker sends a lot of malformed HTTP request to flood Apache. I intend to filter out the att…

---

## [Reverse proxy imap](https://www.ruby-forum.com/t/reverse-proxy-imap/202939)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [February 10, 2011, 8:05am UTC](https://www.ruby-forum.com/t/reverse-proxy-imap/202939 "2011-02-10T08:05:27Z")

</div>

Someone has set up a reverse proxy imap, you connect to a Lotus Domino server on port 993? It is the typical question, but could send the configuration files? It would help me a lot to understand how to configure it.…

---

## [Counters in nginx](https://www.ruby-forum.com/t/counters-in-nginx/202988)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [February 10, 2011, 3:08am UTC](https://www.ruby-forum.com/t/counters-in-nginx/202988 "2011-02-10T03:08:11Z")

</div>

Hi, I need to realize event counters in nginx. So I’ve planned to create command like “counter”. And have something similar to HttpLimit(Zone/Req)Module, so my config should looks like: http { counter\_zone one $…

---

## [Turn off warning message on nginx](https://www.ruby-forum.com/t/turn-off-warning-message-on-nginx/202733)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [February 9, 2011, 10:19pm UTC](https://www.ruby-forum.com/t/turn-off-warning-message-on-nginx/202733 "2011-02-09T22:19:28Z")

</div>

Hi, Is there any command that i put in conf file to turnoff warning message of joomla. for instance in apache .htaccess if i add php\_flag display\_errors “0” it doesnt show me error message anymore how can i get rid …

---

## [Re: turn off warning message on nginx](https://www.ruby-forum.com/t/re-turn-off-warning-message-on-nginx/202966)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 7\
**Last updated:** [February 9, 2011, 9:53pm UTC](https://www.ruby-forum.com/t/re-turn-off-warning-message-on-nginx/202966 "2011-02-09T21:53:42Z")

</div>

On Feb 9, 2011 1:31 PM, “Michael S.” removed\_email\_address@domain.invalid wrote: I think Jerome was working on a fastcgi\_param method to alter ini directives from the nginx conf. IIRC. Is it available? If not then i…

---

## [Add header Expires and Cache-Control when response is 404](https://www.ruby-forum.com/t/add-header-expires-and-cache-control-when-response-is-404/202954)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [February 9, 2011, 3:20pm UTC](https://www.ruby-forum.com/t/add-header-expires-and-cache-control-when-response-is-404/202954 "2011-02-09T15:20:38Z")

</div>

Hello, I need to add header Expires, when the response code is 404. Unfortunately HttpHeadersModule can set the header just when the response is 200, 204, 301, 302 or 304. It’s no problem to add the header using Http…

---

## [How to pass a certificate to an upstream](https://www.ruby-forum.com/t/how-to-pass-a-certificate-to-an-upstream/202952)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [February 9, 2011, 3:20pm UTC](https://www.ruby-forum.com/t/how-to-pass-a-certificate-to-an-upstream/202952 "2011-02-09T15:20:00Z")

</div>

Hi, I want to put NGINX in front of a server that requires client-certificates. I need to pass the certificate to the upstream. How does one do that? The upstream is a native jboss server (EJBCA in fact). Best Rega…

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

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