# Server

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

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

---

## [Nginx resolver NGX\_RESOLVE\_SERVFAIL](https://www.ruby-forum.com/t/nginx-resolver-ngx-resolve-servfail/204712)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [March 19, 2011, 2:19pm UTC](https://www.ruby-forum.com/t/nginx-resolver-ngx-resolve-servfail/204712 "2011-03-19T14:19:52Z")

</div>

Hi, I have strange behavior for nginx when I’m getting: … … … 0010 = Reply code: Server failure (2) All logs of my production is full of tries to resolve some domains where timeout happened and proxying BIND returne…

---

## [Running nginx as reverse proxy with Apache, rewrite problem](https://www.ruby-forum.com/t/running-nginx-as-reverse-proxy-with-apache-rewrite-problem/204694)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [March 19, 2011, 1:12pm UTC](https://www.ruby-forum.com/t/running-nginx-as-reverse-proxy-with-apache-rewrite-problem/204694 "2011-03-19T13:12:56Z")

</div>

I’m using a cPanel plugin located here cpnginx.com that allows me to use nginx to serve static content and Apache to serve dynamic content. They use a method called Direct Push so that I’m still able to use my apache …

---

## [Problem with nginx/0.8.54 and alias](https://www.ruby-forum.com/t/problem-with-nginx-0-8-54-and-alias/203301)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 32\
**Last updated:** [March 18, 2011, 8:39pm UTC](https://www.ruby-forum.com/t/problem-with-nginx-0-8-54-and-alias/203301 "2011-03-18T20:39:21Z")

</div>

Hello, I try to set up a simple alias louse find out how. I read many articles. I almost try everything but nothing works. Currently I have this code in the file /etc/nginx/sites-available/default. server { l…

---

## [Purge Css and JS files](https://www.ruby-forum.com/t/purge-css-and-js-files/204627)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [March 18, 2011, 11:17am UTC](https://www.ruby-forum.com/t/purge-css-and-js-files/204627 "2011-03-18T11:17:32Z")

</div>

Hi, Just installed purge module and its working fine for url and images how do I purge Css and Js files eg need to purge the file /css/base.css and /js/virtualpaginate.js Regards Posted at Nginx Forum:

---

## [Nginx for windows Found a bug,How to solve?](https://www.ruby-forum.com/t/nginx-for-windows-found-a-bug-how-to-solve/204669)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [March 18, 2011, 6:33am UTC](https://www.ruby-forum.com/t/nginx-for-windows-found-a-bug-how-to-solve/204669 "2011-03-18T06:33:03Z")

</div>

Nginx for windows Found a bug,How to solve? You see next configuration file is on this machine with www.xyz.com,. Net program can not properly proxy. I think the problem is nginx! There are windows version of the ngin…

---

## [Very Simple htaccess rule](https://www.ruby-forum.com/t/very-simple-htaccess-rule/204632)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 17, 2011, 10:05pm UTC](https://www.ruby-forum.com/t/very-simple-htaccess-rule/204632 "2011-03-17T22:05:43Z")

</div>

Hi Nginx. Properly so simple you may laugh , but this world save my day :slight\_smile: RewriteEngine On RewriteBase / RewriteCond %{SCRIPT\_FILENAME} !-f RewriteCond %{SCRIPT\_FILENAME} !-d RewriteRule ^(.\*)$ site/$1…

---

## [Cant find openssl](https://www.ruby-forum.com/t/cant-find-openssl/204639)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [March 17, 2011, 4:53pm UTC](https://www.ruby-forum.com/t/cant-find-openssl/204639 "2011-03-17T16:53:12Z")

</div>

OS:redhat 5.6 nginx version=nginx-0.8.54 getting following error checking for OpenSSL library … not found ./configure: error: SSL modules require the OpenSSL library. You can either do not enable the modules, or ins…

---

## [Nginx resets connection](https://www.ruby-forum.com/t/nginx-resets-connection/204620)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 17, 2011, 1:00pm UTC](https://www.ruby-forum.com/t/nginx-resets-connection/204620 "2011-03-17T13:00:09Z")

</div>

Hello, I found a bug in the request finalization on linux: If the server has a keep-alive set to 0 and the client sends pipelined requests which exeeds client\_header\_buffer\_size, nginx closes the connection and linux…

---

## [Performance impact of 100+ SSI directives](https://www.ruby-forum.com/t/performance-impact-of-100-ssi-directives/204607)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [March 17, 2011, 11:53am UTC](https://www.ruby-forum.com/t/performance-impact-of-100-ssi-directives/204607 "2011-03-17T11:53:38Z")

</div>

Hi everyone, I’m trying to refactor a website composed entirely of static files. Part of the content is a long list of scientific publication references (\> 100), which are all listed on a common publications page, an…

---

## [Nginx access logs, timestamps "jump back"](https://www.ruby-forum.com/t/nginx-access-logs-timestamps-jump-back/204535)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [March 17, 2011, 12:04am UTC](https://www.ruby-forum.com/t/nginx-access-logs-timestamps-jump-back/204535 "2011-03-17T00:04:39Z")

</div>

Hi there, We’re running multiple nginx web servers on EC2 behind multiple ELBs (load balancers). I’m seeing strange behaviour in our nginx system logs. This strange behaviour seems to coincide with brief outages sp…

---

## [Nginx Access\_log Bytes](https://www.ruby-forum.com/t/nginx-access-log-bytes/204599)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 16, 2011, 5:23pm UTC](https://www.ruby-forum.com/t/nginx-access-log-bytes/204599 "2011-03-16T17:23:30Z")

</div>

In the directive for logging access logs i’m trying to determine if the following variable $bytes\_sent also accounts for proxy traffic if i’m pulling content from an origin server? Posted at Nginx Forum:

---

## [Ngx\_echo v0.35: ability to POST/PUT local files as subrequest bodies](https://www.ruby-forum.com/t/ngx-echo-v0-35-ability-to-post-put-local-files-as-subrequest-bodies/202838)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 10\
**Last updated:** [March 16, 2011, 8:38am UTC](https://www.ruby-forum.com/t/ngx-echo-v0-35-ability-to-post-put-local-files-as-subrequest-bodies/202838 "2011-03-16T08:38:43Z")

</div>

Hi, folks! I’m happy to announce the v0.35 release of the ngx\_echo module, which features the ability to POST/PUT location files as subrequest bodies via the -f option of the echo\_subrequest and echo\_subrequest\_async …

---

## [Nginx, from connected to first byte](https://www.ruby-forum.com/t/nginx-from-connected-to-first-byte/204505)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [March 16, 2011, 12:15am UTC](https://www.ruby-forum.com/t/nginx-from-connected-to-first-byte/204505 "2011-03-16T00:15:34Z")

</div>

i set up a nginx server with php fastcgi last month, but i found a little problem with it. my frontpage is loaded in 8-10 seconds, but there is 7 seconds waste from the time when connected server, to the time when sta…

---

## [Caching, purging & gzip](https://www.ruby-forum.com/t/caching-purging-gzip/204555)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [March 15, 2011, 3:22pm UTC](https://www.ruby-forum.com/t/caching-purging-gzip/204555 "2011-03-15T15:22:57Z")

</div>

Hello everybody, I currently have Nginx running as a reverse static proxy cache. I cache CSS/JPG/JS file with proxy\_cache directive. I’ve also cache purging with ngx\_cache\_purge module ( FRiCKLE Labs / nginx / ngx\_cac…

---

## [Nginx Cache not working with wget or curl](https://www.ruby-forum.com/t/nginx-cache-not-working-with-wget-or-curl/204549)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [March 15, 2011, 2:14pm UTC](https://www.ruby-forum.com/t/nginx-cache-not-working-with-wget-or-curl/204549 "2011-03-15T14:14:34Z")

</div>

Hello, I set up Ninx as a cache proxy for our webservers. Everything is working fine when using a standard web browser (Firefox, IE, Chrome), pages are correctly cached according to the rules I have defined. However…

---

## [Strange rewrite behaviour](https://www.ruby-forum.com/t/strange-rewrite-behaviour/204509)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [March 14, 2011, 7:08pm UTC](https://www.ruby-forum.com/t/strange-rewrite-behaviour/204509 "2011-03-14T19:08:54Z")

</div>

Greetings again, I got this weird problem. I have the following virtual domain configuration: server { listen 80; server\_name 2.socialwhale.com; access\_log /var/www/cluster-domains/2\_socialwhale\_com/logs/2.social…

---

## [Php auth & fast\_cgi](https://www.ruby-forum.com/t/php-auth-fast-cgi/204493)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [March 14, 2011, 2:20pm UTC](https://www.ruby-forum.com/t/php-auth-fast-cgi/204493 "2011-03-14T14:20:35Z")

</div>

A colleague of mine told me that these two lines in php doesn’t seem to work on an nginx + fastcgi installation. Any thoughts? header(‘WWW-Authenticate: Basic realm=“SocialWhale Controller”’); $\_SERVER\[‘PHP\_AUTH\_USER’…

---

## [Question on Evan Miller's tutorial - Body filter?](https://www.ruby-forum.com/t/question-on-evan-millers-tutorial-body-filter/204365)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [March 14, 2011, 10:43am UTC](https://www.ruby-forum.com/t/question-on-evan-millers-tutorial-body-filter/204365 "2011-03-14T10:43:45Z")

</div>

Hello, I’m going through Evan M.'s tutorial on Nginx module. In part “4.2. Anatomy of a Body Filter”, there’s a piece of code like this: "And hook the buffer into a new chain link: ngx\_chain\_t added\_link; added\_li…

---

## [Uwsgi\_param UWSGI\_SCHEME $scheme;?](https://www.ruby-forum.com/t/uwsgi-param-uwsgi-scheme-scheme/204478)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [March 14, 2011, 12:53am UTC](https://www.ruby-forum.com/t/uwsgi-param-uwsgi-scheme-scheme/204478 "2011-03-14T00:53:58Z")

</div>

I had a problem where the url\_scheme was not being set properly. I tracked it down to this setting needing to be included in uwsgi\_params or nginx.conf: uwsgi\_param UWSGI\_SCHEME $scheme; Should this param be in…

---

## [Nginx suddenly lose configure file](https://www.ruby-forum.com/t/nginx-suddenly-lose-configure-file/204472)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [March 13, 2011, 8:14pm UTC](https://www.ruby-forum.com/t/nginx-suddenly-lose-configure-file/204472 "2011-03-13T20:14:56Z")

</div>

Dear , I install nginx stable version on CentOs 5.5. It works smoothly in 5 months without errors. But yesterday, I dont know why I can not access my website. After 10 minutes , I found that ngnix lose configure fil…

---

## [Nginx/windows autoindex module URL charset problem](https://www.ruby-forum.com/t/nginx-windows-autoindex-module-url-charset-problem/204215)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 12, 2011, 8:10pm UTC](https://www.ruby-forum.com/t/nginx-windows-autoindex-module-url-charset-problem/204215 "2011-03-12T20:10:37Z")

</div>

OS: Windows 7 (non-unicode code page: 936 Simplified Chinese) URL in autoindex page is encoded in code page 936 (two byts per character), all file containing Chinese character cannot be accessed in autoindex listing. …

---

## [Having trouble with the PCRE syntax](https://www.ruby-forum.com/t/having-trouble-with-the-pcre-syntax/204421)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 7\
**Last updated:** [March 11, 2011, 9:40pm UTC](https://www.ruby-forum.com/t/having-trouble-with-the-pcre-syntax/204421 "2011-03-11T21:40:48Z")

</div>

Hi, would anybody please tell me what I’m doing wrong here? location ~\* ^/(forum|forums|board)/? { rewrite ^/(\[^/\])/(.\*) http://forum.my\_domain.com/$2 permanent; } I’d like to make it redirect visitors from http:/…

---

## [Trying to figure if nginx can be used](https://www.ruby-forum.com/t/trying-to-figure-if-nginx-can-be-used/204431)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [March 11, 2011, 8:25pm UTC](https://www.ruby-forum.com/t/trying-to-figure-if-nginx-can-be-used/204431 "2011-03-11T20:25:31Z")

</div>

Hi, I’ve googled trying to find out the answers to my questions and a few remained unanswered / inconclusive. I plan to replace my apache server with nginx. I currently use: a) mod\_deflate to compress the pages b) …

---

## [Caching/storing hostname mapping?](https://www.ruby-forum.com/t/caching-storing-hostname-mapping/204428)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [March 11, 2011, 6:03pm UTC](https://www.ruby-forum.com/t/caching-storing-hostname-mapping/204428 "2011-03-11T18:03:20Z")

</div>

I have some nginx configs that sometimes host mutiple domains and some file requests are mapped to the disk using some language. And example would be WordPress MultiSite. Where blog1.example.com/files/file1.jpg makes …

---

## [Cache problem - not expiring](https://www.ruby-forum.com/t/cache-problem-not-expiring/204403)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [March 11, 2011, 1:07pm UTC](https://www.ruby-forum.com/t/cache-problem-not-expiring/204403 "2011-03-11T13:07:49Z")

</div>

nginx 0.8.49 Hello List, have a problem with cached images which dont want to expire from cache. i use nginx as proxy with 2 ApacheBackends. On backend an image was updated by ftp but nginx still serves cached image…

---

## [Using nginx as ssl terminator in front of load balancer](https://www.ruby-forum.com/t/using-nginx-as-ssl-terminator-in-front-of-load-balancer/204389)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [March 11, 2011, 4:31am UTC](https://www.ruby-forum.com/t/using-nginx-as-ssl-terminator-in-front-of-load-balancer/204389 "2011-03-11T04:31:58Z")

</div>

Hi all, We have an existing load balancer with haproxy, and we’d like to use Nginx to act as our SSL decryption service. We use chose haproxy over nginx for load balancing because we need more TCP load balancing than …

---

## [NGINX + Load Balancing + GeoIP](https://www.ruby-forum.com/t/nginx-load-balancing-geoip/203718)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [March 11, 2011, 3:04am UTC](https://www.ruby-forum.com/t/nginx-load-balancing-geoip/203718 "2011-03-11T03:04:15Z")

</div>

Hi everyone, Has anyone got ngix + load balancing + geoip working nicely? I have a nginx server load balancing two webservers and would like to add in GeoIP to the mix. Config : My config file. worker\_processes 1; …

---

## [Question: http video streaming and nginx ram usage](https://www.ruby-forum.com/t/question-http-video-streaming-and-nginx-ram-usage/204224)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [March 10, 2011, 6:04pm UTC](https://www.ruby-forum.com/t/question-http-video-streaming-and-nginx-ram-usage/204224 "2011-03-10T18:04:54Z")

</div>

Hi everyone, I’m using Nginx to forward incoming http requests (from the Internet) to an Aviosys 9100A+ (low-cost) IP video server. My Nginx 0.7.64 runs on a small embedded linux device under OpenWRT - the device has…

---

## [Nginx how too enable intel aesni engine](https://www.ruby-forum.com/t/nginx-how-too-enable-intel-aesni-engine/204315)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 7\
**Last updated:** [March 10, 2011, 2:35pm UTC](https://www.ruby-forum.com/t/nginx-how-too-enable-intel-aesni-engine/204315 "2011-03-10T14:35:19Z")

</div>

Hi Nginx. I have Intel(R) Xeon(R) CPU E5620 based web-server. I have managed to patch the openssl ver 1.0.0 so i have support for the AES-NI engine. openssl engine -t (aesni) Intel AES-NI engine \[ available \] (dyn…

---

## [Show requests being processed?](https://www.ruby-forum.com/t/show-requests-being-processed/204353)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [March 10, 2011, 1:40pm UTC](https://www.ruby-forum.com/t/show-requests-being-processed/204353 "2011-03-10T13:40:06Z")

</div>

Right now I use the example from http://wiki.nginx.org/HttpStubStatusModule but it don’t show “The current hosts and requests being processed” like Apache do is there a way to get a list like that? as if you hadde Ex…

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

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