# Server

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

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

---

## [Gzip not compressing response body with status code other than 200, 403, 404](https://www.ruby-forum.com/t/gzip-not-compressing-response-body-with-status-code-other-than-200-403-404/207818)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [March 4, 2013, 1:28pm UTC](https://www.ruby-forum.com/t/gzip-not-compressing-response-body-with-status-code-other-than-200-403-404/207818 "2013-03-04T13:28:29Z")

</div>

Hello, I have a WebDAV application setup with nginx in front of application server for reverse proxying. My application returns 207 as status code and I found that nginx does not compress response body with gzip oth…

---

## [FastCGI cache has stopped working](https://www.ruby-forum.com/t/fastcgi-cache-has-stopped-working/227073)

<div class="topic-metadata">

**Author:** [@Daniel15](https://www.ruby-forum.com/u/Daniel15)\
**Replies:** 6\
**Last updated:** [March 4, 2013, 12:53pm UTC](https://www.ruby-forum.com/t/fastcgi-cache-has-stopped-working/227073 "2013-03-04T12:53:24Z")

</div>

Nginx’s FastCGI caching used to work perfectly for me, but recently it stopped working and I can’t work out why. This is how the headers look: HTTP/1.1 200 OK Server: nginx/1.2.7 Date: Sun, 03 Mar 2013 12:28:24 GMT …

---

## [Can't reach my server](https://www.ruby-forum.com/t/cant-reach-my-server/227092)

<div class="topic-metadata">

**Author:** [@Kaoz](https://www.ruby-forum.com/u/Kaoz)\
**Replies:** 1\
**Last updated:** [March 4, 2013, 12:36pm UTC](https://www.ruby-forum.com/t/cant-reach-my-server/227092 "2013-03-04T12:36:27Z")

</div>

Hi, I followed this: // Starting nginx: \[ OK \] // ps -ef | grep nginx: root 1739 1714 0 09:40 pts/0 00:00:00 vi /etc/yum.repos/nginx.repo nginx 24053 240…

---

## [Timing the backend response](https://www.ruby-forum.com/t/timing-the-backend-response/227091)

<div class="topic-metadata">

**Author:** [@jdunneuk](https://www.ruby-forum.com/u/jdunneuk)\
**Replies:** 0\
**Last updated:** [March 4, 2013, 11:27am UTC](https://www.ruby-forum.com/t/timing-the-backend-response/227091 "2013-03-04T11:27:30Z")

</div>

Hi, in a reverse-proxy setup, what are the options to time the backend response…? There is no timing info in server-status. Is the only way to get them to continually parse the logs for the $request\_time and/or $ups…

---

## [Regular expression used in server\_name directive](https://www.ruby-forum.com/t/regular-expression-used-in-server-name-directive/227079)

<div class="topic-metadata">

**Author:** [@justin](https://www.ruby-forum.com/u/justin)\
**Replies:** 6\
**Last updated:** [March 4, 2013, 12:17am UTC](https://www.ruby-forum.com/t/regular-expression-used-in-server-name-directive/227079 "2013-03-04T00:17:46Z")

</div>

I am using a regular expression with a capture group in my server\_name directive. It looks like: server\_name (?\<account\>.+)\\.mydomain\\.com$ The problem is that I want to expand it slightly and say anything except web…

---

## [What's the best way to have some kind of state in a custom module?](https://www.ruby-forum.com/t/whats-the-best-way-to-have-some-kind-of-state-in-a-custom-module/227084)

<div class="topic-metadata">

**Author:** [@Sergey\_Zhemzhitsky](https://www.ruby-forum.com/u/Sergey_Zhemzhitsky)\
**Replies:** 0\
**Last updated:** [March 3, 2013, 10:44pm UTC](https://www.ruby-forum.com/t/whats-the-best-way-to-have-some-kind-of-state-in-a-custom-module/227084 "2013-03-03T22:44:18Z")

</div>

Hello Nginx Gurus, I’m kind of a newby in nginx plugin development, so trying to understand what’s the best way to connect to a proprietary backend system (that provides C API) from within nginx plugin? As far as I …

---

## [WildCard domains : how to treat IP Address and Specific Domains differently from Failover/Wildcard D](https://www.ruby-forum.com/t/wildcard-domains-how-to-treat-ip-address-and-specific-domains-differently-from-failover-wildcard-d/227051)

<div class="topic-metadata">

**Author:** [@jonny](https://www.ruby-forum.com/u/jonny)\
**Replies:** 3\
**Last updated:** [March 3, 2013, 8:59pm UTC](https://www.ruby-forum.com/t/wildcard-domains-how-to-treat-ip-address-and-specific-domains-differently-from-failover-wildcard-d/227051 "2013-03-03T20:59:06Z")

</div>

forgive me if this has been asked before – I couldn’t find this exact question in my mailing list archives back to 2007 I am trying to deal with wildcard domains in a setup. The intended result is to do this : Reques…

---

## [Re: Regular expression used in server\_name directive](https://www.ruby-forum.com/t/re-regular-expression-used-in-server-name-directive/227081)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [March 3, 2013, 8:33pm UTC](https://www.ruby-forum.com/t/re-regular-expression-used-in-server-name-directive/227081 "2013-03-03T20:33:24Z")

</div>

Just remove the part and it will act as only matching regex.

---

## [Convert Apache rewrite to NGinx](https://www.ruby-forum.com/t/convert-apache-rewrite-to-nginx/227074)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [March 3, 2013, 8:00pm UTC](https://www.ruby-forum.com/t/convert-apache-rewrite-to-nginx/227074 "2013-03-03T20:00:05Z")

</div>

Hi, Using nginx 1.2.1 on Debian Wheezy 64 bits. My wordpress need rewrite, it gave me this: RewriteEngine On RewriteBase / RewriteRule ^index\\.php$ - \[L\] RewriteCond %{REQUEST\_FILENAME} !-f RewriteCond %{REQUEST\_FILE…

---

## [How can nginx reverse proxy google app engine via SPDY?](https://www.ruby-forum.com/t/how-can-nginx-reverse-proxy-google-app-engine-via-spdy/227069)

<div class="topic-metadata">

**Author:** [@SSS\_SS\_SS\_SSS\_SSS](https://www.ruby-forum.com/u/SSS_SS_SS_SSS_SSS)\
**Replies:** 3\
**Last updated:** [March 3, 2013, 9:09am UTC](https://www.ruby-forum.com/t/how-can-nginx-reverse-proxy-google-app-engine-via-spdy/227069 "2013-03-03T09:09:13Z")

</div>

In China , government block google app engine by GFW So , I use a nginx reverse proxy (proxy\_pass) to google app engine via https My Site need https to keep security , so I want to know can I let nginx proxy a https …

---

## [Proxy pass server based on request method](https://www.ruby-forum.com/t/proxy-pass-server-based-on-request-method/227067)

<div class="topic-metadata">

**Author:** [@karlseguin](https://www.ruby-forum.com/u/karlseguin)\
**Replies:** 0\
**Last updated:** [March 2, 2013, 11:51pm UTC](https://www.ruby-forum.com/t/proxy-pass-server-based-on-request-method/227067 "2013-03-02T23:51:19Z")

</div>

We want to pick the backend server to proxy\_pass to based on the request method. Saw one example that used limit\_except. Another idea would be to use lua. Is there a preferred way to achieve this? Karl Posted at Ngi…

---

## [Optimal nginx settings for websockets sending images](https://www.ruby-forum.com/t/optimal-nginx-settings-for-websockets-sending-images/226923)

<div class="topic-metadata">

**Author:** [@michael.heuberger](https://www.ruby-forum.com/u/michael.heuberger)\
**Replies:** 7\
**Last updated:** [March 2, 2013, 5:54am UTC](https://www.ruby-forum.com/t/optimal-nginx-settings-for-websockets-sending-images/226923 "2013-03-02T05:54:36Z")

</div>

Hello guys The recent nginx 1.3.13 websocket support is fantastic! Big thanks to the nginx devs, it works like a charm. I only have performance issues. Sending images through websockets turns out to be difficult an…

---

## [Proxy\_cache and internal redirect](https://www.ruby-forum.com/t/proxy-cache-and-internal-redirect/227010)

<div class="topic-metadata">

**Author:** [@nick](https://www.ruby-forum.com/u/nick)\
**Replies:** 3\
**Last updated:** [March 1, 2013, 2:21pm UTC](https://www.ruby-forum.com/t/proxy-cache-and-internal-redirect/227010 "2013-03-01T14:21:08Z")

</div>

Hello. Can you please tell how to enable caching of responses with ‘X-Accel-Redirect’ headers. Nick.

---

## [How to set up SPDY Protocol over Nginx?](https://www.ruby-forum.com/t/how-to-set-up-spdy-protocol-over-nginx/227035)

<div class="topic-metadata">

**Author:** [@deepak-kumar](https://www.ruby-forum.com/u/deepak-kumar)\
**Replies:** 5\
**Last updated:** [March 1, 2013, 12:57pm UTC](https://www.ruby-forum.com/t/how-to-set-up-spdy-protocol-over-nginx/227035 "2013-03-01T12:57:00Z")

</div>

Hi Guys I am having problem setting up the SPDY protocol for my rails app over nginx. Here is the complete detail of the setup on stacjoverflow. Posting it here so that it can have a bigger audience. I can copy pas…

---

## [Reverse proxy and context path](https://www.ruby-forum.com/t/reverse-proxy-and-context-path/227036)

<div class="topic-metadata">

**Author:** [@nhatlt](https://www.ruby-forum.com/u/nhatlt)\
**Replies:** 0\
**Last updated:** [March 1, 2013, 9:12am UTC](https://www.ruby-forum.com/t/reverse-proxy-and-context-path/227036 "2013-03-01T09:12:04Z")

</div>

I have a Jetty application works at: https://my-server-ip (root context) Now I want to use Give yourself a better website » MY DOMAIN for my app. Is it possible with Nginx? I’m a newbie. Thanks Posted at Nginx Forum: …

---

## [Include\_shell](https://www.ruby-forum.com/t/include-shell/227000)

<div class="topic-metadata">

**Author:** [@korneil](https://www.ruby-forum.com/u/korneil)\
**Replies:** 0\
**Last updated:** [February 28, 2013, 5:26am UTC](https://www.ruby-forum.com/t/include-shell/227000 "2013-02-28T05:26:41Z")

</div>

i needed a small feature for own purposes and pushed to github, include config generated by program at nginx startup. Posted at Nginx Forum:

---

## [Split-clients for vhosts how?](https://www.ruby-forum.com/t/split-clients-for-vhosts-how/226918)

<div class="topic-metadata">

**Author:** [@varix](https://www.ruby-forum.com/u/varix)\
**Replies:** 1\
**Last updated:** [February 27, 2013, 6:49pm UTC](https://www.ruby-forum.com/t/split-clients-for-vhosts-how/226918 "2013-02-27T18:49:05Z")

</div>

Hallo, what is the right way to use the Module ngx\_http\_split\_clients\_module with some vhosts? Varix Posted at Nginx Forum:

---

## [Virtualhosts and map](https://www.ruby-forum.com/t/virtualhosts-and-map/226933)

<div class="topic-metadata">

**Author:** [@varix](https://www.ruby-forum.com/u/varix)\
**Replies:** 4\
**Last updated:** [February 27, 2013, 2:04pm UTC](https://www.ruby-forum.com/t/virtualhosts-and-map/226933 "2013-02-27T14:04:21Z")

</div>

What is the best way to configure virtualhost with map? Varix Posted at Nginx Forum:

---

## [FastCGI stderr being truncated](https://www.ruby-forum.com/t/fastcgi-stderr-being-truncated/226942)

<div class="topic-metadata">

**Author:** [@aschlosberg](https://www.ruby-forum.com/u/aschlosberg)\
**Replies:** 1\
**Last updated:** [February 27, 2013, 11:41am UTC](https://www.ruby-forum.com/t/fastcgi-stderr-being-truncated/226942 "2013-02-27T11:41:11Z")

</div>

Whilst investigating a series of 502 errors I have noticed that related error messages from FastCGI stderr are being truncated and at other times the error logging seems to fail part way. Example: 2013/02/25 09:33:1…

---

## [Proxy\_cache\_path with huge zone size](https://www.ruby-forum.com/t/proxy-cache-path-with-huge-zone-size/226971)

<div class="topic-metadata">

**Author:** [@traquila](https://www.ruby-forum.com/u/traquila)\
**Replies:** 2\
**Last updated:** [February 27, 2013, 11:17am UTC](https://www.ruby-forum.com/t/proxy-cache-path-with-huge-zone-size/226971 "2013-02-27T11:17:13Z")

</div>

Hello, I have some troubles to configure my reverse proxy cache. I would like to use a proxy cache with about 5 TB. If I estimate an average file size of 128KB, I need to define my zone size to about 5GB. (5 TB / (…

---

## [Rds-json generate json with index key on first level of array](https://www.ruby-forum.com/t/rds-json-generate-json-with-index-key-on-first-level-of-array/226901)

<div class="topic-metadata">

**Author:** [@Mauro\_Stettler](https://www.ruby-forum.com/u/Mauro_Stettler)\
**Replies:** 5\
**Last updated:** [February 27, 2013, 5:57am UTC](https://www.ruby-forum.com/t/rds-json-generate-json-with-index-key-on-first-level-of-array/226901 "2013-02-27T05:57:03Z")

</div>

Hello Nginx list I’m using OpenResty with libdrizzle to provide a faster API to query certain things from my db. My current config is like this: location ~\* ^/resty/usersTable/userId/(\[0-9\\,\]+)$ { set\_un…

---

## [Using Nginx auth in PHP scripts](https://www.ruby-forum.com/t/using-nginx-auth-in-php-scripts/226959)

<div class="topic-metadata">

**Author:** [@B.R](https://www.ruby-forum.com/u/B.R)\
**Replies:** 7\
**Last updated:** [February 26, 2013, 11:35pm UTC](https://www.ruby-forum.com/t/using-nginx-auth-in-php-scripts/226959 "2013-02-26T23:35:47Z")

</div>

Hello, The only information I got on the Web was to protect folders with Nginx auth, just like the plein old Apache’s .htaccess. I am already using AuthPlain to secure a folder with Nginx, using PHP scripts inside. …

---

## [Lua-resty-upload instead of HttpUploadModule?](https://www.ruby-forum.com/t/lua-resty-upload-instead-of-httpuploadmodule/226936)

<div class="topic-metadata">

**Author:** [@Alina\_Eriksson](https://www.ruby-forum.com/u/Alina_Eriksson)\
**Replies:** 0\
**Last updated:** [February 26, 2013, 12:04pm UTC](https://www.ruby-forum.com/t/lua-resty-upload-instead-of-httpuploadmodule/226936 "2013-02-26T12:04:49Z")

</div>

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

---

## [Floating Point](https://www.ruby-forum.com/t/floating-point/226934)

<div class="topic-metadata">

**Author:** [@Aparna\_Bhat](https://www.ruby-forum.com/u/Aparna_Bhat)\
**Replies:** 2\
**Last updated:** [February 26, 2013, 11:09am UTC](https://www.ruby-forum.com/t/floating-point/226934 "2013-02-26T11:09:54Z")

</div>

Hi, I am working on a module for load balancing. I have to make use of the type float. Can anyone please tell me if there is any nginx specific data type for float such as the one that exists for int (ngx\_int\_t). I …

---

## [Problem with proxy\_set\_header $ssl\_client\_cert](https://www.ruby-forum.com/t/problem-with-proxy-set-header-ssl-client-cert/226879)

<div class="topic-metadata">

**Author:** [@jstrybis](https://www.ruby-forum.com/u/jstrybis)\
**Replies:** 5\
**Last updated:** [February 25, 2013, 11:00pm UTC](https://www.ruby-forum.com/t/problem-with-proxy-set-header-ssl-client-cert/226879 "2013-02-25T23:00:40Z")

</div>

Hello, I am having an issue while verifying client SSL certificates. Everything works fine until I attempt to forward the cert onto the upstream. Once I add a line similar to the following in my location block, all r…

---

## [How to remove the "IF" in this fcgi config](https://www.ruby-forum.com/t/how-to-remove-the-if-in-this-fcgi-config/226809)

<div class="topic-metadata">

**Author:** [@ewildgoose](https://www.ruby-forum.com/u/ewildgoose)\
**Replies:** 7\
**Last updated:** [February 25, 2013, 10:20pm UTC](https://www.ruby-forum.com/t/how-to-remove-the-if-in-this-fcgi-config/226809 "2013-02-25T22:20:20Z")

</div>

Hi, I’m trying to setup a php app using fpm (owncloud). I am trying to match urls which can all over the filesystem and of the form: something.php/some/path?params So far I have something like this: loca…

---

## [Default error\_page for multiple vhosts](https://www.ruby-forum.com/t/default-error-page-for-multiple-vhosts/226825)

<div class="topic-metadata">

**Author:** [@Alexander\_Nestorov](https://www.ruby-forum.com/u/Alexander_Nestorov)\
**Replies:** 7\
**Last updated:** [February 25, 2013, 4:02pm UTC](https://www.ruby-forum.com/t/default-error-page-for-multiple-vhosts/226825 "2013-02-25T16:02:14Z")

</div>

I’m trying to set a default error\_page for my entire nginx server (as in for all vhosts) I’m using following settings: http { error\_page 404 /var/www/default/404.html; server { root /var/www/mydomain.com/; } } …

---

## [Proxy\_temp\_path is very slow](https://www.ruby-forum.com/t/proxy-temp-path-is-very-slow/226910)

<div class="topic-metadata">

**Author:** [@Indo\_P](https://www.ruby-forum.com/u/Indo_P)\
**Replies:** 1\
**Last updated:** [February 25, 2013, 4:01pm UTC](https://www.ruby-forum.com/t/proxy-temp-path-is-very-slow/226910 "2013-02-25T16:01:39Z")

</div>

Hello, I’m using proxy\_cache with nginx. I have nginx set as proxy cache to get the file from servers in onother country. Sometimes I have almost 3000 files in the temp path, and my disk I/O is very high. Actually I’…

---

## [Optimize rewrite](https://www.ruby-forum.com/t/optimize-rewrite/226888)

<div class="topic-metadata">

**Author:** [@Anto](https://www.ruby-forum.com/u/Anto)\
**Replies:** 0\
**Last updated:** [February 24, 2013, 10:18pm UTC](https://www.ruby-forum.com/t/optimize-rewrite/226888 "2013-02-24T22:18:44Z")

</div>

hello I have a script that works with apache but I want to migrate to nginx, I have this rule, but maybe you can do differently optimized. HTACCESS RewriteEngine On RewriteCond %{REQUEST\_FILENAME} !-d RewriteCon…

---

## [Mod\_auth\_request + php5-fpm gives error 504 on POST requests, GET requests are okay](https://www.ruby-forum.com/t/mod-auth-request-php5-fpm-gives-error-504-on-post-requests-get-requests-are-okay/226869)

<div class="topic-metadata">

**Author:** [@refghbn](https://www.ruby-forum.com/u/refghbn)\
**Replies:** 1\
**Last updated:** [February 24, 2013, 6:54pm UTC](https://www.ruby-forum.com/t/mod-auth-request-php5-fpm-gives-error-504-on-post-requests-get-requests-are-okay/226869 "2013-02-24T18:54:12Z")

</div>

Setup: php5-fpm listening on socket + nginx 1.2.6 Wanted to use mod\_auth\_request for www authentication. Works fine for GET requests, POST requests time out with error 504. Error log: 2013/02/24 00:13:03 \[error\] 240…

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

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