# Server

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

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

---

## [Proxy\_cache not serving file from edge server!](https://www.ruby-forum.com/t/proxy-cache-not-serving-file-from-edge-server/230717)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [July 1, 2014, 2:49pm UTC](https://www.ruby-forum.com/t/proxy-cache-not-serving-file-from-edge-server/230717 "2014-07-01T14:49:17Z")

</div>

We’ve an origin and edge server with nginx-1.6 . Origin web-server(Located in U.S) is configured with nginx\_geo\_module and edge(Local ISP) is configured with proxy\_cache in order to cache files from origin server and …

---

## [Dav and dav\_ext, mp4 module, PROPFIND not working for files](https://www.ruby-forum.com/t/dav-and-dav-ext-mp4-module-propfind-not-working-for-files/230658)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 4\
**Last updated:** [July 1, 2014, 7:36am UTC](https://www.ruby-forum.com/t/dav-and-dav-ext-mp4-module-propfind-not-working-for-files/230658 "2014-07-01T07:36:19Z")

</div>

Somehow uploadprogress seems to be affecting a request unrelated. I am using Cyberduck on Windows to test WebDAV (over HTTPS). It successfully logs in, lists files, etc. But it does not download any files because it …

---

## [Is it ok to call header filters twice for the same response](https://www.ruby-forum.com/t/is-it-ok-to-call-header-filters-twice-for-the-same-response/230672)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 1\
**Last updated:** [July 1, 2014, 1:39am UTC](https://www.ruby-forum.com/t/is-it-ok-to-call-header-filters-twice-for-the-same-response/230672 "2014-07-01T01:39:34Z")

</div>

Hello When we configure nginx without modsecurity body filter, then the response is processed in two stages. First the headers are processed followed by the body filters If however, modsecurity is configured, then mo…

---

## [Inconsistent behavior with Nginx's auth\_request\_set and more\_set\_input\_headers](https://www.ruby-forum.com/t/inconsistent-behavior-with-nginxs-auth-request-set-and-more-set-input-headers/230667)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 1\
**Last updated:** [July 1, 2014, 12:53am UTC](https://www.ruby-forum.com/t/inconsistent-behavior-with-nginxs-auth-request-set-and-more-set-input-headers/230667 "2014-07-01T00:53:08Z")

</div>

Hi, I’m trying to use the auth\_request module in conjunction with the more\_set\_input\_headers to automatically login my users into web apps. Basically, it works like this: Users have some session cookie that authenti…

---

## [Nginx Windows High Traffic issues](https://www.ruby-forum.com/t/nginx-windows-high-traffic-issues/230623)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 33\
**Last updated:** [June 30, 2014, 8:21pm UTC](https://www.ruby-forum.com/t/nginx-windows-high-traffic-issues/230623 "2014-06-30T20:21:34Z")

</div>

So i spent a while on this one and turns out the problem is a little function in nginx’s core called “worker\_rlimit\_nofile”. But for me on windows (i don’t know if it does it for linux users too.) grinds my site down …

---

## [Using 'X-Accel-Redirect' in 'internal' with PHP to stream videos?](https://www.ruby-forum.com/t/using-x-accel-redirect-in-internal-with-php-to-stream-videos/230680)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 0\
**Last updated:** [June 29, 2014, 3:11pm UTC](https://www.ruby-forum.com/t/using-x-accel-redirect-in-internal-with-php-to-stream-videos/230680 "2014-06-29T15:11:17Z")

</div>

scenario: i am using a site built with the php based social framework called elgg (www.elgg.org) and am extending elgg to stream video. i discovered that nginx is not serving the mp4 files (for example) with the ‘Ac…

---

## [Curious problem with PHP](https://www.ruby-forum.com/t/curious-problem-with-php/230668)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 1\
**Last updated:** [June 29, 2014, 8:31am UTC](https://www.ruby-forum.com/t/curious-problem-with-php/230668 "2014-06-29T08:31:33Z")

</div>

Hi all, I have been investigating a performance problem with my nginx/init-fastcgi/PHP set up and I’m not having much success. All ideas gratefully received. It appears as if the PHP worker processes return their rep…

---

## [Nginx and GeoLite2](https://www.ruby-forum.com/t/nginx-and-geolite2/237041)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 7\
**Last updated:** [June 29, 2014, 8:17am UTC](https://www.ruby-forum.com/t/nginx-and-geolite2/237041 "2014-06-29T08:17:53Z")

</div>

Hi I am planning to use GeoLite with nginx. On the MaxMind website there is an announcement: Announcement Free access to the latest in IP geolocation databases is now available in our GeoLite2 Databases I’ve used t…

---

## [Use a return code for ngx\_http\_close\_request()](https://www.ruby-forum.com/t/use-a-return-code-for-ngx-http-close-request/230642)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 3\
**Last updated:** [June 28, 2014, 12:54pm UTC](https://www.ruby-forum.com/t/use-a-return-code-for-ngx-http-close-request/230642 "2014-06-28T12:54:28Z")

</div>

Hello, here is another path still on ngx\_http\_request.c. In function ngx\_http\_close\_request(), the second parameter is an error code. This error code is used in ngx\_http\_free\_request() to set the HTTP status code i…

---

## [Recommended spdy configuration](https://www.ruby-forum.com/t/recommended-spdy-configuration/230596)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 2\
**Last updated:** [June 28, 2014, 7:03am UTC](https://www.ruby-forum.com/t/recommended-spdy-configuration/230596 "2014-06-28T07:03:12Z")

</div>

What is the most suitable value according to you for the following directives spdy\_headers\_comp and spdy\_chunk\_size . i want to optimize spdy to get better performance.I am only using Nginx as my webserver (No apache…

---

## [Use a return code for ngx\_http\_terminate\_request()](https://www.ruby-forum.com/t/use-a-return-code-for-ngx-http-terminate-request/230641)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 1\
**Last updated:** [June 27, 2014, 9:39pm UTC](https://www.ruby-forum.com/t/use-a-return-code-for-ngx-http-terminate-request/230641 "2014-06-27T21:39:14Z")

</div>

Hello, Reading ngx\_http\_request.c source code, I notice some call to ngx\_http\_terminate\_request() is called sometimes with 0 instead of a return code. 0 is a correct valid for a return code … it’s NGX\_OK. Is the pa…

---

## [Matching a href spec with Lua regex](https://www.ruby-forum.com/t/matching-a-href-spec-with-lua-regex/230644)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 2\
**Last updated:** [June 27, 2014, 7:03pm UTC](https://www.ruby-forum.com/t/matching-a-href-spec-with-lua-regex/230644 "2014-06-27T19:03:59Z")

</div>

Hi, I am trying to modify the response body in the following way : If there href=“http://www.google.com”, I will convert it to href="http://nginx-ip/?\_url\_={url-encoded-form-of www.google.com} This is what I have in …

---

## [Upstream performances: what if one node only?](https://www.ruby-forum.com/t/upstream-performances-what-if-one-node-only/230643)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 2\
**Last updated:** [June 27, 2014, 6:40pm UTC](https://www.ruby-forum.com/t/upstream-performances-what-if-one-node-only/230643 "2014-06-27T18:40:11Z")

</div>

Hi all, I am wondering about the possible extra-cost of using a single-node upstream into proxy\_pass compared with ‘proxy\_pass host’ directly. I need to automate application servers move, and find convenient to upda…

---

## [Re: Nginx + PHP-fpm + NFS poor performance](https://www.ruby-forum.com/t/re-nginx-php-fpm-nfs-poor-performance/230603)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 1\
**Last updated:** [June 26, 2014, 11:41pm UTC](https://www.ruby-forum.com/t/re-nginx-php-fpm-nfs-poor-performance/230603 "2014-06-26T23:41:50Z")

</div>

Hello, we facing the same issue with version “nginx-1.4.7-1.el6.ngx.x86\_64”. Did anyone find a solution? Regards, Michael Rauch

---

## [403 error logging](https://www.ruby-forum.com/t/403-error-logging/230627)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 0\
**Last updated:** [June 26, 2014, 8:24pm UTC](https://www.ruby-forum.com/t/403-error-logging/230627 "2014-06-26T20:24:19Z")

</div>

Hello, I recently stumbled into a situation where I could not seem to find a way of disabling unwanted errors being logged. Configuration: location / { try\_files $uri $uri/ @https; } location @https { return 301…

---

## [Block](https://www.ruby-forum.com/t/block/230615)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 1\
**Last updated:** [June 26, 2014, 9:59am UTC](https://www.ruby-forum.com/t/block/230615 "2014-06-26T09:59:56Z")

</div>

Hello, new to all this so I apologize if my question is not formatted correctly. We only allow https from outside our network (via hardware firewall). I want to block access to usr/share/nginx/html but allow access ac…

---

## [How to log all headers in nginx?](https://www.ruby-forum.com/t/how-to-log-all-headers-in-nginx/230607)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 0\
**Last updated:** [June 25, 2014, 8:42pm UTC](https://www.ruby-forum.com/t/how-to-log-all-headers-in-nginx/230607 "2014-06-25T20:42:04Z")

</div>

How do I go about logging all of the headers client browser has sent in Nginx? I also want to log response header. Note that I am using nginx as reverse proxy. After going through documentation, I understand that I ca…

---

## [Debugging symbols for nginx-1.4.7-1.el6.ngx.x86\_64.rpm](https://www.ruby-forum.com/t/debugging-symbols-for-nginx-1-4-7-1-el6-ngx-x86-64-rpm/239932)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 4\
**Last updated:** [June 25, 2014, 5:44pm UTC](https://www.ruby-forum.com/t/debugging-symbols-for-nginx-1-4-7-1-el6-ngx-x86-64-rpm/239932 "2014-06-25T17:44:15Z")

</div>

I have a question to the nginx team - is there any chance for me to get the debugging symbols for the nginx-1.4.7-1.el6.ngx.x86\_64.rpm from Index of /packages/rhel/6/x86\_64/RPMS/? It seems the nginx-debug package con…

---

## [Number of requests in nginx queue](https://www.ruby-forum.com/t/number-of-requests-in-nginx-queue/230587)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 3\
**Last updated:** [June 25, 2014, 12:58pm UTC](https://www.ruby-forum.com/t/number-of-requests-in-nginx-queue/230587 "2014-06-25T12:58:06Z")

</div>

Hi, I want to find out how many requests are queued ,that is are yet to be processed ,in nginx at any given moment. From this i wish to calculate if my server is overloaded with requests. Posted at Nginx Forum:

---

## [Alias or rewrite to get Horde rpc.php to work](https://www.ruby-forum.com/t/alias-or-rewrite-to-get-horde-rpc-php-to-work/230415)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 1\
**Last updated:** [June 25, 2014, 10:10am UTC](https://www.ruby-forum.com/t/alias-or-rewrite-to-get-horde-rpc-php-to-work/230415 "2014-06-25T10:10:22Z")

</div>

Hello all, I’m trying to setup a nginx server on a RaspberryPi to host a Horde Groupware. The Webinterface is working so far. But I have problems setting up the Microsoft-Server-ActiveSync URL to sync my Smartphone a…

---

## [Problem with auth\_basic and auth\_basic\_user\_file](https://www.ruby-forum.com/t/problem-with-auth-basic-and-auth-basic-user-file/230561)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 2\
**Last updated:** [June 24, 2014, 5:59pm UTC](https://www.ruby-forum.com/t/problem-with-auth-basic-and-auth-basic-user-file/230561 "2014-06-24T17:59:05Z")

</div>

Hallo, I want a login for this location. location /TEST/ { alias /www/c2c/; } With location /TEST/ { alias /www/c2c/; auth\_basic “Test Auth”; } no username/password box in the browser. I see the index.html …

---

## [Proxy Bypass only specific IP](https://www.ruby-forum.com/t/proxy-bypass-only-specific-ip/230564)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 3\
**Last updated:** [June 24, 2014, 4:23pm UTC](https://www.ruby-forum.com/t/proxy-bypass-only-specific-ip/230564 "2014-06-24T16:23:57Z")

</div>

I am looking for a way for allow that proxy\_cache\_bypass but only on a secific hostname and client IP address. My current setup is as follows: location ~\* .(gif|jpg|jpeg|png|wmv|avi|mpg|mpeg|mp4|wmv|js|css|mp3|swf|ic…

---

## [Content\_by\_lua not reading/printing header values](https://www.ruby-forum.com/t/content-by-lua-not-reading-printing-header-values/230567)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 1\
**Last updated:** [June 24, 2014, 2:29pm UTC](https://www.ruby-forum.com/t/content-by-lua-not-reading-printing-header-values/230567 "2014-06-24T14:29:10Z")

</div>

My nginx.conf upstream testdb { postgres\_server 10.0.9.43:9000 dbname=testdb user=postgres password=postgres; postgres\_keepalive max=100 mode=multi overflow=ignore; } location / { set $x ""; …

---

## [Best method for adding GeoIP support](https://www.ruby-forum.com/t/best-method-for-adding-geoip-support/230434)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 3\
**Last updated:** [June 24, 2014, 5:57am UTC](https://www.ruby-forum.com/t/best-method-for-adding-geoip-support/230434 "2014-06-24T05:57:56Z")

</div>

We have just started to work with Nginx and have installed by adding the nginx repositry to our debian 7 installs. It works almost perfectly out of the box as such. However we need to add GeoIP support, so the questio…

---

## [Fastcgi\_cache](https://www.ruby-forum.com/t/fastcgi-cache/230550)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 3\
**Last updated:** [June 24, 2014, 4:28am UTC](https://www.ruby-forum.com/t/fastcgi-cache/230550 "2014-06-24T04:28:42Z")

</div>

Hi, I am trying setup fastcgi\_cache. Working fine… BUT I need bypass some pages… when theses pages have header “no-cache”… but I dont know how to do this… The rules for bypass using urls, work fine… like this: if ($…

---

## [Nginx location+proxy\_pass?](https://www.ruby-forum.com/t/nginx-location-proxy-pass/117703)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 8\
**Last updated:** [June 23, 2014, 11:41pm UTC](https://www.ruby-forum.com/t/nginx-location-proxy-pass/117703 "2014-06-23T23:41:45Z")

</div>

Hi All I’m trying to move a bunch of rails apps from an apache/fastcgi platform to nginx/mongrel\_cluster. What I want is something like this; http://my.server/app1 --\> mongrel\_cluster1 http://my.server/app2 --\> mong…

---

## [Velocity Conference](https://www.ruby-forum.com/t/velocity-conference/230553)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 0\
**Last updated:** [June 23, 2014, 5:22pm UTC](https://www.ruby-forum.com/t/velocity-conference/230553 "2014-06-23T17:22:10Z")

</div>

Hi All, We have some of the NGINX team at Velocity this week. If youre in Santa Clara this week, stop by and see us we have lots planned! sarah

---

## [Ssl proxys https web server is very slow](https://www.ruby-forum.com/t/ssl-proxys-https-web-server-is-very-slow/230497)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 4\
**Last updated:** [June 23, 2014, 3:55am UTC](https://www.ruby-forum.com/t/ssl-proxys-https-web-server-is-very-slow/230497 "2014-06-23T03:55:03Z")

</div>

Hi, It’s my first time using NGINX to proxy other web servers. I set a variable in location, this variable may be gotten in cookie or args. if I use it directly likes “proxy\_pass https://$nodeIp2;”, it will get the re…

---

## [Windows nginx 1.7.3.1 RedKnight](https://www.ruby-forum.com/t/windows-nginx-1-7-3-1-redknight/230521)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 0\
**Last updated:** [June 21, 2014, 5:37pm UTC](https://www.ruby-forum.com/t/windows-nginx-1-7-3-1-redknight/230521 "2014-06-21T17:37:34Z")

</div>

12:37 21-6-2014 nginx 1.7.3.1 RedKnight Based on nginx 1.7.3 (20-6-2014) with; new best practice ssl\_ciphers example (nginx-win.conf) fastcgi/upstream fix: Re: Only 64k sent when the first upstream failed in fastcgi\_…

---

## [Ngx\_http\_process\_header\_line function in source code](https://www.ruby-forum.com/t/ngx-http-process-header-line-function-in-source-code/230391)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 3\
**Last updated:** [June 21, 2014, 4:53pm UTC](https://www.ruby-forum.com/t/ngx-http-process-header-line-function-in-source-code/230391 "2014-06-21T16:53:38Z")

</div>

Hi, I’m browsing through the source code of the project, and looked at ngx\_http\_request.c where the function ngx\_http\_process\_header\_line() creates a pointer to a pointer to a large struct(ngx\_http\_request\_t) contain…

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

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