# Server

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

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

---

## [Try\_files breaking index](https://www.ruby-forum.com/t/try-files-breaking-index/180081)

<div class="topic-metadata">

**Author:** [@Marcos\_N](https://www.ruby-forum.com/u/Marcos_N)\
**Replies:** 2\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/try-files-breaking-index/180081 "2009-12-19T15:25:38Z")

</div>

I can access my site using /index.php?q=node/1 or /?q=node/1 When I add the code below, /?q=node/1 stop working: location / { index index.php index.htm index.html; try\_files $uri /\_cache$uri /index.php; } why? Ma…

---

## [Rotating access.log and error.log](https://www.ruby-forum.com/t/rotating-access-log-and-error-log/180437)

<div class="topic-metadata">

**Author:** [@Danny\_Trinh](https://www.ruby-forum.com/u/Danny_Trinh)\
**Replies:** 2\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/rotating-access-log-and-error-log/180437 "2009-12-19T15:25:38Z")

</div>

nginx mailing list removed\_email\_address@domain.invalid http://nginx.org/mailman/listinfo/nginx

---

## [Total novice regarding nginx](https://www.ruby-forum.com/t/total-novice-regarding-nginx/180441)

<div class="topic-metadata">

**Author:** [@ex-para](https://www.ruby-forum.com/u/ex-para)\
**Replies:** 3\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/total-novice-regarding-nginx/180441 "2009-12-19T15:25:38Z")

</div>

I am a total novice and know little of servers and nothing of nginx, having said that I have downloaded nginx in ubuntu 8.04 and got to Welcome to nginx on the laptop screen and the folder is in /var/www/. Unless some…

---

## [Incorrect content-length with proxy](https://www.ruby-forum.com/t/incorrect-content-length-with-proxy/180442)

<div class="topic-metadata">

**Author:** [@Dusty\_Doris](https://www.ruby-forum.com/u/Dusty_Doris)\
**Replies:** 0\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/incorrect-content-length-with-proxy/180442 "2009-12-19T15:25:38Z")

</div>

I am testing nginx as a replacement to apache for proxying to a backend app server and serving up the static files. We are using the upstream module, with a basic configuration. In our app, we handle file uploads th…

---

## [Random Error Pages to be served using nginx](https://www.ruby-forum.com/t/random-error-pages-to-be-served-using-nginx/180138)

<div class="topic-metadata">

**Author:** [@harish\_sri](https://www.ruby-forum.com/u/harish_sri)\
**Replies:** 1\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/random-error-pages-to-be-served-using-nginx/180138 "2009-12-19T15:25:38Z")

</div>

Hi all, I’m looking for a way to serve random error pages for 504/502 errors. In addition i also want the error pages to be served based on the $request\_uri. Something like this: When this URL is requested: http…

---

## [Nginx log timestamp](https://www.ruby-forum.com/t/nginx-log-timestamp/180438)

<div class="topic-metadata">

**Author:** [@keepwalking](https://www.ruby-forum.com/u/keepwalking)\
**Replies:** 2\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/nginx-log-timestamp/180438 "2009-12-19T15:25:38Z")

</div>

Hello. It currently have this custom log format: log\_format js ‘$remote\_addr \[$time\_local\] $request $country $geoip\_region’; It is possible to get the unix timestamp ? Ex: 1260538968 ? Posted at Nginx Forum:

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/180411)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 11\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/no-subject/180411 "2009-12-19T15:25:37Z")

</div>

I’m going to write several introduction articles about nginx. Here is the first draft: http://nginx.org/docs/http/request\_processing.html Please send me feedback privately about my English langauge and style errors. …

---

## [NGX\_HTTP\_SUBREQUEST\_WAITED argument to ngx\_http\_subrequest?](https://www.ruby-forum.com/t/ngx-http-subrequest-waited-argument-to-ngx-http-subrequest/180070)

<div class="topic-metadata">

**Author:** [@bdmcnitt](https://www.ruby-forum.com/u/bdmcnitt)\
**Replies:** 2\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/ngx-http-subrequest-waited-argument-to-ngx-http-subrequest/180070 "2009-12-19T15:25:37Z")

</div>

What does the NGX\_HTTP\_SUBREQUEST\_WAITED argument indicate to ngx\_http\_subrequest? I am using the ngx\_zip\_module, and experimenting with generating a file that is composed of hundreds of sub-requests. I think that ma…

---

## [Nginx (0.8.29 here) paired with http\_auth\_pam\_module-1.1](https://www.ruby-forum.com/t/nginx-0-8-29-here-paired-with-http-auth-pam-module-1-1/180433)

<div class="topic-metadata">

**Author:** [@Tobias\_L](https://www.ruby-forum.com/u/Tobias_L)\
**Replies:** 1\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/nginx-0-8-29-here-paired-with-http-auth-pam-module-1-1/180433 "2009-12-19T15:25:37Z")

</div>

Hi Sergio and everyone on the List Been using your http auth pam module for quite some time now, always worked like a charm. At least starting with nginx version 0.8.29 it seems it just doesn’t work anymore. (gonna i…

---

## [Passing params/variables to upstream, similar to FCGI?](https://www.ruby-forum.com/t/passing-params-variables-to-upstream-similar-to-fcgi/180434)

<div class="topic-metadata">

**Author:** [@phillipoertel](https://www.ruby-forum.com/u/phillipoertel)\
**Replies:** 1\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/passing-params-variables-to-upstream-similar-to-fcgi/180434 "2009-12-19T15:25:37Z")

</div>

Is it possible to pass parameters/variables to upstream servers, similar to how it is done with FastCGI? For example, if one had a number of WSGI upstream servers and one wanted to use the Nginx GeoIP module to set so…

---

## [Troubleshoot rewrite log](https://www.ruby-forum.com/t/troubleshoot-rewrite-log/180012)

<div class="topic-metadata">

**Author:** [@myschizobuddy](https://www.ruby-forum.com/u/myschizobuddy)\
**Replies:** 5\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/troubleshoot-rewrite-log/180012 "2009-12-19T15:25:37Z")

</div>

is there a rewrite log file that shows what is the rewrite engine doing, what is it trying to match and failing etc

---

## [Getting file upload problem, is this an nginx problem?](https://www.ruby-forum.com/t/getting-file-upload-problem-is-this-an-nginx-problem/178371)

<div class="topic-metadata">

**Author:** [@mojipittan](https://www.ruby-forum.com/u/mojipittan)\
**Replies:** 5\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/getting-file-upload-problem-is-this-an-nginx-problem/178371 "2009-12-19T15:25:37Z")

</div>

I’m getting error the following message when uploading a file on Drupal. “An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (2 MB) that this server supports.” the files I am uplo…

---

## [Alias](https://www.ruby-forum.com/t/alias/180083)

<div class="topic-metadata">

**Author:** [@Marcos\_N](https://www.ruby-forum.com/u/Marcos_N)\
**Replies:** 2\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/alias/180083 "2009-12-19T15:25:37Z")

</div>

I want to create a special url that makes some scripts available to all sites. All my sites are located at /var/www/\<domain.name\>/ And I have a directory at /var/www/\_qi/ with my special scripts. I want that on every…

---

## [How to do this?](https://www.ruby-forum.com/t/how-to-do-this/180435)

<div class="topic-metadata">

**Author:** [@Glen\_L](https://www.ruby-forum.com/u/Glen_L)\
**Replies:** 1\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/how-to-do-this/180435 "2009-12-19T15:25:37Z")

</div>

I have a domain called aaa.com I also have a website at AAA Sorry Page What I need to do is, If someone access aaa.com, it will be redirected to AAA Sorry Page or AAA Sorry Page I’ve tried location / { …

---

## [Unusual formatting and truncated filenames in directory listing](https://www.ruby-forum.com/t/unusual-formatting-and-truncated-filenames-in-directory-listing/180430)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/unusual-formatting-and-truncated-filenames-in-directory-listing/180430 "2009-12-19T15:25:36Z")

</div>

Howdy, It seems the autoindex module doesn’t like to create proper directory listings when filenames with non-ASCII characters are listed. Please visit http://thegodlikehobo.org/tmp/ for a few examples. The contents …

---

## [Fastcgi and index](https://www.ruby-forum.com/t/fastcgi-and-index/180424)

<div class="topic-metadata">

**Author:** [@allins](https://www.ruby-forum.com/u/allins)\
**Replies:** 1\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/fastcgi-and-index/180424 "2009-12-19T15:25:36Z")

</div>

Have nginx in from of an application server where / or directory / if the index doesn’t exist needs to be sent to backend… right now i’m doing this to get it to work sort of location / { index no; try\_files $uri…

---

## [Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs](https://www.ruby-forum.com/t/fast-cgi-spawn-fcgi-php-cgi-crashes-dies-hangs/180423)

<div class="topic-metadata">

**Author:** [@miradev](https://www.ruby-forum.com/u/miradev)\
**Replies:** 40\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/fast-cgi-spawn-fcgi-php-cgi-crashes-dies-hangs/180423 "2009-12-19T15:25:36Z")

</div>

Apologies if this is too off topic. My problem is not directly related to nginx. We’ve been running nginx + spawn-fcgi for 6 months without any issues. Until one morning I come in and all our sites are down because th…

---

## [Large delays between upstream\_response\_time and the proxy's runtime](https://www.ruby-forum.com/t/large-delays-between-upstream-response-time-and-the-proxys-runtime/180432)

<div class="topic-metadata">

**Author:** [@Zev\_B](https://www.ruby-forum.com/u/Zev_B)\
**Replies:** 0\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/large-delays-between-upstream-response-time-and-the-proxys-runtime/180432 "2009-12-19T15:25:36Z")

</div>

Hello, We are running into a problem where mongrel/unicorn’s runtime can be significantly different from nginx’s upstream response time. This means we can wind up with odd delays and excessive request queuing if the …

---

## [A question of URL rewrite](https://www.ruby-forum.com/t/a-question-of-url-rewrite/180429)

<div class="topic-metadata">

**Author:** [@rayallenwu](https://www.ruby-forum.com/u/rayallenwu)\
**Replies:** 0\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/a-question-of-url-rewrite/180429 "2009-12-19T15:25:36Z")

</div>

Hi, I hope to rewrite sin.jsp?code=111&x=2 to sin/111.htm I tried the two ways below but it is still failed. Please help me out. Thanks very much! rewrite “^/sin.jsp?code=(\[0-9\]+)&x=(\[0-9\]+)$” /sin/$1.htm last; …

---

## [Questions on proper use of proxy\_cache for Wordpress](https://www.ruby-forum.com/t/questions-on-proper-use-of-proxy-cache-for-wordpress/180427)

<div class="topic-metadata">

**Author:** [@nerdgrind](https://www.ruby-forum.com/u/nerdgrind)\
**Replies:** 2\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/questions-on-proper-use-of-proxy-cache-for-wordpress/180427 "2009-12-19T15:25:35Z")

</div>

I have a Wordpress blog I’d like to cache files for in the built-in Nginx cache. I’m not completely sure what is cached, or even how to find out. I have WP Super Cache that generates .html files, and I would like to c…

---

## [Rewriting/proxy\_pass example](https://www.ruby-forum.com/t/rewriting-proxy-pass-example/180426)

<div class="topic-metadata">

**Author:** [@goldfita](https://www.ruby-forum.com/u/goldfita)\
**Replies:** 3\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/rewriting-proxy-pass-example/180426 "2009-12-19T15:25:35Z")

</div>

my goal is the following i want requests that come in this format… http://d1.example.com http://d2.example.com . . http://dn.example.com to proxy through to my web server as http://hardcode.example.com/?site=d1 h…

---

## [Proxy timeouts as milliseconds?](https://www.ruby-forum.com/t/proxy-timeouts-as-milliseconds/180428)

<div class="topic-metadata">

**Author:** [@dobe](https://www.ruby-forum.com/u/dobe)\
**Replies:** 3\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/proxy-timeouts-as-milliseconds/180428 "2009-12-19T15:25:35Z")

</div>

hi all does anybody know if it is possible to set millisecond values for: proxy\_connect\_timeout proxy\_send\_timeout proxy\_read\_timeout my usecase is to have fallbacks for requests that take longer than abou…

---

## [Nginx proxy-caching Apache autoindex](https://www.ruby-forum.com/t/nginx-proxy-caching-apache-autoindex/180420)

<div class="topic-metadata">

**Author:** [@christogouws](https://www.ruby-forum.com/u/christogouws)\
**Replies:** 4\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/nginx-proxy-caching-apache-autoindex/180420 "2009-12-19T15:25:34Z")

</div>

I’m having difficulty getting nginx to proxy in front of a Apache server, the Apache server displays a auto generated directory list, but when I try from nginx all I get is a 403 error message. Is there some kind of …

---

## [Mime type text/plain](https://www.ruby-forum.com/t/mime-type-text-plain/179882)

<div class="topic-metadata">

**Author:** [@helmi](https://www.ruby-forum.com/u/helmi)\
**Replies:** 6\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/mime-type-text-plain/179882 "2009-12-19T15:25:33Z")

</div>

Hi, i’m trying to get some files delivered via nginx. These files are textfiles containing HTML code. They don’t have any file extension (and i can’t change that due to special reasons). I’d like to deliver them with…

---

## [Server level url rewrite & config rewrite or internal redirection cycle](https://www.ruby-forum.com/t/server-level-url-rewrite-config-rewrite-or-internal-redirection-cycle/179854)

<div class="topic-metadata">

**Author:** [@etetet](https://www.ruby-forum.com/u/etetet)\
**Replies:** 8\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/server-level-url-rewrite-config-rewrite-or-internal-redirection-cycle/179854 "2009-12-19T15:25:33Z")

</div>

Hi, I am using “nginx version: nginx/0.7.64”, the latest stable version. I notice that rewrite on the server level won’t respect the ‘break’ or ‘last’ flag. Is this a feature or a bug? According to the module doc, it …

---

## [Feature Request for proxy\_ignore\_headers](https://www.ruby-forum.com/t/feature-request-for-proxy-ignore-headers/180419)

<div class="topic-metadata">

**Author:** [@nerdgrind](https://www.ruby-forum.com/u/nerdgrind)\
**Replies:** 4\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/feature-request-for-proxy-ignore-headers/180419 "2009-12-19T15:25:33Z")

</div>

Would like to see proxy\_ignore\_headers have the option to set it to “any” header, or config specific like: Vary WP-Super-Cache X-Pingback All the best, Todd Posted at Nginx Forum:

---

## [Nginx and libatomic](https://www.ruby-forum.com/t/nginx-and-libatomic/179871)

<div class="topic-metadata">

**Author:** [@pcdinh](https://www.ruby-forum.com/u/pcdinh)\
**Replies:** 1\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/nginx-and-libatomic/179871 "2009-12-19T15:25:32Z")

</div>

Hi, I tried to configure nginx 0.8.29 with libatomic 1.2 (manually built and installed) by specifying –with-libatomic=/usr/local/lib (=\> /usr/local/lib/libatomic\_ops.a) OR –with-libatomic=…/libatomic\_ops-1.2 (=\> s…

---

## [Is there a way to avoid output body when a request is calling for a vhost that not exist?](https://www.ruby-forum.com/t/is-there-a-way-to-avoid-output-body-when-a-request-is-calling-for-a-vhost-that-not-exist/179860)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/is-there-a-way-to-avoid-output-body-when-a-request-is-calling-for-a-vhost-that-not-exist/179860 "2009-12-19T15:25:32Z")

</div>

is there a way to avoid output body when a request is calling for a vhost that not exist? Normally when user send a request to nginx server for a server name doesn’t exits on nginx server, nginx will reply “Bad Host…

---

## [Ngx\_memc: an extended version of ngx\_memcached that supports set, add, delete, and many more command](https://www.ruby-forum.com/t/ngx-memc-an-extended-version-of-ngx-memcached-that-supports-set-add-delete-and-many-more-command/180418)

<div class="topic-metadata">

**Author:** [@agentzh](https://www.ruby-forum.com/u/agentzh)\
**Replies:** 0\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/ngx-memc-an-extended-version-of-ngx-memcached-that-supports-set-add-delete-and-many-more-command/180418 "2009-12-19T15:25:32Z")

</div>

Hi, folks! I’m happy to announce the first release of the ngx\_memc module, an extended version of the standard “memcached” module that supports almost the whole memcached TCP protocol: http://wiki.nginx.org/NginxHttp…

---

## [Major updates to ngx\_chunkin: lots of bug fixes and beginning of keep-alive support](https://www.ruby-forum.com/t/major-updates-to-ngx-chunkin-lots-of-bug-fixes-and-beginning-of-keep-alive-support/180413)

<div class="topic-metadata">

**Author:** [@agentzh](https://www.ruby-forum.com/u/agentzh)\
**Replies:** 1\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/major-updates-to-ngx-chunkin-lots-of-bug-fixes-and-beginning-of-keep-alive-support/180413 "2009-12-19T15:25:32Z")

</div>

Hi, folks! Prompted by the bug reports from one of my users, the J guy, I’ve made lots of improvements into the ngx\_chunkin module: http://wiki.nginx.org/NginxHttpChunkinModule Please see the change log for the new v…

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

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