# Server

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

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

---

## [Detects that the server is redirecting the address request cycle](https://www.ruby-forum.com/t/detects-that-the-server-is-redirecting-the-address-request-cycle/211776)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [September 13, 2011, 1:59pm UTC](https://www.ruby-forum.com/t/detects-that-the-server-is-redirecting-the-address-request-cycle/211776 "2011-09-13T13:59:09Z")

</div>

hi all add " if ($http\_referer ~\* “www.test.com”) { rewrite ^/(.\*)$ http://www.xxx.com permanent; }" open browser 出现 “ This redirect page is incorrect Detects that the server is redirecting the addre…

---

## [Reverse proxy for multiple apps, tomcat](https://www.ruby-forum.com/t/reverse-proxy-for-multiple-apps-tomcat/211750)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [September 13, 2011, 2:31am UTC](https://www.ruby-forum.com/t/reverse-proxy-for-multiple-apps-tomcat/211750 "2011-09-13T02:31:38Z")

</div>

Hi, I’m setting up a reverse proxy to be used by different applications working on a tomcat server. The configuration, is using proxy\_pass directive but it’s not working, have searched but I’ve been able to figure it…

---

## [Verify Peer of SSL request in Proxy Module](https://www.ruby-forum.com/t/verify-peer-of-ssl-request-in-proxy-module/211747)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [September 13, 2011, 1:58am UTC](https://www.ruby-forum.com/t/verify-peer-of-ssl-request-in-proxy-module/211747 "2011-09-13T01:58:55Z")

</div>

When reverse proxying over SSL, I would like to be able to set the context to VERIFY\_PEER and to provide my own CA file. Right now nginx uses the OpenSSL default of VERIFY\_NONE. There appears to be some code around th…

---

## [Decode url in rewrite](https://www.ruby-forum.com/t/decode-url-in-rewrite/211663)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [September 12, 2011, 9:23pm UTC](https://www.ruby-forum.com/t/decode-url-in-rewrite/211663 "2011-09-12T21:23:56Z")

</div>

Hey guys, I am trying to solve a specific problem I have, but have not succeded. Users would access a link like this: http://mysite.com/24234234?key=3123&url=http%3A//mailee.me%3Fname%3Djohn%26code%3D123 This is a no…

---

## [Double free or corruption](https://www.ruby-forum.com/t/double-free-or-corruption/211726)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [September 12, 2011, 4:23pm UTC](https://www.ruby-forum.com/t/double-free-or-corruption/211726 "2011-09-12T16:23:03Z")

</div>

Hello, after start nginx error.log contains : \*\*\* glibc detected \*\*\* nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf: double free or corruption (out): 0x09f24128 \*\*\* ======= Bac…

---

## [Too many open files](https://www.ruby-forum.com/t/too-many-open-files/175290)

<div class="topic-metadata">

**Author:** [@iberci](https://www.ruby-forum.com/u/iberci)\
**Replies:** 11\
**Last updated:** [September 12, 2011, 4:11pm UTC](https://www.ruby-forum.com/t/too-many-open-files/175290 "2011-09-12T16:11:54Z")

</div>

how to handle? 2009/09/10 10:09:30 \[alert\] 9691#0: accept() failed (24: Too many open files)

---

## [Problems with mediawiki behind nginx / apache (redirects to wrong url)](https://www.ruby-forum.com/t/problems-with-mediawiki-behind-nginx-apache-redirects-to-wrong-url/211710)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [September 11, 2011, 8:46pm UTC](https://www.ruby-forum.com/t/problems-with-mediawiki-behind-nginx-apache-redirects-to-wrong-url/211710 "2011-09-11T20:46:07Z")

</div>

Hi, I’m having a little trouble to get Mediawiki working in my nginx setup. The problem is very probably the configuration of Mediawiki, but the Help pages about Mediawiki don’t mention nginx. So I thought I ask here…

---

## [Memory leaks on nginx / php-fpm](https://www.ruby-forum.com/t/memory-leaks-on-nginx-php-fpm/211696)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [September 11, 2011, 6:48pm UTC](https://www.ruby-forum.com/t/memory-leaks-on-nginx-php-fpm/211696 "2011-09-11T18:48:34Z")

</div>

hi guys, i have a serious problem that i can’t make nor heads nor tails of. i am using nginx 1.0.6 with php 5.2.17 + fpm. i run a gallery2 image gallery, pretty busy, and when i redirected some traffic from the old s…

---

## ["port\_in\_redirect off" not working](https://www.ruby-forum.com/t/port-in-redirect-off-not-working/211671)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [September 10, 2011, 3:13pm UTC](https://www.ruby-forum.com/t/port-in-redirect-off-not-working/211671 "2011-09-10T15:13:10Z")

</div>

Hello, I’m running nginx/1.0.5 behing Varnish and serving up static html. Whenever I visit a URL which is a directory but without a trailing slash, e.g. /blah, it redirects to the non-80 port which nginx is running o…

---

## [Re: block ip/subnet at socket lvl](https://www.ruby-forum.com/t/re-block-ip-subnet-at-socket-lvl/211655)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [September 9, 2011, 11:47pm UTC](https://www.ruby-forum.com/t/re-block-ip-subnet-at-socket-lvl/211655 "2011-09-09T23:47:37Z")

</div>

Hello, I think that out of nginx scope. On 7 Sep 2011 14:42, “arleybls” removed\_email\_address@domain.invalid wrote: Cheers, \_\_Jr Posted at Nginx Forum: block ip/subnet at socket lvl

---

## [Nginx uid decoding using Base64.decode64](https://www.ruby-forum.com/t/nginx-uid-decoding-using-base64-decode64/211651)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [September 9, 2011, 10:33pm UTC](https://www.ruby-forum.com/t/nginx-uid-decoding-using-base64-decode64/211651 "2011-09-09T22:33:58Z")

</div>

Hi, I was facing a problem while decoding a nginx generated uid using ruby. The uid which I get from nginx cookie is “CqCx7E5qMNUxrmAUAwMJAg==” and when I try to decode this using Base64.decode64(“CqCx7E5qMNUxrmAUAw…

---

## [Beginner questions about proxy configuration and white space](https://www.ruby-forum.com/t/beginner-questions-about-proxy-configuration-and-white-space/211604)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 7\
**Last updated:** [September 9, 2011, 10:05pm UTC](https://www.ruby-forum.com/t/beginner-questions-about-proxy-configuration-and-white-space/211604 "2011-09-09T22:05:38Z")

</div>

Hello, I have installed nginx on my personal computer and would like to use it as a proxy to force authentication via modified http headers in various browsers. There’s an add-on in firefox to do this, but none for Ch…

---

## [How to read http\_userid's Base64 encoded userid from Ruby?](https://www.ruby-forum.com/t/how-to-read-http-userids-base64-encoded-userid-from-ruby/183170)

<div class="topic-metadata">

**Author:** [@Sven\_CSKoehler](https://www.ruby-forum.com/u/Sven_CSKoehler)\
**Replies:** 3\
**Last updated:** [September 9, 2011, 9:29pm UTC](https://www.ruby-forum.com/t/how-to-read-http-userids-base64-encoded-userid-from-ruby/183170 "2011-09-09T21:29:20Z")

</div>

Hey, I am using the http user id module and have not yet figured out how I can read the base64 encoded cookie from Ruby. It seems like nginx uses a different form of base64 than Ruby does… Example: | uid value = E…

---

## ["48: Address already in use" error](https://www.ruby-forum.com/t/48-address-already-in-use-error/211646)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [September 9, 2011, 7:52pm UTC](https://www.ruby-forum.com/t/48-address-already-in-use-error/211646 "2011-09-09T19:52:36Z")

</div>

This is the error message I get when I try to run nginx: nginx: \[emerg\] bind() to 0.0.0.0:80 failed (48: Address already in use) nginx: \[emerg\] bind() to 0.0.0.0:80 failed (48: Address already in use) nginx: \[emerg\] b…

---

## [Encoded slashes in URL with proxy = trouble?](https://www.ruby-forum.com/t/encoded-slashes-in-url-with-proxy-trouble/211643)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [September 9, 2011, 5:07pm UTC](https://www.ruby-forum.com/t/encoded-slashes-in-url-with-proxy-trouble/211643 "2011-09-09T17:07:18Z")

</div>

Hi! Nginx is in front of the RabbitMQ management extension. Some of the URLs the extension generates contain en embedded slash character (%2F): http://somehost/#/queues/%2F/events The encoded slash represents the vho…

---

## [Seg fault with 1.0.6](https://www.ruby-forum.com/t/seg-fault-with-1-0-6/211632)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [September 9, 2011, 11:06am UTC](https://www.ruby-forum.com/t/seg-fault-with-1-0-6/211632 "2011-09-09T11:06:30Z")

</div>

Hi, yesterday evening both servers with nginx 1.0.6 set faulted within 10 minutes, i suspect a modified header or something. Sep 8 21:33:37 andromeda-1 kernel: \[1223057.855838\] nginx\[28406\]: segfault at 8 ip 0000000…

---

## [Closed keepalive connection](https://www.ruby-forum.com/t/closed-keepalive-connection/167042)

<div class="topic-metadata">

**Author:** [@AMP\_Admin](https://www.ruby-forum.com/u/AMP_Admin)\
**Replies:** 3\
**Last updated:** [September 9, 2011, 7:04am UTC](https://www.ruby-forum.com/t/closed-keepalive-connection/167042 "2011-09-09T07:04:17Z")

</div>

I just can’t seem to get rid of my logs filling up with ‘closed keepalive connection’. Thoughts?

---

## [Problem with updated nginx](https://www.ruby-forum.com/t/problem-with-updated-nginx/211191)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [September 7, 2011, 10:57pm UTC](https://www.ruby-forum.com/t/problem-with-updated-nginx/211191 "2011-09-07T22:57:09Z")

</div>

Hi All, I have run nginx on OpenBSD for several years without problems. Recently I upgraded to a new OpenBSD and with that to a new nginx. I went from nginx 0.7.64 to 0.8.53p5 nginx still works but I ran into a probl…

---

## [Block ip/subnet at socket lvl](https://www.ruby-forum.com/t/block-ip-subnet-at-socket-lvl/211574)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [September 7, 2011, 4:42pm UTC](https://www.ruby-forum.com/t/block-ip-subnet-at-socket-lvl/211574 "2011-09-07T16:42:19Z")

</div>

Currently Nginx can block IP on application level and thus send a 403 forbidden message back to the client. I wonder if there’s a way to block any request at the socket level, preferably not even sending a FIN message…

---

## [Add header on custom error page](https://www.ruby-forum.com/t/add-header-on-custom-error-page/211552)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [September 7, 2011, 4:08am UTC](https://www.ruby-forum.com/t/add-header-on-custom-error-page/211552 "2011-09-07T04:08:34Z")

</div>

Hi, i’m trying to add a ‘X-ua-compatible’ header on a custom 444 error page like below. but this does not work. do you have any suggestions on how to do this? Any advise will be appreciated. Thanks. error\_page 44…

---

## [400 bad request errors - Firefox and Chrome](https://www.ruby-forum.com/t/400-bad-request-errors-firefox-and-chrome/211531)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [September 6, 2011, 8:13pm UTC](https://www.ruby-forum.com/t/400-bad-request-errors-firefox-and-chrome/211531 "2011-09-06T20:13:41Z")

</div>

Hello. The access.log, have multiples lines similar to: \[06/Sep/2011:11:05:32 +0500\] “-” 400 0 “-” “-” “-” These are only created when browsing with Firefox or Chrome, do not register these errors if you use IExplore…

---

## [Nginx-1.1.2](https://www.ruby-forum.com/t/nginx-1-1-2/211486)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [September 6, 2011, 7:06pm UTC](https://www.ruby-forum.com/t/nginx-1-1-2/211486 "2011-09-06T19:06:57Z")

</div>

Changes with nginx 1.1.2 05 Sep 2011 \*) Change: now if total size of all ranges is greater than source response size, then nginx disables ranges and returns just the source …

---

## [Proxy with header If-Modified-Since](https://www.ruby-forum.com/t/proxy-with-header-if-modified-since/211524)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [September 6, 2011, 5:27pm UTC](https://www.ruby-forum.com/t/proxy-with-header-if-modified-since/211524 "2011-09-06T17:27:41Z")

</div>

hi all, I find that when the cache is expired,nginx request completely to backend for fresh cache even the file wasn’t modified.Could nginx request to backend with header “If-Modified-Since” when the cache is expired…

---

## [Nginx not gzipping php output](https://www.ruby-forum.com/t/nginx-not-gzipping-php-output/211520)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [September 6, 2011, 4:27pm UTC](https://www.ruby-forum.com/t/nginx-not-gzipping-php-output/211520 "2011-09-06T16:27:40Z")

</div>

Nginx isn’t gzipping php pages, but I don’t know why? I’m using the Audits tab in Google Chrome Developer tools to determine that the pages aren’t being gzipped. My config: nginx version: nginx/0.8.52 built by gcc 4…

---

## [Old versions of Nginx](https://www.ruby-forum.com/t/old-versions-of-nginx/211522)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [September 6, 2011, 4:05pm UTC](https://www.ruby-forum.com/t/old-versions-of-nginx/211522 "2011-09-06T16:05:58Z")

</div>

Hi there I’m trying to work with some third-party modules, and it seems they need very specific point releases of nginx in order to work correctly. e.g. the handlersocket module here; https://github.com/akalend/ngx\_h…

---

## [Content-Length header missing after proxying](https://www.ruby-forum.com/t/content-length-header-missing-after-proxying/211021)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [September 6, 2011, 4:04pm UTC](https://www.ruby-forum.com/t/content-length-header-missing-after-proxying/211021 "2011-09-06T16:04:21Z")

</div>

I have nginx configured to proxy to an upstream using the following in nginx.conf: http { upstream app { server localhost:8080; } server { listen 80; location / { proxy\_pass http://app; # proxy\_pa…

---

## [Nginx 1.0.2 AIO problem with open\_file\_cache](https://www.ruby-forum.com/t/nginx-1-0-2-aio-problem-with-open-file-cache/211417)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [September 6, 2011, 11:41am UTC](https://www.ruby-forum.com/t/nginx-1-0-2-aio-problem-with-open-file-cache/211417 "2011-09-06T11:41:31Z")

</div>

Hello everybody. I recently have had some problem with AIO support and need some help or advice on it. With AIO on, everything was OK. But when I enabled open\_file\_cache, nginx frequently closed client connection di…

---

## [Issue with If-Range header and X-Accel-Redirect requests with upstream Last-Modified header](https://www.ruby-forum.com/t/issue-with-if-range-header-and-x-accel-redirect-requests-with-upstream-last-modified-header/211507)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [September 6, 2011, 9:01am UTC](https://www.ruby-forum.com/t/issue-with-if-range-header-and-x-accel-redirect-requests-with-upstream-last-modified-header/211507 "2011-09-06T09:01:36Z")

</div>

Hi, I have nginx 1.0.5 set up as a proxy in front of a Ruby/Ramaze application, using X-Accel-Redirect to efficiently handle sending large binary files by handing those transfers over to nginx. Range requests against…

---

## [Nginx-1.0.6](https://www.ruby-forum.com/t/nginx-1-0-6/211210)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [September 6, 2011, 4:54am UTC](https://www.ruby-forum.com/t/nginx-1-0-6/211210 "2011-09-06T04:54:59Z")

</div>

Changes with nginx 1.0.6 29 Aug 2011 \*) Feature: cache loader run time decrease. \*) Feature: loading time decrease of configuration with large number of HTTPS sites. \*) Feat…

---

## [Re: Can't fix "No input file specified." with php-fastcgi](https://www.ruby-forum.com/t/re-cant-fix-no-input-file-specified-with-php-fastcgi/211461)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [September 5, 2011, 8:21pm UTC](https://www.ruby-forum.com/t/re-cant-fix-no-input-file-specified-with-php-fastcgi/211461 "2011-09-05T20:21:53Z")

</div>

What aplication are you using? I mean with php?

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

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