# Server

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

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

---

## [Another "nested locations" question](https://www.ruby-forum.com/t/another-nested-locations-question/223214)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 7\
**Last updated:** [September 27, 2012, 3:41pm UTC](https://www.ruby-forum.com/t/another-nested-locations-question/223214 "2012-09-27T15:41:31Z")

</div>

I am interested in using a nesting of some sort so that I don’t have to duplicate all the proxy- and other directives for one “special case”. Basically, I’d like a very small subset of my webapp to also write to a sep…

---

## [Re: monit rewrite](https://www.ruby-forum.com/t/re-monit-rewrite/223269)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [September 27, 2012, 12:18pm UTC](https://www.ruby-forum.com/t/re-monit-rewrite/223269 "2012-09-27T12:18:45Z")

</div>

Yes but the original request AFAIK is for removing monitor from the URI. Hence the regex capture. –appa Igor S. removed\_email\_address@domain.invalid a écrit :

---

## [Open socket left in connection](https://www.ruby-forum.com/t/open-socket-left-in-connection/223248)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [September 27, 2012, 12:05pm UTC](https://www.ruby-forum.com/t/open-socket-left-in-connection/223248 "2012-09-27T12:05:19Z")

</div>

We run nginx in front of a python app through proxy\_pass. Occasionally, we update the configuration and reload/hup the nginx master. Sometimes, we see a line in the error.log like 2012/08/08 02:21:31 \[alert\] 7153#0: o…

---

## [Problem with ajp proxy module](https://www.ruby-forum.com/t/problem-with-ajp-proxy-module/223272)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [September 27, 2012, 12:02pm UTC](https://www.ruby-forum.com/t/problem-with-ajp-proxy-module/223272 "2012-09-27T12:02:23Z")

</div>

Hi, No problem to make ajp module works but I have a problem with the ajp\_cache directive.It stores only one file in the cache and always return this file.For example, if I call http://mon url/image.jpg, it will retu…

---

## [Ngx\_openresty devel version 1.2.3.3 released](https://www.ruby-forum.com/t/ngx-openresty-devel-version-1-2-3-3-released/223268)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [September 27, 2012, 7:51am UTC](https://www.ruby-forum.com/t/ngx-openresty-devel-version-1-2-3-3-released/223268 "2012-09-27T07:51:44Z")

</div>

Hello, folks! After more than one month’s hacking, I am happy to announce the new development version of ngx\_openresty, 1.2.3.3: OpenResty® - Open source Special thanks go to all our contributors and users for helpin…

---

## [Using FastCGI for python](https://www.ruby-forum.com/t/using-fastcgi-for-python/223250)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [September 27, 2012, 7:14am UTC](https://www.ruby-forum.com/t/using-fastcgi-for-python/223250 "2012-09-27T07:14:21Z")

</div>

FastCGI is language-independent and like cgi can serve all languages, but setting up nginx with fcgiwrap and spawn-fcgi is only used for serving Perl. Almost all tutorials and instructions use this method for Perl-Fa…

---

## [Change folder of PHP5-FPM status/ping output](https://www.ruby-forum.com/t/change-folder-of-php5-fpm-status-ping-output/223234)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [September 26, 2012, 1:57pm UTC](https://www.ruby-forum.com/t/change-folder-of-php5-fpm-status-ping-output/223234 "2012-09-26T13:57:47Z")

</div>

I’m trying to change the directory of PHP5-FPM status/ping output. I have a dir ‘stats’ on HOSTNAME/stats/ protected by auth\_basic and I’d like to move the output there! These are my current configs (default ones): N…

---

## [Add user-friendly error to configure script when running in improper location](https://www.ruby-forum.com/t/add-user-friendly-error-to-configure-script-when-running-in-improper-location/223233)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [September 26, 2012, 12:56pm UTC](https://www.ruby-forum.com/t/add-user-friendly-error-to-configure-script-when-running-in-improper-location/223233 "2012-09-26T12:56:59Z")

</div>

Here’s a small patch to add a user-friendly error message. I.e. if you run “cd auto; ./configure” instead of “./auto/configure”, you get: ./configure: 10: .: Can’t open auto/options With this patch you now get: No ‘…

---

## [X-Accel-Redirect testing](https://www.ruby-forum.com/t/x-accel-redirect-testing/223207)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 6\
**Last updated:** [September 26, 2012, 11:11am UTC](https://www.ruby-forum.com/t/x-accel-redirect-testing/223207 "2012-09-26T11:11:14Z")

</div>

Hello, I’d like to test if I set up my configs properly and if they’re working. Should it work if I send a GET request with the X-Accel-Redirect header? I am using Mozilla plugin “Modify Headers”. I have added: “X-A…

---

## ["prettify" nginx.conf](https://www.ruby-forum.com/t/prettify-nginx-conf/223211)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [September 26, 2012, 11:05am UTC](https://www.ruby-forum.com/t/prettify-nginx-conf/223211 "2012-09-26T11:05:22Z")

</div>

been making so many changes to my nginx.conf recently, I was wondering if there’s any tool I can use to automatically “prettify” it with indents and the like so at least the various location and server blocks stand o…

---

## [R-\>connection-\>addr\_text.data leak or?](https://www.ruby-forum.com/t/r-connection-addr-text-data-leak-or/222966)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [September 26, 2012, 8:55am UTC](https://www.ruby-forum.com/t/r-connection-addr-text-data-leak-or/222966 "2012-09-26T08:55:40Z")

</div>

I’m writing a new module for ip stuffs and i noticed something new. ngx\_log\_debug(NGX\_LOG\_DEBUG\_HTTP, r-\>connection-\>log, 0, “ip\_checker: %s”, r-\>connection-\>addr\_text.data); 2012/09/17 15:31:56 \[debug\] 17038#0: \*10 …

---

## [Crime tls attack](https://www.ruby-forum.com/t/crime-tls-attack/223220)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [September 26, 2012, 8:08am UTC](https://www.ruby-forum.com/t/crime-tls-attack/223220 "2012-09-26T08:08:20Z")

</div>

Hi http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-4929 Does we need to be worry about nginx? Can we disable SSL/TLS compression from server side? Pekka Panula | Jatkuvat palvelut | Sofor Oy | www.sofor.fi …

---

## [Auth\_basic "pass through"](https://www.ruby-forum.com/t/auth-basic-pass-through/223202)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [September 26, 2012, 3:12am UTC](https://www.ruby-forum.com/t/auth-basic-pass-through/223202 "2012-09-26T03:12:43Z")

</div>

I’m having trouble setting up nginx in front of tomcat to handle ssl and reverse proxy/caching. Basically the webapp behind nginx uses http authentication (browser prompts, not a webpage login), and I think what’s hap…

---

## [Access log control while maintaining internal redirection to WordPress](https://www.ruby-forum.com/t/access-log-control-while-maintaining-internal-redirection-to-wordpress/223170)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [September 25, 2012, 9:17pm UTC](https://www.ruby-forum.com/t/access-log-control-while-maintaining-internal-redirection-to-wordpress/223170 "2012-09-25T21:17:30Z")

</div>

Hello! I created a WordPress page with permalink http://domain.tld/health\_status for WordPress health monitoring. It’s accessed frequently, so I don’t want these requests to appear in my access log. My basic “rewrit…

---

## [Md5 fastcgi cache collisions](https://www.ruby-forum.com/t/md5-fastcgi-cache-collisions/223129)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 7\
**Last updated:** [September 25, 2012, 8:38pm UTC](https://www.ruby-forum.com/t/md5-fastcgi-cache-collisions/223129 "2012-09-25T20:38:55Z")

</div>

Was looking at my error log and noticed a whole bunch of errors like this: 2012/09/22 15:52:26 \[crit\] 641#0: \*4896016 cache file “/var/lib/nginx/fastcgicache/3/21/32d5a44032aadeeed2b1d027314ba213” has md5 collision, …

---

## [Nginx-1.2.4](https://www.ruby-forum.com/t/nginx-1-2-4/223191)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [September 25, 2012, 8:21pm UTC](https://www.ruby-forum.com/t/nginx-1-2-4/223191 "2012-09-25T20:21:23Z")

</div>

Changes with nginx 1.2.4 25 Sep 2012 \*) Bugfix: in the "limit\_req" directive; the bug had appeared in 1.1.14. Thanks to Charles Chen. \*) Bugfix: nginx could not be built by g…

---

## [How to set up the mutual authentication of client access different pages?](https://www.ruby-forum.com/t/how-to-set-up-the-mutual-authentication-of-client-access-different-pages/223176)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [September 25, 2012, 8:15am UTC](https://www.ruby-forum.com/t/how-to-set-up-the-mutual-authentication-of-client-access-different-pages/223176 "2012-09-25T08:15:32Z")

</div>

how to set up the mutual authentication of client access different pages? Leon Sent from my Android phone with K-9 Mail. Please excuse my brevity.

---

## [Location expression - PHP treated as binary file](https://www.ruby-forum.com/t/location-expression-php-treated-as-binary-file/223174)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [September 25, 2012, 6:03am UTC](https://www.ruby-forum.com/t/location-expression-php-treated-as-binary-file/223174 "2012-09-25T06:03:29Z")

</div>

Hi, Having following configuration, PHP files, if requested from /junk or /pub locations, are treated as binary. Sample request - domain.com/pub/i.php → file is downloaded to PC instead of executing. Have no prob…

---

## [Timeout error](https://www.ruby-forum.com/t/timeout-error/223173)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [September 25, 2012, 5:34am UTC](https://www.ruby-forum.com/t/timeout-error/223173 "2012-09-25T05:34:52Z")

</div>

I’ve looked through the docs and cant seem to nail down what I need to do in order to solve this problem. When making a request to my nginx server, occasionally the request is for something that takes a long time (in …

---

## [How to change file permission of error.log and access.log](https://www.ruby-forum.com/t/how-to-change-file-permission-of-error-log-and-access-log/223126)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [September 24, 2012, 12:10pm UTC](https://www.ruby-forum.com/t/how-to-change-file-permission-of-error-log-and-access-log/223126 "2012-09-24T12:10:02Z")

</div>

Is there a way to change the file permission of access.log and error.log? Currently nginx is creating file in user readable and writable mode. I want those files to be readable by group. regards Vivek G.

---

## [How to prohibit a client certificate](https://www.ruby-forum.com/t/how-to-prohibit-a-client-certificate/223125)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [September 24, 2012, 11:36am UTC](https://www.ruby-forum.com/t/how-to-prohibit-a-client-certificate/223125 "2012-09-24T11:36:09Z")

</div>

Hi, I have a normal running nginx https server with mutual authentication, if i want to prohibit access a client certificate, how should I do? In addition, how to set up the mutual authentication of client access di…

---

## [Best way to handle dynamic upstream backend?](https://www.ruby-forum.com/t/best-way-to-handle-dynamic-upstream-backend/223097)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [September 24, 2012, 10:09am UTC](https://www.ruby-forum.com/t/best-way-to-handle-dynamic-upstream-backend/223097 "2012-09-24T10:09:04Z")

</div>

Hi, I use nginx as a reverse proxy in front of about 20 apaches. Now in my backend, currently defined as upstream backend\_all { server 1.1.1.1; server 1.1.1.2; … server 1.1.1.20; } i would like to include dynami…

---

## [Wordpress Multisite and nginx in a subdirectory](https://www.ruby-forum.com/t/wordpress-multisite-and-nginx-in-a-subdirectory/223142)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [September 23, 2012, 10:36pm UTC](https://www.ruby-forum.com/t/wordpress-multisite-and-nginx-in-a-subdirectory/223142 "2012-09-23T22:36:15Z")

</div>

Okay, we’re trying to wrap our heads around a WP config situation in the WP support forum: Just curious if anyone here has faced the same issue. WP is installed in /blogs. Additional blogs are to be /blogs/blog1, …

---

## [Load balancing random 503](https://www.ruby-forum.com/t/load-balancing-random-503/223019)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [September 22, 2012, 11:22am UTC](https://www.ruby-forum.com/t/load-balancing-random-503/223019 "2012-09-22T11:22:11Z")

</div>

Hi there I have an instance on ec2 acting as a load balancer for 4 apache2 servers. The instance is ubuntu precise with nginx 1.2.3 The instance has 4 computing units and 3.75 GB memory Everything is working ok, exc…

---

## [Different cache time for different locations](https://www.ruby-forum.com/t/different-cache-time-for-different-locations/222529)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [September 21, 2012, 3:41pm UTC](https://www.ruby-forum.com/t/different-cache-time-for-different-locations/222529 "2012-09-21T15:41:12Z")

</div>

Hello, All my requests passes in the php location to fastcgi ( location ~ .php$ ) and I would like to have different cache time for different requests. As an example : / -\> cache time for 10 minutes /about -\> cache…

---

## [Twentyeleven theme in WordPress - Nginx as reverse proxy to Apache2](https://www.ruby-forum.com/t/twentyeleven-theme-in-wordpress-nginx-as-reverse-proxy-to-apache2/223092)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [September 21, 2012, 2:59pm UTC](https://www.ruby-forum.com/t/twentyeleven-theme-in-wordpress-nginx-as-reverse-proxy-to-apache2/223092 "2012-09-21T14:59:42Z")

</div>

There are many attractions of Nginx as a front-end to Apache for WordPress - not least the retention of permalink facilities. I have been trying this for some time now and, when it works, the performance is certainly…

---

## [Error: Rewrite or internal redirection cycle after some time](https://www.ruby-forum.com/t/error-rewrite-or-internal-redirection-cycle-after-some-time/222918)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [September 20, 2012, 9:48am UTC](https://www.ruby-forum.com/t/error-rewrite-or-internal-redirection-cycle-after-some-time/222918 "2012-09-20T09:48:53Z")

</div>

My nginx configuration works fine, but suddenly after some time (mostly days) he begins to answer 3x and the error occurs in the log below for all requests: 2012/09/13 17:15:35 \[error\] 26027#0: \*4923 rewrite or inter…

---

## [Fastcgi cache how-to cache for logged-in users and make it custom for each user](https://www.ruby-forum.com/t/fastcgi-cache-how-to-cache-for-logged-in-users-and-make-it-custom-for-each-user/223029)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [September 19, 2012, 6:56pm UTC](https://www.ruby-forum.com/t/fastcgi-cache-how-to-cache-for-logged-in-users-and-make-it-custom-for-each-user/223029 "2012-09-19T18:56:04Z")

</div>

Hello, Currently I’m doing cache using fastcgi\_cache for non-logged-in users, and using ( if + fastcgi\_no\_cache + fastcgi\_cache\_bypass ) to pass logged-in users directly to backend which is PHP-FPM. this work good e…

---

## [Some requests not getting logged](https://www.ruby-forum.com/t/some-requests-not-getting-logged/222980)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [September 19, 2012, 3:58pm UTC](https://www.ruby-forum.com/t/some-requests-not-getting-logged/222980 "2012-09-19T15:58:55Z")

</div>

Hello, I’ve noticed that some (seemingly random) requests get logged as 400 and 408 codes without 301 or 200 codes showing up in the logs. This seems to occur a lot when redirecting people from http \> https via a 3…

---

## [Load balancing & local files](https://www.ruby-forum.com/t/load-balancing-local-files/223025)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [September 19, 2012, 3:46pm UTC](https://www.ruby-forum.com/t/load-balancing-local-files/223025 "2012-09-19T15:46:03Z")

</div>

Hi, I have 2 servers running Nginx on them while one of them also acts as a load balancer. Each server accesses local unique image files that are generated in runtime. I tried the following configuration for the lo…

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

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