# Server

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

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

---

## [Patch for support of SSL\_CLIENT\_CERT](https://www.ruby-forum.com/t/patch-for-support-of-ssl-client-cert/140073)

<div class="topic-metadata">

**Author:** [@Manlio\_P](https://www.ruby-forum.com/u/Manlio_P)\
**Replies:** 11\
**Last updated:** [July 28, 2008, 9:23pm UTC](https://www.ruby-forum.com/t/patch-for-support-of-ssl-client-cert/140073 "2008-07-28T21:23:49Z")

</div>

I have written a patch for adding support to the SSL\_CLIENT\_CERT variable. This variable containt the “full” client SSL certificate, in PEP format, so that an application can load the certificate and use it. Igor, do…

---

## [Logging inconsistencies during apparent DoS](https://www.ruby-forum.com/t/logging-inconsistencies-during-apparent-dos/144183)

<div class="topic-metadata">

**Author:** [@John\_Barratt](https://www.ruby-forum.com/u/John_Barratt)\
**Replies:** 3\
**Last updated:** [July 27, 2008, 8:05am UTC](https://www.ruby-forum.com/t/logging-inconsistencies-during-apparent-dos/144183 "2008-07-27T08:05:01Z")

</div>

Hi, We have been having problems with an apparent SYN-flood DoS attack. However there are are inconsistencies with the resulting log entries in nginx that along with the environment it is in, make me wonder if it rea…

---

## [Basic Auth + PHP](https://www.ruby-forum.com/t/basic-auth-php/144130)

<div class="topic-metadata">

**Author:** [@thundercat](https://www.ruby-forum.com/u/thundercat)\
**Replies:** 3\
**Last updated:** [July 26, 2008, 1:37pm UTC](https://www.ruby-forum.com/t/basic-auth-php/144130 "2008-07-26T13:37:27Z")

</div>

Hi guys, I’ve already been browsing this forum, but all other solutions don’t work so far. I have a simple nginx + fastcgi setup. location ~ .php$ { fastcgi\_pass 127.0.0.1:9000; fastcgi\_index index.php; include…

---

## [Adding a TIME variable?](https://www.ruby-forum.com/t/adding-a-time-variable/144048)

<div class="topic-metadata">

**Author:** [@Mike\_Harding](https://www.ruby-forum.com/u/Mike_Harding)\
**Replies:** 3\
**Last updated:** [July 25, 2008, 7:19pm UTC](https://www.ruby-forum.com/t/adding-a-time-variable/144048 "2008-07-25T19:19:37Z")

</div>

I am porting some apache rewrite rules that use the TIME variable (just unix epoch, seconds since 1/1/1970). What would be my best option for nginx? I could modify the code to provide a $time variable use fgci use …

---

## [Server\_name & redirect](https://www.ruby-forum.com/t/server-name-redirect/144134)

<div class="topic-metadata">

**Author:** [@Christophe\_de\_Kervi](https://www.ruby-forum.com/u/Christophe_de_Kervi)\
**Replies:** 1\
**Last updated:** [July 25, 2008, 6:37pm UTC](https://www.ruby-forum.com/t/server-name-redirect/144134 "2008-07-25T18:37:24Z")

</div>

Hi, I would like to have multiple domains on nginx to manage images. If one image is not available, I redirect to a php processing the image. On the next call the image will be available. My conf looks like this: se…

---

## [Using Content-MD5 header](https://www.ruby-forum.com/t/using-content-md5-header/143643)

<div class="topic-metadata">

**Author:** [@mlangenberg](https://www.ruby-forum.com/u/mlangenberg)\
**Replies:** 9\
**Last updated:** [July 25, 2008, 12:23pm UTC](https://www.ruby-forum.com/t/using-content-md5-header/143643 "2008-07-25T12:23:43Z")

</div>

I would like to use the Content-MD5 header from a HTTP response, does Nginx provide a way to add the ‘Content-MD5’ header to the response for a static file request? Matthijs L.

---

## [Basic HTTP Authentication & PHP-FastCGI](https://www.ruby-forum.com/t/basic-http-authentication-php-fastcgi/143779)

<div class="topic-metadata">

**Author:** [@Phillip\_B\_Oldham](https://www.ruby-forum.com/u/Phillip_B_Oldham)\
**Replies:** 18\
**Last updated:** [July 24, 2008, 11:49am UTC](https://www.ruby-forum.com/t/basic-http-authentication-php-fastcgi/143779 "2008-07-24T11:49:33Z")

</div>

I’m sure its possible, but I can’t seem to find any documentation on it… How would I pass the Basic HTTP Authentication user & password over to PHP to do the check? Phillip B Oldham The Activity People removed\_emai…

---

## [True load balancer](https://www.ruby-forum.com/t/true-load-balancer/143918)

<div class="topic-metadata">

**Author:** [@Almir\_K](https://www.ruby-forum.com/u/Almir_K)\
**Replies:** 10\
**Last updated:** [July 24, 2008, 11:12am UTC](https://www.ruby-forum.com/t/true-load-balancer/143918 "2008-07-24T11:12:03Z")

</div>

i’m kinda interested in implementing a true load balancer functionality in nginx, my idea is to extend the upstream module so that it would be able to dynamically modify the configuration of servers (such as mark them…

---

## [About proxy\_store, is this a bug?](https://www.ruby-forum.com/t/about-proxy-store-is-this-a-bug/143976)

<div class="topic-metadata">

**Author:** [@sigma](https://www.ruby-forum.com/u/sigma)\
**Replies:** 1\
**Last updated:** [July 24, 2008, 10:52am UTC](https://www.ruby-forum.com/t/about-proxy-store-is-this-a-bug/143976 "2008-07-24T10:52:08Z")

</div>

my config: location / { root /data/www; error\_page 404 = /fetch$uri; } location /fetch { internal; proxy\_pass http://backend; proxy\_store on; proxy\_store\_access user:rw group:r all:r; proxy\_temp\_path /tmp; ali…

---

## [Nginx cache module v 2.0](https://www.ruby-forum.com/t/nginx-cache-module-v-2-0/143872)

<div class="topic-metadata">

**Author:** [@pf\_shineyear](https://www.ruby-forum.com/u/pf_shineyear)\
**Replies:** 6\
**Last updated:** [July 24, 2008, 9:02am UTC](https://www.ruby-forum.com/t/nginx-cache-module-v-2-0/143872 "2008-07-24T09:02:38Z")

</div>

NCache is a nginx cache module like squid now version is 2.0 you can get it here : www.ncache.org

---

## [Fedora 9 / Panic](https://www.ruby-forum.com/t/fedora-9-panic/143846)

<div class="topic-metadata">

**Author:** [@Dylan\_S](https://www.ruby-forum.com/u/Dylan_S)\
**Replies:** 5\
**Last updated:** [July 24, 2008, 4:11am UTC](https://www.ruby-forum.com/t/fedora-9-panic/143846 "2008-07-24T04:11:58Z")

</div>

I’m getting the following error in the error.log: panic: MUTEX\_LOCK (22) \[op.c:453\]. nginx -v nginx version: nginx/0.6.31 uname -a Linux woot 2.6.18-xen #1 SMP Tue Feb 12 06:40:50 UTC 2008 x86\_64 x86\_64 x86\_64 G…

---

## [Can rewrite change port? for eg, 80 to 443](https://www.ruby-forum.com/t/can-rewrite-change-port-for-eg-80-to-443/143621)

<div class="topic-metadata">

**Author:** [@baalchina](https://www.ruby-forum.com/u/baalchina)\
**Replies:** 8\
**Last updated:** [July 23, 2008, 7:58pm UTC](https://www.ruby-forum.com/t/can-rewrite-change-port-for-eg-80-to-443/143621 "2008-07-23T19:58:20Z")

</div>

Hi, everyone. I have a server running a php web forum. User logging into my site using ‘logging.php’. I had set up a https server using nginx, but consdering server load, I just want my user using https in only loggi…

---

## [ERROR RUNNING 'cluster::configure': Plugin /cluster::configure	does not exist in category /commands](https://www.ruby-forum.com/t/error-running-cluster-configure-plugin-cluster-configure-does-not-exist-in-category-commands/119733)

<div class="topic-metadata">

**Author:** [@tekhne](https://www.ruby-forum.com/u/tekhne)\
**Replies:** 3\
**Last updated:** [July 23, 2008, 6:14am UTC](https://www.ruby-forum.com/t/error-running-cluster-configure-plugin-cluster-configure-does-not-exist-in-category-commands/119733 "2008-07-23T06:14:04Z")

</div>

I’m following the mongrel\_cluster setup instructions and am unable to create a config file: $ mongrel\_rails cluster::configure ERROR RUNNING ‘cluster::configure’: Plugin /cluster::configure does not exist in category…

---

## [Regex in rewrite](https://www.ruby-forum.com/t/regex-in-rewrite/143829)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [July 23, 2008, 4:07am UTC](https://www.ruby-forum.com/t/regex-in-rewrite/143829 "2008-07-23T04:07:45Z")

</div>

Hi everyone: I recently got a problem about rewrite module.I want to rewrite request like this: first requst is /cache/XXX /cache/XXX/ —\> /XXX/ and set /XXX/ as memcache\_key if memcache cannot find the key 404 = /…

---

## [Upload module 2.0.3](https://www.ruby-forum.com/t/upload-module-2-0-3/143807)

<div class="topic-metadata">

**Author:** [@Valery\_K](https://www.ruby-forum.com/u/Valery_K)\
**Replies:** 0\
**Last updated:** [July 22, 2008, 11:05pm UTC](https://www.ruby-forum.com/t/upload-module-2-0-3/143807 "2008-07-22T23:05:17Z")

</div>

Changes: upload\_store directive was not able to receive more than one argument. As a result no hashed dirs for file uploads were possible. upload\_store\_access directive did not work at all. Permissions were defaulted…

---

## [Strange HTTPS/Cache Behavior](https://www.ruby-forum.com/t/strange-https-cache-behavior/143104)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [July 22, 2008, 8:09pm UTC](https://www.ruby-forum.com/t/strange-https-cache-behavior/143104 "2008-07-22T20:09:50Z")

</div>

Caching depending on mime-types Server has includes https caching instructions to cache jpg/gif/js/css files for 1 hour however these parameters seem removed from the headers. How can this be passed browsers - we n…

---

## [Feature Request: Stored POST body elements, filename forwarded](https://www.ruby-forum.com/t/feature-request-stored-post-body-elements-filename-forwarded/143662)

<div class="topic-metadata">

**Author:** [@bdmcnitt](https://www.ruby-forum.com/u/bdmcnitt)\
**Replies:** 1\
**Last updated:** [July 22, 2008, 7:19pm UTC](https://www.ruby-forum.com/t/feature-request-stored-post-body-elements-filename-forwarded/143662 "2008-07-22T19:19:26Z")

</div>

Is anyone working on (or would anyone ELSE find a use for) a module which will take multipart/form-data streams and cache them in a location in the file system separate from the usual NGINX upstream cache location; i…

---

## [Invalidate cache for static files?](https://www.ruby-forum.com/t/invalidate-cache-for-static-files/143648)

<div class="topic-metadata">

**Author:** [@Phillip\_B\_Oldham](https://www.ruby-forum.com/u/Phillip_B_Oldham)\
**Replies:** 9\
**Last updated:** [July 22, 2008, 10:59am UTC](https://www.ruby-forum.com/t/invalidate-cache-for-static-files/143648 "2008-07-22T10:59:43Z")

</div>

What would be the simplest way to invalidate browser cache of static files served by nginx? For instance, we have a website which is in active development. We get a reasonable amount of traffic, but we often get comp…

---

## [Allow methods like PROPFIND for HTTP request](https://www.ruby-forum.com/t/allow-methods-like-propfind-for-http-request/143728)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [July 22, 2008, 9:54am UTC](https://www.ruby-forum.com/t/allow-methods-like-propfind-for-http-request/143728 "2008-07-22T09:54:06Z")

</div>

Hi, sorry for asking this again but I really don’t want to setup another webserver just because of one script. If it doesn’t work please tell me too, then I don’t have to waste time finding an nginx solution anymore… …

---

## [Proxy\_pass $variable](https://www.ruby-forum.com/t/proxy-pass-variable/143589)

<div class="topic-metadata">

**Author:** [@Arkadiusz\_Patyk](https://www.ruby-forum.com/u/Arkadiusz_Patyk)\
**Replies:** 2\
**Last updated:** [July 21, 2008, 9:55pm UTC](https://www.ruby-forum.com/t/proxy-pass-variable/143589 "2008-07-21T21:55:24Z")

</div>

Hi This works: set $back backend; if ($evil) { set $back evil;} if ($back = backend) { proxy\_pass http://backend; } if ($back = evil) { proxy\_pass http://evil; } this not: set $back http://backend; if ($ev…

---

## [Rewrite rule](https://www.ruby-forum.com/t/rewrite-rule/143501)

<div class="topic-metadata">

**Author:** [@vchav](https://www.ruby-forum.com/u/vchav)\
**Replies:** 5\
**Last updated:** [July 21, 2008, 6:55pm UTC](https://www.ruby-forum.com/t/rewrite-rule/143501 "2008-07-21T18:55:19Z")

</div>

There has been a change of behaviour on the rewrite rule between version 0.7.1 and higher… I don’t know if it’s a bug or a correction ! You can view a configuration type here : http://pastebin.com/f49df278c And the be…

---

## [Nginx upload module 2.0.2](https://www.ruby-forum.com/t/nginx-upload-module-2-0-2/143552)

<div class="topic-metadata">

**Author:** [@Valery\_K](https://www.ruby-forum.com/u/Valery_K)\
**Replies:** 7\
**Last updated:** [July 21, 2008, 5:47pm UTC](https://www.ruby-forum.com/t/nginx-upload-module-2-0-2/143552 "2008-07-21T17:47:22Z")

</div>

Greetings! I have eventually managed to finalize my upload module. I have compromised all the requirements for the metadata format passed to backend and it is now being generated in more or less universal form. Pleas…

---

## [MSIE download troubles](https://www.ruby-forum.com/t/msie-download-troubles/143659)

<div class="topic-metadata">

**Author:** [@Martin\_Eggen](https://www.ruby-forum.com/u/Martin_Eggen)\
**Replies:** 1\
**Last updated:** [July 21, 2008, 5:44pm UTC](https://www.ruby-forum.com/t/msie-download-troubles/143659 "2008-07-21T17:44:54Z")

</div>

Hi, I have a pretty standard nginx reverse proxy set up, nginx 0.6.31 terminates SSL and forwards requests to application server. Said application (portal) has some files available for download, Internet Explorer f…

---

## [Multiple conditions in "if" statement?](https://www.ruby-forum.com/t/multiple-conditions-in-if-statement/143612)

<div class="topic-metadata">

**Author:** [@Jeffrey\_SjfS\_Lim](https://www.ruby-forum.com/u/Jeffrey_SjfS_Lim)\
**Replies:** 9\
**Last updated:** [July 21, 2008, 9:21am UTC](https://www.ruby-forum.com/t/multiple-conditions-in-if-statement/143612 "2008-07-21T09:21:08Z")

</div>

I know this has been talked about before, but never satisfactorily (and just to preempt - “or” isnt “and”). Is there any reason for not enabling "and"s in “if” conditions? Are there any plans to do so? -jf – In th…

---

## [Variable memcached\_key](https://www.ruby-forum.com/t/variable-memcached-key/143601)

<div class="topic-metadata">

**Author:** [@arteta](https://www.ruby-forum.com/u/arteta)\
**Replies:** 1\
**Last updated:** [July 21, 2008, 4:40am UTC](https://www.ruby-forum.com/t/variable-memcached-key/143601 "2008-07-21T04:40:20Z")

</div>

Hello ou bonjour, je suis FranÃ§ais, donc google va m’aider ^^ I memcached installed on a production server. With libmemcached I sent pictures in memory: :/usr/local/nginx/conf# /usr/local/libmemcached/bin/memcp /dat…

---

## [Multiple vhost and redirect problem](https://www.ruby-forum.com/t/multiple-vhost-and-redirect-problem/143602)

<div class="topic-metadata">

**Author:** [@jemminger](https://www.ruby-forum.com/u/jemminger)\
**Replies:** 1\
**Last updated:** [July 21, 2008, 4:39am UTC](https://www.ruby-forum.com/t/multiple-vhost-and-redirect-problem/143602 "2008-07-21T04:39:45Z")

</div>

I have two sites, site-a and site-a-test. site-a will redirect requests on port 80 to 443, but site-a-test only accepts requests on 80. the following setup is working flawlessly on one machine: site-a.conf: server …

---

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

<div class="topic-metadata">

**Author:** [@Istvan\_Szukacs](https://www.ruby-forum.com/u/Istvan_Szukacs)\
**Replies:** 5\
**Last updated:** [July 20, 2008, 10:57pm UTC](https://www.ruby-forum.com/t/nginx-and-memcached/143577 "2008-07-20T22:57:29Z")

</div>

Hi folks! I try to use nginx with memcached with less success, maybe this is just a well known issue but i did not find anything in google: config: location / { set $memcached\_key $uri; memcach…

---

## [Upstream and address resolution](https://www.ruby-forum.com/t/upstream-and-address-resolution/143574)

<div class="topic-metadata">

**Author:** [@Manlio\_P](https://www.ruby-forum.com/u/Manlio_P)\
**Replies:** 1\
**Last updated:** [July 20, 2008, 9:55pm UTC](https://www.ruby-forum.com/t/upstream-and-address-resolution/143574 "2008-07-20T21:55:59Z")

</div>

Hi. On a server using Nginx 0.5.x I have noted that, when one of the upstream servers changed the IP address, the old address was still used. I have restarted Nginx and solved the problem, but I’m not sure to underst…

---

## [Nginx with apache.when using https,better using ssl in nginx or apache?](https://www.ruby-forum.com/t/nginx-with-apache-when-using-https-better-using-ssl-in-nginx-or-apache/143554)

<div class="topic-metadata">

**Author:** [@baalchina](https://www.ruby-forum.com/u/baalchina)\
**Replies:** 2\
**Last updated:** [July 20, 2008, 8:12pm UTC](https://www.ruby-forum.com/t/nginx-with-apache-when-using-https-better-using-ssl-in-nginx-or-apache/143554 "2008-07-20T20:12:48Z")

</div>

Hi,everyone. I have an nginx 0.6.31 server running an web forum using php+mysql system. In nginx, I pass php requests to apache2, while apache listen in 127.0.0.1:81. It works well. Now I wanna to setting https in my…

---

## [Memcache SSL Session Cache](https://www.ruby-forum.com/t/memcache-ssl-session-cache/143568)

<div class="topic-metadata">

**Author:** [@dankitania](https://www.ruby-forum.com/u/dankitania)\
**Replies:** 0\
**Last updated:** [July 20, 2008, 5:39pm UTC](https://www.ruby-forum.com/t/memcache-ssl-session-cache/143568 "2008-07-20T17:39:42Z")

</div>

I noticed in the ngx\_http\_ssl\_module there’s an option to perform SSL session caching using either OpenSSL’s built-in cache, or a shared cache. While OpenSSL’s built-in cache works with only a single worker, the sha…

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

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