# Server

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

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

---

## [Limit requests per resource](https://www.ruby-forum.com/t/limit-requests-per-resource/212772)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [March 25, 2012, 7:16pm UTC](https://www.ruby-forum.com/t/limit-requests-per-resource/212772 "2012-03-25T19:16:18Z")

</div>

Hi, is there a way to limit the number of concurent requests per resource (eg. maximum 3 requests / backend, others waiting on frontend)?

---

## [Nginx 0.7 and limit\_req](https://www.ruby-forum.com/t/nginx-0-7-and-limit-req/155286)

<div class="topic-metadata">

**Author:** [@Omar\_Kilani](https://www.ruby-forum.com/u/Omar_Kilani)\
**Replies:** 4\
**Last updated:** [March 25, 2012, 7:06pm UTC](https://www.ruby-forum.com/t/nginx-0-7-and-limit-req/155286 "2012-03-25T19:06:43Z")

</div>

Hi Igor, I’ve recently started using the new limit\_req module in nginx 0.7 to try to throttle requests to the API of our web service. We’ve been having some issues in that ‘delayed’ requests seem to be returned with …

---

## [DDoS protection module suggestion](https://www.ruby-forum.com/t/ddos-protection-module-suggestion/198536)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 7\
**Last updated:** [March 25, 2012, 7:03pm UTC](https://www.ruby-forum.com/t/ddos-protection-module-suggestion/198536 "2012-03-25T19:03:23Z")

</div>

I’ve recently been hit pretty hard with a nasty DDoS attack on a site of mine. With Module ngx\_http\_limit\_req\_module and http://wiki.nginx.org/HttpLimitZoneModule I was able to mitigate the attack reasonably well, bu…

---

## [HttpLimitZoneModule + Varnish (frontend)](https://www.ruby-forum.com/t/httplimitzonemodule-varnish-frontend/215987)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [March 25, 2012, 6:55pm UTC](https://www.ruby-forum.com/t/httplimitzonemodule-varnish-frontend/215987 "2012-03-25T18:55:43Z")

</div>

Hello, I’m having some troubles with the Module LimitZone. http://wiki.nginx.org/HttpLimitZoneModule I want to limit simultaneous connections per client (IP) with “limit\_conn” but it doesn’t work with Varnish-cache w…

---

## [Fwd: Wrong $server\_name variable (FastCGI phpCAS problem)](https://www.ruby-forum.com/t/fwd-wrong-server-name-variable-fastcgi-phpcas-problem/218217)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 25, 2012, 4:07am UTC](https://www.ruby-forum.com/t/fwd-wrong-server-name-variable-fastcgi-phpcas-problem/218217 "2012-03-25T04:07:16Z")

</div>

Hi all, We were trying to migrate Wordpress multisite from Apache to nginx and had a pretty frustrated time trying to figure out why our our CAS authentication did not work correctly with our setup. In our setup, we …

---

## [Port range in upstream](https://www.ruby-forum.com/t/port-range-in-upstream/218197)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [March 24, 2012, 9:22pm UTC](https://www.ruby-forum.com/t/port-range-in-upstream/218197 "2012-03-24T21:22:14Z")

</div>

Is it possible to specify a range of ports for the servers in upstream? For example, something like: upstream foo { server 10.123.111.100 : 6000 - 7000 weight=1; } Posted at Nginx Forum:

---

## [Unable to install](https://www.ruby-forum.com/t/unable-to-install/218211)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 24, 2012, 11:01am UTC](https://www.ruby-forum.com/t/unable-to-install/218211 "2012-03-24T11:01:05Z")

</div>

I mistakenly posted this on the PHP-FPM list. Running Ubuntu on Asus Transformer, I get the following when trying to apt-get install: The following packages have unmet dependencies: nginx-light : Depends: nginx-commo…

---

## [Cant access phpmyadmin with LNMP setup](https://www.ruby-forum.com/t/cant-access-phpmyadmin-with-lnmp-setup/218208)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 24, 2012, 5:35am UTC](https://www.ruby-forum.com/t/cant-access-phpmyadmin-with-lnmp-setup/218208 "2012-03-24T05:35:51Z")

</div>

I installed phpmyadmin in “/home/wwwroot/pma” and wordpress under “/home/wwwroot” but when I try to login to phpmyadmin, after i entered the password and username, it redirected me to my home page(which is served from …

---

## [Whats the use of large\_client\_header\_buffers if client\_header\_buffer\_size exist?](https://www.ruby-forum.com/t/whats-the-use-of-large-client-header-buffers-if-client-header-buffer-size-exist/218204)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [March 24, 2012, 1:45am UTC](https://www.ruby-forum.com/t/whats-the-use-of-large-client-header-buffers-if-client-header-buffer-size-exist/218204 "2012-03-24T01:45:09Z")

</div>

Hello All! Suppose I have client\_header\_buffer\_size to 1k; … And i dont want anything to be sent past 1k… Why would i ever have the need to use the large… variable? Is it like having the possibility of “burs…

---

## [Question about allowing a percentage of traffic](https://www.ruby-forum.com/t/question-about-allowing-a-percentage-of-traffic/218120)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [March 23, 2012, 8:42pm UTC](https://www.ruby-forum.com/t/question-about-allowing-a-percentage-of-traffic/218120 "2012-03-23T20:42:12Z")

</div>

This is about traffic control, in the case we get slammed by heavier traffic than expected we want to be able to gracefully only allow part of the users’ requests to come through. In my current nginx config, I have a …

---

## [Period(.) is used in cokie name](https://www.ruby-forum.com/t/period-is-used-in-cokie-name/218169)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [March 23, 2012, 2:41pm UTC](https://www.ruby-forum.com/t/period-is-used-in-cokie-name/218169 "2012-03-23T14:41:58Z")

</div>

Hello One of my clients use period(.) as cookie name start. (ex Set-Cookie: .blabla=abcd) Is it possible to use period(.) in a cookie name? If possible, how can I use $cookie\_COOKIE variable ? Best Regards

---

## [The English version of the ebooks for my Nginx tutorials (Was Re: co-author a book on nginx)](https://www.ruby-forum.com/t/the-english-version-of-the-ebooks-for-my-nginx-tutorials-was-re-co-author-a-book-on-nginx/218176)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 23, 2012, 2:19pm UTC](https://www.ruby-forum.com/t/the-english-version-of-the-ebooks-for-my-nginx-tutorials-was-re-co-author-a-book-on-nginx/218176 "2012-03-23T14:19:58Z")

</div>

On Fri, Mar 23, 2012 at 4:24 PM, agentzh removed\_email\_address@domain.invalid wrote: On Fri, Mar 23, 2012 at 4:08 PM, Oscar F. removed\_email\_address@domain.invalid wrote: I’ve downloaded it with git clone … and afte…

---

## [Problems with TLS SNI Server Name Indication when using IE9](https://www.ruby-forum.com/t/problems-with-tls-sni-server-name-indication-when-using-ie9/218175)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 23, 2012, 1:24pm UTC](https://www.ruby-forum.com/t/problems-with-tls-sni-server-name-indication-when-using-ie9/218175 "2012-03-23T13:24:41Z")

</div>

Hi there, For those successfully using TLS SNi for https servers. My IE9 (on Windows7 64 bit) fails to trigger the correct nginx virtual https server name and SSL certificate (It ignores all except the default -1st …

---

## [Nginx location regex for processing php extension less files](https://www.ruby-forum.com/t/nginx-location-regex-for-processing-php-extension-less-files/218170)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [March 23, 2012, 2:58am UTC](https://www.ruby-forum.com/t/nginx-location-regex-for-processing-php-extension-less-files/218170 "2012-03-23T02:58:24Z")

</div>

Dear Nginx Forum Members, I wish to implement the following which is working perfectly under Apache. This is being done for better SEO of the URLs. Example URLS: What I am exactly looking forward to is a location…

---

## [Php-fpm / nginx random php lock ups php 5.3.10 w/ nginx 1.0.12](https://www.ruby-forum.com/t/php-fpm-nginx-random-php-lock-ups-php-5-3-10-w-nginx-1-0-12/218162)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [March 22, 2012, 8:21pm UTC](https://www.ruby-forum.com/t/php-fpm-nginx-random-php-lock-ups-php-5-3-10-w-nginx-1-0-12/218162 "2012-03-22T20:21:00Z")

</div>

hi guys, i have a problem. i have a high end server - dual quad core xeons, 16 gb ram, 4 x 120 gb ssd’s in raid 10, and a gigabit pipe. i only host 1 site on it, and from time to time the php simply locks up, restarts…

---

## [Serving direct static image vs via php](https://www.ruby-forum.com/t/serving-direct-static-image-vs-via-php/218148)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [March 22, 2012, 3:13pm UTC](https://www.ruby-forum.com/t/serving-direct-static-image-vs-via-php/218148 "2012-03-22T15:13:54Z")

</div>

Serving static files is the native behavior of nginx, and when we use gateway for scripting, it needs more works by nginx. Thus, loading a php file should take more time than loading an image file. I compare the speed…

---

## [Main process crashed when after executing nginx.exe -s reload](https://www.ruby-forum.com/t/main-process-crashed-when-after-executing-nginx-exe-s-reload/218139)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [March 22, 2012, 1:50pm UTC](https://www.ruby-forum.com/t/main-process-crashed-when-after-executing-nginx-exe-s-reload/218139 "2012-03-22T13:50:24Z")

</div>

Hi, I run the nginx1.0.14 on a windows server2003, after executing nginx.exe -s reload, I found the main process of nginx crashed. But this didn’t happen on another windows server2003. Anyone can help me with this pl…

---

## [Check if php-file exists in chroot jail](https://www.ruby-forum.com/t/check-if-php-file-exists-in-chroot-jail/218116)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 9\
**Last updated:** [March 22, 2012, 10:24am UTC](https://www.ruby-forum.com/t/check-if-php-file-exists-in-chroot-jail/218116 "2012-03-22T10:24:56Z")

</div>

Hello! I configured php-fpm to use build-in chroot. Everything works fine, but there ist a problem when I try to check if a php-file exists. server { location ~ .php$ { root /public; try\_files $uri =404; } } In …

---

## [WebDav not working at all :(](https://www.ruby-forum.com/t/webdav-not-working-at-all/218131)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [March 22, 2012, 10:02am UTC](https://www.ruby-forum.com/t/webdav-not-working-at-all/218131 "2012-03-22T10:02:32Z")

</div>

Hello, I’m currently trying to get the webdav working on nginx 1.1.0. Unfortunately, it doesn’t seem to work at all. I’m following http://wiki.nginx.org/HttpDavModule but I cannot even connect to the dav with cadaver…

---

## [Finding out content type before logging process:](https://www.ruby-forum.com/t/finding-out-content-type-before-logging-process/218127)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [March 22, 2012, 4:17am UTC](https://www.ruby-forum.com/t/finding-out-content-type-before-logging-process/218127 "2012-03-22T04:17:42Z")

</div>

Hey guys! I need to know if there’s a way to find out the content type of content going through the proxy before the logging process. I can use $upstream\_http\_content\_type for logging the information, but I need to a…

---

## [Capture in if - escaping depends on location bug](https://www.ruby-forum.com/t/capture-in-if-escaping-depends-on-location-bug/218128)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [March 22, 2012, 3:34am UTC](https://www.ruby-forum.com/t/capture-in-if-escaping-depends-on-location-bug/218128 "2012-03-22T03:34:27Z")

</div>

I am capturing some data in if, and then redirecting on what was captured. The problem is, that captured data is escaped if url contains “%” char, and may be others, and do not escaped if it does not. I have simple co…

---

## [Wiki maintenance?](https://www.ruby-forum.com/t/wiki-maintenance/218100)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [March 21, 2012, 11:39pm UTC](https://www.ruby-forum.com/t/wiki-maintenance/218100 "2012-03-21T23:39:56Z")

</div>

Hi nginx-team. it’s down currently. Just when I wanted to lookup something…

---

## [Rewrite rule failing with unicode urls on nginx with pcre 8.3](https://www.ruby-forum.com/t/rewrite-rule-failing-with-unicode-urls-on-nginx-with-pcre-8-3/218081)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [March 21, 2012, 11:04pm UTC](https://www.ruby-forum.com/t/rewrite-rule-failing-with-unicode-urls-on-nginx-with-pcre-8-3/218081 "2012-03-21T23:04:35Z")

</div>

First post on the list, so please be gentle :slight\_smile: I asked this question on stackoverflow, but wasn’t getting any love there, and then realised I should go to the source! I managed to get nginx (1.0.14) compil…

---

## [Rewrite Subdomains to Paths](https://www.ruby-forum.com/t/rewrite-subdomains-to-paths/218122)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [March 21, 2012, 9:33pm UTC](https://www.ruby-forum.com/t/rewrite-subdomains-to-paths/218122 "2012-03-21T21:33:42Z")

</div>

Hey, Is it possible to rewrite subdomains to paths? I want to do something like this: x.example.com/foo/bar/ → www.example.com/x/foo/bar/ Thanks! Kurtis

---

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

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [March 21, 2012, 8:55pm UTC](https://www.ruby-forum.com/t/help-with-convert-htaccess-to-nginx/213264 "2012-03-21T20:55:04Z")

</div>

Hi guys, 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: Options +FollowSymLinks +ExecCGI AddDefaultCharset utf-8 …

---

## [Error log not reflect the problem related log](https://www.ruby-forum.com/t/error-log-not-reflect-the-problem-related-log/218072)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [March 21, 2012, 6:03pm UTC](https://www.ruby-forum.com/t/error-log-not-reflect-the-problem-related-log/218072 "2012-03-21T18:03:50Z")

</div>

Hi I have configured the nagios on centos, I have perl related code that I have set. the problem is that when I was configured the same, it had a problem of database connection, but in error log it shows the error li…

---

## [Rewrite rules, for Zope, small problem with authentication user](https://www.ruby-forum.com/t/rewrite-rules-for-zope-small-problem-with-authentication-user/218113)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [March 21, 2012, 5:59pm UTC](https://www.ruby-forum.com/t/rewrite-rules-for-zope-small-problem-with-authentication-user/218113 "2012-03-21T17:59:19Z")

</div>

Hi, List I would use Nginx with Zope, but with the following configuration I can not authenticate the user (from Nginx), otherwise works properly. Where am I doing wrong? … upstream database { postgres\_server 172…

---

## [HttpAdditionModule not working for subdirectories](https://www.ruby-forum.com/t/httpadditionmodule-not-working-for-subdirectories/218091)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 21, 2012, 5:59pm UTC](https://www.ruby-forum.com/t/httpadditionmodule-not-working-for-subdirectories/218091 "2012-03-21T17:59:16Z")

</div>

Hy everyone! It turns out that HttpAdditionModule is only working for the PHP files stored into the web root dir. All content from, let’s say, “/forum” won’t display the embedded content. Error log pointed out that N…

---

## [In memory subrequest hang if backend return 500](https://www.ruby-forum.com/t/in-memory-subrequest-hang-if-backend-return-500/218095)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 21, 2012, 9:54am UTC](https://www.ruby-forum.com/t/in-memory-subrequest-hang-if-backend-return-500/218095 "2012-03-21T09:54:39Z")

</div>

Hi All, In the file ngx\_http\_upstream.c I found some code like this: 1618 if (u-\>headers\_in.status\_n \> NGX\_HTTP\_SPECIAL\_RESPONSE) { 1619 1620 if (r-\>subrequest\_in\_memory) { 1621 u-\>buffer.las…

---

## [Trunk can't be compiled atm](https://www.ruby-forum.com/t/trunk-cant-be-compiled-atm/218098)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [March 21, 2012, 7:39am UTC](https://www.ruby-forum.com/t/trunk-cant-be-compiled-atm/218098 "2012-03-21T07:39:54Z")

</div>

Unable to compile nginx trunk… gcc-4.6.1-9 (Ubuntu) ./configure --with-openssl=/root/openssl/openssl-dev/openssl –with-cpu-opt=pentium4 --with-http\_gzip\_static\_module –with-http\_ssl\_module --with-ipv6 --without-mail\_…

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

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