# Server

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

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

---

## [Nginx serving old files from cache](https://www.ruby-forum.com/t/nginx-serving-old-files-from-cache/218992)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 2\
**Last updated:** [April 18, 2012, 4:51pm UTC](https://www.ruby-forum.com/t/nginx-serving-old-files-from-cache/218992 "2012-04-18T16:51:10Z")

</div>

I have nginx set as reverse proxy for Apache and for serving static files. Everything works great, except in the last few weeks I noticed that sometimes nginx returns page from cache which is 3-4 hours old. I checked…

---

## [Nginx Benchmark Serving Static Image Timeouts](https://www.ruby-forum.com/t/nginx-benchmark-serving-static-image-timeouts/218989)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 0\
**Last updated:** [April 18, 2012, 6:40am UTC](https://www.ruby-forum.com/t/nginx-benchmark-serving-static-image-timeouts/218989 "2012-04-18T06:40:29Z")

</div>

Hello, I am benchmarking nginx, serving a static image (png file which is 6kb) with http://blitz.io. I am sending 250 requests a second for 60 seconds. When I run the benchmark approximately 15% of the requests are ta…

---

## [Some of my user cannot access my website](https://www.ruby-forum.com/t/some-of-my-user-cannot-access-my-website/218958)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [April 17, 2012, 7:40pm UTC](https://www.ruby-forum.com/t/some-of-my-user-cannot-access-my-website/218958 "2012-04-17T19:40:33Z")

</div>

Hi guys, I need your help to help me identify a problem. I’m running an online marketplace here in Indonesia. Right now I have 1 mod perl server using apache and 1 nginx server as proxy. But some of my users complain …

---

## [Compiling nginx with zlib-1.2.6 error](https://www.ruby-forum.com/t/compiling-nginx-with-zlib-1-2-6-error/218973)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [April 17, 2012, 6:49pm UTC](https://www.ruby-forum.com/t/compiling-nginx-with-zlib-1-2-6-error/218973 "2012-04-17T18:49:05Z")

</div>

Hello, I attempted to compile nginx-1.0.15 with zlib-1.2.6 on a Solaris 11 platform and received the following error. gmake . . . cd …/zlib-1.2.6 && gmake distclean && CFLAGS="-O2 -fomit-frame-pointer -pipe " …

---

## [I am getting wrong response from nginx](https://www.ruby-forum.com/t/i-am-getting-wrong-response-from-nginx/218963)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [April 17, 2012, 2:51pm UTC](https://www.ruby-forum.com/t/i-am-getting-wrong-response-from-nginx/218963 "2012-04-17T14:51:10Z")

</div>

Hi I am wondering how does nginx returns wrong content, atleast it seems so. I am terminating https addresses to nginx thru my firewall, what does nat public ips to nginx to ports 901 and 902 in this case, where ngi…

---

## [Legitimate access with certificate auth or basic auth](https://www.ruby-forum.com/t/legitimate-access-with-certificate-auth-or-basic-auth/218959)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 0\
**Last updated:** [April 17, 2012, 1:24pm UTC](https://www.ruby-forum.com/t/legitimate-access-with-certificate-auth-or-basic-auth/218959 "2012-04-17T13:24:45Z")

</div>

Hi Is there a way to legitimate access to a location (in my case an entire vhost) with certificate auth and - if no certificate is sent - a fallback to basic auth? On Apache (from where I’m currently migrating) this …

---

## [Help with chaining of sub-requests](https://www.ruby-forum.com/t/help-with-chaining-of-sub-requests/218939)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 2\
**Last updated:** [April 17, 2012, 9:20am UTC](https://www.ruby-forum.com/t/help-with-chaining-of-sub-requests/218939 "2012-04-17T09:20:40Z")

</div>

Hi, I have 3 existing http backend web-services S1, S2 and S3. I am trying to use nginx for a use-case where i need to first get a “key” from service S1, use this key along with some input data, to query S2, and b…

---

## [Slides for My Nginx Talk at Percona Live MySQL Conference 2012](https://www.ruby-forum.com/t/slides-for-my-nginx-talk-at-percona-live-mysql-conference-2012/218952)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [April 17, 2012, 7:47am UTC](https://www.ruby-forum.com/t/slides-for-my-nginx-talk-at-percona-live-mysql-conference-2012/218952 "2012-04-17T07:47:45Z")

</div>

Hi, folks! Last week chaoslawful and I gave a talk at Percona Live MySQL Conference 2012: This was my first English presentation and I was glad that it went well :slight\_smile: Here’s the AJAX-based slides for my …

---

## [Display configuration at runtime?](https://www.ruby-forum.com/t/display-configuration-at-runtime/218938)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 6\
**Last updated:** [April 17, 2012, 12:18am UTC](https://www.ruby-forum.com/t/display-configuration-at-runtime/218938 "2012-04-17T00:18:48Z")

</div>

Howdy. I’m working on setting up a maintenance page, and I can’t figure out where Nginx is looking for the maintenance.html that I have specified. I’ve tried placing the file in a lot of different locations, but I sti…

---

## [File Not Found logging in w/ nginx+phpMyAdmin in URL subdir](https://www.ruby-forum.com/t/file-not-found-logging-in-w-nginx-phpmyadmin-in-url-subdir/160301)

<div class="topic-metadata">

**Author:** [@stefans](https://www.ruby-forum.com/u/stefans)\
**Replies:** 13\
**Last updated:** [April 16, 2012, 9:34pm UTC](https://www.ruby-forum.com/t/file-not-found-logging-in-w-nginx-phpmyadmin-in-url-subdir/160301 "2012-04-16T21:34:53Z")

</div>

Hello - I’m using the nginx.conf file below to try to run phpMyAdmin with SSL and FastCGI in a subdirectory (eg, HugeDomains.com). It works except after I hit GO on the phpMyAdmin login screen - when the rewrite rule…

---

## [Truncated output with gzip, large files and slow rate](https://www.ruby-forum.com/t/truncated-output-with-gzip-large-files-and-slow-rate/218928)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 4\
**Last updated:** [April 16, 2012, 8:22pm UTC](https://www.ruby-forum.com/t/truncated-output-with-gzip-large-files-and-slow-rate/218928 "2012-04-16T20:22:51Z")

</div>

Hello, nginx is truncating output with the following: gzip on compressed size greater than 100k (approx) client downloads at a slow rate \*\*\* Steps to reproduce \*\*\* nginx.conf: events { } http { types { text/pla…

---

## [Ngx\_http\_send\_special\_response](https://www.ruby-forum.com/t/ngx-http-send-special-response/218926)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 6\
**Last updated:** [April 16, 2012, 6:28pm UTC](https://www.ruby-forum.com/t/ngx-http-send-special-response/218926 "2012-04-16T18:28:33Z")

</div>

Hi I am appreciate any help I can get on the following issues. I am writing my own module. I can see in function ngx\_http\_send\_special\_response that it calculates the content length of the error page even if the re…

---

## [SSL negotiation failures causing 408 error to be returned](https://www.ruby-forum.com/t/ssl-negotiation-failures-causing-408-error-to-be-returned/218921)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [April 16, 2012, 5:25pm UTC](https://www.ruby-forum.com/t/ssl-negotiation-failures-causing-408-error-to-be-returned/218921 "2012-04-16T17:25:55Z")

</div>

While debugging for a client, we found that we’re seeing significant numbers of 408s being generated for SSL connections. It seems to be MOSTLY Chrome on a Windows 7 base with some MSIE 9.0 (also on Win 7) as user age…

---

## [How make nginx write cache files in 770 permissions instead of 700?](https://www.ruby-forum.com/t/how-make-nginx-write-cache-files-in-770-permissions-instead-of-700/218913)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 1\
**Last updated:** [April 16, 2012, 12:14am UTC](https://www.ruby-forum.com/t/how-make-nginx-write-cache-files-in-770-permissions-instead-of-700/218913 "2012-04-16T00:14:01Z")

</div>

Hello all, I included a special user into the nginx group with the purpose of giving privilege to be able to delete or read nginx cache files. The problem is nginx writes these in 700 mode. What is the simplest way I …

---

## [Rewrite non-ssl to ssl except for given location](https://www.ruby-forum.com/t/rewrite-non-ssl-to-ssl-except-for-given-location/218906)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 10\
**Last updated:** [April 15, 2012, 7:20pm UTC](https://www.ruby-forum.com/t/rewrite-non-ssl-to-ssl-except-for-given-location/218906 "2012-04-15T19:20:41Z")

</div>

Hi everybody, I’m using an internal proxy for one of my websites (just a PHP script which does a curl request for a given script). I’ve forced every non-ssl location to ssl with this: rewrite ^/(.\*) https://$host/$1 …

---

## [Empty headers\_out in log phase](https://www.ruby-forum.com/t/empty-headers-out-in-log-phase/218868)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [April 14, 2012, 4:07pm UTC](https://www.ruby-forum.com/t/empty-headers-out-in-log-phase/218868 "2012-04-14T16:07:42Z")

</div>

Hello, I’m writing an nginx module but I’ve got a problem for getting response headers. It’s using an NGX\_HTTP\_LOG\_PHASE handler and I want to have access to response headers sent to client. (with or without proxy\_pa…

---

## [Virtual hosting](https://www.ruby-forum.com/t/virtual-hosting/218878)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 2\
**Last updated:** [April 14, 2012, 2:06pm UTC](https://www.ruby-forum.com/t/virtual-hosting/218878 "2012-04-14T14:06:45Z")

</div>

Hello, on my server I have several IP-Addresses and for some of them I want to use Nginx to server port 80. I want to host several different domains. Let’s say A.org and B.org to IP-Address 1.1.1.1:80 and C.org to I…

---

## [Nginx reload not working, restart creates orphan yet active worker](https://www.ruby-forum.com/t/nginx-reload-not-working-restart-creates-orphan-yet-active-worker/213005)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [April 14, 2012, 1:05pm UTC](https://www.ruby-forum.com/t/nginx-reload-not-working-restart-creates-orphan-yet-active-worker/213005 "2012-04-14T13:05:26Z")

</div>

hello, after trying to reload nginx after making a config change, the reload didn’t show that the new config had taken affect. i then issued a restart and what happened was, the nginx parent died, yet the nginx worke…

---

## [Nginx-1.1.19](https://www.ruby-forum.com/t/nginx-1-1-19/218804)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [April 14, 2012, 1:53am UTC](https://www.ruby-forum.com/t/nginx-1-1-19/218804 "2012-04-14T01:53:17Z")

</div>

Changes with nginx 1.1.19 12 Apr 2012 \*) Security: specially crafted mp4 file might allow to overwrite memory locations in a worker process if the ngx\_http\_mp4\_module was used…

---

## [Nginx-1.0.15](https://www.ruby-forum.com/t/nginx-1-0-15/218805)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 1\
**Last updated:** [April 14, 2012, 1:52am UTC](https://www.ruby-forum.com/t/nginx-1-0-15/218805 "2012-04-14T01:52:40Z")

</div>

Changes with nginx 1.0.15 12 Apr 2012 \*) Security: specially crafted mp4 file might allow to overwrite memory locations in a worker process if the ngx\_http\_mp4\_module was used…

---

## [Performance choking around 400 req/sec?](https://www.ruby-forum.com/t/performance-choking-around-400-req-sec/218803)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [April 14, 2012, 1:35am UTC](https://www.ruby-forum.com/t/performance-choking-around-400-req-sec/218803 "2012-04-14T01:35:23Z")

</div>

Hi everyone, I should start by saying I am a newbie and have recently started using NGINX and VERYY happy with it. But, I have been trying to run some stress tests on NGINX (hitting a static file), and it looks like n…

---

## [Combine basic auth and ip whitelisting](https://www.ruby-forum.com/t/combine-basic-auth-and-ip-whitelisting/218817)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [April 13, 2012, 5:54pm UTC](https://www.ruby-forum.com/t/combine-basic-auth-and-ip-whitelisting/218817 "2012-04-13T17:54:49Z")

</div>

Hi, I have set up Apache for an existing site to use either ip whitelisting or basic authentication. If the user’s IP is not on the IP whitelist, it asks him for a password. My htaccess file looks something like this: …

---

## [Naming a virtual location to avoid logging results in 404s](https://www.ruby-forum.com/t/naming-a-virtual-location-to-avoid-logging-results-in-404s/218850)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [April 13, 2012, 5:39pm UTC](https://www.ruby-forum.com/t/naming-a-virtual-location-to-avoid-logging-results-in-404s/218850 "2012-04-13T17:39:19Z")

</div>

I’m hosting a forum using Vanilla (http://www.vanillaforums.org), and its internal statistics tracking involves no small amount of GETs and POSTs to URIs that don’t correspond to actual directories underneath the web …

---

## [Question on socket usage](https://www.ruby-forum.com/t/question-on-socket-usage/218833)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 1\
**Last updated:** [April 13, 2012, 5:21pm UTC](https://www.ruby-forum.com/t/question-on-socket-usage/218833 "2012-04-13T17:21:58Z")

</div>

Hi, I am new to nginx. I was wondering if nginx uses one server-side socket for each connection request. That is if there are 100 http connections simultaneously active tp an nginx server would there be 100 sockets…

---

## [Very wierd config error](https://www.ruby-forum.com/t/very-wierd-config-error/218845)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 2\
**Last updated:** [April 13, 2012, 2:23pm UTC](https://www.ruby-forum.com/t/very-wierd-config-error/218845 "2012-04-13T14:23:52Z")

</div>

Hello! I’m sorry to bother the forum with these kind of questions, but I simply can’t figure out what I’m doing wrong here: When I access sub.domain.net/ I still get the 502 error instead of being served from the /so…

---

## [Add IPv6 support to GeoIP module](https://www.ruby-forum.com/t/add-ipv6-support-to-geoip-module/212477)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 8\
**Last updated:** [April 13, 2012, 12:48pm UTC](https://www.ruby-forum.com/t/add-ipv6-support-to-geoip-module/212477 "2012-04-13T12:48:05Z")

</div>

Hello all, geoip module currently only supports a single country and a single city MaxMind database that must cover IPv4 address range. Below patch allows setting up to two city and country databases, one for IPv4 an…

---

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

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [April 13, 2012, 12:32pm UTC](https://www.ruby-forum.com/t/upstream-timed-out/218840 "2012-04-13T12:32:35Z")

</div>

Hi. I’m the new admin of a website and its servers. I have a frontend nginx proxy server and an Apache backend. I sometimes have errors : 2012/04/12 17:44:33 \[error\] 13442#0: \*74193485 upstream timed out (110: Conne…

---

## [Purge files from proxy\_cache](https://www.ruby-forum.com/t/purge-files-from-proxy-cache/218837)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 3\
**Last updated:** [April 13, 2012, 10:17am UTC](https://www.ruby-forum.com/t/purge-files-from-proxy-cache/218837 "2012-04-13T10:17:38Z")

</div>

Hi, i’ve set a proxy cache for my app ( app is allso served by nginx ). My problem is that i would like to have my app control the cache a little bit so i have hooks that delete files whith keys matching certain paths…

---

## [Non-root install of Wordpress in an already running nginx site](https://www.ruby-forum.com/t/non-root-install-of-wordpress-in-an-already-running-nginx-site/218752)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [April 13, 2012, 5:39am UTC](https://www.ruby-forum.com/t/non-root-install-of-wordpress-in-an-already-running-nginx-site/218752 "2012-04-13T05:39:28Z")

</div>

Been running nginx on our server for years. php-fpm, multiple location sections, etc., all working fine. However, for one project we’re launching my partner wants to run a wordpress blog from a subdirecory, i.e., exam…

---

## [Help with convert .htaccess to nginx](https://www.ruby-forum.com/t/help-with-convert-htaccess-to-nginx/218786)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 2\
**Last updated:** [April 13, 2012, 3:47am UTC](https://www.ruby-forum.com/t/help-with-convert-htaccess-to-nginx/218786 "2012-04-13T03:47:29Z")

</div>

It’s me again :frowning: I was trying to install siwapp on my webserver but I couldn’t make it work with nginx, here is the .htaccess file content: # If the file is NOT the index.php file \<IfModule mod\_rewrite.c\> Rew…

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

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