# Server

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

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

---

## [Nginx-1.5.4](https://www.ruby-forum.com/t/nginx-1-5-4/236338)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [August 30, 2013, 11:05am UTC](https://www.ruby-forum.com/t/nginx-1-5-4/236338 "2013-08-30T11:05:53Z")

</div>

Changes with nginx 1.5.4 27 Aug 2013 \*) Change: the "js" extension MIME type has been changed to "application/javascript"; default value of the "charset\_types" directive wa…

---

## [Strange SPDY behaviour about request time with stastic proxy cached content](https://www.ruby-forum.com/t/strange-spdy-behaviour-about-request-time-with-stastic-proxy-cached-content/246113)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [August 29, 2013, 10:40pm UTC](https://www.ruby-forum.com/t/strange-spdy-behaviour-about-request-time-with-stastic-proxy-cached-content/246113 "2013-08-29T22:40:16Z")

</div>

Good time of day! We use nginx as load balancer and reverse proxy for some static content (images etc). And a problem was found with enabling SPDY: cached content with enabled SPDY becomes get from server with great…

---

## [Check if variable exists in file, Using file contents for variable handling](https://www.ruby-forum.com/t/check-if-variable-exists-in-file-using-file-contents-for-variable-handling/246114)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [August 29, 2013, 7:42pm UTC](https://www.ruby-forum.com/t/check-if-variable-exists-in-file-using-file-contents-for-variable-handling/246114 "2013-08-29T19:42:38Z")

</div>

Is there a way to check a variable against file contents for processing? A couple scenarios below. This is used here, but adding multiple agents can get burdensome: if ($http\_user\_agent ~ (agent1|agent2|Foo|Wget|Nmap…

---

## [Tengine-1.5.1 is released](https://www.ruby-forum.com/t/tengine-1-5-1-is-released/236367)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [August 29, 2013, 5:03pm UTC](https://www.ruby-forum.com/t/tengine-1-5-1-is-released/236367 "2013-08-29T17:03:37Z")

</div>

Hi folks, We are pleased to announce that Tengine-1.5.1 (stable version) has been released! You can either checkout the source code from GitHub: GitHub - alibaba/tengine: A distribution of Nginx with some advanced fe…

---

## [Add country region in logs](https://www.ruby-forum.com/t/add-country-region-in-logs/236354)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 1\
**Last updated:** [August 29, 2013, 2:30am UTC](https://www.ruby-forum.com/t/add-country-region-in-logs/236354 "2013-08-29T02:30:04Z")

</div>

Hello nginx! Iam trying to identify all my visitors based on their continent region, i want to log this info in each log entry. There is no geoip database for continent region so I want to map manually the countries w…

---

## [Fake Basic Auth](https://www.ruby-forum.com/t/fake-basic-auth/246073)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 5\
**Last updated:** [August 28, 2013, 8:18pm UTC](https://www.ruby-forum.com/t/fake-basic-auth/246073 "2013-08-28T20:18:57Z")

</div>

Hello, I am new to nginx and have following problem: Nginx should be used as a reverse proxy and configured for client certificate authentication. Backoffice application supports basic auth only. Apache 2.4 solution…

---

## [504 Gateway Time-out when calling curl\_exec() in PHP with SSL peer verification (CURLOPT\_SSL\_VERIFYP](https://www.ruby-forum.com/t/504-gateway-time-out-when-calling-curl-exec-in-php-with-ssl-peer-verification-curlopt-ssl-verifyp/246084)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 9\
**Last updated:** [August 28, 2013, 3:45pm UTC](https://www.ruby-forum.com/t/504-gateway-time-out-when-calling-curl-exec-in-php-with-ssl-peer-verification-curlopt-ssl-verifyp/246084 "2013-08-28T15:45:34Z")

</div>

Hello, I’m seeing a strange problem with nginx (1.5.2 on Windows) and PHP (5.4.8 on Windows). Whenever I make a cURL request with PHP’s curl\_exec() function to a secure URL (https protocol), and I disable peer verifi…

---

## [502-Error but nothing in error.log (anymore)](https://www.ruby-forum.com/t/502-error-but-nothing-in-error-log-anymore/246130)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [August 28, 2013, 2:28pm UTC](https://www.ruby-forum.com/t/502-error-but-nothing-in-error-log-anymore/246130 "2013-08-28T14:28:28Z")

</div>

Hi there, I’m using nginx on my arm5 to run a seafile-server and ran into a couple of problems just now. when I open a page that embeds a picture from a certain folder the picture won’t show. When I copy the picture…

---

## [Help needed NGINX reverse proxy to NODE.JS](https://www.ruby-forum.com/t/help-needed-nginx-reverse-proxy-to-node-js/246102)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [August 27, 2013, 7:15pm UTC](https://www.ruby-forum.com/t/help-needed-nginx-reverse-proxy-to-node-js/246102 "2013-08-27T19:15:15Z")

</div>

Hi, I’ve tried this with NGINX 1.4.1-1ppa1~precise and node v0.10.17 and just can’t get it to work. What I’ve tried / what happens : (a) Yes, I have tested this direct between client code and node listening on 0.0.0…

---

## [Zero size buf in output(Bug?)](https://www.ruby-forum.com/t/zero-size-buf-in-output-bug/223561)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 15\
**Last updated:** [August 27, 2013, 3:37pm UTC](https://www.ruby-forum.com/t/zero-size-buf-in-output-bug/223561 "2013-08-27T15:37:42Z")

</div>

Hi. After update from 1.0.14 to 1.2.3, strange alerts starts to appears in error.log: 2012/10/08 23:44:07 \[alert\] 25551#0: \*79037 zero size buf in output t:0 r:0 f:0 000000000D31F3F0 000000000D31F3F0-000000000D3273F0 …

---

## [VirtualDocumentRoot with 1.4.2](https://www.ruby-forum.com/t/virtualdocumentroot-with-1-4-2/236330)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 4\
**Last updated:** [August 27, 2013, 2:26pm UTC](https://www.ruby-forum.com/t/virtualdocumentroot-with-1-4-2/236330 "2013-08-27T14:26:22Z")

</div>

Hi there, I’ve tried to replicate my Apache VirtualDocumentRoot /srv/www/%0 to nginx. I have Nginx 1.4 Virtual hosting with server\_name ~^(?.\*)$; root /srv/www/$vhost; access\_log /var/log/nginx/$vhost.access.log; H…

---

## [Nginx as Reverse Proxy for Tomcat + SSL](https://www.ruby-forum.com/t/nginx-as-reverse-proxy-for-tomcat-ssl/179195)

<div class="topic-metadata">

**Author:** [@himesh](https://www.ruby-forum.com/u/himesh)\
**Replies:** 10\
**Last updated:** [August 27, 2013, 7:22am UTC](https://www.ruby-forum.com/t/nginx-as-reverse-proxy-for-tomcat-ssl/179195 "2013-08-27T07:22:48Z")

</div>

Hey guys, I am totally new to Nginx, I need some advice with my reverse proxy setup. This is what i am trying to set up. Client\<========\>| Nginx (reverse proxy)|\<========\>Tomcat It has to be secure i.e S…

---

## [How to serve PHP files outside the public folder?](https://www.ruby-forum.com/t/how-to-serve-php-files-outside-the-public-folder/236312)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 3\
**Last updated:** [August 27, 2013, 12:14am UTC](https://www.ruby-forum.com/t/how-to-serve-php-files-outside-the-public-folder/236312 "2013-08-27T00:14:36Z")

</div>

For serving the PHP scripts, I use this location location ~ .php$ { fastcgi\_pass 127.0.0.1:9000; fastcgi\_index index.php; fastcgi\_param SCRIPT\_FILENAME $document\_root$fastcgi\_script\_name; include /etc/nginx/fas…

---

## [Upload timeouts after about 30 seconds](https://www.ruby-forum.com/t/upload-timeouts-after-about-30-seconds/246086)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [August 24, 2013, 9:29pm UTC](https://www.ruby-forum.com/t/upload-timeouts-after-about-30-seconds/246086 "2013-08-24T21:29:17Z")

</div>

Hello, I’ve a problem with file upload and googling and checking with everything didn’t help to solve it. The problem is when file is being uploaded larger than few megs browser repeats request after about 30 second…

---

## [Nginx return empty](https://www.ruby-forum.com/t/nginx-return-empty/236305)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [August 23, 2013, 6:47pm UTC](https://www.ruby-forum.com/t/nginx-return-empty/236305 "2013-08-23T18:47:17Z")

</div>

I hava a website on a remote server and set the nginx servername “xiangyingdu.com abc.com” server{ listen 80; server\_name xiangyingdu.com abc.com; … … … … } I set host in my local pc. 115.12.. xiangyingdu.com …

---

## [Keepalive\_timeout not working?](https://www.ruby-forum.com/t/keepalive-timeout-not-working/236294)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 1\
**Last updated:** [August 22, 2013, 8:35pm UTC](https://www.ruby-forum.com/t/keepalive-timeout-not-working/236294 "2013-08-22T20:35:05Z")

</div>

keepalives seem to be working, but the timeout limit I’m setting isn’t honored it seems… Someone let me know if I’ve done something wrong or am missing something. I have nginx installed on Ubuntu from the stable repo…

---

## [Nginx mod\_security leaks file descriptors](https://www.ruby-forum.com/t/nginx-mod-security-leaks-file-descriptors/236288)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [August 22, 2013, 5:21pm UTC](https://www.ruby-forum.com/t/nginx-mod-security-leaks-file-descriptors/236288 "2013-08-22T17:21:41Z")

</div>

Hi, I have a problem with nginx and mod\_security module. After reloading nginx configuration (kill -HUP ) all files opened by mod\_security are opened once again without closing the old ones. That means at some point …

---

## [Proxying and caching a fragile server to ensure availability](https://www.ruby-forum.com/t/proxying-and-caching-a-fragile-server-to-ensure-availability/236285)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [August 22, 2013, 4:54am UTC](https://www.ruby-forum.com/t/proxying-and-caching-a-fragile-server-to-ensure-availability/236285 "2013-08-22T04:54:33Z")

</div>

Hello colleagues. I’m trying to save a website hosted on a (VERY) low-powered server by placing a strong nginx server in front of it as a caching proxy. I don’t control the website code and the rest of its configurati…

---

## [Gzip compression won't disable](https://www.ruby-forum.com/t/gzip-compression-wont-disable/246094)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [August 22, 2013, 4:39am UTC](https://www.ruby-forum.com/t/gzip-compression-wont-disable/246094 "2013-08-22T04:39:22Z")

</div>

Hey all, I’m running nginx 1.2.6 from a packaged install on Ubuntu 13.04. I’m at a total loss as to how this is happening but I simply cannot disable gzip compression for my server no matter what I try. Setting gzip …

---

## [Nginx stuck on startup](https://www.ruby-forum.com/t/nginx-stuck-on-startup/236281)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 1\
**Last updated:** [August 21, 2013, 9:41pm UTC](https://www.ruby-forum.com/t/nginx-stuck-on-startup/236281 "2013-08-21T21:41:10Z")

</div>

Hi everyone, Recently I’ve needed to restart nginx on my vps (which is debian wheezy) and it got stuck. Other services are fine but nginx not responding if there is a file operation involved. For example nginx -h pr…

---

## [Piwik conf file](https://www.ruby-forum.com/t/piwik-conf-file/236262)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [August 21, 2013, 8:22pm UTC](https://www.ruby-forum.com/t/piwik-conf-file/236262 "2013-08-21T20:22:53Z")

</div>

I have recently discovered this wonderful includes directive and I am using it to clean up my server blocks. Doing this has forced me to evaluate some of my configurations. I am trying to set up a conf file for Piwik …

---

## [TLS 1.2 ciphers](https://www.ruby-forum.com/t/tls-1-2-ciphers/246069)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [August 21, 2013, 8:08pm UTC](https://www.ruby-forum.com/t/tls-1-2-ciphers/246069 "2013-08-21T20:08:15Z")

</div>

Chrome 29 came out recently and now supports TLS 1.2. So i decided to add some of the new TLS 1.2 ciphers to my webserver, which are specified here: /docs/manmaster/man1/ciphers.html. My current setup is: Ubuntu 10.…

---

## [How to distinguish if nginx generated a 504 error or upstream returned it?](https://www.ruby-forum.com/t/how-to-distinguish-if-nginx-generated-a-504-error-or-upstream-returned-it/246091)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [August 21, 2013, 12:44pm UTC](https://www.ruby-forum.com/t/how-to-distinguish-if-nginx-generated-a-504-error-or-upstream-returned-it/246091 "2013-08-21T12:44:16Z")

</div>

Hello ! I run nginx as a reverse proxy and send requests to an upstream server, the problem is according to my logs sometimes i start seeing this: \[499\] \[-\] \[0\] \[11602\] \[xx.126.55.81\] \[GET /weblogin/ HTTP/1.1\] or \[5…

---

## [How to turn off gzip compression for SSL traffic](https://www.ruby-forum.com/t/how-to-turn-off-gzip-compression-for-ssl-traffic/236240)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 18\
**Last updated:** [August 21, 2013, 12:26am UTC](https://www.ruby-forum.com/t/how-to-turn-off-gzip-compression-for-ssl-traffic/236240 "2013-08-21T00:26:21Z")

</div>

Hi, As you know, due the breach attack (http://breachattack.com), HTTP compression is no longer safe (I assume nginx don’t use SSL compression by default?), so we should disable it. Now, We are using config like the…

---

## [Sub-requests to an upstream server](https://www.ruby-forum.com/t/sub-requests-to-an-upstream-server/236275)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [August 20, 2013, 5:43pm UTC](https://www.ruby-forum.com/t/sub-requests-to-an-upstream-server/236275 "2013-08-20T17:43:47Z")

</div>

Hello, I am writing an nginx plugin and I am trying to send sub-requests to an upstream server. I am aware of the ngx\_http\_subrequest function but I didn’t succeed to use it in my case and I am not sure it is what I…

---

## [Proxying requests based on $http\_authorization (API Key)](https://www.ruby-forum.com/t/proxying-requests-based-on-http-authorization-api-key/236264)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 0\
**Last updated:** [August 19, 2013, 9:56pm UTC](https://www.ruby-forum.com/t/proxying-requests-based-on-http-authorization-api-key/236264 "2013-08-19T21:56:59Z")

</div>

Hello. We are looking to proxy requests to different backends using upstream based on http basic auth. I.E. the API key of the request. I am thinking I need to first get the API key from the raw http request ($http\_…

---

## [Ssl\_cipher for mail not working](https://www.ruby-forum.com/t/ssl-cipher-for-mail-not-working/236201)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 3\
**Last updated:** [August 19, 2013, 12:57pm UTC](https://www.ruby-forum.com/t/ssl-cipher-for-mail-not-working/236201 "2013-08-19T12:57:13Z")

</div>

Hello, to increase security of SSL I added some eliptic-curves-ciphers to the chain. For HTTPS it’s working fine, but for the mail proxy it does not work, I only always get RC4-SHA instead of the ECDH ciphers. See c…

---

## [Sub-domain filtering](https://www.ruby-forum.com/t/sub-domain-filtering/236258)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [August 19, 2013, 9:14am UTC](https://www.ruby-forum.com/t/sub-domain-filtering/236258 "2013-08-19T09:14:05Z")

</div>

I am using the statement is: if ($ host! = www.mj.com|ci.mj.com) {rewrite ^ / (. \*) $ http://www.mj.com/ $ 1 permanent;} This page contains a redirect loop occurs causing the problem can not access the site, I ask …

---

## [Multiple nginx](https://www.ruby-forum.com/t/multiple-nginx/236247)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [August 18, 2013, 10:28pm UTC](https://www.ruby-forum.com/t/multiple-nginx/236247 "2013-08-18T22:28:48Z")

</div>

Hi, Is is alright to have two installations of nginx on the same machine? I have a running instance of nginx with php installed from distribution package manager. Instead of writing another config, I would like to co…

---

## [Nginx reload problem](https://www.ruby-forum.com/t/nginx-reload-problem/246001)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 10\
**Last updated:** [August 18, 2013, 9:15pm UTC](https://www.ruby-forum.com/t/nginx-reload-problem/246001 "2013-08-18T21:15:11Z")

</div>

Hello: I found that some nginx config option doesn’t take effect after modification with reload, the following is a simple test case: nginx version: nginx/1.2.7 nginx.conf: worker\_processes 1; error\_log logs/error…

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

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