# Server

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

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

---

## [Bad Hostname Error?](https://www.ruby-forum.com/t/bad-hostname-error/214859)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [December 14, 2011, 9:56am UTC](https://www.ruby-forum.com/t/bad-hostname-error/214859 "2011-12-14T09:56:55Z")

</div>

Hi everyone, Every once in a while, requests to my NGINX server are giving 500 errors as with bad hostname responses for http://: Can’t connect to sub.mydomain.com:80 (Bad hostname: sub.mydomain.com) It turned out to…

---

## [Update of nginx](https://www.ruby-forum.com/t/update-of-nginx/214821)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [December 14, 2011, 7:58am UTC](https://www.ruby-forum.com/t/update-of-nginx/214821 "2011-12-14T07:58:14Z")

</div>

Hello, I am encountering a problem while updating my nginx server. I first configured and built the new version 1.1.11. I then stopped the server, checked it has been done, executed the make install and checked the c…

---

## [Feature request for HttpLimitReqModule](https://www.ruby-forum.com/t/feature-request-for-httplimitreqmodule/214861)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [December 14, 2011, 3:30am UTC](https://www.ruby-forum.com/t/feature-request-for-httplimitreqmodule/214861 "2011-12-14T03:30:52Z")

</div>

Hi, I have a huge problem on my site with site scrapers, spam and spider bots. What I was thinking was that I could use the HttpLimitReqModule module to limit the number of requests per ip except that limits on a lev…

---

## [Nginx SSO service for different backend web servers/apps](https://www.ruby-forum.com/t/nginx-sso-service-for-different-backend-web-servers-apps/211634)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [December 13, 2011, 11:33pm UTC](https://www.ruby-forum.com/t/nginx-sso-service-for-different-backend-web-servers-apps/211634 "2011-12-13T23:33:59Z")

</div>

Hi We have a couple different services running in different machines, web servers/wep applications. We would like to have a Single Sign-On (SSO) in front of these servers, now they have their own accounts + passwords…

---

## [Udplogger and nginx](https://www.ruby-forum.com/t/udplogger-and-nginx/214801)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [December 12, 2011, 11:17pm UTC](https://www.ruby-forum.com/t/udplogger-and-nginx/214801 "2011-12-12T23:17:31Z")

</div>

Hello there, I am trying to use udplogger module to push httplogs into distant server, the GitHub - vkholodkov/nginx-udplog-module: Implementation of logging using BSD Syslog Protocol for nginx (RFC 3164) module versi…

---

## [Connection timed out while connecting to upstream, syn packet volume is high](https://www.ruby-forum.com/t/connection-timed-out-while-connecting-to-upstream-syn-packet-volume-is-high/214806)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [December 12, 2011, 8:38pm UTC](https://www.ruby-forum.com/t/connection-timed-out-while-connecting-to-upstream-syn-packet-volume-is-high/214806 "2011-12-12T20:38:23Z")

</div>

I’ve been troubleshooting this issue on and off the last couple days and have not been able to eliminate this error from nginx: 2011/12/12 13:12:32 \[error\] 27810#0: \*36209658 connect() failed (110: Connection timed ou…

---

## [Host not found in upstream](https://www.ruby-forum.com/t/host-not-found-in-upstream/205017)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [December 12, 2011, 5:17pm UTC](https://www.ruby-forum.com/t/host-not-found-in-upstream/205017 "2011-12-12T17:17:42Z")

</div>

Hello, I use nginx server as a reverse proxy for a lot of diferent origins. Many virtualhosts with many upstream servers. I dont have total control of hostnames that will be configured on upstreams.This configuration …

---

## [Aio vs non-blocking-io](https://www.ruby-forum.com/t/aio-vs-non-blocking-io/214763)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [December 12, 2011, 11:23am UTC](https://www.ruby-forum.com/t/aio-vs-non-blocking-io/214763 "2011-12-12T11:23:25Z")

</div>

Hello, Is there a chance to use non-blocking-io with nginx? AIO is quite broken on Linux, but “O\_NONBLOCK” is not. I know, AIO would be better because you don’t have to wait until the buffer is copied to the kernel-s…

---

## [The meaning of the COUNT field in ngx\_http\_request](https://www.ruby-forum.com/t/the-meaning-of-the-count-field-in-ngx-http-request/214778)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [December 12, 2011, 10:11am UTC](https://www.ruby-forum.com/t/the-meaning-of-the-count-field-in-ngx-http-request/214778 "2011-12-12T10:11:26Z")

</div>

Hi All, I was dev some modules for nginx but confusing in the meaning of the ‘count’ field of ngx\_http\_request structure, anybody who can help? thx! Yours, Abioy

---

## [How to allow only specific URL's in maintenance mode?](https://www.ruby-forum.com/t/how-to-allow-only-specific-urls-in-maintenance-mode/214773)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [December 12, 2011, 6:49am UTC](https://www.ruby-forum.com/t/how-to-allow-only-specific-urls-in-maintenance-mode/214773 "2011-12-12T06:49:49Z")

</div>

My maintenance mode config is as follows : if (-f $errorroot/maintenance.html) { return 503; } error\_page 503 @maintenance; location @maintenance { rewrite ^(.\*)$ /maintenance.html break; proxy\_method GET; prox…

---

## [Mod\_auth\_tkt implementation for nginx](https://www.ruby-forum.com/t/mod-auth-tkt-implementation-for-nginx/214756)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [December 11, 2011, 8:11pm UTC](https://www.ruby-forum.com/t/mod-auth-tkt-implementation-for-nginx/214756 "2011-12-11T20:11:44Z")

</div>

Hi all, I’d like to implement mod\_auth\_tkt Open Fusion SSO but I don’t want to use Apache as front-end. I’m already using nginx on several hosts and I want SSO for them. I need SSO on different domains, which is sup…

---

## [Running CGI scripts in nginx via uWSGI](https://www.ruby-forum.com/t/running-cgi-scripts-in-nginx-via-uwsgi/214753)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [December 11, 2011, 7:21pm UTC](https://www.ruby-forum.com/t/running-cgi-scripts-in-nginx-via-uwsgi/214753 "2011-12-11T19:21:48Z")

</div>

Hi everyone, i have just released a cgi\_plugin for the uWSGI server. This allows nginx to easily run cgi scripts passing requests to the uWSGI server (very similar to the current fcgiwrap solution, but with all of th…

---

## [Ngx\_openresty stable version 1.0.10.24 released](https://www.ruby-forum.com/t/ngx-openresty-stable-version-1-0-10-24-released/214750)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [December 11, 2011, 4:23pm UTC](https://www.ruby-forum.com/t/ngx-openresty-stable-version-1-0-10-24-released/214750 "2011-12-11T16:23:42Z")

</div>

Hi, folks! I’m happy to announce that the new stable release of ngx\_openresty, 1.0.10.24, has just been kicked out of door: OpenResty® - Open source This is the first stable release of ngx\_openresty that is based on …

---

## [Attention Valery Kholodkov :) Upload Module query](https://www.ruby-forum.com/t/attention-valery-kholodkov-upload-module-query/214492)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [December 10, 2011, 8:09am UTC](https://www.ruby-forum.com/t/attention-valery-kholodkov-upload-module-query/214492 "2011-12-10T08:09:23Z")

</div>

Hello Folks and hello Valery, I want to run the example.php that comes alongwith Valery’s upload module. However, I’m having problems trying to set it up correctly. (Sorry I have never worked on php before so please p…

---

## [nginx/Win2008R2 stops responding after few sessions](https://www.ruby-forum.com/t/nginx-win2008r2-stops-responding-after-few-sessions/214708)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [December 9, 2011, 11:17pm UTC](https://www.ruby-forum.com/t/nginx-win2008r2-stops-responding-after-few-sessions/214708 "2011-12-09T23:17:29Z")

</div>

Hello, I am running nginx 1.0.10 (native build) on Windows 2008 R2 with 2 worker processes. I am serving a static file (chunk.ts 375000 bytes) to a httperf client running on CentOS 6. The client executes 4 concurren…

---

## [Working on Nginx Tutorials in Chinese](https://www.ruby-forum.com/t/working-on-nginx-tutorials-in-chinese/214576)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 9\
**Last updated:** [December 9, 2011, 6:19pm UTC](https://www.ruby-forum.com/t/working-on-nginx-tutorials-in-chinese/214576 "2011-12-09T18:19:53Z")

</div>

Hi, folks! I’ve been posting Nginx tutorials in Chinese to my yet another blog site hosted by Sina Blog here: agentzh\_新浪博客 I’m currently posting tutorials for the “Nginx Variables” series in great details. And I’m t…

---

## [Php-cgi died from time to time and restarted](https://www.ruby-forum.com/t/php-cgi-died-from-time-to-time-and-restarted/214689)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [December 9, 2011, 11:24am UTC](https://www.ruby-forum.com/t/php-cgi-died-from-time-to-time-and-restarted/214689 "2011-12-09T11:24:12Z")

</div>

i have very bad problem with Nginx+Php-fpm, my website always hang for few times and when i checked with “TOP” via ssh it shows Php-cgi process are like suicide/gone and then respawn again and it makes my visitors fee…

---

## [Reverse proxy with POST data](https://www.ruby-forum.com/t/reverse-proxy-with-post-data/214655)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [December 8, 2011, 4:43pm UTC](https://www.ruby-forum.com/t/reverse-proxy-with-post-data/214655 "2011-12-08T16:43:12Z")

</div>

Hi all I’m new to Nginx, I have setup a reverse proxy with Nginx and I have a REST service in the backend, so in order to access that REST service from my web site, crossdomain issue, I need the reverse proxy server, …

---

## [Any plugin to serve files right from zip package?](https://www.ruby-forum.com/t/any-plugin-to-serve-files-right-from-zip-package/214651)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [December 8, 2011, 2:20pm UTC](https://www.ruby-forum.com/t/any-plugin-to-serve-files-right-from-zip-package/214651 "2011-12-08T14:20:03Z")

</div>

Hi, I’m wondering whether there is any Nginx plugin which can serve files right from zip package. For instance, if / is maped to /var/www/ and we have a /var/www/foo.zip, which include foo1.html, foo2.html, etc, then…

---

## [Issue in ssl negociation](https://www.ruby-forum.com/t/issue-in-ssl-negociation/214625)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [December 8, 2011, 1:02am UTC](https://www.ruby-forum.com/t/issue-in-ssl-negociation/214625 "2011-12-08T01:02:50Z")

</div>

Hello, This is my first POST, so please forgive me if I used the wrong mailing-list… I am using nginx v0.7.65 on Debian squeeze. I have a sporadic issue occuring on requests coming from Android mobile phones, concern…

---

## [499 error](https://www.ruby-forum.com/t/499-error/214405)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [December 7, 2011, 11:21pm UTC](https://www.ruby-forum.com/t/499-error/214405 "2011-12-07T23:21:26Z")

</div>

I have a configuration that uses nginx + unicorn + rails 3.1. I have a load balancer in front of this, and the health checks are failing because nginx is sending a 499 response when I try to use a rails page for the …

---

## [Post\_action misses report to error log?](https://www.ruby-forum.com/t/post-action-misses-report-to-error-log/214630)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [December 7, 2011, 9:02pm UTC](https://www.ruby-forum.com/t/post-action-misses-report-to-error-log/214630 "2011-12-07T21:02:14Z")

</div>

Is it possible for the post\_action directive http://wiki.nginx.org/HttpCoreModule#post\_action to write any misses to the error log? How would i go about setting this up? Thanks! Posted at Nginx Forum:

---

## [Gzip filter is not work with my handler](https://www.ruby-forum.com/t/gzip-filter-is-not-work-with-my-handler/214609)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [December 7, 2011, 7:38pm UTC](https://www.ruby-forum.com/t/gzip-filter-is-not-work-with-my-handler/214609 "2011-12-07T19:38:47Z")

</div>

I wrote a very simple nginx handler,just output some text (size 100B to 10KB). the code works properly with nginx( ver 1.0.6) but I found gzip filter can not work with the handler . when I turn gzip on in nginx.conf…

---

## [Memcached, named locations, custom 404](https://www.ruby-forum.com/t/memcached-named-locations-custom-404/214633)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [December 7, 2011, 6:39pm UTC](https://www.ruby-forum.com/t/memcached-named-locations-custom-404/214633 "2011-12-07T18:39:20Z")

</div>

Hi Is it possible to do a redirect from one named location to another? I’m using 1.0.10 and it does seem to stop processing in the first named location. Here’s an example (funny http codes do not matter): server { e…

---

## [Why is # rewritten to %23?](https://www.ruby-forum.com/t/why-is-rewritten-to-23/214608)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [December 7, 2011, 3:36pm UTC](https://www.ruby-forum.com/t/why-is-rewritten-to-23/214608 "2011-12-07T15:36:04Z")

</div>

I’ve got a rewrite rule in my nginx config file to convert from an old URL to a new one, but the new URL has a hash string in it, and it doesn’t seem to be possible to get nginx to rewrite that without encoding it. T…

---

## [Nginx without access log](https://www.ruby-forum.com/t/nginx-without-access-log/214448)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [December 7, 2011, 2:09pm UTC](https://www.ruby-forum.com/t/nginx-without-access-log/214448 "2011-12-07T14:09:09Z")

</div>

Obviously nginx needs a time (even very short) to write access and error logs upon every request. Thus, theoretically, removing access and error logs from nginx configuration should speed up the web server. Surprising…

---

## [Nginx won't stop](https://www.ruby-forum.com/t/nginx-wont-stop/214602)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [December 7, 2011, 5:47am UTC](https://www.ruby-forum.com/t/nginx-wont-stop/214602 "2011-12-07T05:47:55Z")

</div>

Hello everyone, I’ve spent the last few hours on what I thought was the end of a Rails/Passenger/Nginx setup but I have had absolutely no luck. When I try to restart nginx (using /etc/init.d/nginx restart) I get: Res…

---

## [Question about high cpu usage during shut down](https://www.ruby-forum.com/t/question-about-high-cpu-usage-during-shut-down/214591)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [December 6, 2011, 11:45pm UTC](https://www.ruby-forum.com/t/question-about-high-cpu-usage-during-shut-down/214591 "2011-12-06T23:45:13Z")

</div>

Hi, We are using nginx for proxy caching. It seems every time when I send HUP to nginx, those shutting down workers will have extremely high cpu usage. Is that normal? Or did I misconfigured nginx? Thanks, –Yejun Y…

---

## [Using nginx workers](https://www.ruby-forum.com/t/using-nginx-workers/214577)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [December 6, 2011, 10:45am UTC](https://www.ruby-forum.com/t/using-nginx-workers/214577 "2011-12-06T10:45:26Z")

</div>

I have a 2 cpu core vps setup, currently with 2 workers (load is pretty small atm), would using 4 workers on a 2 core cpu be safe? would there be timeouts? any other issues?

---

## [Custom headers - Is it a bug or what?](https://www.ruby-forum.com/t/custom-headers-is-it-a-bug-or-what/214571)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [December 6, 2011, 1:24am UTC](https://www.ruby-forum.com/t/custom-headers-is-it-a-bug-or-what/214571 "2011-12-06T01:24:31Z")

</div>

Hi everybody. I have a very simple question to what is possibly a bug. In nginx 1.0.5, given the following nginx.conf: server { server\_name myserver; location / { uwsgi\_pass 127.0.0.1:5001; uwsgi\_param HTTP\_MY\_CU…

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

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