# Server

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

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

---

## [Multiple named locations in try\_files](https://www.ruby-forum.com/t/multiple-named-locations-in-try-files/180414)

<div class="topic-metadata">

**Author:** [@Oleg\_Terenchuk](https://www.ruby-forum.com/u/Oleg_Terenchuk)\
**Replies:** 4\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/multiple-named-locations-in-try-files/180414 "2009-12-19T15:25:32Z")

</div>

Hello. According to english wiki, named locations may be used for other purposes than fallback : http://wiki.nginx.org/NginxHttpCoreModule#Named\_Locations However when i tried “try\_files @tier\_ssi @tier\_php” i observ…

---

## [Enqueue incoming connections while PHP restarts](https://www.ruby-forum.com/t/enqueue-incoming-connections-while-php-restarts/180416)

<div class="topic-metadata">

**Author:** [@steffen\_w](https://www.ruby-forum.com/u/steffen_w)\
**Replies:** 1\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/enqueue-incoming-connections-while-php-restarts/180416 "2009-12-19T15:25:32Z")

</div>

Hello, it is currently possible to restart nginx without losing any incoming connections. See But what if I have to restart PHP? Is it possible to let nginx enqueue incoming connections while PHP is restarting? Kin…

---

## [Possible bug? https return truncated when use default proxy buffer size](https://www.ruby-forum.com/t/possible-bug-https-return-truncated-when-use-default-proxy-buffer-size/180417)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/possible-bug-https-return-truncated-when-use-default-proxy-buffer-size/180417 "2009-12-19T15:25:32Z")

</div>

Here is the problem I found out. Front-End https Conf: server { listen 443; … location / { proxy\_pass http://backend; proxy\_set\_header X-Forwarded-For $proxy\_add\_x\_forwarded\_for; proxy\_set\_header Hos…

---

## [Nginx securiy problem](https://www.ruby-forum.com/t/nginx-securiy-problem/179760)

<div class="topic-metadata">

**Author:** [@egerci](https://www.ruby-forum.com/u/egerci)\
**Replies:** 34\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/nginx-securiy-problem/179760 "2009-12-19T15:25:31Z")

</div>

Hello, I am using nginx for one year. Server info : 2 x 8 core - 16GB (one for web server and other for mysql) OS : linux RH 5 Nginx version : 0.8.x web application : vbulletin 3.8.4 PL1 I have experienced some…

---

## [HTTP Header Transfer-Encoding](https://www.ruby-forum.com/t/http-header-transfer-encoding/179806)

<div class="topic-metadata">

**Author:** [@sameer](https://www.ruby-forum.com/u/sameer)\
**Replies:** 3\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/http-header-transfer-encoding/179806 "2009-12-19T15:25:30Z")

</div>

Hi, I recently upgraded from nginx-0.6.36 to 0.7.62. We are setting cache friendly headers and after the upgrade we started seeing this Transfer-Encoding: chunked. This has broken caching. How can I remove this from …

---

## [Bug/suggestion: large\_client\_header\_buffers default too small. Error	Codes should be better for over](https://www.ruby-forum.com/t/bug-suggestion-large-client-header-buffers-default-too-small-error-codes-should-be-better-for-over/180415)

<div class="topic-metadata">

**Author:** [@Andrew\_Cholakian](https://www.ruby-forum.com/u/Andrew_Cholakian)\
**Replies:** 1\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/bug-suggestion-large-client-header-buffers-default-too-small-error-codes-should-be-better-for-over/180415 "2009-12-19T15:25:30Z")

</div>

I hope this is the right place to post bugs and feature suggestions. nginx has been a joy to work with, but the way it handles large headers is strange. What I’d like to propose is having requests with headers with si…

---

## [Help,why not support \*.abc.com](https://www.ruby-forum.com/t/help-why-not-support-abc-com/179800)

<div class="topic-metadata">

**Author:** [@FFCZ](https://www.ruby-forum.com/u/FFCZ)\
**Replies:** 3\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/help-why-not-support-abc-com/179800 "2009-12-19T15:25:30Z")

</div>

when i upgrade to 0.8.29 use -t to test config file, but return “: conflicting parameter “\*.abc.com”” i set “server\_name www.abc.com;” and test is successful but this problem not happen in 0.8.26 before thank you! …

---

## [Expires format](https://www.ruby-forum.com/t/expires-format/179805)

<div class="topic-metadata">

**Author:** [@nerdgrind](https://www.ruby-forum.com/u/nerdgrind)\
**Replies:** 3\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/expires-format/179805 "2009-12-19T15:25:30Z")

</div>

I have seen expires in hours (h), days (d), and max. How do I write an expire in 30 minutes? Is there a link to resource that lists all the expire options? Posted at Nginx Forum:

---

## [Email examples for a newbie](https://www.ruby-forum.com/t/email-examples-for-a-newbie/180412)

<div class="topic-metadata">

**Author:** [@Jimmy\_Brake](https://www.ruby-forum.com/u/Jimmy_Brake)\
**Replies:** 0\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/email-examples-for-a-newbie/180412 "2009-12-19T15:25:29Z")

</div>

Hi, Can someone point me towards or send me an example of smtp proxiing(or let me know that nginx will not do it)? Scenario: A single server running nginx on port 25. Emails to removed\_email\_address@domain.invalid ge…

---

## [Re: Improving documentation of error\_log (Was: Bad requests with 0-byte response)](https://www.ruby-forum.com/t/re-improving-documentation-of-error-log-was-bad-requests-with-0-byte-response/180407)

<div class="topic-metadata">

**Author:** [@Jean-Baptiste\_Q](https://www.ruby-forum.com/u/Jean-Baptiste_Q)\
**Replies:** 3\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/re-improving-documentation-of-error-log-was-bad-requests-with-0-byte-response/180407 "2009-12-19T15:25:28Z")

</div>

2009/12/2 Anton Y. removed\_email\_address@domain.invalid: Jean-Baptiste Q. wrote: What about moving the error\_log directive documentation to the log module along with access\_log? http://wiki.nginx.org/NginxHttpLogMo…

---

## [Location / rewrite help needed](https://www.ruby-forum.com/t/location-rewrite-help-needed/179758)

<div class="topic-metadata">

**Author:** [@saile](https://www.ruby-forum.com/u/saile)\
**Replies:** 1\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/location-rewrite-help-needed/179758 "2009-12-19T15:25:28Z")

</div>

Hi, let’s say I use upstream to push the requests to Rails for example like this: upstream thin { server 127.0.0.1:8000; server 127.0.0.1:8001; server 127.0.0.1:8002; } server { listen 80; server\_name localh…

---

## [Missed proxy\_cache with Cache-Control headr](https://www.ruby-forum.com/t/missed-proxy-cache-with-cache-control-headr/179764)

<div class="topic-metadata">

**Author:** [@joshua](https://www.ruby-forum.com/u/joshua)\
**Replies:** 3\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/missed-proxy-cache-with-cache-control-headr/179764 "2009-12-19T15:25:28Z")

</div>

Hello, I’ve been playing with the proxy\_cache and am having trouble determining the intended behavior. First, my config: proxy\_pass http://unicorn; proxy\_cache assets; proxy\_cache\_key backend$re…

---

## [Performance Tuning - wiki](https://www.ruby-forum.com/t/performance-tuning-wiki/180408)

<div class="topic-metadata">

**Author:** [@phillipoertel](https://www.ruby-forum.com/u/phillipoertel)\
**Replies:** 0\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/performance-tuning-wiki/180408 "2009-12-19T15:25:28Z")

</div>

I’d like to ask that members of the mailing list who are familiar with the internal workings of nginx spare a few minutes to update the wiki with relevant performance tuning information to help new users of nginx get …

---

## [Proxy max file size](https://www.ruby-forum.com/t/proxy-max-file-size/180410)

<div class="topic-metadata">

**Author:** [@Kingsley\_F](https://www.ruby-forum.com/u/Kingsley_F)\
**Replies:** 0\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/proxy-max-file-size/180410 "2009-12-19T15:25:28Z")

</div>

Hi Folks, Im just trying something out with proxy\_pass, I want to create a small cache for proxy\_pass so im using http { proxy\_cache\_path /var/nginx/cache levels=1:2 keys\_zone=my-cache:8m max\_size=1300m inactive=20…

---

## [Download Queue](https://www.ruby-forum.com/t/download-queue/180409)

<div class="topic-metadata">

**Author:** [@Kiswono\_P](https://www.ruby-forum.com/u/Kiswono_P)\
**Replies:** 5\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/download-queue/180409 "2009-12-19T15:25:28Z")

</div>

hi, i trying to make to make downloader site, the process was like this: user enter the site paste their link and the wget or downloader program would download the files every night the file saved using the primary ke…

---

## [Rewrite Help please](https://www.ruby-forum.com/t/rewrite-help-please/180404)

<div class="topic-metadata">

**Author:** [@Glen\_L](https://www.ruby-forum.com/u/Glen_L)\
**Replies:** 6\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/rewrite-help-please/180404 "2009-12-19T15:25:27Z")

</div>

Hello, How can I redirect http://www.mydomain.com/content/view/ http://www.mydomain.com/content/view/27840/2/ 27840/2/ into http://new.mydomain.com/ http://new.mydomain.com/27840 27840 Thank’s before

---

## [Virtual hosts runing under different uids](https://www.ruby-forum.com/t/virtual-hosts-runing-under-different-uids/179697)

<div class="topic-metadata">

**Author:** [@d2d2d2](https://www.ruby-forum.com/u/d2d2d2)\
**Replies:** 1\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/virtual-hosts-runing-under-different-uids/179697 "2009-12-19T15:25:27Z")

</div>

Hi, Is there a way to configure vhost in nginx to run php scripts (fastcgi gateway) with given UID? So, despite that we deine user , virtualhost definition override this uid (like here: apache2-mpm-itk - multiuser MP…

---

## [Location container read order](https://www.ruby-forum.com/t/location-container-read-order/179754)

<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/location-container-read-order/179754 "2009-12-19T15:25:27Z")

</div>

I have one “location” container that servers static content: location ~ .(html|htm|xml|css|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js)$ and another “location” conta…

---

## [Error\_page and 401 code](https://www.ruby-forum.com/t/error-page-and-401-code/179666)

<div class="topic-metadata">

**Author:** [@d2d2d2](https://www.ruby-forum.com/u/d2d2d2)\
**Replies:** 2\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/error-page-and-401-code/179666 "2009-12-19T15:25:27Z")

</div>

Hi, Recently I had a issue with auth module. I set one location to use basic authentication and tried to login via web browser but I couldn’t. There was a error message logged: "no user/password was provided for basi…

---

## [Location ~ \\.php$ does not work with proxy\_pass breaks pretty permalinks](https://www.ruby-forum.com/t/location-php-does-not-work-with-proxy-pass-breaks-pretty-permalinks/179698)

<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/location-php-does-not-work-with-proxy-pass-breaks-pretty-permalinks/179698 "2009-12-19T15:25:27Z")

</div>

I am using Nginx as a frontend server to server only static files, and apache as the backend server to serve only php file. I saw a configuration for proxy\_pass that would allow me to be 100% sure I was only serving p…

---

## [Bad requests with 0-byte response](https://www.ruby-forum.com/t/bad-requests-with-0-byte-response/180402)

<div class="topic-metadata">

**Author:** [@Jean-Baptiste\_Q](https://www.ruby-forum.com/u/Jean-Baptiste_Q)\
**Replies:** 3\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/bad-requests-with-0-byte-response/180402 "2009-12-19T15:25:27Z")

</div>

Hello, I’m using nginx 0.6.35 with syslog patch, and have a few POST requests everyday that are aborted by nginx, with no error message being reported to the error log. The status code returned is 400, and there is …

---

## [Fphp-fastcgi and nginx problem](https://www.ruby-forum.com/t/fphp-fastcgi-and-nginx-problem/179665)

<div class="topic-metadata">

**Author:** [@dcian](https://www.ruby-forum.com/u/dcian)\
**Replies:** 3\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/fphp-fastcgi-and-nginx-problem/179665 "2009-12-19T15:25:27Z")

</div>

Hi all, I need some help. A system I’m supporting is collapsing in a heap whenever it is put under even moderate load! The setup - Ubuntu, nginx 0.7.62, php-fastcgi. The application is a chatroom, and is built as fo…

---

## [POST to retrieve a html](https://www.ruby-forum.com/t/post-to-retrieve-a-html/180405)

<div class="topic-metadata">

**Author:** [@tuqui](https://www.ruby-forum.com/u/tuqui)\
**Replies:** 0\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/post-to-retrieve-a-html/180405 "2009-12-19T15:25:27Z")

</div>

Hi, Is there any setting that permits retrieve a html or pdf with POST? Using apache is possible by default but with nginx its return “405 Not Allowed”. Tuqui

---

## [Expires directive and try\_files rewrites not working](https://www.ruby-forum.com/t/expires-directive-and-try-files-rewrites-not-working/179731)

<div class="topic-metadata">

**Author:** [@Per\_Hansson](https://www.ruby-forum.com/u/Per_Hansson)\
**Replies:** 2\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/expires-directive-and-try-files-rewrites-not-working/179731 "2009-12-19T15:25:27Z")

</div>

Hi, I am trying to use the try\_files directive for rewrites together with the Expires directive but when I do file extensions which are included by the expires directive are ignored by my try\_files directive, it seems…

---

## [Ssl, (no) default and sni](https://www.ruby-forum.com/t/ssl-no-default-and-sni/179701)

<div class="topic-metadata">

**Author:** [@GerMalaz](https://www.ruby-forum.com/u/GerMalaz)\
**Replies:** 6\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/ssl-no-default-and-sni/179701 "2009-12-19T15:25:27Z")

</div>

Any chance to allow listen 443 ssl; this is, NO “default”, if SNI is available? Thanks, Gerardo Posted at Nginx Forum:

---

## [Modules for win](https://www.ruby-forum.com/t/modules-for-win/180406)

<div class="topic-metadata">

**Author:** [@Nuno\_MagalhSSSSes](https://www.ruby-forum.com/u/Nuno_MagalhSSSSes)\
**Replies:** 0\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/modules-for-win/180406 "2009-12-19T15:25:27Z")

</div>

Hi, I use nginx on \*nix but might be needing it on win as well. The compile process for windows not being straightforward, how can i include extra modules for nginx (the equivalent to ./configure –with\_module --add\_m…

---

## [Multiple Entries in Log File](https://www.ruby-forum.com/t/multiple-entries-in-log-file/179627)

<div class="topic-metadata">

**Author:** [@cpriest](https://www.ruby-forum.com/u/cpriest)\
**Replies:** 5\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/multiple-entries-in-log-file/179627 "2009-12-19T15:25:27Z")

</div>

I have nginx setup as a load balancer to three servers. Is there any reason a request would hit the log file more than once unless there were actually more than one incoming (from the internet) requests? For example,…

---

## [Password protecting folder breaks PHP within that folder](https://www.ruby-forum.com/t/password-protecting-folder-breaks-php-within-that-folder/179756)

<div class="topic-metadata">

**Author:** [@raab](https://www.ruby-forum.com/u/raab)\
**Replies:** 2\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/password-protecting-folder-breaks-php-within-that-folder/179756 "2009-12-19T15:25:27Z")

</div>

I’m trying to password protect a folder using htpasswd, works fine and asks for a l/p, however php in that particular folder refuses to work. PHP works anywhere else but the password protected location. Once I comment…

---

## [FastCGI Param](https://www.ruby-forum.com/t/fastcgi-param/179651)

<div class="topic-metadata">

**Author:** [@nt001](https://www.ruby-forum.com/u/nt001)\
**Replies:** 4\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/fastcgi-param/179651 "2009-12-19T15:25:26Z")

</div>

Hi there, I have problem, but I sloved 50% of it. Need a little help. So my problem before is when I try to load php pages, nginx got “No input file specified.” So I have sloved this by looking at fastcgi\_param. … my …

---

## [Why does Nginx log same request two times?](https://www.ruby-forum.com/t/why-does-nginx-log-same-request-two-times/179556)

<div class="topic-metadata">

**Author:** [@rayallenwu](https://www.ruby-forum.com/u/rayallenwu)\
**Replies:** 9\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/why-does-nginx-log-same-request-two-times/179556 "2009-12-19T15:25:26Z")

</div>

In my log files, every http request shows double times. 122.193.13.10 - - \[27/Nov/2009:13:39:46 +0800\] “GET /images/fanfou.gif HTTP/1.1” 200 149 “http://www.xxx.com” “Mozilla/4.0…” 122.193.13.10 - - \[27/Nov/2009:13:39…

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

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