# Server

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

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

---

## [Maintenance Page](https://www.ruby-forum.com/t/maintenance-page/218415)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [March 30, 2012, 9:39pm UTC](https://www.ruby-forum.com/t/maintenance-page/218415 "2012-03-30T21:39:20Z")

</div>

Dear List, I am looking for a maintenance page while working on the upstream Tomcat server. Below is my nginx.conf file. Is there anything wrong in this config , as it’s not redirecting to the maintenance.html page. …

---

## [Custom configuration](https://www.ruby-forum.com/t/custom-configuration/218312)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 20\
**Last updated:** [March 30, 2012, 8:14pm UTC](https://www.ruby-forum.com/t/custom-configuration/218312 "2012-03-30T20:14:59Z")

</div>

Hi ! I’m using NGinx since few weeks. One of our customers wants his mp3 downloaded instead of being opened by the browser. .htaccess aren’t read, so I’ve decided to add a config file for his domain, containing the …

---

## [1.0.5 vs 1.0.10](https://www.ruby-forum.com/t/1-0-5-vs-1-0-10/218381)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [March 30, 2012, 6:34pm UTC](https://www.ruby-forum.com/t/1-0-5-vs-1-0-10/218381 "2012-03-30T18:34:16Z")

</div>

Hi, I recently copied configuration files that worked correctly in 1.0.5 which no longer work in 1.0.10 I tested using curl: curl -k -H ‘X-Forwarded-For: 1.2.3.4’ -F data=@1327833493.xml -F username=user -F passwor…

---

## [Surge 2012 CFP is Open!](https://www.ruby-forum.com/t/surge-2012-cfp-is-open/218407)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [March 30, 2012, 4:07pm UTC](https://www.ruby-forum.com/t/surge-2012-cfp-is-open/218407 "2012-03-30T16:07:05Z")

</div>

Surge 2012, the scalability conference, September 27-28, Baltimore, MD has opened its CFP. Please visit http://omniti.com/surge/2012/cfp for details. – Katherine Jeschke Director of Marketing and Creative Services …

---

## [Install nginx dan php debian](https://www.ruby-forum.com/t/install-nginx-dan-php-debian/218391)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [March 30, 2012, 3:28pm UTC](https://www.ruby-forum.com/t/install-nginx-dan-php-debian/218391 "2012-03-30T15:28:32Z")

</div>

please help me, I just wanted to start the install nginx and php on debian linux, that I question is: how to install nginx and php on debian, please send it to me once in the tutorial how to install nginx and php. …

---

## [Convert htaccess apache to nginx](https://www.ruby-forum.com/t/convert-htaccess-apache-to-nginx/218400)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [March 30, 2012, 12:57pm UTC](https://www.ruby-forum.com/t/convert-htaccess-apache-to-nginx/218400 "2012-03-30T12:57:37Z")

</div>

Someone can help me covert the code below to apache nginx RewriteEngine On RewriteRule ^(\[0-9\]+)$ /showthread.php?t=$1 \[NC,QSA,L\] RewriteRule ^((urllist|sitemap\_).\*.(xml|txt)(.gz)?)$ vbseo\_sitemap/vbseo\_getsitemap.ph…

---

## [Error during login in my cgi/perl application](https://www.ruby-forum.com/t/error-during-login-in-my-cgi-perl-application/218392)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [March 30, 2012, 6:32am UTC](https://www.ruby-forum.com/t/error-during-login-in-my-cgi-perl-application/218392 "2012-03-30T06:32:26Z")

</div>

Hi I am trying to run my application which having html+cgi/perl files. during the login its giving the following error. In Browser I am getting the following error 502 Bad Gateway and In error log file 2012/03/30…

---

## [I got 502 and error\_log print upstream sent invalid status "0"](https://www.ruby-forum.com/t/i-got-502-and-error-log-print-upstream-sent-invalid-status-0/218390)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [March 30, 2012, 5:57am UTC](https://www.ruby-forum.com/t/i-got-502-and-error-log-print-upstream-sent-invalid-status-0/218390 "2012-03-30T05:57:35Z")

</div>

Hi everyone, I have a php-fpm backend. And sometimes I got nginx return 502. After I check the error\_log I found each 502s are caused by upstream sent invalid status “0” while reading response header from upstream Th…

---

## [HttpLimitZoneModule and HttpLimitReqModule possible to list IPs banned?](https://www.ruby-forum.com/t/httplimitzonemodule-and-httplimitreqmodule-possible-to-list-ips-banned/218375)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [March 30, 2012, 5:53am UTC](https://www.ruby-forum.com/t/httplimitzonemodule-and-httplimitreqmodule-possible-to-list-ips-banned/218375 "2012-03-30T05:53:15Z")

</div>

Hello All, I have this inside my httpd {}… Is there anyway to list the IPs that have been banned? If not what is the closest way to do this? limit\_req\_zone $limit zone=notabot:5m rate=200r/s; limit\_req zone=notabot …

---

## [Enforcing authentication requests for all resources under specific path](https://www.ruby-forum.com/t/enforcing-authentication-requests-for-all-resources-under-specific-path/218368)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [March 29, 2012, 10:53pm UTC](https://www.ruby-forum.com/t/enforcing-authentication-requests-for-all-resources-under-specific-path/218368 "2012-03-29T22:53:35Z")

</div>

Hi, I’m working on an application independent authentication and authorization layer that utilizes nginx with auth request module. The two are working great for me, but I run into an issue that I don’t know how to so…

---

## [Nginx + Rails (Thin Server) - Double Bad Gateway Problem](https://www.ruby-forum.com/t/nginx-rails-thin-server-double-bad-gateway-problem/218334)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [March 29, 2012, 6:43pm UTC](https://www.ruby-forum.com/t/nginx-rails-thin-server-double-bad-gateway-problem/218334 "2012-03-29T18:43:44Z")

</div>

Hi, I’m facing a strange problem using Nginx with reverse proxy to a ruby Thin Server. When someone calls an unrouteable path in our Rails App, Nginx launches a 502 - Bad Gateway correctly. When Nginx receives anoth…

---

## [Nginx-1.1.18](https://www.ruby-forum.com/t/nginx-1-1-18/218335)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [March 29, 2012, 4:06pm UTC](https://www.ruby-forum.com/t/nginx-1-1-18/218335 "2012-03-29T16:06:36Z")

</div>

Changes with nginx 1.1.18 28 Mar 2012 \*) Change: keepalive connections are no longer disabled for Safari by default. \*) Feature: the $connection\_requests variable. \*) Feature…

---

## [Articles or tips about the Nginx resolver module?](https://www.ruby-forum.com/t/articles-or-tips-about-the-nginx-resolver-module/218342)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [March 28, 2012, 5:51pm UTC](https://www.ruby-forum.com/t/articles-or-tips-about-the-nginx-resolver-module/218342 "2012-03-28T17:51:42Z")

</div>

Hello, I can’t seem to find any good tutorials on what can be done with ngx\_resolver. For example I am trying to find the best way to dynamically update the proxy\_pass directive in a vhosts file. Thanks in advance. …

---

## [Roundcube on nginx?](https://www.ruby-forum.com/t/roundcube-on-nginx/218330)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [March 28, 2012, 5:41pm UTC](https://www.ruby-forum.com/t/roundcube-on-nginx/218330 "2012-03-28T17:41:49Z")

</div>

Hello I’m new to nginx … I wonder if it is possible to run the Rouncube webmail over nginx ? Thank you

---

## [Changes in 1.0.14-2~squeeze](https://www.ruby-forum.com/t/changes-in-1-0-14-2-squeeze/218324)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 28, 2012, 5:36pm UTC](https://www.ruby-forum.com/t/changes-in-1-0-14-2-squeeze/218324 "2012-03-28T17:36:15Z")

</div>

Hi, What changes has been made in 1.0.14-2~squeeze ? There is new package, but there is no information what changed in it. Thanks. Posted at Nginx Forum:

---

## [When front proxy meet reverse proxy](https://www.ruby-forum.com/t/when-front-proxy-meet-reverse-proxy/218300)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [March 28, 2012, 4:28pm UTC](https://www.ruby-forum.com/t/when-front-proxy-meet-reverse-proxy/218300 "2012-03-28T16:28:36Z")

</div>

Hi: This is a cross post at stackoverflowhttp://stackoverflow.com/questions/9872873/when-front-proxy-meet-reverse-proxy,since I got no answser there,so I post it here. Since I think my question is related to the reve…

---

## [Nginx as Load Balancer Connection Issues](https://www.ruby-forum.com/t/nginx-as-load-balancer-connection-issues/215527)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 13\
**Last updated:** [March 28, 2012, 4:27pm UTC](https://www.ruby-forum.com/t/nginx-as-load-balancer-connection-issues/215527 "2012-03-28T16:27:58Z")

</div>

We have a box running nginx and two boxes running apache. The apache boxes are configured as an upstream for nginx. The nginx box has a public IP, and then it talks to the upstream apaches using the private network (…

---

## [Nginx Doesn't Log FastCGI Errors](https://www.ruby-forum.com/t/nginx-doesnt-log-fastcgi-errors/218328)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [March 28, 2012, 3:56pm UTC](https://www.ruby-forum.com/t/nginx-doesnt-log-fastcgi-errors/218328 "2012-03-28T15:56:54Z")

</div>

I have recently migrated my Nginx+PHP-FPM server from a Centos 5 to a Centos 6 server and I basically migrated the whole configuration from the old server to the new one with minor changes. I compiled the newest versi…

---

## [Block dos attack nginx behind cloudflare and loadbalancer](https://www.ruby-forum.com/t/block-dos-attack-nginx-behind-cloudflare-and-loadbalancer/218322)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [March 28, 2012, 11:43am UTC](https://www.ruby-forum.com/t/block-dos-attack-nginx-behind-cloudflare-and-loadbalancer/218322 "2012-03-28T11:43:22Z")

</div>

i have 4 webserver behind cloudflare and a loadbalancer, nginx is the web browser, php-fpm manage the php pages. i don’t know how to block a simple dos attack … i’m able to detect this attack by use the http\_limit\_req…

---

## [Ngx\_openresty stable version 1.0.11.28 released!](https://www.ruby-forum.com/t/ngx-openresty-stable-version-1-0-11-28-released/218229)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 10\
**Last updated:** [March 27, 2012, 9:45pm UTC](https://www.ruby-forum.com/t/ngx-openresty-stable-version-1-0-11-28-released/218229 "2012-03-27T21:45:12Z")

</div>

Hi, folks! I’m happy to announce that ngx\_openresty’s new stable version 1.0.11.28 has just been released. You can download the source tarball from the Download page on openresty.org: OpenResty® - Open source This…

---

## [Takes too long for a connection to be established!](https://www.ruby-forum.com/t/takes-too-long-for-a-connection-to-be-established/218279)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [March 27, 2012, 8:14am UTC](https://www.ruby-forum.com/t/takes-too-long-for-a-connection-to-be-established/218279 "2012-03-27T08:14:27Z")

</div>

Hi, I am new to nginx, and I am using it currently on my server to serve videos to users. a few days ago the server started becoming extremely slow while have around 500-600 users online, note that I have a 1gbps lin…

---

## [Re: Rewrite Subdomains to Paths (Valentin V. Bartenev)](https://www.ruby-forum.com/t/re-rewrite-subdomains-to-paths-valentin-v-bartenev/218260)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [March 26, 2012, 6:29pm UTC](https://www.ruby-forum.com/t/re-rewrite-subdomains-to-paths-valentin-v-bartenev/218260 "2012-03-26T18:29:33Z")

</div>

Hello, Thanks for the quick reply. I apologize ahead-of-time if this is the incorrect way to reply to messages on here. I have my notification settings set to once per day. Anyways, this would definitely work for re…

---

## [How to prevent processing requests with undefined server names on nginx 1.1.17](https://www.ruby-forum.com/t/how-to-prevent-processing-requests-with-undefined-server-names-on-nginx-1-1-17/218254)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [March 26, 2012, 6:15pm UTC](https://www.ruby-forum.com/t/how-to-prevent-processing-requests-with-undefined-server-names-on-nginx-1-1-17/218254 "2012-03-26T18:15:56Z")

</div>

Dear Team, My OS: Centos 5.8 My nginx 1.1.7 Apache listen on: 8080 Nginx listen on: 80 nginx as reverse proxy. My proxy.conf file proxy\_redirect off; proxy\_set\_header Host $host; proxy\_set\_header X-Real-IP $remo…

---

## [Help with setting proxy\_header](https://www.ruby-forum.com/t/help-with-setting-proxy-header/218203)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [March 26, 2012, 1:22pm UTC](https://www.ruby-forum.com/t/help-with-setting-proxy-header/218203 "2012-03-26T13:22:45Z")

</div>

Hello! I have a reverse proxy setup like this… server { … … if ($host = '23.71.33.142' ) { proxy\_set\_header Host www.domain.com; } location / { proxy\_pass http://31.186.1.131:60/; } } The problem is t…

---

## [Vbseo rewrite](https://www.ruby-forum.com/t/vbseo-rewrite/218252)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [March 26, 2012, 12:42pm UTC](https://www.ruby-forum.com/t/vbseo-rewrite/218252 "2012-03-26T12:42:16Z")

</div>

Hi, I have a wordpress site with vbulletin+vBSEO forum section under “/forum/” directory and I’m trying to move this site from apache2 to nginx 1.0.12. Everything works good except the vBSEO rewrite rules. The webse…

---

## [How to custom nginx as a forward proxy](https://www.ruby-forum.com/t/how-to-custom-nginx-as-a-forward-proxy/218247)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 26, 2012, 9:26am UTC](https://www.ruby-forum.com/t/how-to-custom-nginx-as-a-forward-proxy/218247 "2012-03-26T09:26:16Z")

</div>

as I know squid can be use a proxy server , but currently I don’t want to use it , but want to use nginx ,I google "forward proxy " , and get some idea : add server { listen 8080; resolver 8.8.8.8; location / { p…

---

## ["access\_log" directive is not allowed here in how to do this properly?](https://www.ruby-forum.com/t/access-log-directive-is-not-allowed-here-in-how-to-do-this-properly/218241)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 9\
**Last updated:** [March 26, 2012, 2:04am UTC](https://www.ruby-forum.com/t/access-log-directive-is-not-allowed-here-in-how-to-do-this-properly/218241 "2012-03-26T02:04:46Z")

</div>

Hello ! Iam trying to log the requests coming from a list of countries into a seperate log file… Iam using the config below… BUt iam getting this error: \[emerg\]: “access\_log” directive is not allowed here in /etc/ng…

---

## [Either error log empty or access log empty](https://www.ruby-forum.com/t/either-error-log-empty-or-access-log-empty/218206)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [March 26, 2012, 12:12am UTC](https://www.ruby-forum.com/t/either-error-log-empty-or-access-log-empty/218206 "2012-03-26T00:12:58Z")

</div>

hello, I have an nginx/1.0.14 installation with 3 virtual hosts. Each virtual hosts features its own error\_log and access\_log, problem is: eventhough I have similar log configuration on all virtual hosts either access…

---

## [Co-author a book on nginx](https://www.ruby-forum.com/t/co-author-a-book-on-nginx/218173)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [March 25, 2012, 11:45pm UTC](https://www.ruby-forum.com/t/co-author-a-book-on-nginx/218173 "2012-03-25T23:45:07Z")

</div>

Hi, Packt Publishing are looking for a co-author for their next book on nginx (Mastering nginx). If anyone is interested to co-author an extensive guide on nginx configuration for a variety of uses, please email to U…

---

## [Using geoip per continent instead of country possible?](https://www.ruby-forum.com/t/using-geoip-per-continent-instead-of-country-possible/218221)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [March 25, 2012, 9:27pm UTC](https://www.ruby-forum.com/t/using-geoip-per-continent-instead-of-country-possible/218221 "2012-03-25T21:27:23Z")

</div>

Hello guys… I need to perform a specific action for Asia countries… is there anyway to use GeoIP per continent instead of specifying a seperate IF for every Asian country? Thanks –Mike

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

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