# Server

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

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

---

## [Proxy-cache serving expired content](https://www.ruby-forum.com/t/proxy-cache-serving-expired-content/204812)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [June 22, 2011, 1:59pm UTC](https://www.ruby-forum.com/t/proxy-cache-serving-expired-content/204812 "2011-06-22T13:59:49Z")

</div>

Hello list, we are using nginx as proxy/loadbalancer and cache in front of our serverpark consisting of 8 apache/php-servers. We are serving an average of 200 requests per second. Performance and flexibility is secon…

---

## [Error\_page for 413 not working on remote machine, but works on localhost](https://www.ruby-forum.com/t/error-page-for-413-not-working-on-remote-machine-but-works-on-localhost/208439)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [June 22, 2011, 7:44am UTC](https://www.ruby-forum.com/t/error-page-for-413-not-working-on-remote-machine-but-works-on-localhost/208439 "2011-06-22T07:44:37Z")

</div>

Hi all, I am trying to setup an error\_page for 413 (Too large uploads). It works perfectly fine on localhost, where it doesn’t work on my remote staging machine. There is no change in the configuration file (except f…

---

## [Finding remaining space in upload module](https://www.ruby-forum.com/t/finding-remaining-space-in-upload-module/208594)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [June 22, 2011, 7:11am UTC](https://www.ruby-forum.com/t/finding-remaining-space-in-upload-module/208594 "2011-06-22T07:11:56Z")

</div>

Hi All, I have come up with one doubt . for example if 100 users are uploading 1GB file concurrently .and i have only 50GB free space in my hard Disk.here i dont want to allow after 50 users started to upload …

---

## [Variables in ssl\_certificate](https://www.ruby-forum.com/t/variables-in-ssl-certificate/208539)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [June 22, 2011, 6:12am UTC](https://www.ruby-forum.com/t/variables-in-ssl-certificate/208539 "2011-06-22T06:12:42Z")

</div>

Hi there, So that I can run identical configurations on many servers, I would like to abstract my nginx configuration down by doing this in my SSL “server” stanza: ssl\_certificate /etc/ssl/${server\_name}…

---

## [Auth request module 0.2](https://www.ruby-forum.com/t/auth-request-module-0-2/185685)

<div class="topic-metadata">

**Author:** [@Maxim\_D](https://www.ruby-forum.com/u/Maxim_D)\
**Replies:** 5\
**Last updated:** [June 21, 2011, 10:53pm UTC](https://www.ruby-forum.com/t/auth-request-module-0-2/185685 "2011-06-21T22:53:32Z")

</div>

Hello! Changes with auth request module 0.2 (2010-03-24): \*) Feature: auth\_request\_set directive. \*) Bugfix: segmentation fault happened on auth request handled by proxy\_pass or fastcgi\_pass if initial request has …

---

## [Dokuwiki SSL Login rewrite rules](https://www.ruby-forum.com/t/dokuwiki-ssl-login-rewrite-rules/208454)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [June 21, 2011, 2:57pm UTC](https://www.ruby-forum.com/t/dokuwiki-ssl-login-rewrite-rules/208454 "2011-06-21T14:57:28Z")

</div>

Dear all, I’m preparing a nginx configuration for Dokuwiki and it all works except the following feature: If a user logs in the protocol force-switches to https and back to plain http after the login. So far, this ha…

---

## [Nginx cache wired behavior](https://www.ruby-forum.com/t/nginx-cache-wired-behavior/208526)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [June 20, 2011, 6:21pm UTC](https://www.ruby-forum.com/t/nginx-cache-wired-behavior/208526 "2011-06-20T18:21:34Z")

</div>

Hello. I have the following problem: When static cached file is changed, nginx returns it to client after very long timeout. Great delay can be seen after receiving all file content on the client (client receives all…

---

## [Question about create an asynchronous http handler](https://www.ruby-forum.com/t/question-about-create-an-asynchronous-http-handler/208517)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [June 20, 2011, 4:05pm UTC](https://www.ruby-forum.com/t/question-about-create-an-asynchronous-http-handler/208517 "2011-06-20T16:05:31Z")

</div>

Hey, I’m making a custom http handler. The idea is, the user connects to this handler, and this handler connect to another server to fetch some information. Therefore the handler itself can’t return the http response.…

---

## [Multiple \*.fcgi in /cgi-bin/ directory - binding](https://www.ruby-forum.com/t/multiple-fcgi-in-cgi-bin-directory-binding/208519)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [June 20, 2011, 2:51pm UTC](https://www.ruby-forum.com/t/multiple-fcgi-in-cgi-bin-directory-binding/208519 "2011-06-20T14:51:18Z")

</div>

While trying to configure fastcgi with nginx, here are the steps that I have followed so far: In /etc/nginx/nginx.conf: server { localhost 127.0.01; .. .. location …

---

## [Why dose my server load the page slowly?](https://www.ruby-forum.com/t/why-dose-my-server-load-the-page-slowly/208481)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [June 20, 2011, 10:25am UTC](https://www.ruby-forum.com/t/why-dose-my-server-load-the-page-slowly/208481 "2011-06-20T10:25:43Z")

</div>

Hi, i’m currently running nginx and FastCGI for PHP on a small VPS. When i have about 20/50 users online, my sites takes a long time to load, and my load avarages go up. (11.49) My current VPS is 250Mhz, 256MB ram and…

---

## [Upstream host name or address](https://www.ruby-forum.com/t/upstream-host-name-or-address/208465)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [June 20, 2011, 6:57am UTC](https://www.ruby-forum.com/t/upstream-host-name-or-address/208465 "2011-06-20T06:57:24Z")

</div>

hi, is it possible to find upstream host which serves as proxy for a connection; i know that $upstream\_addr is the key ; but i need to set the address with set\_proxy\_headdr as host but $upstream\_addr return address …

---

## [Eliminating X-Progress-ID from query string?](https://www.ruby-forum.com/t/eliminating-x-progress-id-from-query-string/208480)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [June 20, 2011, 1:44am UTC](https://www.ruby-forum.com/t/eliminating-x-progress-id-from-query-string/208480 "2011-06-20T01:44:15Z")

</div>

Hi there, When using the nginx\_upload and nginx-upload-progress modules what is the best way to eliminate the X-Progress-ID parameter from the query string so that the browser shows http://example.com/upload\_data …

---

## [Bug fixes for nginx-1.0.4](https://www.ruby-forum.com/t/bug-fixes-for-nginx-1-0-4/208469)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [June 19, 2011, 10:34pm UTC](https://www.ruby-forum.com/t/bug-fixes-for-nginx-1-0-4/208469 "2011-06-19T22:34:32Z")

</div>

Hi: I could not upload and put into development forum. So I place it here. I ran configure with #export SPATH=/home/s ./configure --prefix=${SPATH} \\ --sbin-path=${SPATH}/bin/ngnix –conf-path=${SPATH}/sr…

---

## [Easiest way to use nginx with Python (Django)?](https://www.ruby-forum.com/t/easiest-way-to-use-nginx-with-python-django/208413)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [June 19, 2011, 7:44pm UTC](https://www.ruby-forum.com/t/easiest-way-to-use-nginx-with-python-django/208413 "2011-06-19T19:44:33Z")

</div>

For a while now, I’ve been using nginx with great success as a remote proxy server in front of Tomcat, and also in front of PHP via fastcgi. It’s likely that I will require to use it in front of a Django Python web ap…

---

## [Sendfile EAGAIN and FastCGI](https://www.ruby-forum.com/t/sendfile-eagain-and-fastcgi/208393)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [June 17, 2011, 11:22am UTC](https://www.ruby-forum.com/t/sendfile-eagain-and-fastcgi/208393 "2011-06-17T11:22:54Z")

</div>

Hello. I’m using FreeBSD 7.4-RELEASE with Nginx 1.0.3 built from ports: nginx -V nginx: nginx version: nginx/1.0.3 nginx: TLS SNI support enabled nginx: configure arguments: --prefix=/usr/local/etc/nginx –with-cc-op…

---

## [Memory usage of fresh nginx](https://www.ruby-forum.com/t/memory-usage-of-fresh-nginx/208370)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [June 17, 2011, 10:13am UTC](https://www.ruby-forum.com/t/memory-usage-of-fresh-nginx/208370 "2011-06-17T10:13:00Z")

</div>

I installed nginx (0.8.7) by rpm on Centos with php-fpm. The total memory used was about 45K I installed nginx (1.0.4) from source on the same conditions, but the total memory used is about 90K as I compared the memo…

---

## [SSL session cache](https://www.ruby-forum.com/t/ssl-session-cache/208392)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [June 17, 2011, 10:03am UTC](https://www.ruby-forum.com/t/ssl-session-cache/208392 "2011-06-17T10:03:07Z")

</div>

Increasing the ssl\_session cache from 10 to 30mins, would cause less cpu? (getting around 200 ssl hits/per min) ssl\_session\_cache shared:SSL:10m; ssl\_session\_timeout 10m; to: ssl\_session\_cache shared:SSL:30m; …

---

## [PHP with SSL](https://www.ruby-forum.com/t/php-with-ssl/208385)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [June 17, 2011, 9:18am UTC](https://www.ruby-forum.com/t/php-with-ssl/208385 "2011-06-17T09:18:37Z")

</div>

Hello, I followed the instruction from this link - http://nginx.org/en/docs/http/configuring\_https\_servers.html but I can’t solve some issue with PHP and SSL, basically web browser says that site is partially encryp…

---

## [Will Nginx support OSCP?](https://www.ruby-forum.com/t/will-nginx-support-oscp/208402)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [June 17, 2011, 8:24am UTC](https://www.ruby-forum.com/t/will-nginx-support-oscp/208402 "2011-06-17T08:24:54Z")

</div>

OSCP is an important protocol for client cert authentication, so I’m wondering when nginx will support it. Do you have a plan? Thanks Posted at Nginx Forum:

---

## [Nginx with SSL and push module on Ubuntu server 10.04 (LTS)](https://www.ruby-forum.com/t/nginx-with-ssl-and-push-module-on-ubuntu-server-10-04-lts/208399)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [June 17, 2011, 7:42am UTC](https://www.ruby-forum.com/t/nginx-with-ssl-and-push-module-on-ubuntu-server-10-04-lts/208399 "2011-06-17T07:42:54Z")

</div>

Hi, I wanted to use nginx with SSL and the push module on a Ubuntu server 10.04 host. What is the recommended way to install nginx for this use case? are there ready made ubuntu packages for this setup? shall I down…

---

## [NGINX Upload Module - Temp Filenames to Proper Fil](https://www.ruby-forum.com/t/nginx-upload-module-temp-filenames-to-proper-fil/208343)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [June 16, 2011, 3:32pm UTC](https://www.ruby-forum.com/t/nginx-upload-module-temp-filenames-to-proper-fil/208343 "2011-06-16T15:32:39Z")

</div>

Hi, Am using NGINX Upload module to store files in my server’s disk. The filenames are in 10 digit numbers. When I tried to figure out things, the filename is allocated with 10 byte extra memory and a generated value…

---

## [Hello maybe someone can help with simple rewrites](https://www.ruby-forum.com/t/hello-maybe-someone-can-help-with-simple-rewrites/208366)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [June 16, 2011, 1:01pm UTC](https://www.ruby-forum.com/t/hello-maybe-someone-can-help-with-simple-rewrites/208366 "2011-06-16T13:01:50Z")

</div>

Hello, I have difficulty converting these rewrite rules of apache into nginx. Could someone please provide a helping hand. RewriteRule ^(.\*)$ %{SERVER\_NAME}$1 \[C\] RewriteCond …

---

## [Nginx1.0.0 have a kernel bug](https://www.ruby-forum.com/t/nginx1-0-0-have-a-kernel-bug/208358)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [June 16, 2011, 8:37am UTC](https://www.ruby-forum.com/t/nginx1-0-0-have-a-kernel-bug/208358 "2011-06-16T08:37:05Z")

</div>

OS is redhat5.5 ,nginx 1.0.0 ,libunwind-0.99… The /var/log/message frequently appear the follow messages: Jun 13 10:20:31 localhost kernel: nginx\[14431\]: segfault at 2a2 ip 00007fa6b3a05eb6 sp 00007fff337d87e0 error 4…

---

## [Subrequest and POST](https://www.ruby-forum.com/t/subrequest-and-post/208302)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [June 16, 2011, 1:29am UTC](https://www.ruby-forum.com/t/subrequest-and-post/208302 "2011-06-16T01:29:59Z")

</div>

Hi, I’m writing code, which making decision to accept or not rest of request in NGINX. For that I’ve created 2 modules, one subrequest module, another one accepting “client\_max\_body\_size\_var”. Everything works fine, …

---

## [Directio not working](https://www.ruby-forum.com/t/directio-not-working/208344)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [June 15, 2011, 8:35pm UTC](https://www.ruby-forum.com/t/directio-not-working/208344 "2011-06-15T20:35:29Z")

</div>

Hi, from nginx wiki: directio syntax: directio \[size|off\] default: directio off context: http, server, location The directive enables use of flags O\_DIRECT (FreeBSD, Linux), F\_NOCACHE (Mac OS X) or directio() funct…

---

## [Nginx Vs Nginx Performance](https://www.ruby-forum.com/t/nginx-vs-nginx-performance/207291)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [June 15, 2011, 7:00pm UTC](https://www.ruby-forum.com/t/nginx-vs-nginx-performance/207291 "2011-06-15T19:00:55Z")

</div>

Hi All, I would like to know if it’s makes any difference in term of using Nginx versions. Did anyone had any experience with that? Did anyone do any benchmarks about that? Looking for answers Posted at Nginx Forum: …

---

## [Configuration for a high traffic page?](https://www.ruby-forum.com/t/configuration-for-a-high-traffic-page/208339)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [June 15, 2011, 5:03pm UTC](https://www.ruby-forum.com/t/configuration-for-a-high-traffic-page/208339 "2011-06-15T17:03:57Z")

</div>

Good morning, can give me someone an example or optimize my example configuration for a high traffic page? I’m running Nginx on a Intel(R) Xeon(R) CPU X3440 @ 2.53GHz, 8 cores with 16 GB RAM DDR3. With Nginx I run F…

---

## [Rewrite or internal redirection cycle?](https://www.ruby-forum.com/t/rewrite-or-internal-redirection-cycle/207153)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [June 15, 2011, 4:47pm UTC](https://www.ruby-forum.com/t/rewrite-or-internal-redirection-cycle/207153 "2011-06-15T16:47:12Z")

</div>

Hi, I’m having a bit of an issue with the rewrite scheme: server { … location / { try\_files $uri $uri/ @data; } location @data { rewrite ^ /data.php$is\_args; internal; } … } When I access this request: …

---

## [Is there some way to implement the function of mod\_encoding in Apache httpd?](https://www.ruby-forum.com/t/is-there-some-way-to-implement-the-function-of-mod-encoding-in-apache-httpd/208290)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [June 15, 2011, 2:15pm UTC](https://www.ruby-forum.com/t/is-there-some-way-to-implement-the-function-of-mod-encoding-in-apache-httpd/208290 "2011-06-15T14:15:35Z")

</div>

How can I map the uri to local file path between different charset? Such as, the uri is encode with UTF-8 but my local file system charset is GBK or EUCKR or EUCJP. So, the “404 not found” will happen cause the path n…

---

## [Nginx Dynamic Rewriting](https://www.ruby-forum.com/t/nginx-dynamic-rewriting/208325)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [June 15, 2011, 11:25am UTC](https://www.ruby-forum.com/t/nginx-dynamic-rewriting/208325 "2011-06-15T11:25:32Z")

</div>

Hello there, is there a way to do dynamic rewriting something like this: http://localhost/param1/param2/param3/key4/value4/key5/value5/key6/value6 and so on. key value pairs can differ in wording and count. i want t…

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

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