# Server

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

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

---

## [Help with rewrite](https://www.ruby-forum.com/t/help-with-rewrite/211464)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [September 5, 2011, 8:13pm UTC](https://www.ruby-forum.com/t/help-with-rewrite/211464 "2011-09-05T20:13:51Z")

</div>

Hi everyone, I am using a plugin for my site called VBSEO They use the following code: if ($request\_filename ~ “.php$” ) { rewrite ^/(.)$ /vbseo.php break; } if (!-e $request\_filename) { rewrite ^/(.)$ /vbseo.ph…

---

## [URL decode rewrite handling: + vs. %20](https://www.ruby-forum.com/t/url-decode-rewrite-handling-vs-20/211414)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [September 5, 2011, 12:59pm UTC](https://www.ruby-forum.com/t/url-decode-rewrite-handling-vs-20/211414 "2011-09-05T12:59:31Z")

</div>

Ubuntu Natty nginx/0.8.54 PHP 5.3.5 / FPM / FastCGI I’m just beginning to work with nginx for the first time. Converting my home server (very few hits) as an experiment for possible broader-scale testing and implem…

---

## [Nginx upload module (v 2.2.0) :: 502 Bad Gateway](https://www.ruby-forum.com/t/nginx-upload-module-v-2-2-0-502-bad-gateway/211474)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [September 5, 2011, 11:34am UTC](https://www.ruby-forum.com/t/nginx-upload-module-v-2-2-0-502-bad-gateway/211474 "2011-09-05T11:34:10Z")

</div>

HI, I have compiled newest version of nginx (nginx/1.1.1) with nginx upload module (v 2.2.0), also the example config (nginx.conf) was copied from GitHub - vkholodkov/nginx-upload-module: A module for nginx web server…

---

## [Re: Nginx upload module (v 2.2.0) :: 502 Bad Gateway](https://www.ruby-forum.com/t/re-nginx-upload-module-v-2-2-0-502-bad-gateway/211477)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [September 5, 2011, 10:55am UTC](https://www.ruby-forum.com/t/re-nginx-upload-module-v-2-2-0-502-bad-gateway/211477 "2011-09-05T10:55:12Z")

</div>

Your problem is that in your conf file /test location is going to some no existent back end Either deal with it inside nginx or have some back end listening to 8080. That is the directive causing the problem Guille…

---

## [Re: Nginx upload module (v 2.2.0) :: 502 Bad Gateway](https://www.ruby-forum.com/t/re-nginx-upload-module-v-2-2-0-502-bad-gateway/211475)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [September 5, 2011, 10:16am UTC](https://www.ruby-forum.com/t/re-nginx-upload-module-v-2-2-0-502-bad-gateway/211475 "2011-09-05T10:16:51Z")

</div>

Bad gateway is a proxy problem I have not used upload module. But try having something listen to that port, or modify the proxy directive to point to the right port. Guillermo

---

## [OpenResty Queries](https://www.ruby-forum.com/t/openresty-queries/211454)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [September 5, 2011, 9:10am UTC](https://www.ruby-forum.com/t/openresty-queries/211454 "2011-09-05T09:10:43Z")

</div>

Some quick queries about some things missing from available documentation about OpenResty Notice current version is bundled with Nginx 1.0.4. Is it possible for an end user to upgrade Nginx? I.E. can I download Ope…

---

## [Upload file problem (500 Internal Server Error)](https://www.ruby-forum.com/t/upload-file-problem-500-internal-server-error/211322)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [September 5, 2011, 8:29am UTC](https://www.ruby-forum.com/t/upload-file-problem-500-internal-server-error/211322 "2011-09-05T08:29:19Z")

</div>

HI, I’m using version: ‘nginx version: nginx/1.1.0’ While uploading file I’m getting an error: ‘500 Internal Server Error’ This is an nginx.log result: 2011/09/01 10:39:49 \[alert\] 28764#0: accept() failed (24: Too …

---

## [Can i pass $time\_local to backend server?](https://www.ruby-forum.com/t/can-i-pass-time-local-to-backend-server/211468)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [September 5, 2011, 7:40am UTC](https://www.ruby-forum.com/t/can-i-pass-time-local-to-backend-server/211468 "2011-09-05T07:40:36Z")

</div>

hi, i want set the variable $time\_local in log to the header , and then the backend server can got it like: proxy\_set\_header MY\_TIME $time\_local but i got error : unknown “time\_local” variable if i can set a variable…

---

## [Php-fpm is very very slow](https://www.ruby-forum.com/t/php-fpm-is-very-very-slow/211467)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [September 5, 2011, 7:34am UTC](https://www.ruby-forum.com/t/php-fpm-is-very-very-slow/211467 "2011-09-05T07:34:26Z")

</div>

Hi all, After upgrade from php 5.3.6 to php 5.3.8, now php-fpm is very very slow. Even I tried to roll back to php 5.3.6, it still doen’t work. And there are lots of errors in php-fpm.log, \[04-Sep-2011 12:28:27\] WARN…

---

## [PositiveSSL certificate keeps giving the untrusted issuer warnings in browser](https://www.ruby-forum.com/t/positivessl-certificate-keeps-giving-the-untrusted-issuer-warnings-in-browser/211465)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [September 5, 2011, 6:55am UTC](https://www.ruby-forum.com/t/positivessl-certificate-keeps-giving-the-untrusted-issuer-warnings-in-browser/211465 "2011-09-05T06:55:36Z")

</div>

Since I’m working on a Facebook app, the self-signed certificate I created for SSL access to my admin area is no longer useful. I grabbed a PositiveSSL cert from Comodo, but after following the instructions here ( Usi…

---

## [Upstream configuration is changed？The keyword (weight/max fail/fail timeout) is not supported?](https://www.ruby-forum.com/t/upstream-configuration-is-changed-the-keyword-weight-max-fail-fail-timeout-is-not-supported/211449)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [September 5, 2011, 2:36am UTC](https://www.ruby-forum.com/t/upstream-configuration-is-changed-the-keyword-weight-max-fail-fail-timeout-is-not-supported/211449 "2011-09-05T02:36:11Z")

</div>

Hi All： I met a configuation issue. the configuration is as following:（NGINX is V0.7.68) and upstream is enabled when compiled. I also test it in V1.0.5, the issue happens again. server { …

---

## [Http\_auth\_request\_module Instructions?](https://www.ruby-forum.com/t/http-auth-request-module-instructions/211428)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [September 5, 2011, 12:36am UTC](https://www.ruby-forum.com/t/http-auth-request-module-instructions/211428 "2011-09-05T00:36:46Z")

</div>

Is the any documentation for the http\_auth\_request\_module anywhere? Trying to find out what the configuration parameters are if any. Thanks

---

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

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [September 4, 2011, 11:14pm UTC](https://www.ruby-forum.com/t/cant-fix-no-input-file-specified-with-php-fastcgi/211456 "2011-09-04T23:14:47Z")

</div>

I’ve been trying to fix this pesky error for a couple days and no forums or anything is suggesting anything that is helping. I simply just need someone to login to my EC2 instance and figure out what’s going on. I’ve …

---

## [Archives / or question](https://www.ruby-forum.com/t/archives-or-question/211455)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [September 4, 2011, 8:02pm UTC](https://www.ruby-forum.com/t/archives-or-question/211455 "2011-09-04T20:02:43Z")

</div>

Hi, I’m new to the list, and I do not want to bother you, as I’m sure this has been posted in past please tell me where to find the archives. If for some reason someone has the answer here is my question: I’ve this s…

---

## [The lua-rds-parser Lua library and ngx\_rds\_csv nginx module](https://www.ruby-forum.com/t/the-lua-rds-parser-lua-library-and-ngx-rds-csv-nginx-module/211434)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [September 4, 2011, 5:52pm UTC](https://www.ruby-forum.com/t/the-lua-rds-parser-lua-library-and-ngx-rds-csv-nginx-module/211434 "2011-09-04T17:52:56Z")

</div>

Hello! Recently I wrote a Lua C library named lua-rds-parser for the ngx\_openresty \[1\] world that we can now efficiently parse Resty DBD Stream (RDS) formatted data generated by ngx\_drizzle \[2\] and ngx\_postgres \[3\] i…

---

## [SSL location keep redirecting to non-SSL](https://www.ruby-forum.com/t/ssl-location-keep-redirecting-to-non-ssl/211413)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [September 3, 2011, 9:51pm UTC](https://www.ruby-forum.com/t/ssl-location-keep-redirecting-to-non-ssl/211413 "2011-09-03T21:51:32Z")

</div>

Ok…my brain’s been hurting on this one tonight. My site’s been running fine on nginx for years. have SSL and non-SSL locations. PHP runs through .shtml files Working on a Facebook app and right now need to have it wor…

---

## [Performance of map directive](https://www.ruby-forum.com/t/performance-of-map-directive/211420)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [September 3, 2011, 5:50pm UTC](https://www.ruby-forum.com/t/performance-of-map-directive/211420 "2011-09-03T17:50:56Z")

</div>

Hi, I understood that if you have only strings in a map directive the access time is O(1). What if you have the hostnames directive enabled and some of the items are in the format \*.example.com? What about if you m…

---

## [Storing URI in a cookie](https://www.ruby-forum.com/t/storing-uri-in-a-cookie/211404)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [September 3, 2011, 4:43pm UTC](https://www.ruby-forum.com/t/storing-uri-in-a-cookie/211404 "2011-09-03T16:43:37Z")

</div>

I dont know why I am struggling with this so much but I need a bit of help. I am trying to redirect users to a verification page and then back to their original requested URI but because of the rewrite I lose both th…

---

## [Strange directory behaviour: rename causes 404 error](https://www.ruby-forum.com/t/strange-directory-behaviour-rename-causes-404-error/211406)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [September 3, 2011, 4:10pm UTC](https://www.ruby-forum.com/t/strange-directory-behaviour-rename-causes-404-error/211406 "2011-09-03T16:10:57Z")

</div>

Hi, I have strange behaviour. I have a directory “@docencia”. All is ok: 172.26.0.6 - - \[02/Sep/2011:22:26:10 +0200\] “GET /@docencia/ HTTP/1.1” 200 218 “https://172.26.0.3/” “Mozilla/5.0 (X11; Linux i686; rv:6.0.1) G…

---

## [How to take full advantage system memory?](https://www.ruby-forum.com/t/how-to-take-full-advantage-system-memory/211411)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [September 3, 2011, 10:45am UTC](https://www.ruby-forum.com/t/how-to-take-full-advantage-system-memory/211411 "2011-09-03T10:45:14Z")

</div>

Hi,All: My host have a very large physical memory, how to get nginx take full advantage of memory as the file system cache? Posted at Nginx Forum:

---

## [Nginx and php header + flush](https://www.ruby-forum.com/t/nginx-and-php-header-flush/211390)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [September 2, 2011, 2:00pm UTC](https://www.ruby-forum.com/t/nginx-and-php-header-flush/211390 "2011-09-02T14:00:54Z")

</div>

Hello guys, I’ve got strange problem with my webserver. I’ve got nginx and apache with php as backend www server, and now when I tryin to run this code → \<?php header('HTTP/1.x 404 Not Found'); echo "somet…

---

## [Is there a method to allow a particular user agent access to a server rule that uses the access and](https://www.ruby-forum.com/t/is-there-a-method-to-allow-a-particular-user-agent-access-to-a-server-rule-that-uses-the-access-and/211377)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [September 2, 2011, 11:35am UTC](https://www.ruby-forum.com/t/is-there-a-method-to-allow-a-particular-user-agent-access-to-a-server-rule-that-uses-the-access-and/211377 "2011-09-02T11:35:09Z")

</div>

Hello, I have a configuration in a server rule that typically only allows access by either an auth basic request or by certain ip addresses. Something along the lines of this: server { listen 80; ch…

---

## [Ngx\_lua v0.3.0 released: new regex API, request args API, header filter hooks, and more](https://www.ruby-forum.com/t/ngx-lua-v0-3-0-released-new-regex-api-request-args-api-header-filter-hooks-and-more/211378)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [September 2, 2011, 10:25am UTC](https://www.ruby-forum.com/t/ngx-lua-v0-3-0-released-new-regex-api-request-args-api-header-filter-hooks-and-more/211378 "2011-09-02T10:25:17Z")

</div>

Hello, folks! After two months’ active development of our contributors, I’m happy to announce the v0.3.0 release of our ngx\_lua module. You can get the release tarball from the download page: https://github.com/chaos…

---

## [Issue with NGINX as reverse proxy with basic auth in front of Apache with basic auth](https://www.ruby-forum.com/t/issue-with-nginx-as-reverse-proxy-with-basic-auth-in-front-of-apache-with-basic-auth/211269)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [September 2, 2011, 8:09am UTC](https://www.ruby-forum.com/t/issue-with-nginx-as-reverse-proxy-with-basic-auth-in-front-of-apache-with-basic-auth/211269 "2011-09-02T08:09:23Z")

</div>

Hello to everybody, my name is Simone Saravalli and I’m new to NGINX world. This is my problem: I set up NGINX as a reverse proxy to a backend server with Apache. On NGINX side I configured basic authentication for /…

---

## [Please open the Nginx SVN repository](https://www.ruby-forum.com/t/please-open-the-nginx-svn-repository/210469)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [September 1, 2011, 6:17pm UTC](https://www.ruby-forum.com/t/please-open-the-nginx-svn-repository/210469 "2011-09-01T18:17:01Z")

</div>

Thanks for launching the Nginx trac! It would be really great if you also open up the SVN repository with at least read-only access. That way contributors can keep their work up-to-date more easily.

---

## [Nginx and Apache killer](https://www.ruby-forum.com/t/nginx-and-apache-killer/211156)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 13\
**Last updated:** [September 1, 2011, 2:00pm UTC](https://www.ruby-forum.com/t/nginx-and-apache-killer/211156 "2011-09-01T14:00:49Z")

</div>

Following “Apache Killer” discussions and the advisory from 2011-08-24 (Advisory: Range header DoS vulnerability Apache HTTPD 2.x CVE-2011-3192) we’d like to clarify a couple of things in regards to nginx behavior ei…

---

## [EmbeddedPerlModule question](https://www.ruby-forum.com/t/embeddedperlmodule-question/211326)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [September 1, 2011, 12:31pm UTC](https://www.ruby-forum.com/t/embeddedperlmodule-question/211326 "2011-09-01T12:31:12Z")

</div>

I want to access nginx $uri variable in perl, the following is my nginx.conf worker\_processes 1; location / { add\_header "perlvar" $perlvar; empty\_gif; } } }\* \* but it doesn’t work, nginx…

---

## [Wordpress Setup (Nginx + Apache)](https://www.ruby-forum.com/t/wordpress-setup-nginx-apache/211282)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [September 1, 2011, 11:57am UTC](https://www.ruby-forum.com/t/wordpress-setup-nginx-apache/211282 "2011-09-01T11:57:52Z")

</div>

Hello fellas, I’ve been setup wordpress blog using NginX as front end and Apache as a backend. My nginx config are : http://fpaste.org/ae4M/ But, if I check the httpd and nginx log, the result(s) shows : … snip … 1…

---

## [Doubt with proxy busy buffer](https://www.ruby-forum.com/t/doubt-with-proxy-busy-buffer/211316)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [September 1, 2011, 10:17am UTC](https://www.ruby-forum.com/t/doubt-with-proxy-busy-buffer/211316 "2011-09-01T10:17:45Z")

</div>

Hi, I write a module for file download, but sometimes it will alert “the http output chain is empty while sending to client”. And I check the code, it seems that if proxy busy buffer run out, write\_filter will always…

---

## [A bug when Host header contain IPv6 address](https://www.ruby-forum.com/t/a-bug-when-host-header-contain-ipv6-address/211265)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [September 1, 2011, 5:17am UTC](https://www.ruby-forum.com/t/a-bug-when-host-header-contain-ipv6-address/211265 "2011-09-01T05:17:31Z")

</div>

For a request with an IPv6 Host header like: Host: Host: \[2001:250:1800:1::88\] The function “ngx\_http\_validate\_host” will consider the trailing “:88\]” as a port number and trim it. Therefore the value of “r-\>headers\_…

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

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