# Server

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

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

---

## [Q : Nginx with libevent](https://www.ruby-forum.com/t/q-nginx-with-libevent/206078)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [April 21, 2011, 9:43pm UTC](https://www.ruby-forum.com/t/q-nginx-with-libevent/206078 "2011-04-21T21:43:37Z")

</div>

Hi, I am trying to use nginx load balancing with an http server running on top of libevent. Because nginx makes connection requests in round robin fashion I am seeing a strange behavior when one of the http server …

---

## [Upload Progress Issue -- do not have "uploading" state](https://www.ruby-forum.com/t/upload-progress-issue-do-not-have-uploading-state/206045)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 8\
**Last updated:** [April 21, 2011, 6:22pm UTC](https://www.ruby-forum.com/t/upload-progress-issue-do-not-have-uploading-state/206045 "2011-04-21T18:22:59Z")

</div>

Hello, I am trying to use Nginx + Upload Module + Upload Progress Module, which I follow the link http://wiki.nginx.org/NginxHttpUploadProgressModule#Usage I find some issue in initial config, like X-Progress-ID shou…

---

## [Remove](https://www.ruby-forum.com/t/remove/206066)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [April 21, 2011, 2:03pm UTC](https://www.ruby-forum.com/t/remove/206066 "2011-04-21T14:03:25Z")

</div>

Remove

---

## [Block SQL Injection](https://www.ruby-forum.com/t/block-sql-injection/206031)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 13\
**Last updated:** [April 21, 2011, 5:59am UTC](https://www.ruby-forum.com/t/block-sql-injection/206031 "2011-04-21T05:59:51Z")

</div>

Hi all. Anybody know how can I block some characters for avoid SQL Injection using Nginx as web server o HTTP reverse-proxy? Thanks a lot. Posted at Nginx Forum:

---

## [Rewrite or internal redirection cycle](https://www.ruby-forum.com/t/rewrite-or-internal-redirection-cycle/206038)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [April 21, 2011, 5:25am UTC](https://www.ruby-forum.com/t/rewrite-or-internal-redirection-cycle/206038 "2011-04-21T05:25:07Z")

</div>

Hi, I have the following rewrite rule: location = / { if ($vanity) { rewrite ^/$ /?static\_event\_cache=1? last; } } Whenever I hit / & vanity is set I get the following error message: Apr 20 16:16:58 st…

---

## [NGI proxy from ipv6 to ipv4](https://www.ruby-forum.com/t/ngi-proxy-from-ipv6-to-ipv4/206037)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [April 21, 2011, 1:15am UTC](https://www.ruby-forum.com/t/ngi-proxy-from-ipv6-to-ipv4/206037 "2011-04-21T01:15:15Z")

</div>

Hi all I have several web servers (FreeBSD+nginx+php-fpm) on 172.16.10.0/24 private network. I pass all ipv4 public traffic from nginx servrer with 2 nic (one on inside and one on outside) Can nginx pass also ipv6 t…

---

## [X-Accel-Expires passed or not?](https://www.ruby-forum.com/t/x-accel-expires-passed-or-not/205991)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [April 20, 2011, 7:38am UTC](https://www.ruby-forum.com/t/x-accel-expires-passed-or-not/205991 "2011-04-20T07:38:17Z")

</div>

Hi all, I was looking into fastcgi\_cache settings, in Nginx. Is it required to pass the header X-Accel-Expires, in order for Nginx to cache the data, or do I have set only the fastcgi\_no\_cache and fastcgi\_cache\_bypas…

---

## [Can not get the value from eval module](https://www.ruby-forum.com/t/can-not-get-the-value-from-eval-module/205962)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [April 20, 2011, 6:55am UTC](https://www.ruby-forum.com/t/can-not-get-the-value-from-eval-module/205962 "2011-04-20T06:55:08Z")

</div>

sorry about i send the same email secondly, i still can not figure it out. i use the nginx eval module, echo module and memc module, so i did a test. but when i curl 127.0.0.1/one/ , it just stuck there, i can not…

---

## [How to make Nginx work with distributed/multiple memcached servers?](https://www.ruby-forum.com/t/how-to-make-nginx-work-with-distributed-multiple-memcached-servers/205798)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 9\
**Last updated:** [April 20, 2011, 6:15am UTC](https://www.ruby-forum.com/t/how-to-make-nginx-work-with-distributed-multiple-memcached-servers/205798 "2011-04-20T06:15:39Z")

</div>

Hi, I want to use Nginx as a caching reverse proxy to a Django website that runs behind Nginx over uWSGI. Is it possible for Nginx to use multiple memcached servers to cache the dynamic pages generated by Django? If …

---

## [Nginx variables\_hash error](https://www.ruby-forum.com/t/nginx-variables-hash-error/205953)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [April 19, 2011, 10:57pm UTC](https://www.ruby-forum.com/t/nginx-variables-hash-error/205953 "2011-04-19T22:57:38Z")

</div>

Hi Guys, I have started getting this error on some of my servers today. I have an automated system which generates configuration files based upon how many customers we have. Our nginx servers currently run MANY sites …

---

## [98: Address already in use](https://www.ruby-forum.com/t/98-address-already-in-use/205734)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 14\
**Last updated:** [April 19, 2011, 5:21pm UTC](https://www.ruby-forum.com/t/98-address-already-in-use/205734 "2011-04-19T17:21:23Z")

</div>

Hi all, Nginx has been working fine for months on my server. Recently, however, I see that “service nginx configtest” reports the following: the configuration file /etc/nginx/nginx.conf syntax is ok \[emerg\]: listen()…

---

## [Enabling ssl crashes windows nginx 1.0.0](https://www.ruby-forum.com/t/enabling-ssl-crashes-windows-nginx-1-0-0/205919)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [April 19, 2011, 5:17pm UTC](https://www.ruby-forum.com/t/enabling-ssl-crashes-windows-nginx-1-0-0/205919 "2011-04-19T17:17:04Z")

</div>

I just got nginx running great on my windows box over port 80. As soon as I tried to have it serve up ssl things quickly degrade. After starting up nginx I get a prompt to enter my passphrase for my ssl which is corre…

---

## [Handling multiple SSL connections from the same host](https://www.ruby-forum.com/t/handling-multiple-ssl-connections-from-the-same-host/205960)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [April 19, 2011, 3:32pm UTC](https://www.ruby-forum.com/t/handling-multiple-ssl-connections-from-the-same-host/205960 "2011-04-19T15:32:04Z")

</div>

Is there a way to limit the amount of ssl connections from a host, at any one time, say only 2 or 3 active? tcp 0 0 mydomain.com:50048 nx-in-f82.1e100.n:https ESTABLISHED tcp 0 0 mydomain…

---

## [Nginx 1.0 + IPv6 kills server when accessed over IPv6](https://www.ruby-forum.com/t/nginx-1-0-ipv6-kills-server-when-accessed-over-ipv6/205922)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [April 19, 2011, 2:34pm UTC](https://www.ruby-forum.com/t/nginx-1-0-ipv6-kills-server-when-accessed-over-ipv6/205922 "2011-04-19T14:34:34Z")

</div>

I just upgraded from 0.8.54 to 1.0 (I’ve also tried various versions of 0.9.x experiencing the same issue). Running 2.6.35-28-generic #50-Ubuntu SMP on a 64bit Ubuntu 10.10 As soon as I try to open a connection to an …

---

## [Upload buffer size in upload module](https://www.ruby-forum.com/t/upload-buffer-size-in-upload-module/205954)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [April 19, 2011, 12:12pm UTC](https://www.ruby-forum.com/t/upload-buffer-size-in-upload-module/205954 "2011-04-19T12:12:26Z")

</div>

hi all, i am concurrently uploading as much files i can . if i increase the upload buffer size in the upload module . will it affect the concurrency.is there any limitation for upload buffer size in the upload modu…

---

## [Issue with uwsgi\_cache](https://www.ruby-forum.com/t/issue-with-uwsgi-cache/205866)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [April 19, 2011, 12:07am UTC](https://www.ruby-forum.com/t/issue-with-uwsgi-cache/205866 "2011-04-19T00:07:13Z")

</div>

I’m trying to make it so that I can cache certain pages generated by my uwsgi application. I’ve had some luck with the following stanzas: \[in http\] uwsgi\_cache\_path /data/nginx/cache levels=1:2 keys\_zone=one:1m ina…

---

## [Upstream setup with proxy and fastcgi?](https://www.ruby-forum.com/t/upstream-setup-with-proxy-and-fastcgi/205747)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 15\
**Last updated:** [April 18, 2011, 9:11pm UTC](https://www.ruby-forum.com/t/upstream-setup-with-proxy-and-fastcgi/205747 "2011-04-18T21:11:44Z")

</div>

Hi, I plan to do a basic load balancer setup and want to understand the differences between fastcgi\_pass and proxy\_pass. upstream proxy { server 1.localserverip:8000; server 2.localserverip:8000; server 3.localse…

---

## [Try\_files and redirect loops](https://www.ruby-forum.com/t/try-files-and-redirect-loops/205918)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [April 18, 2011, 8:46pm UTC](https://www.ruby-forum.com/t/try-files-and-redirect-loops/205918 "2011-04-18T20:46:24Z")

</div>

Hi all! I need to make sure try\_files does not send to a static file if $args are included. #if ($args != "") {rewrite ^ @ app;} # tried here and below. location = / { rewrite ^ /home/index/$host; } location / { …

---

## [Nginx Rewrite Apache?](https://www.ruby-forum.com/t/nginx-rewrite-apache/205635)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 14\
**Last updated:** [April 18, 2011, 1:58pm UTC](https://www.ruby-forum.com/t/nginx-rewrite-apache/205635 "2011-04-18T13:58:20Z")

</div>

Hi I have problem with rewrite from apache RewriteEngine On RewriteRule ^\[A-Z\]{3}\[a-z\]{2}\[0-9\]{4}\[a-z\]{3}\[0-9\]{4}\[A-Z\]{2}\[a-z\]{1}\[0-9\]{1}/(.+)$ files/$1 rewrite ^\[A-Z\]{3}\[a-z\]{2}\[0-9\]{4}\[a-z\]{3}\[0-9\]{4}\[A-Z\]{2}\[a-…

---

## [Limite\_rate by hours](https://www.ruby-forum.com/t/limite-rate-by-hours/205902)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [April 18, 2011, 12:03pm UTC](https://www.ruby-forum.com/t/limite-rate-by-hours/205902 "2011-04-18T12:03:23Z")

</div>

hi, do you know how can I limit\_rate based on hours? for example during 2 am to 8 am rate would be 20K and in other hours it would be 100K. thanks

---

## [Access\_by\_lua error](https://www.ruby-forum.com/t/access-by-lua-error/205878)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [April 18, 2011, 10:41am UTC](https://www.ruby-forum.com/t/access-by-lua-error/205878 "2011-04-18T10:41:08Z")

</div>

Hi, not sure if I’m doing this the right way round but getting this error: \[error\] 11346#0: \*1 content\_by\_lua aborted: runtime error: \[string “access\_by\_lua”\]:22: attempt to call ngx.exit after sending out the header…

---

## [Bug in nginx?](https://www.ruby-forum.com/t/bug-in-nginx/205863)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [April 18, 2011, 8:36am UTC](https://www.ruby-forum.com/t/bug-in-nginx/205863 "2011-04-18T08:36:21Z")

</div>

Hi, I’m still using Nginx 0.7.67 and I think I have found a minor bug. In my config files, for one domain I have entries like this to protect two directories. location /secret { index index.html auth\_basic “Please…

---

## [Ab testing](https://www.ruby-forum.com/t/ab-testing/205519)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [April 18, 2011, 7:08am UTC](https://www.ruby-forum.com/t/ab-testing/205519 "2011-04-18T07:08:44Z")

</div>

hi! first I wanted to say that nginx is a great product! I am trying to use it to route my traffic with several different rules. This way I can do ab testing. My rules use different inputs, like http headers and uri …

---

## [Deleting Request-Headers](https://www.ruby-forum.com/t/deleting-request-headers/205604)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [April 18, 2011, 7:06am UTC](https://www.ruby-forum.com/t/deleting-request-headers/205604 "2011-04-18T07:06:53Z")

</div>

Hi, i’m trying to extend the lua-module with some features… currently i’m still bugging around with the Request/Response Headers… With older nginx-versions (0.7.x) you were able to completeley remove Request-Headers …

---

## [Can not get the output when i use eval module](https://www.ruby-forum.com/t/can-not-get-the-output-when-i-use-eval-module/205862)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [April 18, 2011, 6:16am UTC](https://www.ruby-forum.com/t/can-not-get-the-output-when-i-use-eval-module/205862 "2011-04-18T06:16:21Z")

</div>

nginx 0.8.54 ,this is my nginx conf location /one/ { eval $uid { set $memc\_cmd incr; set $memc\_key 'system\_uid'; set $memc\_value 1; memc\_pass 127.0.0.1:11211;…

---

## [Mail Proxy](https://www.ruby-forum.com/t/mail-proxy/205883)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [April 18, 2011, 3:37am UTC](https://www.ruby-forum.com/t/mail-proxy/205883 "2011-04-18T03:37:11Z")

</div>

Ive been fiddeling with nginx’s mail proxy features. I would like to know if its possible for nginx to proxy mail from non-authenticated senders (incoming mail - MX records)?

---

## [PHP Not Working](https://www.ruby-forum.com/t/php-not-working/205870)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [April 18, 2011, 12:27am UTC](https://www.ruby-forum.com/t/php-not-working/205870 "2011-04-18T00:27:25Z")

</div>

I am aware I am posting this again but a boy told me to change the port, which I have however it only made loading the php page take longer, but it still ends in a resulted broken page. Here is my default.conf file, i…

---

## [Upstream to both https or http](https://www.ruby-forum.com/t/upstream-to-both-https-or-http/205853)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [April 17, 2011, 11:26pm UTC](https://www.ruby-forum.com/t/upstream-to-both-https-or-http/205853 "2011-04-17T23:26:55Z")

</div>

I have this requirement. I want to use nginx as the reverse proxy, which listen on address A and forward the request to the backend server with address B. However, if B is down, I want the request to be sent to addres…

---

## [Getting fastcgi\_no\_cache to cache the fresh response](https://www.ruby-forum.com/t/getting-fastcgi-no-cache-to-cache-the-fresh-response/205859)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [April 17, 2011, 1:25pm UTC](https://www.ruby-forum.com/t/getting-fastcgi-no-cache-to-cache-the-fresh-response/205859 "2011-04-17T13:25:56Z")

</div>

I have been trying to find a good and standard way of invalidating nginx fastcgi cache. Some time ago we had the fastcgi\_cache\_bypass filter which was not completely implemented and didn’t work (and has been removed f…

---

## [Default umask for uploaded file in php-fpm and nginx](https://www.ruby-forum.com/t/default-umask-for-uploaded-file-in-php-fpm-and-nginx/205857)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [April 17, 2011, 11:54am UTC](https://www.ruby-forum.com/t/default-umask-for-uploaded-file-in-php-fpm-and-nginx/205857 "2011-04-17T11:54:39Z")

</div>

Hello I’ve installed nginx and php-fpm. I run wordpress site on it. Everything works well, but when i upload image in wordpress default permission is 600 so i can not access it ! Nginx give 403 errors. I running mult…

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

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