# Server

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

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

---

## [Logging a variable set by nginx's Lua module](https://www.ruby-forum.com/t/logging-a-variable-set-by-nginxs-lua-module/235798)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [July 16, 2013, 6:45pm UTC](https://www.ruby-forum.com/t/logging-a-variable-set-by-nginxs-lua-module/235798 "2013-07-16T18:45:27Z")

</div>

I am trying to use the Lua module in nginx to set a variable (“foo”) based on JSON in the body of a request. Then I want to log the value of that variable to the access log. Like so: gist:17f5bf4736566737cc65 · GitHu…

---

## [Reverse Proxy Stats](https://www.ruby-forum.com/t/reverse-proxy-stats/245832)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [July 16, 2013, 4:09pm UTC](https://www.ruby-forum.com/t/reverse-proxy-stats/245832 "2013-07-16T16:09:20Z")

</div>

All, I’m wondering what people are doing for Reverse Proxy stats. Most project seem to be incomplete or may have bit rot. I’m looking to see the following. Active sessions to upstream servers Request distribution…

---

## [Nginx worker processors D state and high I/O utilization!](https://www.ruby-forum.com/t/nginx-worker-processors-d-state-and-high-i-o-utilization/245775)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 8\
**Last updated:** [July 16, 2013, 11:07am UTC](https://www.ruby-forum.com/t/nginx-worker-processors-d-state-and-high-i-o-utilization/245775 "2013-07-16T11:07:15Z")

</div>

Hello, We're using nginx-1.2.8 to serve large static files for video streaming. However all nginx worker\_processes are in “D” state and HDD I/O utilization is 99%. \[root@DNTX010 ~\]# ps aux |grep nginx root 3…

---

## [Proxy returns 504 then blocks next connections](https://www.ruby-forum.com/t/proxy-returns-504-then-blocks-next-connections/245739)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [July 15, 2013, 1:05pm UTC](https://www.ruby-forum.com/t/proxy-returns-504-then-blocks-next-connections/245739 "2013-07-15T13:05:52Z")

</div>

I’m having an issue where I proxy a long running script and receive a 504 error when it exceeds my proxy\_read\_timeout setting. All of that’s behaving normally – what isn’t behaving normally is that the next several …

---

## [HTTP Upload Progress bug](https://www.ruby-forum.com/t/http-upload-progress-bug/235777)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 0\
**Last updated:** [July 15, 2013, 11:35am UTC](https://www.ruby-forum.com/t/http-upload-progress-bug/235777 "2013-07-15T11:35:13Z")

</div>

I’m using NGINX 1.4.1 with the HTTP Upload Progress module but I’m getting some strange result when GETing the current progress. The uploaded size is always 0, while the total size is the size of the file I’m uploadi…

---

## [How to log POST body data?](https://www.ruby-forum.com/t/how-to-log-post-body-data/235770)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [July 15, 2013, 8:01am UTC](https://www.ruby-forum.com/t/how-to-log-post-body-data/235770 "2013-07-15T08:01:23Z")

</div>

I’m trying to use $request\_body but get ‘-’ in my log file for this field here is my configure file, is there sth wrong or the $request\_body has other deps to work? http { log\_format client '$remote\_addr - $remote\_…

---

## [X-Accel-Redirect without internal](https://www.ruby-forum.com/t/x-accel-redirect-without-internal/235769)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 3\
**Last updated:** [July 14, 2013, 10:08pm UTC](https://www.ruby-forum.com/t/x-accel-redirect-without-internal/235769 "2013-07-14T22:08:35Z")

</div>

Hello, My problem is very simple, I’d like to change from php readfile to x-accel-redirect. I know exactly how to do it, but I have a problem: My files are organized like that: /home/ID(id of directory on mysql)/ .mp…

---

## [Custom 401 page not displaying or not prompting for credentials](https://www.ruby-forum.com/t/custom-401-page-not-displaying-or-not-prompting-for-credentials/245758)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 3\
**Last updated:** [July 14, 2013, 8:54pm UTC](https://www.ruby-forum.com/t/custom-401-page-not-displaying-or-not-prompting-for-credentials/245758 "2013-07-14T20:54:59Z")

</div>

Hello, I was trying to set a custom error 401 page on my Nginx server version 1.5.1 using the following methods: error\_page 401 /401.html By itself it still displays the default site error\_page 401 http://example.com…

---

## [ReWrite rule help](https://www.ruby-forum.com/t/rewrite-rule-help/235761)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [July 13, 2013, 6:08pm UTC](https://www.ruby-forum.com/t/rewrite-rule-help/235761 "2013-07-13T18:08:38Z")

</div>

Hi I am trying to write following rewrite url request: www.example.com/abc/xyz?a=1&b=2 It should get response from following urlwww.example.com:8080/xyz?a=1&b=2 can some one help me to do this. Thanks,Sandeep

---

## [Duplicating or forking incoming requests](https://www.ruby-forum.com/t/duplicating-or-forking-incoming-requests/245809)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [July 12, 2013, 11:01pm UTC](https://www.ruby-forum.com/t/duplicating-or-forking-incoming-requests/245809 "2013-07-12T23:01:55Z")

</div>

I’m trying to figure out how to accomplish something with nginx and it seems to have me baffled. We use nginx as an endpoint to log incoming events. The default response is a 200, empty body and an entry in the acces…

---

## [Different fastcgi\_cache for bots and humans](https://www.ruby-forum.com/t/different-fastcgi-cache-for-bots-and-humans/235749)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [July 12, 2013, 10:23pm UTC](https://www.ruby-forum.com/t/different-fastcgi-cache-for-bots-and-humans/235749 "2013-07-12T22:23:22Z")

</div>

As mentioned before, I’m tweaking pixabay’s version of handling the new Google Image search traffic killer by making their trap URLs more cacheable. Img tags in the html will have ?i appended to the source and those “…

---

## [Nginx debian 6 64bits](https://www.ruby-forum.com/t/nginx-debian-6-64bits/245771)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 9\
**Last updated:** [July 12, 2013, 9:10pm UTC](https://www.ruby-forum.com/t/nginx-debian-6-64bits/245771 "2013-07-12T21:10:53Z")

</div>

default.conf server { if ($host !~\* ^www\\.) { rewrite ^(.\*)$ http://www.$host$1 permanent; } listen 80; server\_name exemple.org; index index.html index.htm index.php; root /home/home; location…

---

## [SSL + Large file uploads (3GB+)](https://www.ruby-forum.com/t/ssl-large-file-uploads-3gb/235710)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [July 12, 2013, 12:53pm UTC](https://www.ruby-forum.com/t/ssl-large-file-uploads-3gb/235710 "2013-07-12T12:53:43Z")

</div>

Hello, I’m having problems uploading large files (3GB) to a server with SSL enabled. I’m using nginx 1.4.2 + passenger. Files around 1GB large work fine. My /tmp mount is large enough to handle files of that size. I …

---

## [Reg: SCGI application deployment using NGINX](https://www.ruby-forum.com/t/reg-scgi-application-deployment-using-nginx/245801)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [July 12, 2013, 11:44am UTC](https://www.ruby-forum.com/t/reg-scgi-application-deployment-using-nginx/245801 "2013-07-12T11:44:11Z")

</div>

Hi, I would like to know the procedure to deploy SCGI application in NGINX server. Thanks in advance – With Best Regards, P Amarnath, IPNG - Cloud Storage, Global Edge Software Ltd.

---

## [Https redirect going to infinite loop](https://www.ruby-forum.com/t/https-redirect-going-to-infinite-loop/235727)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 5\
**Last updated:** [July 12, 2013, 11:09am UTC](https://www.ruby-forum.com/t/https-redirect-going-to-infinite-loop/235727 "2013-07-12T11:09:07Z")

</div>

Hi, I am new to nginx. I am trying to redirect all request to https. This is the redirect i am using rewrite ^/(.\*) https://example.com permanent; somehow when I hit http://example.com on browser it goes to infin…

---

## [Upstream timed out](https://www.ruby-forum.com/t/upstream-timed-out/235734)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 1\
**Last updated:** [July 12, 2013, 12:21am UTC](https://www.ruby-forum.com/t/upstream-timed-out/235734 "2013-07-12T00:21:57Z")

</div>

I am a newbie. I’m running Ubuntu, Nginx and 5 Thin servers - that serve up a Ruby on Rails app. The system hangs about once a day. The Nginx log has this error: 2013/07/11 10:06:46 \[error\] 21344#0: \*201 upstream t…

---

## [LDAP + Header Rewrite](https://www.ruby-forum.com/t/ldap-header-rewrite/235723)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [July 12, 2013, 12:09am UTC](https://www.ruby-forum.com/t/ldap-header-rewrite/235723 "2013-07-12T00:09:40Z")

</div>

We have been looking around for a while on this one without luck so I figured I would see if anyone here might have an idea. Nginx seems to be able to do everything if you can just figure out how :slight\_smile: We ar…

---

## [Configuration problem whit ngingx and unicorn](https://www.ruby-forum.com/t/configuration-problem-whit-ngingx-and-unicorn/245752)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [July 11, 2013, 10:49pm UTC](https://www.ruby-forum.com/t/configuration-problem-whit-ngingx-and-unicorn/245752 "2013-07-11T22:49:42Z")

</div>

Hello again: I am working to configure a nginx-unicorn server but when I am finish to configuring that server and try to enter to de web site, the welcome to nginx default page open, and not my web site, this is my …

---

## [HSTS and X-Frame-Options](https://www.ruby-forum.com/t/hsts-and-x-frame-options/235726)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [July 11, 2013, 4:43pm UTC](https://www.ruby-forum.com/t/hsts-and-x-frame-options/235726 "2013-07-11T16:43:50Z")

</div>

Hi, I’ve just enabled HSTS and X-Frame Options in my nginx configuration (1.2.9) and was wondering if I have done it correctly. Currently my site has 4 server blocks. One to redirect domain.com to https://www.domain.…

---

## [Help Needed to configure NGINX reverse proxy with URL rewrite](https://www.ruby-forum.com/t/help-needed-to-configure-nginx-reverse-proxy-with-url-rewrite/235719)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 1\
**Last updated:** [July 11, 2013, 9:16am UTC](https://www.ruby-forum.com/t/help-needed-to-configure-nginx-reverse-proxy-with-url-rewrite/235719 "2013-07-11T09:16:51Z")

</div>

Hi, I am new on NGINX. I am looking for reverse proxy solution which can rewrite URL as well. It seems NGINX might be able to do the same thus asking for your help. Our requirement is to publish a external url for o…

---

## [Can't get SNI to work with v1.4.1](https://www.ruby-forum.com/t/cant-get-sni-to-work-with-v1-4-1/245786)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [July 11, 2013, 2:22am UTC](https://www.ruby-forum.com/t/cant-get-sni-to-work-with-v1-4-1/245786 "2013-07-11T02:22:39Z")

</div>

I’m sure I’m doing something wrong, but so far as I can tell, I’ve setup my vhosts according to the nginx docs, but I’m still not getting the SNI setup to work: nginx -V nginx version: nginx/1.4.1 TLS SNI suppo…

---

## [Migrating Topincs to nginx](https://www.ruby-forum.com/t/migrating-topincs-to-nginx/245705)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [July 11, 2013, 12:51am UTC](https://www.ruby-forum.com/t/migrating-topincs-to-nginx/245705 "2013-07-11T00:51:31Z")

</div>

Dear list, This is going to be a long post, but I hope you will bear with me. I am trying to find a way to run Topincs, an agile web application framework based on Topic Maps paradigm, on nginx. Topincs is a typical…

---

## [Possible to overwrite a fastcgi\_param "later", once a location block has already been closed?](https://www.ruby-forum.com/t/possible-to-overwrite-a-fastcgi-param-later-once-a-location-block-has-already-been-closed/235700)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 3\
**Last updated:** [July 10, 2013, 11:21pm UTC](https://www.ruby-forum.com/t/possible-to-overwrite-a-fastcgi-param-later-once-a-location-block-has-already-been-closed/235700 "2013-07-10T23:21:32Z")

</div>

Hello, I am working with a server configuration that is partly outside of my control, and have a need to overwrite a fastcgi\_param “after” the directives that are outside of my control have already been included. The…

---

## [Deploying sinatra app on rails app sub uri using( unicorn and nginx)](https://www.ruby-forum.com/t/deploying-sinatra-app-on-rails-app-sub-uri-using-unicorn-and-nginx/235714)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 0\
**Last updated:** [July 10, 2013, 11:15pm UTC](https://www.ruby-forum.com/t/deploying-sinatra-app-on-rails-app-sub-uri-using-unicorn-and-nginx/235714 "2013-07-10T23:15:41Z")

</div>

I have rails app running on unicorn+nginx. below is the nginx.conf and unicorn.rb configuration. nginx.conf upstream unicorn { server unix:/tmp/unicorn.todo.sock fail\_timeout=0; } server{ listen 80 default deferr…

---

## [Update NGINX to v 1.4.1](https://www.ruby-forum.com/t/update-nginx-to-v-1-4-1/235709)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [July 10, 2013, 4:26pm UTC](https://www.ruby-forum.com/t/update-nginx-to-v-1-4-1/235709 "2013-07-10T16:26:36Z")

</div>

I have a server with some ruby aplication in nginx 1.1.19 and I am want to update to the version 1.4.1 but I can update using apt-get because the server no have internet. I can download the package in other PC. How ca…

---

## [Nginx cache loader process](https://www.ruby-forum.com/t/nginx-cache-loader-process/235626)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 5\
**Last updated:** [July 10, 2013, 1:54pm UTC](https://www.ruby-forum.com/t/nginx-cache-loader-process/235626 "2013-07-10T13:54:04Z")

</div>

We have several hundred Gs of file cached using nginx. Every time we restarted nginx, the cache loader process will appear and server load will go super high and respond very slowly. Looks like cache loader process i…

---

## [Wrong server used in SSL request](https://www.ruby-forum.com/t/wrong-server-used-in-ssl-request/235706)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 5\
**Last updated:** [July 10, 2013, 1:20pm UTC](https://www.ruby-forum.com/t/wrong-server-used-in-ssl-request/235706 "2013-07-10T13:20:12Z")

</div>

Hi everyone, I have a rather strange issue. I have a server with 3 configured urls: example.com (+ ssl) shop.example.com (+ ssl) example2.com (- ssl) If I now open https://example2.com the server of https://shop.e…

---

## [Disable open\_file\_cache for a specific location](https://www.ruby-forum.com/t/disable-open-file-cache-for-a-specific-location/245713)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 14\
**Last updated:** [July 9, 2013, 3:12pm UTC](https://www.ruby-forum.com/t/disable-open-file-cache-for-a-specific-location/245713 "2013-07-09T15:12:20Z")

</div>

I have set the open\_file\_cache variable to max=5000 inactive=20s so that it is enabled globally but now I want to disable all caching for a specific virtual location on a domain: open\_file\_cache max=5000 inactive=…

---

## [$request\_header\_length and $request\_body\_length?](https://www.ruby-forum.com/t/request-header-length-and-request-body-length/245736)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [July 9, 2013, 2:03pm UTC](https://www.ruby-forum.com/t/request-header-length-and-request-body-length/245736 "2013-07-09T14:03:58Z")

</div>

Hello, I am trying to diagnose a weird 408 error problem on nginx. My theory is that the client might be using some kind of crack making the request body too short for Content-Length header, so nginx waits more data …

---

## [Permissions not working for upload module](https://www.ruby-forum.com/t/permissions-not-working-for-upload-module/245748)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [July 9, 2013, 1:38pm UTC](https://www.ruby-forum.com/t/permissions-not-working-for-upload-module/245748 "2013-07-09T13:38:16Z")

</div>

I’ve recently created an RPM for Cent-Os 4 for NGINX 1.2.6 which includes the nginx\_upload\_module version 2.2.0 When the files get uploaded they don’t have correct permissions. They have the default user rw permissio…

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

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