# Server

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

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

---

## [NginX and Magento very strange problem (?!)](https://www.ruby-forum.com/t/nginx-and-magento-very-strange-problem/227078)

<div class="topic-metadata">

**Author:** [@omolinete](https://www.ruby-forum.com/u/omolinete)\
**Replies:** 2\
**Last updated:** [March 14, 2013, 2:46pm UTC](https://www.ruby-forum.com/t/nginx-and-magento-very-strange-problem/227078 "2013-03-14T14:46:42Z")

</div>

Hello All, This is my first post on the forum, so thank you very much in advance for your attention on my topic. Hope anyone could help me :slight\_smile: The problem we are getting with NginX and Magento, is relating…

---

## [Security issues with Nginx](https://www.ruby-forum.com/t/security-issues-with-nginx/227396)

<div class="topic-metadata">

**Author:** [@Joe\_M](https://www.ruby-forum.com/u/Joe_M)\
**Replies:** 2\
**Last updated:** [March 14, 2013, 12:21pm UTC](https://www.ruby-forum.com/t/security-issues-with-nginx/227396 "2013-03-14T12:21:44Z")

</div>

Hey all Im new to Nginx and wanted to know if any of you familiar with any Known security issues in Nginx (for example: Nginx & PHP via FastCGI important security issue) Thanks Joe Posted at Nginx Forum:

---

## [Map a null/missing variable?](https://www.ruby-forum.com/t/map-a-null-missing-variable/227385)

<div class="topic-metadata">

**Author:** [@AJ\_Weber](https://www.ruby-forum.com/u/AJ_Weber)\
**Replies:** 3\
**Last updated:** [March 14, 2013, 6:13am UTC](https://www.ruby-forum.com/t/map-a-null-missing-variable/227385 "2013-03-14T06:13:39Z")

</div>

OK, So I’m still working on my caching “issue”, but this is a more general question, so for the sake of indexing and helping others in the future with (hopefully) a response… How do I use a map to map the lack of a v…

---

## [NGINX proxy websocket](https://www.ruby-forum.com/t/nginx-proxy-websocket/227391)

<div class="topic-metadata">

**Author:** [@Hazrat\_Shah](https://www.ruby-forum.com/u/Hazrat_Shah)\
**Replies:** 1\
**Last updated:** [March 14, 2013, 6:04am UTC](https://www.ruby-forum.com/t/nginx-proxy-websocket/227391 "2013-03-14T06:04:18Z")

</div>

I am using the Nginx v1.3.14 server proxy. I am sending the Websocket HTTP connection request “CONNECT HostName:Port HTTP/1.1” packet to the proxy from the client. It responds with an http-alt ack packet. How can …

---

## [Fwd: Lua shared storage inconsistent?](https://www.ruby-forum.com/t/fwd-lua-shared-storage-inconsistent/227392)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 14, 2013, 1:40am UTC](https://www.ruby-forum.com/t/fwd-lua-shared-storage-inconsistent/227392 "2013-03-14T01:40:50Z")

</div>

Hello, I’m trying to count with a Lua-script the concurrent requests to a given virtual host on the backend to which Nginx relays als reverse proxy. My current code is somewhat more complex, but I try to reduce it to …

---

## [Nginx-1.3.14](https://www.ruby-forum.com/t/nginx-1-3-14/227143)

<div class="topic-metadata">

**Author:** [@Maxim\_D](https://www.ruby-forum.com/u/Maxim_D)\
**Replies:** 5\
**Last updated:** [March 13, 2013, 4:13pm UTC](https://www.ruby-forum.com/t/nginx-1-3-14/227143 "2013-03-13T16:13:01Z")

</div>

Changes with nginx 1.3.14 05 Mar 2013 \*) Feature: $connections\_active, $connections\_reading, and $connections\_writing variables in the ngx\_http\_stub\_status\_module. \*) Featur…

---

## [Incomplete page by nginx -\> fcgi -\> php-fpm with keepalive](https://www.ruby-forum.com/t/incomplete-page-by-nginx-fcgi-php-fpm-with-keepalive/225829)

<div class="topic-metadata">

**Author:** [@SSkonishi\_takurou\_S](https://www.ruby-forum.com/u/SSkonishi_takurou_S)\
**Replies:** 4\
**Last updated:** [March 13, 2013, 2:59pm UTC](https://www.ruby-forum.com/t/incomplete-page-by-nginx-fcgi-php-fpm-with-keepalive/225829 "2013-03-13T14:59:59Z")

</div>

I have problem somewhere between nginx and php-fpm. When I use keep-alive connection for fastgcgi php-fpm, there is often problem with loading page. Page not completely loaded. I tried to debug using wireshark, and s…

---

## [SPDY68 / POST to proxy / nginx worker segfault](https://www.ruby-forum.com/t/spdy68-post-to-proxy-nginx-worker-segfault/227357)

<div class="topic-metadata">

**Author:** [@philpeterman](https://www.ruby-forum.com/u/philpeterman)\
**Replies:** 2\
**Last updated:** [March 13, 2013, 1:11am UTC](https://www.ruby-forum.com/t/spdy68-post-to-proxy-nginx-worker-segfault/227357 "2013-03-13T01:11:36Z")

</div>

nginx 1.3.14, SPDY patch version 68. Sitting in front of a PGP keyserver, with configuration as below, if I have “spdy” on the “listen” lines, then Chrome gets an error for no data returned and I get errors in errorlo…

---

## [SSL default changes?](https://www.ruby-forum.com/t/ssl-default-changes/227308)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [March 12, 2013, 7:59pm UTC](https://www.ruby-forum.com/t/ssl-default-changes/227308 "2013-03-12T19:59:29Z")

</div>

It looks like these changes from default are required for SSL session resumption and to mitigate the BEAST SSL vulnerability: ssl\_session\_cache shared:SSL:10m; ssl\_ciphers RC4:HIGH:!aNULL:!MD5; ssl\_prefer\_server\_ciph…

---

## [SPDY giving HTTP 500](https://www.ruby-forum.com/t/spdy-giving-http-500/227333)

<div class="topic-metadata">

**Author:** [@ct2k7](https://www.ruby-forum.com/u/ct2k7)\
**Replies:** 2\
**Last updated:** [March 12, 2013, 3:08pm UTC](https://www.ruby-forum.com/t/spdy-giving-http-500/227333 "2013-03-12T15:08:27Z")

</div>

I’ve compiled nginx with the SPDY patch, at the current latest, so nginx 1.3.14. As far as I can tell, the make was fine, no errors. I’m compiling against openSSL of the system: OpenSSL 1.0.1c 10 May 2012, on my CentO…

---

## [Multiples proxy for 1 servername](https://www.ruby-forum.com/t/multiples-proxy-for-1-servername/227346)

<div class="topic-metadata">

**Author:** [@ceooph](https://www.ruby-forum.com/u/ceooph)\
**Replies:** 0\
**Last updated:** [March 12, 2013, 12:37pm UTC](https://www.ruby-forum.com/t/multiples-proxy-for-1-servername/227346 "2013-03-12T12:37:40Z")

</div>

Hi all, We do reverse proxy to access from internet to some documentation filtering by ip address. These documentations are hosted on commercials portals. For 1 base we are often redirect between 2 or 3 (sometimes 6)…

---

## [Subtle differences of restart](https://www.ruby-forum.com/t/subtle-differences-of-restart/227334)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [March 12, 2013, 11:14am UTC](https://www.ruby-forum.com/t/subtle-differences-of-restart/227334 "2013-03-12T11:14:07Z")

</div>

Hello all: I had a few subtle question on NGINX operation and in particular are of reseading configuration : – Assuming NGINX processes are running and the configuration is syntacaly valid, what it the difference wh…

---

## [How to check the existence of a http-only secure cookie](https://www.ruby-forum.com/t/how-to-check-the-existence-of-a-http-only-secure-cookie/226776)

<div class="topic-metadata">

**Author:** [@mrtn](https://www.ruby-forum.com/u/mrtn)\
**Replies:** 5\
**Last updated:** [March 11, 2013, 10:54pm UTC](https://www.ruby-forum.com/t/how-to-check-the-existence-of-a-http-only-secure-cookie/226776 "2013-03-11T22:54:45Z")

</div>

I have a http-only and secure (ssl) cookie, and I want nginx to check whether this cookie exists in a request, if not, reject it by serving a 404 page. This is just a preliminary check, so I don’t care about the actua…

---

## ["nginx does not suck at ssl"](https://www.ruby-forum.com/t/nginx-does-not-suck-at-ssl/227287)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [March 11, 2013, 8:45pm UTC](https://www.ruby-forum.com/t/nginx-does-not-suck-at-ssl/227287 "2013-03-11T20:45:33Z")

</div>

After reading “nginx does not suck at ssl”: http://matt.io/entry/ur I’m using: ssl\_ciphers ALL:!aNULL:!ADH:!eNULL:!MEDIUM:!LOW:!EXP:!kEDH:RC4+RSA:+HIGH; Is this a good choice? Grant

---

## [Error unlink() nginx 1.2.6](https://www.ruby-forum.com/t/error-unlink-nginx-1-2-6/229361)

<div class="topic-metadata">

**Author:** [@bat21](https://www.ruby-forum.com/u/bat21)\
**Replies:** 6\
**Last updated:** [March 11, 2013, 12:39pm UTC](https://www.ruby-forum.com/t/error-unlink-nginx-1-2-6/229361 "2013-03-11T12:39:26Z")

</div>

the error.log file I get the error: 12/29/2012 12:40:39 \[crit\] 16489 # 0: unlink () “/ var/cache/cafe2/2/9e/5d7f005ef7a1b948e522a3b8ed5959e2” failed (2: No such file or directory) the folder has permissions 777. how…

---

## [Auth\_request: is it possible to return auth\_request result directly to client?](https://www.ruby-forum.com/t/auth-request-is-it-possible-to-return-auth-request-result-directly-to-client/227311)

<div class="topic-metadata">

**Author:** [@Jan\_Wrobel](https://www.ruby-forum.com/u/Jan_Wrobel)\
**Replies:** 1\
**Last updated:** [March 11, 2013, 11:55am UTC](https://www.ruby-forum.com/t/auth-request-is-it-possible-to-return-auth-request-result-directly-to-client/227311 "2013-03-11T11:55:35Z")

</div>

Hi, Currently I have auth\_request module configured to return static pages on 401 and 403 errors. This looks like this: auth\_request /auth/api/is-authorized/; error\_page 401 /auth/login.html; error\_page 403 /auth/no…

---

## [Multiple docroot](https://www.ruby-forum.com/t/multiple-docroot/227315)

<div class="topic-metadata">

**Author:** [@ron\_ramos](https://www.ruby-forum.com/u/ron_ramos)\
**Replies:** 0\
**Last updated:** [March 11, 2013, 10:52am UTC](https://www.ruby-forum.com/t/multiple-docroot/227315 "2013-03-11T10:52:59Z")

</div>

Hi All, Is it possible to have multiple docroot for a single domain? and will load different docroot based on condition? our developers are currently developing our application but based on a new framework. so they…

---

## [SPDY patch not applying cleanly](https://www.ruby-forum.com/t/spdy-patch-not-applying-cleanly/227306)

<div class="topic-metadata">

**Author:** [@SSAntS\_nio\_PSPSAlm](https://www.ruby-forum.com/u/SSAntS_nio_PSPSAlm)\
**Replies:** 5\
**Last updated:** [March 11, 2013, 3:17am UTC](https://www.ruby-forum.com/t/spdy-patch-not-applying-cleanly/227306 "2013-03-11T03:17:53Z")

</div>

Hello, Apparently the SPDY patch doesn’t apply cleanly to 1.3.14. See the results below for the offending files. I suppose that the patch should apply cleanly to the “dev” branch? Thanks, — appa |# HG changeset pat…

---

## [HTTPS header missing from single server](https://www.ruby-forum.com/t/https-header-missing-from-single-server/227288)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 10, 2013, 11:25pm UTC](https://www.ruby-forum.com/t/https-header-missing-from-single-server/227288 "2013-03-10T23:25:11Z")

</div>

How can I make nginx set the HTTPS header in a single http/https server? piwik with force\_ssl=1 on apache goes into a redirect loop because it doesn’t know SSL is on due to the nginx reverse proxy. There is a piwik b…

---

## [Location regex + if + basic auth to restrict directory access](https://www.ruby-forum.com/t/location-regex-if-basic-auth-to-restrict-directory-access/227024)

<div class="topic-metadata">

**Author:** [@B.R](https://www.ruby-forum.com/u/B.R)\
**Replies:** 3\
**Last updated:** [March 10, 2013, 8:16pm UTC](https://www.ruby-forum.com/t/location-regex-if-basic-auth-to-restrict-directory-access/227024 "2013-03-10T20:16:28Z")

</div>

Hello, I am using basic auth + $remote\_user variable send to the back-end application to change context depending on the logged-in user. The thing is, even if the page rendered by the back-end uses nginx user authent…

---

## [Headers set in http {} go missing after setting headers in location {}](https://www.ruby-forum.com/t/headers-set-in-http-go-missing-after-setting-headers-in-location/227283)

<div class="topic-metadata">

**Author:** [@nano](https://www.ruby-forum.com/u/nano)\
**Replies:** 3\
**Last updated:** [March 10, 2013, 6:50pm UTC](https://www.ruby-forum.com/t/headers-set-in-http-go-missing-after-setting-headers-in-location/227283 "2013-03-10T18:50:00Z")

</div>

Here is my nginx configuration http://pastie.org/private/4lceuccm9twmuiozdjnzkg My nginx -V is: nginx version: nginx/1.2.7 built by gcc 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC) TLS SNI support enabled I noticed that …

---

## [Imap: invalid header in response while in http auth state](https://www.ruby-forum.com/t/imap-invalid-header-in-response-while-in-http-auth-state/227228)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [March 10, 2013, 5:33pm UTC](https://www.ruby-forum.com/t/imap-invalid-header-in-response-while-in-http-auth-state/227228 "2013-03-10T17:33:28Z")

</div>

I’m using imapproxy and trying to switch to nginx. courier is listening on port 143. mail { auth\_http localhost:143; proxy on; server { listen 144; protocol imap; } } I get: auth http server 127.0.0.1:143 sen…

---

## [External Redirect when expecting internal redirect](https://www.ruby-forum.com/t/external-redirect-when-expecting-internal-redirect/227291)

<div class="topic-metadata">

**Author:** [@hildegunst](https://www.ruby-forum.com/u/hildegunst)\
**Replies:** 2\
**Last updated:** [March 10, 2013, 2:28pm UTC](https://www.ruby-forum.com/t/external-redirect-when-expecting-internal-redirect/227291 "2013-03-10T14:28:51Z")

</div>

Hello, I’m running nginx 1.2.1-2.2 on Debian Wheezy (testing). I try to obtain the following: Depending on the subnet accessing either rewrite internally to a cgi script or to a static Website. For the cgi script tha…

---

## [Deny rules not working - raw php files being served!](https://www.ruby-forum.com/t/deny-rules-not-working-raw-php-files-being-served/227289)

<div class="topic-metadata">

**Author:** [@edbloom](https://www.ruby-forum.com/u/edbloom)\
**Replies:** 0\
**Last updated:** [March 10, 2013, 10:36am UTC](https://www.ruby-forum.com/t/deny-rules-not-working-raw-php-files-being-served/227289 "2013-03-10T10:36:55Z")

</div>

Hi all, I’m using a pretty simple WordPress nginx config that is documented on the WordPress codex. http://codex.wordpress.org/Nginx All works fine except for 1 critical aspect. The config uses a restrictions.conf …

---

## [Nginx forward proxy - 502 bad gateway](https://www.ruby-forum.com/t/nginx-forward-proxy-502-bad-gateway/227269)

<div class="topic-metadata">

**Author:** [@Panagiotis\_Theodoro](https://www.ruby-forum.com/u/Panagiotis_Theodoro)\
**Replies:** 1\
**Last updated:** [March 9, 2013, 7:29pm UTC](https://www.ruby-forum.com/t/nginx-forward-proxy-502-bad-gateway/227269 "2013-03-09T19:29:42Z")

</div>

I have install nginx forward proxy in two Ubuntu 12.04 servers with the following configuration. server { listen 8080; location / { resolver 8.8.8.8; proxy\_pass http://$http\_host$uri$is\_args$args; } } After this…

---

## [Issue with HttpAuthDigestModule](https://www.ruby-forum.com/t/issue-with-httpauthdigestmodule/227238)

<div class="topic-metadata">

**Author:** [@redleaderuk](https://www.ruby-forum.com/u/redleaderuk)\
**Replies:** 2\
**Last updated:** [March 9, 2013, 6:59pm UTC](https://www.ruby-forum.com/t/issue-with-httpauthdigestmodule/227238 "2013-03-09T18:59:20Z")

</div>

Hello Nginx people! I hope you can help me. I’m having an infuriating problem with auth digest via the HttpAuthDigestModule. The first site I added to Nginx used the same htdigest password file as my Apache webser…

---

## [Problem configuring Nginx to host SpreeCommerce - 502 error](https://www.ruby-forum.com/t/problem-configuring-nginx-to-host-spreecommerce-502-error/227156)

<div class="topic-metadata">

**Author:** [@joseph\_o](https://www.ruby-forum.com/u/joseph_o)\
**Replies:** 9\
**Last updated:** [March 9, 2013, 10:15am UTC](https://www.ruby-forum.com/t/problem-configuring-nginx-to-host-spreecommerce-502-error/227156 "2013-03-09T10:15:34Z")

</div>

I have had a terribly difficult time deploying SpreeCommerce, despite (or perhaps because of) following the Spree documentation. I have eventually gotten to the point where the Capistrano deployment runs through entir…

---

## [How work ip\_hash and weight in nginx 1.2.7](https://www.ruby-forum.com/t/how-work-ip-hash-and-weight-in-nginx-1-2-7/227161)

<div class="topic-metadata">

**Author:** [@moke110007](https://www.ruby-forum.com/u/moke110007)\
**Replies:** 4\
**Last updated:** [March 9, 2013, 9:49am UTC](https://www.ruby-forum.com/t/how-work-ip-hash-and-weight-in-nginx-1-2-7/227161 "2013-03-09T09:49:17Z")

</div>

sorry,my english is poor. webserver: tomcat 6.0.23 When I tested on four tomcat servers, one server load is higher always.How to set up to make each server load is balanced. Use weight to decide load distr…

---

## [Proxy\_read\_timeout for an apache location?](https://www.ruby-forum.com/t/proxy-read-timeout-for-an-apache-location/227239)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [March 8, 2013, 9:31pm UTC](https://www.ruby-forum.com/t/proxy-read-timeout-for-an-apache-location/227239 "2013-03-08T21:31:12Z")

</div>

Can I set proxy\_read\_timeout for only a particular location which is passed to apache? Grant

---

## [Selectively implement something like proxy\_ignore\_headers Set-Cookie?](https://www.ruby-forum.com/t/selectively-implement-something-like-proxy-ignore-headers-set-cookie/227249)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 1\
**Last updated:** [March 8, 2013, 7:45pm UTC](https://www.ruby-forum.com/t/selectively-implement-something-like-proxy-ignore-headers-set-cookie/227249 "2013-03-08T19:45:28Z")

</div>

I’m wondering if anyone has any thoughts about how I might address the following? I am using nginx as a caching reverse proxy in front of a complex Apache/Weblogic Java application. I have a half-dozen Location block…

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

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