# Server

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

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

---

## [Nginx 0.7.59 open\_file\_cache and NFS](https://www.ruby-forum.com/t/nginx-0-7-59-open-file-cache-and-nfs/169930)

<div class="topic-metadata">

**Author:** [@andan\_andan](https://www.ruby-forum.com/u/andan_andan)\
**Replies:** 6\
**Last updated:** [June 10, 2009, 1:39pm UTC](https://www.ruby-forum.com/t/nginx-0-7-59-open-file-cache-and-nfs/169930 "2009-06-10T13:39:48Z")

</div>

Hello. We have two nginx serving static objects from a shared NFS partition, and we are using open\_file\_cache for performance purposes: With nginx 0.6.x, when the developers uploads files, during a few seconds (less …

---

## [Question about proxy cache](https://www.ruby-forum.com/t/question-about-proxy-cache/169823)

<div class="topic-metadata">

**Author:** [@MichaSSSSSJaszczyk](https://www.ruby-forum.com/u/MichaSSSSSJaszczyk)\
**Replies:** 1\
**Last updated:** [June 10, 2009, 1:08pm UTC](https://www.ruby-forum.com/t/question-about-proxy-cache/169823 "2009-06-10T13:08:44Z")

</div>

Hey, I’m having some problems with proxy\_cache. Upstream responds with Cache-Control and Expires headers set to 30 days. My Nginx is configured like this: proxy\_cache\_path /var/lib/storage levels=2:2 keys\_zone=st…

---

## [Nginx rewrite host](https://www.ruby-forum.com/t/nginx-rewrite-host/160032)

<div class="topic-metadata">

**Author:** [@Glen\_L](https://www.ruby-forum.com/u/Glen_L)\
**Replies:** 9\
**Last updated:** [June 10, 2009, 11:35am UTC](https://www.ruby-forum.com/t/nginx-rewrite-host/160032 "2009-06-10T11:35:34Z")

</div>

Hello! How can I create this rule If host = 127.0.0.1, 127.0.0.2 Do nothing If host != 127.0.0.1, 127.0.0.2 Rewrite bla bla bla Thank you for any help

---

## [Drupal issues with try\_files](https://www.ruby-forum.com/t/drupal-issues-with-try-files/169906)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 0\
**Last updated:** [June 10, 2009, 4:58am UTC](https://www.ruby-forum.com/t/drupal-issues-with-try-files/169906 "2009-06-10T04:58:45Z")

</div>

I’m having an issue here. I was using this shorthand: try\_files $uri $uri/ /index.php?q=$uri&$args; which would mean /about is /index.php?q=/about However, in the past, the rewrite is like this (and works great): if …

---

## [Flv streaming and proxy\_pass](https://www.ruby-forum.com/t/flv-streaming-and-proxy-pass/160676)

<div class="topic-metadata">

**Author:** [@Karolis](https://www.ruby-forum.com/u/Karolis)\
**Replies:** 16\
**Last updated:** [June 9, 2009, 11:52pm UTC](https://www.ruby-forum.com/t/flv-streaming-and-proxy-pass/160676 "2009-06-09T23:52:27Z")

</div>

hi list, I am using nginx / apache combination to stream flv files. Nginx serves static files and forwards dynamic requests to apache/mod\_php. Request flow would be as follows: client requests some file nginx rewri…

---

## [Hotlink Protection Problem](https://www.ruby-forum.com/t/hotlink-protection-problem/169822)

<div class="topic-metadata">

**Author:** [@jerleung](https://www.ruby-forum.com/u/jerleung)\
**Replies:** 2\
**Last updated:** [June 9, 2009, 2:41pm UTC](https://www.ruby-forum.com/t/hotlink-protection-problem/169822 "2009-06-09T14:41:37Z")

</div>

I was trying to prevent hotlinking for http://mydomain.com/photos/ then I use the following in nginx.conf location ~ /photos/ { valid\_referers none blocked server\_names; …

---

## [Rewriting file uploads](https://www.ruby-forum.com/t/rewriting-file-uploads/169832)

<div class="topic-metadata">

**Author:** [@Nime](https://www.ruby-forum.com/u/Nime)\
**Replies:** 0\
**Last updated:** [June 9, 2009, 12:43pm UTC](https://www.ruby-forum.com/t/rewriting-file-uploads/169832 "2009-06-09T12:43:06Z")

</div>

Hello, I would like to proxy\_pass all of the requests with file uploads to another server that will actually store them. Is there a way to separate POST requests with and without uploaded file data? Thanks, Emin P…

---

## [Nginx serving content - speed issues](https://www.ruby-forum.com/t/nginx-serving-content-speed-issues/169817)

<div class="topic-metadata">

**Author:** [@Payam\_C](https://www.ruby-forum.com/u/Payam_C)\
**Replies:** 3\
**Last updated:** [June 9, 2009, 8:46am UTC](https://www.ruby-forum.com/t/nginx-serving-content-speed-issues/169817 "2009-06-09T08:46:14Z")

</div>

Hey Guys, anyone run into a speed issue with nginx where the speed is greatly decreased when web object requests are (\>10K), the speed is then (\>1000 ms) Anyway to properly debug this? Im running nginx 0.7.56 cheers…

---

## [Help with Rewrite Rules for Wordpress MU with try\_files](https://www.ruby-forum.com/t/help-with-rewrite-rules-for-wordpress-mu-with-try-files/169813)

<div class="topic-metadata">

**Author:** [@Glen\_L](https://www.ruby-forum.com/u/Glen_L)\
**Replies:** 0\
**Last updated:** [June 9, 2009, 6:11am UTC](https://www.ruby-forum.com/t/help-with-rewrite-rules-for-wordpress-mu-with-try-files/169813 "2009-06-09T06:11:37Z")

</div>

Hello! I’ve successfully using nginx with rewrite rules for wordpress MU, but still using “if”. How can I make it works with try\_files? Which as I known is faster The old rewrite rules is if (-f $request\_filename) …

---

## [Nginx create directories](https://www.ruby-forum.com/t/nginx-create-directories/169788)

<div class="topic-metadata">

**Author:** [@JSSSSrSSSSme\_Loyet](https://www.ruby-forum.com/u/JSSSSrSSSSme_Loyet)\
**Replies:** 1\
**Last updated:** [June 8, 2009, 8:41pm UTC](https://www.ruby-forum.com/t/nginx-create-directories/169788 "2009-06-08T20:41:13Z")

</div>

Hi igor, I have 2 questions: 1- is there a way to disable the creation of directories if they don’t exist (like fastcgi\_temp or client\_body\_temp) and pop-up en emergency message instead ? I don’t want nginx to create …

---

## [Nginx-0.8.1](https://www.ruby-forum.com/t/nginx-0-8-1/169778)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 4\
**Last updated:** [June 8, 2009, 4:03pm UTC](https://www.ruby-forum.com/t/nginx-0-8-1/169778 "2009-06-08T16:03:06Z")

</div>

Changes with nginx 0.8.1 08 Jun 2009 \*) Feature: the "updating" parameter in "proxy\_cache\_use\_stale" and "fastcgi\_cache\_use\_stale" directives. \*) Bugfix: the "If-Modified-Sin…

---

## [Build fails when compiling with custom module... next steps?](https://www.ruby-forum.com/t/build-fails-when-compiling-with-custom-module-next-steps/169771)

<div class="topic-metadata">

**Author:** [@phillipoertel](https://www.ruby-forum.com/u/phillipoertel)\
**Replies:** 1\
**Last updated:** [June 8, 2009, 3:28pm UTC](https://www.ruby-forum.com/t/build-fails-when-compiling-with-custom-module-next-steps/169771 "2009-06-08T15:28:26Z")

</div>

Hi. I’m trying to compile nginx with a module which has worked with older versions of nginx (0.5.x I believe). The error message I’m getting isn’t very helpful: make: \*\*\* \[build\] Error 2 Is there a build log I can …

---

## [Ssl support](https://www.ruby-forum.com/t/ssl-support/169765)

<div class="topic-metadata">

**Author:** [@vanderkerkoff](https://www.ruby-forum.com/u/vanderkerkoff)\
**Replies:** 2\
**Last updated:** [June 8, 2009, 2:33pm UTC](https://www.ruby-forum.com/t/ssl-support/169765 "2009-06-08T14:33:04Z")

</div>

Hello everyone I’ve got a server running nginx/0.5.33, I’m not sure how it was installed but I’m guessing it was done via apt-get or aptitude. Would that version have ssl support built in? I should upgrade it, but th…

---

## [Nginx -- mod\_auth\_tkt](https://www.ruby-forum.com/t/nginx-mod-auth-tkt/169768)

<div class="topic-metadata">

**Author:** [@Christian\_Klinger](https://www.ruby-forum.com/u/Christian_Klinger)\
**Replies:** 0\
**Last updated:** [June 8, 2009, 1:52pm UTC](https://www.ruby-forum.com/t/nginx-mod-auth-tkt/169768 "2009-06-08T13:52:29Z")

</div>

Hello, i try to replace a existing apache, which works as a reverse proxy, with nginx. In general this seems to be not a great problem. But we use in the existing environment mod\_auth\_tkt \[1\] for authentication. One…

---

## [Upstream timed out errors](https://www.ruby-forum.com/t/upstream-timed-out-errors/169733)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [June 8, 2009, 12:30pm UTC](https://www.ruby-forum.com/t/upstream-timed-out-errors/169733 "2009-06-08T12:30:14Z")

</div>

in our nginx setup we are seeing a lot of upstream timed out errors The app is doing only about half a million pageviews a day the app has 8 backends in 3 servers ie 24 backends served from one nginx the cpu utiliza…

---

## [HT Auth Problem](https://www.ruby-forum.com/t/ht-auth-problem/169666)

<div class="topic-metadata">

**Author:** [@matt91](https://www.ruby-forum.com/u/matt91)\
**Replies:** 3\
**Last updated:** [June 8, 2009, 12:23pm UTC](https://www.ruby-forum.com/t/ht-auth-problem/169666 "2009-06-08T12:23:46Z")

</div>

I am having a problem with HT Auth where it will protect the directory and all files in it except the php files, I think this is a problem with nginx passing all php files for processing by fcgi before the authenticat…

---

## [Nginx unexpectedly returning 304 for content cached from proxy](https://www.ruby-forum.com/t/nginx-unexpectedly-returning-304-for-content-cached-from-proxy/169758)

<div class="topic-metadata">

**Author:** [@antonio](https://www.ruby-forum.com/u/antonio)\
**Replies:** 0\
**Last updated:** [June 8, 2009, 11:57am UTC](https://www.ruby-forum.com/t/nginx-unexpectedly-returning-304-for-content-cached-from-proxy/169758 "2009-06-08T11:57:54Z")

</div>

Hello! We recently started using Nginx 0.7.59 to replace Squid on a couple of our static file caching servers (Debian 5.0). However, nginx is returning “HTTP 304 Not Modified” responses for someâ€”not allâ€”of the c…

---

## [Mongrel not wanting to start... any ideas?](https://www.ruby-forum.com/t/mongrel-not-wanting-to-start-any-ideas/169687)

<div class="topic-metadata">

**Author:** [@rustybucket](https://www.ruby-forum.com/u/rustybucket)\
**Replies:** 1\
**Last updated:** [June 8, 2009, 11:12am UTC](https://www.ruby-forum.com/t/mongrel-not-wanting-to-start-any-ideas/169687 "2009-06-08T11:12:07Z")

</div>

I’m in the process of moving an old Rails app to a new server and i can’t seem to get mongrel to start. I issue the command: mongrel\_rails start and I get this: \*\* Starting Mongrel listening at 0.0.0.0:3000 \*\* Star…

---

## [Nginx1-\>nginx2-\>apache and wrong IP address in nginx2 access log](https://www.ruby-forum.com/t/nginx1-nginx2-apache-and-wrong-ip-address-in-nginx2-access-log/169682)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [June 7, 2009, 6:24pm UTC](https://www.ruby-forum.com/t/nginx1-nginx2-apache-and-wrong-ip-address-in-nginx2-access-log/169682 "2009-06-07T18:24:24Z")

</div>

Hello, I have a machine 1 with nginx as a proxy before apache, and machine2 with nginx as a proxy before apache. I am moving websites from machine1 to machine2. Because DNS still points to machine1, I need to pass tr…

---

## [Question](https://www.ruby-forum.com/t/question/169673)

<div class="topic-metadata">

**Author:** [@Wicked](https://www.ruby-forum.com/u/Wicked)\
**Replies:** 0\
**Last updated:** [June 6, 2009, 7:20pm UTC](https://www.ruby-forum.com/t/question/169673 "2009-06-06T19:20:48Z")

</div>

Hello Everybody… i have upgraded my nginx to the stable version and i have a problem (pls dont lough :p) it show me the “.php”-files first when i have a “.html”-file in the doc\_root… this was not previously. Here my …

---

## [NginxHttpSecureLinkModule](https://www.ruby-forum.com/t/nginxhttpsecurelinkmodule/169670)

<div class="topic-metadata">

**Author:** [@Adam\_KuSSSSSmierz](https://www.ruby-forum.com/u/Adam_KuSSSSSmierz)\
**Replies:** 0\
**Last updated:** [June 6, 2009, 5:10pm UTC](https://www.ruby-forum.com/t/nginxhttpsecurelinkmodule/169670 "2009-06-06T17:10:22Z")

</div>

Hi, I was try http://wiki.nginx.org/NginxHttpSecureLinkModule and I think it doesn’t work… Or I did something wrong. In configuration I’ve: location /test { secure\_link\_secret “secret”; if ($secure\_link = “”) { ret…

---

## [Problem with inheriting fastcgi params](https://www.ruby-forum.com/t/problem-with-inheriting-fastcgi-params/169609)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 10\
**Last updated:** [June 6, 2009, 6:42am UTC](https://www.ruby-forum.com/t/problem-with-inheriting-fastcgi-params/169609 "2009-06-06T06:42:37Z")

</div>

I have my normal fastcgi params in my main nginx.conf file, under server {} i.e.: fastcgi\_param QUERY\_STRING $query\_string; fastcgi\_param REQUEST\_METHOD $request\_method; fastcgi\_param CONTENT\_TYPE $content\_type; fa…

---

## [Remote\_user variable](https://www.ruby-forum.com/t/remote-user-variable/169645)

<div class="topic-metadata">

**Author:** [@Michal\_Kowalski](https://www.ruby-forum.com/u/Michal_Kowalski)\
**Replies:** 1\
**Last updated:** [June 6, 2009, 5:31am UTC](https://www.ruby-forum.com/t/remote-user-variable/169645 "2009-06-06T05:31:20Z")

</div>

hello, i’m doing different authorization method module and i want to set remote\_user variable upon success. but ngx\_http\_variable\_remote\_user in src/http/ngx\_http\_variables.c assumes basic auth method. for now i’ve a…

---

## [Upgrade nginx.net](https://www.ruby-forum.com/t/upgrade-nginx-net/169547)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 7\
**Last updated:** [June 6, 2009, 1:56am UTC](https://www.ruby-forum.com/t/upgrade-nginx-net/169547 "2009-06-06T01:56:05Z")

</div>

This is a little silly, but shouldn’t poor old nginx.net be upgraded from nginx 0.6.31 to the current stable production release? :wink:

---

## [Preserving POST data through error\_page directive?](https://www.ruby-forum.com/t/preserving-post-data-through-error-page-directive/169632)

<div class="topic-metadata">

**Author:** [@sayeo87](https://www.ruby-forum.com/u/sayeo87)\
**Replies:** 0\
**Last updated:** [June 6, 2009, 1:28am UTC](https://www.ruby-forum.com/t/preserving-post-data-through-error-page-directive/169632 "2009-06-06T01:28:02Z")

</div>

In Nginx 0.6.37, when I get a POST request, and put it through a 404 error\_page directive, when it reaches the next location the POST data is lost. I also tried a rewrite instead, like: if (!-e $request\_filename) { r…

---

## [Nginx 0.8.0 still does not support the post a static page?](https://www.ruby-forum.com/t/nginx-0-8-0-still-does-not-support-the-post-a-static-page/169561)

<div class="topic-metadata">

**Author:** [@peacock](https://www.ruby-forum.com/u/peacock)\
**Replies:** 0\
**Last updated:** [June 5, 2009, 10:15am UTC](https://www.ruby-forum.com/t/nginx-0-8-0-still-does-not-support-the-post-a-static-page/169561 "2009-06-05T10:15:40Z")

</div>

Changes with nginx 0.8.0 02 Jun 2009 \*) Feature: the "keepalive\_requests" directive. \*) Feature: the "limit\_rate\_after" directive. Thanks to Ivan Debnar. \*) Bugfix: XLST fil…

---

## [BUG? Can not fully show the big size image](https://www.ruby-forum.com/t/bug-can-not-fully-show-the-big-size-image/169414)

<div class="topic-metadata">

**Author:** [@Meng](https://www.ruby-forum.com/u/Meng)\
**Replies:** 3\
**Last updated:** [June 5, 2009, 8:32am UTC](https://www.ruby-forum.com/t/bug-can-not-fully-show-the-big-size-image/169414 "2009-06-05T08:32:55Z")

</div>

Hi all, I’m new to this community. I did days of research to setup Nginx + PHP CGI + MySQL for a website. The problem is that client browser can not show the the full image of big size. When I refresh the browser, I …

---

## [NGinx Best Practices](https://www.ruby-forum.com/t/nginx-best-practices/169545)

<div class="topic-metadata">

**Author:** [@mathew\_d](https://www.ruby-forum.com/u/mathew_d)\
**Replies:** 0\
**Last updated:** [June 5, 2009, 1:25am UTC](https://www.ruby-forum.com/t/nginx-best-practices/169545 "2009-06-05T01:25:39Z")

</div>

Hi, I created a nice topic on Serverfault for NGinx’s best practices. Hopefully it will make NGinx popular when people realise how easy it is to use =) http://serverfault.com/questions/18994/nginx-best-practices

---

## [How to disable chunked transfer-encoding](https://www.ruby-forum.com/t/how-to-disable-chunked-transfer-encoding/169512)

<div class="topic-metadata">

**Author:** [@ZhangSTony](https://www.ruby-forum.com/u/ZhangSTony)\
**Replies:** 4\
**Last updated:** [June 4, 2009, 9:00pm UTC](https://www.ruby-forum.com/t/how-to-disable-chunked-transfer-encoding/169512 "2009-06-04T21:00:56Z")

</div>

Hi I found that Nginx set chunked transfer-encoding as default, so how can I disable this transfer-encoding, because I am serving static content. And by the way, is it a little bit harmful to use chunked transfer enc…

---

## [Gzip proxied content, where?](https://www.ruby-forum.com/t/gzip-proxied-content-where/169452)

<div class="topic-metadata">

**Author:** [@nfn](https://www.ruby-forum.com/u/nfn)\
**Replies:** 2\
**Last updated:** [June 4, 2009, 4:41pm UTC](https://www.ruby-forum.com/t/gzip-proxied-content-where/169452 "2009-06-04T16:41:41Z")

</div>

Hi, What is the best practice to gzip content? In the frontend or at the backend? Wich performs better? Thanks Nuno Posted at Nginx Forum:

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

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