# Server

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

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

---

## [Nginx reload fails with host not found in upstream](https://www.ruby-forum.com/t/nginx-reload-fails-with-host-not-found-in-upstream/225016)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [December 7, 2012, 8:23am UTC](https://www.ruby-forum.com/t/nginx-reload-fails-with-host-not-found-in-upstream/225016 "2012-12-07T08:23:50Z")

</div>

hello – nginx will not reload on some of our proxy servers, but does on others. all are running the same version: nginx/1.0.15. the reload fails with error: \[emerg\] 26903#0: host not found in upstream “webappNNx:8080…

---

## [Can get "uwsgi\_buffering off" working](https://www.ruby-forum.com/t/can-get-uwsgi-buffering-off-working/246546)

<div class="topic-metadata">

**Author:** [@kirpit](https://www.ruby-forum.com/u/kirpit)\
**Replies:** 0\
**Last updated:** [December 6, 2012, 8:32pm UTC](https://www.ruby-forum.com/t/can-get-uwsgi-buffering-off-working/246546 "2012-12-06T20:32:38Z")

</div>

Hi, I’m just trying to setup a non-blocking server backed with uwsgi/gevent. So I need to turn off uwsgi buffering as it’s necessary. However, it seems quite impossible to get it working even though it says “46382#0:…

---

## [Having lot of waiting connection will cause high CPU usage?](https://www.ruby-forum.com/t/having-lot-of-waiting-connection-will-cause-high-cpu-usage/224446)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [December 6, 2012, 5:03pm UTC](https://www.ruby-forum.com/t/having-lot-of-waiting-connection-will-cause-high-cpu-usage/224446 "2012-12-06T17:03:26Z")

</div>

Hi, In one of my server, the nginx status return the following Active connections: 3595 server accepts handled requests 95329528 95329528 118118629 Reading: 334 Writing: 49 Waiting: 3212 There are a lot of “Waiting…

---

## [SSL key permissions - why does root work?](https://www.ruby-forum.com/t/ssl-key-permissions-why-does-root-work/224981)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [December 6, 2012, 11:23am UTC](https://www.ruby-forum.com/t/ssl-key-permissions-why-does-root-work/224981 "2012-12-06T11:23:23Z")

</div>

Hi all– This might be a silly question, so I apologize, but I would like to know the answer. When configuring Nginx to work with SSL/TLS, best practice appears to be to secure your site’s private key by ensuring it’…

---

## [Auth\_request\_set into variable and lua](https://www.ruby-forum.com/t/auth-request-set-into-variable-and-lua/224959)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 8\
**Last updated:** [December 6, 2012, 4:34am UTC](https://www.ruby-forum.com/t/auth-request-set-into-variable-and-lua/224959 "2012-12-06T04:34:25Z")

</div>

Trying to get a header from an auth\_request into a variable and use it from Lua with no luck. This was the simple example I tried. location = /auth { add\_header X-Boo "Hello World"; return 204; …

---

## [Is it possible using multiple directive on different root location? (Without Symlinks)](https://www.ruby-forum.com/t/is-it-possible-using-multiple-directive-on-different-root-location-without-symlinks/219374)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 16\
**Last updated:** [December 6, 2012, 3:12am UTC](https://www.ruby-forum.com/t/is-it-possible-using-multiple-directive-on-different-root-location-without-symlinks/219374 "2012-12-06T03:12:03Z")

</div>

Hi, basic on Pitfalls and Common Mistakes | NGINX, I want to ask my directives like this : This directive on balancer : And then, this directives on backend : I want to give a subdomain like this NameBright - Coming…

---

## [Slowfs cache](https://www.ruby-forum.com/t/slowfs-cache/226463)

<div class="topic-metadata">

**Author:** [@xrfang](https://www.ruby-forum.com/u/xrfang)\
**Replies:** 1\
**Last updated:** [December 5, 2012, 8:27pm UTC](https://www.ruby-forum.com/t/slowfs-cache/226463 "2012-12-05T20:27:15Z")

</div>

hi, anyone using/tried slowfs\_cache? http://labs.frickle.com/nginx\_ngx\_slowfs\_cache/ If I have a machine with big memory, e.g. 128G or more, is it useful to create a ramdisk and use slowfs cache? or I can just rely on…

---

## [Keepalive\_timeout http|server|listen context](https://www.ruby-forum.com/t/keepalive-timeout-http-server-listen-context/224960)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [December 5, 2012, 1:52am UTC](https://www.ruby-forum.com/t/keepalive-timeout-http-server-listen-context/224960 "2012-12-05T01:52:55Z")

</div>

If ‘keepalive\_timeout 0’ is set at the http context level, does nginx honor ‘keepalive\_timeout N’ at the server and/or listen level? Posted at Nginx Forum:

---

## [New log file every x minutes](https://www.ruby-forum.com/t/new-log-file-every-x-minutes/224950)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [December 4, 2012, 8:06pm UTC](https://www.ruby-forum.com/t/new-log-file-every-x-minutes/224950 "2012-12-04T20:06:30Z")

</div>

Hi, How can I tell nginx to create a new log file (access log) every x minutes?

---

## [Redirect joomla url to dns name](https://www.ruby-forum.com/t/redirect-joomla-url-to-dns-name/224944)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 9\
**Last updated:** [December 4, 2012, 4:47pm UTC](https://www.ruby-forum.com/t/redirect-joomla-url-to-dns-name/224944 "2012-12-04T16:47:53Z")

</div>

HI All , my joomla application is running 192.168.1.203 system in httpd sever,Operating system Fedora 14. URL : http://192.168.1.203/joomla I want redirect this url with some good name like , srinivas.walkingtree.in …

---

## [301 redirect with custom content problem](https://www.ruby-forum.com/t/301-redirect-with-custom-content-problem/224890)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [December 4, 2012, 6:29am UTC](https://www.ruby-forum.com/t/301-redirect-with-custom-content-problem/224890 "2012-12-04T06:29:50Z")

</div>

Hi I’m trying to setup a permanent redirect from http → https. As a fallback for a small number of users where https is blocked, I’d like to show them a message. I thought an error\_page 301 handler would allow me to …

---

## [Upload module (2.2.0) compile errors on windows](https://www.ruby-forum.com/t/upload-module-2-2-0-compile-errors-on-windows/224941)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [December 4, 2012, 5:39am UTC](https://www.ruby-forum.com/t/upload-module-2-2-0-compile-errors-on-windows/224941 "2012-12-04T05:39:01Z")

</div>

I am trying to compile nginx on windows following the instructions at Building nginx on the Win32 platform with Visual C. I am using the nginx sources from release-1.2.5 and including nginx\_upload\_module-2.2.0. I am…

---

## [Caching authentication requests?](https://www.ruby-forum.com/t/caching-authentication-requests/224666)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [December 4, 2012, 12:15am UTC](https://www.ruby-forum.com/t/caching-authentication-requests/224666 "2012-12-04T00:15:46Z")

</div>

I want to use something like auth PAM but this seems to cause a PAM conversation for every request and that is slower. Is there a way to cache a successful authentication so that an authentication happens only once …

---

## [Internal 503 Redirect Issues?](https://www.ruby-forum.com/t/internal-503-redirect-issues/224393)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [December 3, 2012, 10:56pm UTC](https://www.ruby-forum.com/t/internal-503-redirect-issues/224393 "2012-12-03T22:56:17Z")

</div>

Hello Everyone, I am attempting to configure an internal redirect for any 502/503 errors in the event our backend servers are down. Here is the relevant part of my configuration: location / { add\_header X-Frame-Opt…

---

## [Removing index.php from url](https://www.ruby-forum.com/t/removing-index-php-from-url/224923)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [December 3, 2012, 10:11pm UTC](https://www.ruby-forum.com/t/removing-index-php-from-url/224923 "2012-12-03T22:11:52Z")

</div>

Hey all, I have a server with nginx 1.2.5 and php-fpm 5.3.3 installed. I have a web application built on top of zend framework and the routing passes everything thru a index.php file. So while http://www.domain.com…

---

## [Ngx\_cpuinfo / kvm & qemu / ngx\_cacheline\_size](https://www.ruby-forum.com/t/ngx-cpuinfo-kvm-qemu-ngx-cacheline-size/224918)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [December 3, 2012, 4:06pm UTC](https://www.ruby-forum.com/t/ngx-cpuinfo-kvm-qemu-ngx-cacheline-size/224918 "2012-12-03T16:06:39Z")

</div>

Hi, I have virtual machine running on qemu / kvm. cat /proc/cpuinfo give : processor : 0 vendor\_id : GenuineIntel cpu family : 6 model : 2 model name : QEMU Virtual CPU version 1.1.2 stepping : 3 microcode : 0x1 …

---

## [Login wiki.nginx.org failed?](https://www.ruby-forum.com/t/login-wiki-nginx-org-failed/224930)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [December 3, 2012, 3:44pm UTC](https://www.ruby-forum.com/t/login-wiki-nginx-org-failed/224930 "2012-12-03T15:44:26Z")

</div>

login in the wiki failed. And i “reset password”, use new password also login failed. What’s happend? Thanks.

---

## [Beginner user WHM/Cpanel/PhpMysql knowledge only](https://www.ruby-forum.com/t/beginner-user-whm-cpanel-phpmysql-knowledge-only/224913)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [December 2, 2012, 2:40am UTC](https://www.ruby-forum.com/t/beginner-user-whm-cpanel-phpmysql-knowledge-only/224913 "2012-12-02T02:40:31Z")

</div>

Hi all, I have a project that I think Nginx might be good for. I am building a car sales website in joomla. (joomla is a php/Mysql based cms). The content, car listings is not stored in the database but served exte…

---

## [Limit access to files in cgi-bin](https://www.ruby-forum.com/t/limit-access-to-files-in-cgi-bin/224909)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [December 1, 2012, 4:43pm UTC](https://www.ruby-forum.com/t/limit-access-to-files-in-cgi-bin/224909 "2012-12-01T16:43:19Z")

</div>

Hello, I have a configuration file located at (example) http://domain.com:82/cgi-bin/xxx.pm that can be accessed by anyone if they know the address/file location. Is there a way to limit access to this location from…

---

## [Post mortem of a HackerNews Launch & references to mistakes made with Nginx config](https://www.ruby-forum.com/t/post-mortem-of-a-hackernews-launch-references-to-mistakes-made-with-nginx-config/224901)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [December 1, 2012, 9:06am UTC](https://www.ruby-forum.com/t/post-mortem-of-a-hackernews-launch-references-to-mistakes-made-with-nginx-config/224901 "2012-12-01T09:06:58Z")

</div>

Hello family, I wrote about some of the mistakes I made while doing a HN launch for my new startup Cucumbertown http://www.cucumbertown.com/ http://www.gigpeppers.com/post-mortem-of-a-failed-hackernews-launch/ It has…

---

## [Nginx with --with-http\_perl\_module compilation problems](https://www.ruby-forum.com/t/nginx-with-with-http-perl-module-compilation-problems/226441)

<div class="topic-metadata">

**Author:** [@gduarte](https://www.ruby-forum.com/u/gduarte)\
**Replies:** 1\
**Last updated:** [November 30, 2012, 6:13pm UTC](https://www.ruby-forum.com/t/nginx-with-with-http-perl-module-compilation-problems/226441 "2012-11-30T18:13:45Z")

</div>

Hello people, yesterday I started trying to compile nginx with http\_perl\_module, but, at the end of the compilation, the linkeditor gets confused about the archtecture it’s being linked. I’m using Mac OS/X 10.6.8. He…

---

## [About error\_page and named location](https://www.ruby-forum.com/t/about-error-page-and-named-location/226434)

<div class="topic-metadata">

**Author:** [@SSSSSSSSSS\_SS\_SSS](https://www.ruby-forum.com/u/SSSSSSSSSS_SS_SSS)\
**Replies:** 3\
**Last updated:** [November 30, 2012, 5:14pm UTC](https://www.ruby-forum.com/t/about-error-page-and-named-location/226434 "2012-11-30T17:14:44Z")

</div>

For rejecting some unfriendly access, I use 410 status code for them. The config is below: error\_page 410 /410; if (xxx) { return 410; } location /410 { more\_set\_headers “Content-Type: text/html;charset=utf8;”; …

---

## [An error with the docs of $host](https://www.ruby-forum.com/t/an-error-with-the-docs-of-host/224891)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [November 30, 2012, 11:37am UTC](https://www.ruby-forum.com/t/an-error-with-the-docs-of-host/224891 "2012-11-30T11:37:00Z")

</div>

Hi, In the docs of $host at Module ngx\_http\_core\_module, it says: $host Host request header field, or the server name matching a request if this field is not present It’s not right with the host header like: www.e…

---

## [Nginx-1.3.9](https://www.ruby-forum.com/t/nginx-1-3-9/224823)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 24\
**Last updated:** [November 30, 2012, 7:26am UTC](https://www.ruby-forum.com/t/nginx-1-3-9/224823 "2012-11-30T07:26:54Z")

</div>

Changes with nginx 1.3.9 27 Nov 2012 \*) Feature: support for chunked transfer encoding while reading client request body. \*) Feature: the $request\_time and $msec variables ca…

---

## [Nginx listen to $hostname doesn't work, is it supported?](https://www.ruby-forum.com/t/nginx-listen-to-hostname-doesnt-work-is-it-supported/224885)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [November 30, 2012, 6:33am UTC](https://www.ruby-forum.com/t/nginx-listen-to-hostname-doesnt-work-is-it-supported/224885 "2012-11-30T06:33:08Z")

</div>

n my nginx conf file, I have : listen 80; server\_name $hostname; if I do netstat I see that it is listening on 0.0.0.0:80 , is there any workaround in nginx.conf , to make it listen to $hostname:80 ? where …

---

## [Separate download directory for stable nginx releases?](https://www.ruby-forum.com/t/separate-download-directory-for-stable-nginx-releases/224893)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [November 30, 2012, 6:08am UTC](https://www.ruby-forum.com/t/separate-download-directory-for-stable-nginx-releases/224893 "2012-11-30T06:08:00Z")

</div>

Hi, Is it possible to put stable releases of nginx into different directory/folder at nginx download page? Instead of: http://nginx.org/download/nginx-1.2.5.tar.gz Like: http://nginx.org/download/stable/nginx-1.2.5.t…

---

## [Cookie not created until refresh?](https://www.ruby-forum.com/t/cookie-not-created-until-refresh/224884)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [November 30, 2012, 5:24am UTC](https://www.ruby-forum.com/t/cookie-not-created-until-refresh/224884 "2012-11-30T05:24:45Z")

</div>

I have the following nginx conf file (shortened for the purose of this question) that is creating a cookie: map $http\_referer $setCookie { default ""; ~\*somewebsite\\.com “referrer=bl;Domain=.mysite.com;…

---

## [RE: nginx+lua reverse proxy empty body (weird repeatable behavior)](https://www.ruby-forum.com/t/re-nginx-lua-reverse-proxy-empty-body-weird-repeatable-behavior/229226)

<div class="topic-metadata">

**Author:** [@Bart\_van\_Deenen](https://www.ruby-forum.com/u/Bart_van_Deenen)\
**Replies:** 1\
**Last updated:** [November 30, 2012, 3:16am UTC](https://www.ruby-forum.com/t/re-nginx-lua-reverse-proxy-empty-body-weird-repeatable-behavior/229226 "2012-11-30T03:16:13Z")

</div>

Hi all It seems the body\_filter\_by\_lua section is bypassed somehow, it just doesn’t receive the proxied data. I have this simplified testcase which at least for my setup is completely repeatable. See below. In short,…

---

## [Nginx+lua reverse proxy empty body](https://www.ruby-forum.com/t/nginx-lua-reverse-proxy-empty-body/224815)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [November 30, 2012, 2:52am UTC](https://www.ruby-forum.com/t/nginx-lua-reverse-proxy-empty-body/224815 "2012-11-30T02:52:49Z")

</div>

Hi all I’m trying to do on-the-fly changes on the pages of a site using lua. I’ve set up a nginx reverse proxy, and some lua code to do the replacements, and I notice irreproducable (timing ?) situations where the pr…

---

## [Random order of configuration file reading](https://www.ruby-forum.com/t/random-order-of-configuration-file-reading/224821)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 8\
**Last updated:** [November 30, 2012, 12:25am UTC](https://www.ruby-forum.com/t/random-order-of-configuration-file-reading/224821 "2012-11-30T00:25:35Z")

</div>

Hello, we have a bunch of servers which are configured 100% equal expect of host specific settings like ip address in the listener using chef/puppet. Nginx seems to read include / config files not in the same order …

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

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