# Server

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

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

---

## [Proxy\_cache\_valid for zero seconds](https://www.ruby-forum.com/t/proxy-cache-valid-for-zero-seconds/224521)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [November 20, 2012, 9:12pm UTC](https://www.ruby-forum.com/t/proxy-cache-valid-for-zero-seconds/224521 "2012-11-20T21:12:29Z")

</div>

Greetings, I am trying to configure nginx proxy\_cache so that it stores a cached copy of a HTTP response, but serves from cache only under the conditions defined by proxy\_cache\_use\_stale. I have tried something like…

---

## [MP4 pseudostreaming - seek delay](https://www.ruby-forum.com/t/mp4-pseudostreaming-seek-delay/217559)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 14\
**Last updated:** [November 20, 2012, 7:01pm UTC](https://www.ruby-forum.com/t/mp4-pseudostreaming-seek-delay/217559 "2012-11-20T19:01:01Z")

</div>

Hi I configured streaming with ngx\_http\_mp4\_module . I use optimized mp4 with moov atoms located at the beginning of the file. Streaming really works, BUT. In comparison with flv its takes much more time to seek th…

---

## [Routing verbose logging](https://www.ruby-forum.com/t/routing-verbose-logging/224649)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [November 20, 2012, 3:09pm UTC](https://www.ruby-forum.com/t/routing-verbose-logging/224649 "2012-11-20T15:09:30Z")

</div>

Hi all, I have to have a precise trace of which rules are used to proccess my request and which headers are set. Is their a way to print that? I tried the debug-mode but it doesn’t help me. For your help, Thanks b…

---

## [Index.php dont run!](https://www.ruby-forum.com/t/index-php-dont-run/224641)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [November 20, 2012, 12:50pm UTC](https://www.ruby-forum.com/t/index-php-dont-run/224641 "2012-11-20T12:50:40Z")

</div>

Hello I use Centos 6.3 with nginx and php-FPM and FastCGI I have a website dafuq.gr when i write dafuq.gr dont open gives error with dafuq.gr/index.php opens ! Any idea ? i checked at /etc/nginx/sites-available …

---

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

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [November 20, 2012, 12:10pm UTC](https://www.ruby-forum.com/t/server-name/224638 "2012-11-20T12:10:15Z")

</div>

Добрый день, имеется конфиг : server { listen 80; server\_name ~^(.\*).site.com$; location / { add\_before\_body /Header.html; add\_after\_body /Footer.html; autoindex on; autoindex\_exact\_size off; try\_files /subdoms…

---

## [Json files download](https://www.ruby-forum.com/t/json-files-download/220829)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 8\
**Last updated:** [November 20, 2012, 5:09am UTC](https://www.ruby-forum.com/t/json-files-download/220829 "2012-11-20T05:09:32Z")

</div>

Hi, I have moved from apache to NGINX+PHP-FPM, now there some problem with .json file, In apache whenver I access .json file the output shows on browser page. But in NGINX its try to download. Would you please help m…

---

## [Proxying when a cookie is present](https://www.ruby-forum.com/t/proxying-when-a-cookie-is-present/224636)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [November 20, 2012, 4:33am UTC](https://www.ruby-forum.com/t/proxying-when-a-cookie-is-present/224636 "2012-11-20T04:33:18Z")

</div>

I’m trying to configure nginx to proxy\_pass to a hot-test server when a certain cookie is present. It’s expected to work like this: accessing /hot will set a cookie hot=1 and redirect to / accessing /prod will set th…

---

## [Advertise NPN without SPDY](https://www.ruby-forum.com/t/advertise-npn-without-spdy/224591)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [November 19, 2012, 8:48pm UTC](https://www.ruby-forum.com/t/advertise-npn-without-spdy/224591 "2012-11-19T20:48:44Z")

</div>

Hello, Is there a way for nginx to advertise the NPN extension without the use of SPDY? I’m asking because Chrome disables SSL False Start by default, unless the NPN extension is advertised, and I don’t want to use…

---

## [SPDY sockets staying open indefinitely](https://www.ruby-forum.com/t/spdy-sockets-staying-open-indefinitely/224391)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 9\
**Last updated:** [November 19, 2012, 8:25pm UTC](https://www.ruby-forum.com/t/spdy-sockets-staying-open-indefinitely/224391 "2012-11-19T20:25:22Z")

</div>

We are seeing an issue with Nginx SPDY sockets staying open indefinitely. I understand that the SPDY patch is still beta and not ready for production. This server is a test box which is used as a mirror of the produc…

---

## [Configuring nginx for white label](https://www.ruby-forum.com/t/configuring-nginx-for-white-label/224623)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [November 19, 2012, 5:03pm UTC](https://www.ruby-forum.com/t/configuring-nginx-for-white-label/224623 "2012-11-19T17:03:37Z")

</div>

Hi all, I am trying to configure a “white-label” set up where the reseller supplies only the files he needs to over-ride the basic installation - a few images, perhaps a css file and an occasional .php file. All files…

---

## [Does log phase counts as active connection?](https://www.ruby-forum.com/t/does-log-phase-counts-as-active-connection/224611)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [November 19, 2012, 10:37am UTC](https://www.ruby-forum.com/t/does-log-phase-counts-as-active-connection/224611 "2012-11-19T10:37:47Z")

</div>

Hi, Assume my server datastorage is not responding where I am logging access.log/error.log and some analytics logs using lua. If I am running nginx as single worker and I have set a limit of 1024 max connections …

---

## [Caucho Resin: faster than nginx?](https://www.ruby-forum.com/t/caucho-resin-faster-than-nginx/222228)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 8\
**Last updated:** [November 19, 2012, 10:36am UTC](https://www.ruby-forum.com/t/caucho-resin-faster-than-nginx/222228 "2012-11-19T10:36:02Z")

</div>

FYI: http://www.caucho.com/resin-application-server/press/resin-java-web-server-outperforms-nginx/ " Using industry standard tool and methodology, Resin Pro web server was put to the test versus Nginx, a popular web s…

---

## [When nginx will send Connection timed out error?](https://www.ruby-forum.com/t/when-nginx-will-send-connection-timed-out-error/224608)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [November 19, 2012, 9:24am UTC](https://www.ruby-forum.com/t/when-nginx-will-send-connection-timed-out-error/224608 "2012-11-19T09:24:44Z")

</div>

I am using nginx as proxy server. I got following error once: upstream timed out (110: Connection timed out) while connecting to upstream, In what situtaion I will get this error? Exaple: Upstream didn’t accept conn…

---

## [Trailing slash in location](https://www.ruby-forum.com/t/trailing-slash-in-location/224599)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [November 18, 2012, 4:10pm UTC](https://www.ruby-forum.com/t/trailing-slash-in-location/224599 "2012-11-18T16:10:02Z")

</div>

Please help me understand The below works location /stats/ { proxy\_pass http://example.com; } or location /stats { proxy\_pass http://example.com; } or location /stats { proxy\_pass http://example.co…

---

## [Help do translate Apache Rewrite Rules](https://www.ruby-forum.com/t/help-do-translate-apache-rewrite-rules/224596)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [November 18, 2012, 4:04pm UTC](https://www.ruby-forum.com/t/help-do-translate-apache-rewrite-rules/224596 "2012-11-18T16:04:46Z")

</div>

Hi, I’d like to ask for some help to translate these Apache Rules to Nginx: RewriteCond %{SCRIPT\_FILENAME} !-f RewriteCond %{SCRIPT\_FILENAME} !-d RewriteCond %{QUERY\_STRING} (.) RewriteRule ^(.)$ index.php?url=$1&%1 …

---

## [Client\_max\_body\_size and 100 Continue/413 Request Entity Too Large](https://www.ruby-forum.com/t/client-max-body-size-and-100-continue-413-request-entity-too-large/224563)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [November 18, 2012, 11:03am UTC](https://www.ruby-forum.com/t/client-max-body-size-and-100-continue-413-request-entity-too-large/224563 "2012-11-18T11:03:51Z")

</div>

Hi, I have a web app that accepts uploads from clients. We have a relatively high client\_max\_body\_size set, and I’d like for clients to be able to be quickly rejected if they intend to upload files larger than the m…

---

## [How to turn on chunked\_transfer\_encoding for static files](https://www.ruby-forum.com/t/how-to-turn-on-chunked-transfer-encoding-for-static-files/224568)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [November 18, 2012, 10:10am UTC](https://www.ruby-forum.com/t/how-to-turn-on-chunked-transfer-encoding-for-static-files/224568 "2012-11-18T10:10:06Z")

</div>

Hi, All, I use nginx 1.2.4 I want to use chunked\_transfer\_encoding sending to client for static files , but I found the “chunked\_transfer\_encoding” is not work for static files ( found code in ngx\_http\_chunked\_heade…

---

## [Wordpress permalink and cache help](https://www.ruby-forum.com/t/wordpress-permalink-and-cache-help/224570)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [November 17, 2012, 6:35am UTC](https://www.ruby-forum.com/t/wordpress-permalink-and-cache-help/224570 "2012-11-17T06:35:25Z")

</div>

Hello, I have a wordpress website and want to enable caching. My configuration below is working if no pretty url E.g. But when I use pretty url, the cache doesnt work: E.g. http://domain.com/sample-page But the …

---

## [Http\_flv\_module not working, any idea please](https://www.ruby-forum.com/t/http-flv-module-not-working-any-idea-please/208117)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [November 16, 2012, 8:32pm UTC](https://www.ruby-forum.com/t/http-flv-module-not-working-any-idea-please/208117 "2012-11-16T20:32:59Z")

</div>

Hi every1, I’ve NginX running on a “Debian GNU/Linux 5.0” with the following compile options: nginx version: nginx/0.8.53 TLS SNI support enabled configure arguments: –prefix=/dh/nginx --with-ipv6 --with-pcre --wit…

---

## [Upstream max\_fails, fail\_timeout and proxy\_read\_timeout](https://www.ruby-forum.com/t/upstream-max-fails-fail-timeout-and-proxy-read-timeout/224555)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 6\
**Last updated:** [November 16, 2012, 6:12pm UTC](https://www.ruby-forum.com/t/upstream-max-fails-fail-timeout-and-proxy-read-timeout/224555 "2012-11-16T18:12:09Z")

</div>

We’re using nginx as a loadbalancer and we’re seeing some strange behaviour when one of our backend servers takes a long time to respond to a request. We have a configuration like this: upstream handlehttp { ip\_has…

---

## [Chunked Transfer](https://www.ruby-forum.com/t/chunked-transfer/224019)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [November 16, 2012, 12:47pm UTC](https://www.ruby-forum.com/t/chunked-transfer/224019 "2012-11-16T12:47:41Z")

</div>

Asking, because the documentation looks like it’s a little outdated on this… Is Chunked Transfer still not enabled OOTB? This would seem like almost a mandatory feature of HTTP 1.1 to implement, and the only referenc…

---

## [Proxy pass ajax problem](https://www.ruby-forum.com/t/proxy-pass-ajax-problem/226413)

<div class="topic-metadata">

**Author:** [@lili](https://www.ruby-forum.com/u/lili)\
**Replies:** 2\
**Last updated:** [November 16, 2012, 9:37am UTC](https://www.ruby-forum.com/t/proxy-pass-ajax-problem/226413 "2012-11-16T09:37:12Z")

</div>

nginx mailing list removed\_email\_address@domain.invalid http://mailman.nginx.org/mailman/listinfo/nginx

---

## [Rewrite or internal redirection cycle while internally redirecting to "/error/403.html"](https://www.ruby-forum.com/t/rewrite-or-internal-redirection-cycle-while-internally-redirecting-to-error-403-html/224550)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [November 16, 2012, 9:28am UTC](https://www.ruby-forum.com/t/rewrite-or-internal-redirection-cycle-while-internally-redirecting-to-error-403-html/224550 "2012-11-16T09:28:27Z")

</div>

When accessing a vhost on my server I receive a 500 internal server error and then when viewing the log file I find the error rewrite or internal redirection cycle while internally redirecting to “/error/403.html”. I …

---

## [Proxy\_pass, dynamic ports upstream](https://www.ruby-forum.com/t/proxy-pass-dynamic-ports-upstream/224539)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [November 15, 2012, 8:33pm UTC](https://www.ruby-forum.com/t/proxy-pass-dynamic-ports-upstream/224539 "2012-11-15T20:33:45Z")

</div>

I have a requirement to be able to map a portion of a request URI to a port on a set of upstream servers. I’m hoping nginx will be able to solve this for me, but so far no luck. Request: http://example.com/2201/re…

---

## [Client request body is buffered to a temporary file](https://www.ruby-forum.com/t/client-request-body-is-buffered-to-a-temporary-file/224537)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [November 15, 2012, 6:00pm UTC](https://www.ruby-forum.com/t/client-request-body-is-buffered-to-a-temporary-file/224537 "2012-11-15T18:00:01Z")

</div>

I am using nginx as a load balancer I keep seeing the messages below. I keep uping the client\_body\_buffer\_size, proxy\_buffer\_size and proxy\_buffers but it doesn’t seem to make a difference. What could be happening he…

---

## [Chunked transfer encoding problem](https://www.ruby-forum.com/t/chunked-transfer-encoding-problem/224509)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [November 15, 2012, 11:13am UTC](https://www.ruby-forum.com/t/chunked-transfer-encoding-problem/224509 "2012-11-15T11:13:48Z")

</div>

Hi, My nginx (1.2.4) config looks like this (relevant part): server { listen 8888; location / { proxy\_http\_version 1.1; proxy\_pass http://localhost:8080; } } Backend server handles GET requests and responds with…

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/224523)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [November 15, 2012, 1:01am UTC](https://www.ruby-forum.com/t/unsubscribe/224523 "2012-11-15T01:01:33Z")

</div>

unsubscribe

---

## [Connection reset by peer on first request](https://www.ruby-forum.com/t/connection-reset-by-peer-on-first-request/224524)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [November 15, 2012, 12:27am UTC](https://www.ruby-forum.com/t/connection-reset-by-peer-on-first-request/224524 "2012-11-15T00:27:40Z")

</div>

Hi, I’m using Nginx with php-cgi. A problem arose recently where if you have not used my site for a few minutes and then go to it, the first request is always ‘connection reset by peer’. If you refresh, everything…

---

## [Can NGinx replace Varnish](https://www.ruby-forum.com/t/can-nginx-replace-varnish/224508)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [November 14, 2012, 7:33pm UTC](https://www.ruby-forum.com/t/can-nginx-replace-varnish/224508 "2012-11-14T19:33:46Z")

</div>

We are using Varnish in front of 3 load balanced web servers running apache. We had migrated from one hosting platform where we had 1 app server and 1 database server using Varnish (Drupal 6.x) and had no issues. No…

---

## [Need help on WebDAV + GIT server setup](https://www.ruby-forum.com/t/need-help-on-webdav-git-server-setup/224495)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [November 14, 2012, 5:21am UTC](https://www.ruby-forum.com/t/need-help-on-webdav-git-server-setup/224495 "2012-11-14T05:21:40Z")

</div>

Hi all, I wish to install nginx as a WebDAV server to serve my GIT repos. But I failed. I’ve installed Nginx 1.2.5 to my server with both http\_dav\_module and nginx-dav-ext-module https://github.com/arut/nginx-dav-ext…

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

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