# Server

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

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

---

## [Proxy immediately](https://www.ruby-forum.com/t/proxy-immediately/225694)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [January 23, 2013, 10:51pm UTC](https://www.ruby-forum.com/t/proxy-immediately/225694 "2013-01-23T22:51:22Z")

</div>

Hello, Is there a chance to pass a large POST-request immediately to the upstream? The POST-request is cached by nginx. The Upstream starts parsing the request as soon as the request is fully uploaded. It is imposs…

---

## [Issue with default vhost](https://www.ruby-forum.com/t/issue-with-default-vhost/229795)

<div class="topic-metadata">

**Author:** [@automatix](https://www.ruby-forum.com/u/automatix)\
**Replies:** 2\
**Last updated:** [January 23, 2013, 10:01pm UTC](https://www.ruby-forum.com/t/issue-with-default-vhost/229795 "2013-01-23T22:01:42Z")

</div>

Hello! There is an Nginx instance on one of my VMs (192.168.56.101) and three (enabled) vhosts: “default” and two further vhosts I created. When I enter the IP in my host browser or “localhost” in my guest browser, …

---

## [Problem with return 302 redirection, with Nginx 1.3.11 + Drupal 7](https://www.ruby-forum.com/t/problem-with-return-302-redirection-with-nginx-1-3-11-drupal-7/225683)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [January 23, 2013, 9:30pm UTC](https://www.ruby-forum.com/t/problem-with-return-302-redirection-with-nginx-1-3-11-drupal-7/225683 "2013-01-23T21:30:44Z")

</div>

Hello, In order to redirect certain Drupal 7 functions to https I have setup Nginx 1.3.11 as follows: location ~\* ^/(?q=)?(?:user|admin|contact$) { return 302 https://$host$request\_uri; } and then the usual: locat…

---

## [About ignore\_invalid\_headers directive in SSL](https://www.ruby-forum.com/t/about-ignore-invalid-headers-directive-in-ssl/225665)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [January 23, 2013, 3:36pm UTC](https://www.ruby-forum.com/t/about-ignore-invalid-headers-directive-in-ssl/225665 "2013-01-23T15:36:20Z")

</div>

Hi! I have a problem. I have try ignore invalid headers with directive ignore\_invalid\_headers off in my configuration with SSL and dont get it working, however without SSL perfect work. What could be the problem? …

---

## [Should it be "if ( $request\_method !~ ^(GET.)" or "limit\_except GET."?](https://www.ruby-forum.com/t/should-it-be-if-request-method-get-or-limit-except-get/225684)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [January 23, 2013, 12:57pm UTC](https://www.ruby-forum.com/t/should-it-be-if-request-method-get-or-limit-except-get/225684 "2013-01-23T12:57:23Z")

</div>

Hello, Can anybody tell me if the bellow constructs are equivalent? In case of a dozen or so ‘location’, would it still be better to have a limit\_except for each location or, in that case, would it be better to have …

---

## [Optimizing Nginx for serving 1GB files - Finding values for 'directio' & 'output\_buffers'](https://www.ruby-forum.com/t/optimizing-nginx-for-serving-1gb-files-finding-values-for-directio-output-buffers/229348)

<div class="topic-metadata">

**Author:** [@jayaraj.k](https://www.ruby-forum.com/u/jayaraj.k)\
**Replies:** 1\
**Last updated:** [January 23, 2013, 12:32pm UTC](https://www.ruby-forum.com/t/optimizing-nginx-for-serving-1gb-files-finding-values-for-directio-output-buffers/229348 "2013-01-23T12:32:15Z")

</div>

Hi, We have a Nginx web server which is serving files whose size is almost 1GB. We were trying to optimize the configuration with directio & output\_buffers directives. but, we couldn’t find any calculation/formula w…

---

## [Why is nginx binding to 0.0.0.0:80 when I specify explicit IPs to listen on?](https://www.ruby-forum.com/t/why-is-nginx-binding-to-0-0-0-0-80-when-i-specify-explicit-ips-to-listen-on/229294)

<div class="topic-metadata">

**Author:** [@middleforkgis](https://www.ruby-forum.com/u/middleforkgis)\
**Replies:** 7\
**Last updated:** [January 23, 2013, 6:09am UTC](https://www.ruby-forum.com/t/why-is-nginx-binding-to-0-0-0-0-80-when-i-specify-explicit-ips-to-listen-on/229294 "2013-01-23T06:09:38Z")

</div>

I’m having a difficult time understanding why I’m unable to limit the IP address to which nginx binds. nginx 1.2.6-1 Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.35-2 x86\_64 GNU/Linux ==============…

---

## [回复： Re: How to](https://www.ruby-forum.com/t/re-how-to/225662)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [January 23, 2013, 5:03am UTC](https://www.ruby-forum.com/t/re-how-to/225662 "2013-01-23T05:03:37Z")

</div>

=?UTF-8?Q?bind\_variable\_with?= =?UTF-8?Q?\_connection\_in\_a\_customized\_module=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=“utf-8” Content-Transfer-Encoding: quoted-printable Thank you very much. And for y…

---

## [Not logging access to favicon.ico](https://www.ruby-forum.com/t/not-logging-access-to-favicon-ico/225604)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [January 23, 2013, 4:35am UTC](https://www.ruby-forum.com/t/not-logging-access-to-favicon-ico/225604 "2013-01-23T04:35:35Z")

</div>

Hello, I’m really new to Nginx so forgive me if this question seems obvious to you. I have Nginx with virtual hosts. In my nginx.conf I have http { … include /etc/nginx/sites-enabled/\*; … In /etc/nginx/sites-enab…

---

## [Is there any other way to trigger log reopen beside kill -USR1?](https://www.ruby-forum.com/t/is-there-any-other-way-to-trigger-log-reopen-beside-kill-usr1/229558)

<div class="topic-metadata">

**Author:** [@landlord01](https://www.ruby-forum.com/u/landlord01)\
**Replies:** 0\
**Last updated:** [January 23, 2013, 4:30am UTC](https://www.ruby-forum.com/t/is-there-any-other-way-to-trigger-log-reopen-beside-kill-usr1/229558 "2013-01-23T04:30:19Z")

</div>

Hi all, In the common case, people rotate access log like this: mv access.log access.XXX.log kill -USR1 In my case, I have to do something like this: if \[ -f “access.log” \]; then mv access.log access.20130121.log …

---

## [How to bind variable with connection in a customized module?](https://www.ruby-forum.com/t/how-to-bind-variable-with-connection-in-a-customized-module/229627)

<div class="topic-metadata">

**Author:** [@landlord01](https://www.ruby-forum.com/u/landlord01)\
**Replies:** 1\
**Last updated:** [January 22, 2013, 1:31pm UTC](https://www.ruby-forum.com/t/how-to-bind-variable-with-connection-in-a-customized-module/229627 "2013-01-22T13:31:47Z")

</div>

hi all, I want save state during a long connection (keep-alive) for performance optimization in my own HTTP handler module, thus I can peek up the saved state when handling requests, to speed up response. Actually it’…

---

## [SPDY patch and mod\_zip crashing workers](https://www.ruby-forum.com/t/spdy-patch-and-mod-zip-crashing-workers/225619)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [January 22, 2013, 1:21pm UTC](https://www.ruby-forum.com/t/spdy-patch-and-mod-zip-crashing-workers/225619 "2013-01-22T13:21:52Z")

</div>

I’m trying to get nginx 1.3.8 to play well with the SPDY patch and mod\_zip. I don’t want to move to 1.3.9+ because I rely on the upload modules that have not yet been modified to handle the chunked uploads. When initi…

---

## [Failed to install](https://www.ruby-forum.com/t/failed-to-install/229796)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [January 22, 2013, 1:20pm UTC](https://www.ruby-forum.com/t/failed-to-install/229796 "2013-01-22T13:20:06Z")

</div>

Hi to all, I am in China and I just followed the instructions reported here: http://www.nginx.org/en/download.html but after running the “sudo apt-get update” command I get the following error: W: Impossibile recupe…

---

## [Internet Explorer won't show my website](https://www.ruby-forum.com/t/internet-explorer-wont-show-my-website/225653)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [January 22, 2013, 1:09am UTC](https://www.ruby-forum.com/t/internet-explorer-wont-show-my-website/225653 "2013-01-22T01:09:57Z")

</div>

Hi There, I’m using nginx for serving a lot of webpages. That work’s fine on nearly every installation - exept of one: All websites on this server couldn’t get accessed by Internet Explorer. Firefox, Chrome, Safari e…

---

## [Nginx and Python](https://www.ruby-forum.com/t/nginx-and-python/225650)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [January 21, 2013, 11:30pm UTC](https://www.ruby-forum.com/t/nginx-and-python/225650 "2013-01-21T23:30:40Z")

</div>

Hello, i try for a tutorial Python / Django and Nginx unite. http://www.collabspot.com/2012/08/14/setting-up-nginx-uwsgi-python-ubuntu-12-04/ That sounds like a multi-hosting, and was not particularly difficult. But …

---

## [Interest in extending FastCGI / SCGI support to allow TLS encrypted connections to back end?](https://www.ruby-forum.com/t/interest-in-extending-fastcgi-scgi-support-to-allow-tls-encrypted-connections-to-back-end/225618)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 7\
**Last updated:** [January 21, 2013, 3:22pm UTC](https://www.ruby-forum.com/t/interest-in-extending-fastcgi-scgi-support-to-allow-tls-encrypted-connections-to-back-end/225618 "2013-01-21T15:22:42Z")

</div>

Hi, I was wondering if there was any interest in extending the FastCGI and SCGI implementations in Nginx to allow a TLS encryption to the application backend? Currently if you have Nginx on one machine and your FastC…

---

## [Tengine-1.4.3 is released](https://www.ruby-forum.com/t/tengine-1-4-3-is-released/225642)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [January 21, 2013, 9:04am UTC](https://www.ruby-forum.com/t/tengine-1-4-3-is-released/225642 "2013-01-21T09:04:44Z")

</div>

Hi folks, We are glad to announce that Tengine-1.4.3 development version has been released. You can either checkout the source code from GitHub: GitHub - alibaba-archive/tengine: This project has been transfered to ht…

---

## [Logging errors via error\_page + post\_action?](https://www.ruby-forum.com/t/logging-errors-via-error-page-post-action/225104)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [January 21, 2013, 4:54am UTC](https://www.ruby-forum.com/t/logging-errors-via-error-page-post-action/225104 "2013-01-21T04:54:43Z")

</div>

Hi In our nginx setup we use proxy\_pass to pass most requests to backend servers. We like to monitor our logs regularly for any errors to see that everything is working as expected. We can grep the nginx logs, but: a…

---

## [Custom error\_page basic config problem](https://www.ruby-forum.com/t/custom-error-page-basic-config-problem/225549)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [January 21, 2013, 4:15am UTC](https://www.ruby-forum.com/t/custom-error-page-basic-config-problem/225549 "2013-01-21T04:15:00Z")

</div>

Hi fellows, I was having trouble creating a custom error\_page. Here’s the simple test config i did: server\_name www.test1.com.ar; error\_log logs/www.test1.com.ar.http.error.log debug; access\_log logs/www.test1.com.…

---

## [How to not 'expose' directory tree by default](https://www.ruby-forum.com/t/how-to-not-expose-directory-tree-by-default/229338)

<div class="topic-metadata">

**Author:** [@Jan-Philip\_Gehrcke](https://www.ruby-forum.com/u/Jan-Philip_Gehrcke)\
**Replies:** 1\
**Last updated:** [January 21, 2013, 1:55am UTC](https://www.ruby-forum.com/t/how-to-not-expose-directory-tree-by-default/229338 "2013-01-21T01:55:58Z")

</div>

Hello, error 403 means that the location exists and access is not allowed while 404 means that the location does not exist. Based on this, with mostly default settings, it is (in theory) possible to determine the dir…

---

## [Curl can response gzip but browser can't](https://www.ruby-forum.com/t/curl-can-response-gzip-but-browser-cant/225612)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [January 21, 2013, 1:39am UTC](https://www.ruby-forum.com/t/curl-can-response-gzip-but-browser-cant/225612 "2013-01-21T01:39:01Z")

</div>

my environment is nginx(1.3.11) + php-fpm curl -I -H “Accept-Encoding: gzip,deflate” http://www.ihezhu.com/ HTTP/1.1 200 OK Server: nginx Date: Fri, 18 Jan 2013 05:18:31 GMT Content-Type: text/html; charset=utf-8 C…

---

## [Failed to install](https://www.ruby-forum.com/t/failed-to-install/225636)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [January 20, 2013, 7:47pm UTC](https://www.ruby-forum.com/t/failed-to-install/225636 "2013-01-20T19:47:58Z")

</div>

Hi to all, I am in China and I just followed the instructions reported here: http://www.nginx.org/en/download.html but after running the “sudo apt-get update” command I get the following error: W: Impossibile recupe…

---

## [Redirect specific query to a page](https://www.ruby-forum.com/t/redirect-specific-query-to-a-page/225620)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 12\
**Last updated:** [January 20, 2013, 6:22pm UTC](https://www.ruby-forum.com/t/redirect-specific-query-to-a-page/225620 "2013-01-20T18:22:38Z")

</div>

I moved my website from Joomla to WordPress… I’d like to redirect www.website.com/?option=com\_content&view=article&id=164&Itemid=139 to www.website.com/listituto/contatti/ (so, same domain). I tried with this line (bo…

---

## [Temporary "File not found" error](https://www.ruby-forum.com/t/temporary-file-not-found-error/225628)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [January 20, 2013, 1:39pm UTC](https://www.ruby-forum.com/t/temporary-file-not-found-error/225628 "2013-01-20T13:39:16Z")

</div>

About one month ago I had set up a new server configuration, since then I struggle with an annoying temporary error. Most of the time everything works fine, but after some period of time, I sometimes receive “File no…

---

## [Optimize nginx stream](https://www.ruby-forum.com/t/optimize-nginx-stream/229491)

<div class="topic-metadata">

**Author:** [@shahzaib12](https://www.ruby-forum.com/u/shahzaib12)\
**Replies:** 0\
**Last updated:** [January 19, 2013, 2:31pm UTC](https://www.ruby-forum.com/t/optimize-nginx-stream/229491 "2013-01-19T14:31:57Z")

</div>

we’re running high traffic streaming website similar to youtube, due to large number of streams on daily basis, our server is consuming 10~12TB bandwidh per day. We’re using nginx-1.2.1 and want to restrict users to d…

---

## [Announcing cpXstack - The complete nginX+ PHP-FPM stack for cpanel](https://www.ruby-forum.com/t/announcing-cpxstack-the-complete-nginx-php-fpm-stack-for-cpanel/229679)

<div class="topic-metadata">

**Author:** [@Anoop\_A](https://www.ruby-forum.com/u/Anoop_A)\
**Replies:** 0\
**Last updated:** [January 19, 2013, 10:13am UTC](https://www.ruby-forum.com/t/announcing-cpxstack-the-complete-nginx-php-fpm-stack-for-cpanel/229679 "2013-01-19T10:13:48Z")

</div>

cpXstack cpXstack is a GPL licensed cpanel plugin developed by SysAlly ( http://SysAlly.net ) that implements the full LEMP ( Linux- nginX - MySQL PHP-FPM ) stack . More information about the project can be found …

---

## [Enabling proxy cache causes all responses to be buffered](https://www.ruby-forum.com/t/enabling-proxy-cache-causes-all-responses-to-be-buffered/225610)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [January 18, 2013, 11:27am UTC](https://www.ruby-forum.com/t/enabling-proxy-cache-causes-all-responses-to-be-buffered/225610 "2013-01-18T11:27:18Z")

</div>

Hi, I am using nginx as a download proxy cache, caching files locally. I have configured nginx to cache certain paths, for the rest I set proxy\_cache\_bypass to make sure they are not cached. The config looks somethi…

---

## [Intermittent 404s when requesting a CSS file](https://www.ruby-forum.com/t/intermittent-404s-when-requesting-a-css-file/229280)

<div class="topic-metadata">

**Author:** [@Gustavo\_Tenrreiro](https://www.ruby-forum.com/u/Gustavo_Tenrreiro)\
**Replies:** 0\
**Last updated:** [January 17, 2013, 6:10pm UTC](https://www.ruby-forum.com/t/intermittent-404s-when-requesting-a-css-file/229280 "2013-01-17T18:10:04Z")

</div>

Hi, Just installed nginx and I am also using php5-fpm on Ubuntu. I created a very simple php page that has a css stylesheet reference at the top the of the generated HTML. Every 2 or 3 requests however the browser r…

---

## [Patch.spdy-55\_1.3.11 broken?](https://www.ruby-forum.com/t/patch-spdy-55-1-3-11-broken/229512)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [January 17, 2013, 4:10pm UTC](https://www.ruby-forum.com/t/patch-spdy-55-1-3-11-broken/229512 "2013-01-17T16:10:52Z")

</div>

I have patched the nginx sources with the latest spdy patch: /usr/src/nginx-1.3.11# patch -p1 \< patch.spdy-55\_1.3.11.txt but building the package isn’t possible anymore: dpkg-buildpackage -rfakeroot -uc -b … gcc -c …

---

## [Default Welcome page](https://www.ruby-forum.com/t/default-welcome-page/225593)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [January 17, 2013, 8:25am UTC](https://www.ruby-forum.com/t/default-welcome-page/225593 "2013-01-17T08:25:50Z")

</div>

Hi, I am a newbie to NGINX. I wish to learn as to how can I make a custom default index page and be called if another index.html or index.php file is not available in the document root. The custom index.html page sh…

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

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