# Server

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

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

---

## [Limit\_rate for different resolutions!](https://www.ruby-forum.com/t/limit-rate-for-different-resolutions/235859)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 11\
**Last updated:** [July 23, 2013, 7:27am UTC](https://www.ruby-forum.com/t/limit-rate-for-different-resolutions/235859 "2013-07-23T07:27:30Z")

</div>

Hello, Is there a way that i could use different limit\_rate in nginx for different files ? I.e limit\_rate 500k for 720p video files. limit\_rate 180k for 320p video files. Best Regards. Shahzaib

---

## [Proxy\_pass via HTTP proxy](https://www.ruby-forum.com/t/proxy-pass-via-http-proxy/235825)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [July 23, 2013, 12:44am UTC](https://www.ruby-forum.com/t/proxy-pass-via-http-proxy/235825 "2013-07-23T00:44:28Z")

</div>

Hi, I am trying to configure my nginx instance so that it "proxy\_pass"es to another HTTPS server S. However, in order to reach S, I need to go though an HTTP server P. This means nginx would need to connect to P, iss…

---

## [Connect() to 127.0.0.1:80 failed (99: Cannot assign requested address](https://www.ruby-forum.com/t/connect-to-127-0-0-1-80-failed-99-cannot-assign-requested-address/235763)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 28\
**Last updated:** [July 22, 2013, 6:52pm UTC](https://www.ruby-forum.com/t/connect-to-127-0-0-1-80-failed-99-cannot-assign-requested-address/235763 "2013-07-22T18:52:06Z")

</div>

Hi I just installed Nginx on my new VPS on centOS. But while accessing the phpinfo.php, I am getting belwo exception " connect() to 127.0.0.1:80 failed (99: Cannot assign requested address) while connecting to upstre…

---

## [Help with code](https://www.ruby-forum.com/t/help-with-code/235884)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [July 22, 2013, 6:10pm UTC](https://www.ruby-forum.com/t/help-with-code/235884 "2013-07-22T18:10:36Z")

</div>

Hi All, I have the following code: location = /favicon.ico { if ($host = "abc.com"){ return 301 "http://www.abc.com/favicon.ico"; } …

---

## [Out of office vom 22.-26.7](https://www.ruby-forum.com/t/out-of-office-vom-22-26-7/235879)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 0\
**Last updated:** [July 22, 2013, 6:29am UTC](https://www.ruby-forum.com/t/out-of-office-vom-22-26-7/235879 "2013-07-22T06:29:32Z")

</div>

Guten Tag, vielen Dank fr Ihre Nachricht. Ich bin vom 22. bis 26. Juli viel unterwegs und kann nur beschrnkt auf meine E-Mails zugreifen. Ich werde mich aber schnellstmglich bei Ihnen melden. Freundliche Gre, Michae…

---

## [Location recursive downloads php files](https://www.ruby-forum.com/t/location-recursive-downloads-php-files/235869)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 3\
**Last updated:** [July 21, 2013, 10:17pm UTC](https://www.ruby-forum.com/t/location-recursive-downloads-php-files/235869 "2013-07-21T22:17:08Z")

</div>

I try to secure a specific folder and all files and subfolders with this location block: location ^~ /folder1/admin { auth\_basic "Login"; auth\_basic\_user\_file /var/www/domain.tld/www/folder1/admin/.htpasswd; …

---

## [Nginx Cache Config with Multiple Disk Drives](https://www.ruby-forum.com/t/nginx-cache-config-with-multiple-disk-drives/235855)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [July 21, 2013, 2:22am UTC](https://www.ruby-forum.com/t/nginx-cache-config-with-multiple-disk-drives/235855 "2013-07-21T02:22:28Z")

</div>

Hi, I am looking for guidance on how best to configure Nginx Proxy Cache in a multi-disk drive environment. Our typical server setup is such that each drive is its own partition, for example, if we have a 10 drive se…

---

## [Info about original request URI in access phase](https://www.ruby-forum.com/t/info-about-original-request-uri-in-access-phase/245838)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [July 19, 2013, 6:32pm UTC](https://www.ruby-forum.com/t/info-about-original-request-uri-in-access-phase/245838 "2013-07-19T18:32:17Z")

</div>

Hi, I am writing a handler that checks a request signature during the access phase. When there is URI rewriting, the URI the client used when signing does not match the URI the handler sees when checking the signatur…

---

## [Hostname in Root directive](https://www.ruby-forum.com/t/hostname-in-root-directive/235851)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [July 19, 2013, 5:42pm UTC](https://www.ruby-forum.com/t/hostname-in-root-directive/235851 "2013-07-19T17:42:37Z")

</div>

I know this may not be safe, but how can I set the hostname in the root directive location /static { ie; root /www/$hostname/static; }

---

## [EXSLT func:function not registered for XSLT filter module](https://www.ruby-forum.com/t/exslt-func-function-not-registered-for-xslt-filter-module/235760)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [July 19, 2013, 2:04pm UTC](https://www.ruby-forum.com/t/exslt-func-function-not-registered-for-xslt-filter-module/235760 "2013-07-19T14:04:00Z")

</div>

Hi, I’m trying to use EXSLT’s func:function with nginx’s xslt filter module. The effect I think I’m seeing is that my functions are seemingly ignored. I made a test XSLT stylesheet: iona% cat xsl/fish.xsl \<?xml vers…

---

## [Nginx-reverse-proxy-proxy-cache-inside-if-block-possible](https://www.ruby-forum.com/t/nginx-reverse-proxy-proxy-cache-inside-if-block-possible/235842)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 1\
**Last updated:** [July 19, 2013, 10:26am UTC](https://www.ruby-forum.com/t/nginx-reverse-proxy-proxy-cache-inside-if-block-possible/235842 "2013-07-19T10:26:40Z")

</div>

Hi I am running a BBS server(nginx). And now I want to setup a cache server (using nginx)in front of the BBS server to cache the pic . The URL for the pic is something like this: http://www.mysite.com/forum.php?mo…

---

## [Ngx\_openresty devel version 1.4.1.1 released](https://www.ruby-forum.com/t/ngx-openresty-devel-version-1-4-1-1-released/235839)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 0\
**Last updated:** [July 19, 2013, 1:22am UTC](https://www.ruby-forum.com/t/ngx-openresty-devel-version-1-4-1-1-released/235839 "2013-07-19T01:22:10Z")

</div>

Hello guys! I am glad to announce that the new development version of ngx\_openresty, 1.4.1.1, is now released: http://openresty.org/#Download This is the first release based on the Nginx 1.4.x stable series. Special…

---

## [Webapps config doesn't work because of overridden by nginx](https://www.ruby-forum.com/t/webapps-config-doesnt-work-because-of-overridden-by-nginx/245829)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [July 19, 2013, 12:20am UTC](https://www.ruby-forum.com/t/webapps-config-doesnt-work-because-of-overridden-by-nginx/245829 "2013-07-19T00:20:48Z")

</div>

Hi All, I’ve some problem when using reverse proxy, my configuration are like this : I think the configuration are correct, and the site are running well. But, if I want to access some subdomain (eg. techno.domain.t…

---

## [If statements, string manipulation and file detection](https://www.ruby-forum.com/t/if-statements-string-manipulation-and-file-detection/245846)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [July 18, 2013, 8:50pm UTC](https://www.ruby-forum.com/t/if-statements-string-manipulation-and-file-detection/245846 "2013-07-18T20:50:28Z")

</div>

Hi, I’d like to use some if statements in a config. I know if in nginx is evil, but I think it’s what I want. Here is the pseudo-nginx-conf-code for what I need: http://pastebin.com/BxrtZ695 — can someone please help…

---

## [Help needed with configuration](https://www.ruby-forum.com/t/help-needed-with-configuration/235832)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [July 18, 2013, 8:39pm UTC](https://www.ruby-forum.com/t/help-needed-with-configuration/235832 "2013-07-18T20:39:22Z")

</div>

Hi All, I am trying to set up Nginx for a reseller scenario. The reseller will get his own root, and be able to create his versions of any file on the site, or, by leaving the file out, simply have the basic one use…

---

## [Not able add nginx upload module to nginx 1.2.8](https://www.ruby-forum.com/t/not-able-add-nginx-upload-module-to-nginx-1-2-8/235833)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [July 18, 2013, 5:54pm UTC](https://www.ruby-forum.com/t/not-able-add-nginx-upload-module-to-nginx-1-2-8/235833 "2013-07-18T17:54:35Z")

</div>

Hi, I am trying add the nginx upload module 2.2.0 with nginx 1.2.8 and getting below error. after./configure --add-module= and make this one fails make install make -f objs/Makefile install make\[1\]: Entering d…

---

## [Question about failure and fail-over](https://www.ruby-forum.com/t/question-about-failure-and-fail-over/245815)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [July 18, 2013, 4:28pm UTC](https://www.ruby-forum.com/t/question-about-failure-and-fail-over/245815 "2013-07-18T16:28:40Z")

</div>

Hi all, I have a general question about server failure and failover within an upstream group to ensure I understand it correctly. Lets say I have the configuration: proxy\_next\_upstream timeout; proxy\_connect\_timeout …

---

## [Strange log file behavior](https://www.ruby-forum.com/t/strange-log-file-behavior/235768)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 11\
**Last updated:** [July 18, 2013, 3:55pm UTC](https://www.ruby-forum.com/t/strange-log-file-behavior/235768 "2013-07-18T15:55:21Z")

</div>

I noticed that most of my rotated nginx log files are empty (0 bytes). My only access\_log directive is in nginx.conf: access\_log /var/log/nginx/localhost.access\_log combined; Also nginx is currently logging to /var/l…

---

## [Proxy\_cache calculating size error under SSD drive but not SATA drive](https://www.ruby-forum.com/t/proxy-cache-calculating-size-error-under-ssd-drive-but-not-sata-drive/245841)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 4\
**Last updated:** [July 18, 2013, 2:32pm UTC](https://www.ruby-forum.com/t/proxy-cache-calculating-size-error-under-ssd-drive-but-not-sata-drive/245841 "2013-07-18T14:32:59Z")

</div>

Hello: I think I am on the right way, but not sure… The scenario: Have 2 drives: → SSD drive - XFS - default options (with noatime, discard) - almost empty → SATA drive - XFS - default options - almost empty …

---

## [Nginx caching successive requests to reduce server load](https://www.ruby-forum.com/t/nginx-caching-successive-requests-to-reduce-server-load/245821)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [July 18, 2013, 12:34pm UTC](https://www.ruby-forum.com/t/nginx-caching-successive-requests-to-reduce-server-load/245821 "2013-07-18T12:34:17Z")

</div>

Hi, I couldn’t find what I was looking for in the search option. For a page that displays current time when refreshed, when the client presses and holds refresh button, nginx should serve a cached version of the page…

---

## [Setting Keepalive\_timeout for specific location](https://www.ruby-forum.com/t/setting-keepalive-timeout-for-specific-location/235830)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 6\
**Last updated:** [July 18, 2013, 12:15pm UTC](https://www.ruby-forum.com/t/setting-keepalive-timeout-for-specific-location/235830 "2013-07-18T12:15:34Z")

</div>

Hi I’d like to know if setting keepalive for a specific location is possible. Right now I have only managed to get it working on server {} directive but not location {} directive. Thanks, Kim Y.

---

## [Trouble with $uri in subrequest](https://www.ruby-forum.com/t/trouble-with-uri-in-subrequest/245843)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [July 18, 2013, 10:40am UTC](https://www.ruby-forum.com/t/trouble-with-uri-in-subrequest/245843 "2013-07-18T10:40:18Z")

</div>

Hi there, i’m having trouble getting the request\_uri via lua in a subrequest. ngx.var.uri will always return the uri of the parent request whereas something like ngx.req.get\_uri\_args will return the correct args for t…

---

## [Generating a new request when handling one in a module](https://www.ruby-forum.com/t/generating-a-new-request-when-handling-one-in-a-module/245816)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [July 18, 2013, 5:25am UTC](https://www.ruby-forum.com/t/generating-a-new-request-when-handling-one-in-a-module/245816 "2013-07-18T05:25:25Z")

</div>

I want to modify third party longpoll module nginx\_http\_push\_module ( http://pushmodule.slact.net/ ) to notify upstream every time a request hangs waiting for a new publication, sending original headers and all, so I …

---

## [Nginx-1.4.2](https://www.ruby-forum.com/t/nginx-1-4-2/245828)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [July 17, 2013, 6:27pm UTC](https://www.ruby-forum.com/t/nginx-1-4-2/245828 "2013-07-17T18:27:27Z")

</div>

Changes with nginx 1.4.2 17 Jul 2013 \*) Bugfix: the $r-\>header\_in() embedded perl method did not return value of the “Cookie” and “X-Forwarded-For” request header lines; the …

---

## [Nginx as loadbalancer for tomcat with session stickyness bases on jvmRoute](https://www.ruby-forum.com/t/nginx-as-loadbalancer-for-tomcat-with-session-stickyness-bases-on-jvmroute/235819)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 0\
**Last updated:** [July 17, 2013, 5:40pm UTC](https://www.ruby-forum.com/t/nginx-as-loadbalancer-for-tomcat-with-session-stickyness-bases-on-jvmroute/235819 "2013-07-17T17:40:42Z")

</div>

Hello everyone, I’m currently using apache mod\_jk to load balance over four backend tomcat servers. The sessions are not replicated so I need stickyness based on jvmRoute. The mod\_jk configuration is: worker.list=rou…

---

## [Stub\_status always give me 0 Reading when upgraded to 1.4.1](https://www.ruby-forum.com/t/stub-status-always-give-me-0-reading-when-upgraded-to-1-4-1/245827)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 5\
**Last updated:** [July 17, 2013, 2:32pm UTC](https://www.ruby-forum.com/t/stub-status-always-give-me-0-reading-when-upgraded-to-1-4-1/245827 "2013-07-17T14:32:31Z")

</div>

Hi, We have upgraded one of our nginx from 0.7.65 to 1.4.1 (keeping existing configuration) and the stub\_status module now always give me “0 Reading” 0.7.65 Active connections: 4798 server accepts handled requests …

---

## [502 errors while running elgg social network app used the common solutions already](https://www.ruby-forum.com/t/502-errors-while-running-elgg-social-network-app-used-the-common-solutions-already/235800)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [July 17, 2013, 2:56am UTC](https://www.ruby-forum.com/t/502-errors-while-running-elgg-social-network-app-used-the-common-solutions-already/235800 "2013-07-17T02:56:13Z")

</div>

greetings! does anyone here have a reliable way of accurately calculating all the various parameters that are used in the .conf files for nginx hosted sites - that may cause 502 errors if set inaccurately? i am runn…

---

## [SSL Reverse Proxy issues](https://www.ruby-forum.com/t/ssl-reverse-proxy-issues/235784)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [July 16, 2013, 8:02pm UTC](https://www.ruby-forum.com/t/ssl-reverse-proxy-issues/235784 "2013-07-16T20:02:00Z")

</div>

So I have a nginx.conf file that has multiple server blocks in it and they all are working except this one, and this one is half working so I assume I’m just missing one thing. Basically what happens is you can goto …

---

## [Reg: SCGI application running error in NGINX server](https://www.ruby-forum.com/t/reg-scgi-application-running-error-in-nginx-server/235783)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 1\
**Last updated:** [July 16, 2013, 7:56pm UTC](https://www.ruby-forum.com/t/reg-scgi-application-running-error-in-nginx-server/235783 "2013-07-16T19:56:44Z")

</div>

Hi, I got this error in log file while running SCGI client in address 172.16.8.180 and nginx running on 172.16.8.143. /Error/: upstream timed out (110: Connection timed out) while reading response header from upstre…

---

## [Logs show massive spam of "proxy.php" access](https://www.ruby-forum.com/t/logs-show-massive-spam-of-proxy-php-access/235794)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [July 16, 2013, 7:50pm UTC](https://www.ruby-forum.com/t/logs-show-massive-spam-of-proxy-php-access/235794 "2013-07-16T19:50:53Z")

</div>

Hello, since I have installed nxginx on my Ubuntu LTS, I see the logs absolutely full of text like this: 2013/07/16 11:07:43 \[error\] 24590#0: \*445 rewrite or internal redirection cycle while internally redirecting …

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

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