# Server

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

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

---

## [Shared memory zone "media" conflicts with already declared size 0](https://www.ruby-forum.com/t/shared-memory-zone-media-conflicts-with-already-declared-size-0/176296)

<div class="topic-metadata">

**Author:** [@Tomasz\_P](https://www.ruby-forum.com/u/Tomasz_P)\
**Replies:** 14\
**Last updated:** [February 8, 2013, 7:45pm UTC](https://www.ruby-forum.com/t/shared-memory-zone-media-conflicts-with-already-declared-size-0/176296 "2013-02-08T19:45:48Z")

</div>

what seems to be the problem? \[emerg\]: the size 52428800 of shared memory zone “media” conflicts with already declared size 0 in /etc/nginx/conf.d/cache.conf:5 configuration file /etc/nginx/nginx.conf test failed my …

---

## [Set port range for nginx](https://www.ruby-forum.com/t/set-port-range-for-nginx/229787)

<div class="topic-metadata">

**Author:** [@Fufeng\_Yao](https://www.ruby-forum.com/u/Fufeng_Yao)\
**Replies:** 2\
**Last updated:** [February 8, 2013, 11:05am UTC](https://www.ruby-forum.com/t/set-port-range-for-nginx/229787 "2013-02-08T11:05:40Z")

</div>

Hi, all I’ve got an nginx server in an internal network, and the server will forward request to outer net using proxy\_pass, it seems like: proxy\_pass http://\[public ip\]:\[port\] Unfortunately, the firewall block most …

---

## [Nginx-1.3.12](https://www.ruby-forum.com/t/nginx-1-3-12/229834)

<div class="topic-metadata">

**Author:** [@Maxim\_D](https://www.ruby-forum.com/u/Maxim_D)\
**Replies:** 1\
**Last updated:** [February 8, 2013, 10:54am UTC](https://www.ruby-forum.com/t/nginx-1-3-12/229834 "2013-02-08T10:54:34Z")

</div>

Changes with nginx 1.3.12 05 Feb 2013 \*) Feature: variables support in the "proxy\_bind", "fastcgi\_bind", "memcached\_bind", "scgi\_bind", and "uwsgi\_bind" directives. \*) Feature…

---

## [Is HTTP 1.1 chuncked file encoding on upstream fastcgi servers working for nginx 1.2.4?](https://www.ruby-forum.com/t/is-http-1-1-chuncked-file-encoding-on-upstream-fastcgi-servers-working-for-nginx-1-2-4/229590)

<div class="topic-metadata">

**Author:** [@SirNoSkill](https://www.ruby-forum.com/u/SirNoSkill)\
**Replies:** 1\
**Last updated:** [February 7, 2013, 1:04pm UTC](https://www.ruby-forum.com/t/is-http-1-1-chuncked-file-encoding-on-upstream-fastcgi-servers-working-for-nginx-1-2-4/229590 "2013-02-07T13:04:30Z")

</div>

Hi, I have a question regarding nginx-fastcgi. I use nginx 1.2.4 from here: sudo -s nginx=stable # use nginx=development for latest development version add-apt-repository ppa:nginx/$nginx apt-get update apt-get i…

---

## [How proxy\_next\_upstream control retry times](https://www.ruby-forum.com/t/how-proxy-next-upstream-control-retry-times/229797)

<div class="topic-metadata">

**Author:** [@SSSS\_SSSS\_SSS\_SSS](https://www.ruby-forum.com/u/SSSS_SSSS_SSS_SSS)\
**Replies:** 2\
**Last updated:** [February 7, 2013, 4:08am UTC](https://www.ruby-forum.com/t/how-proxy-next-upstream-control-retry-times/229797 "2013-02-07T04:08:02Z")

</div>

hi now i am looking for a 50x retry method, config like this: upstream jboss8080 { server 10.1.2.164:8080 weight=1 max\_fails=1 fail\_timeout=2s; server 10.1.2.174:8080 we…

---

## [Cache configuration](https://www.ruby-forum.com/t/cache-configuration/225733)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 8\
**Last updated:** [February 6, 2013, 7:55pm UTC](https://www.ruby-forum.com/t/cache-configuration/225733 "2013-02-06T19:55:28Z")

</div>

Hello everyone! A cache issue… I created an XML file order.xml with this simle cotent: \<?xml version="1.0" encoding="utf-8"?\> John D. Foo Str. 3, 10117 Berlin …

---

## [Newbie question on ip\_hash](https://www.ruby-forum.com/t/newbie-question-on-ip-hash/229536)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [February 6, 2013, 6:00pm UTC](https://www.ruby-forum.com/t/newbie-question-on-ip-hash/229536 "2013-02-06T18:00:51Z")

</div>

Why does ip\_hash only use the first 3 octects of the IP address? The reason I ask is that we run we servers for a number of schools. Each school is going the be their own subnet, ranging from a /24 to a /20 in size. …

---

## [HTTP/1.1 505 HTTP Version Not Supported Server: nginx/1.2.6](https://www.ruby-forum.com/t/http-1-1-505-http-version-not-supported-server-nginx-1-2-6/229869)

<div class="topic-metadata">

**Author:** [@rtsai](https://www.ruby-forum.com/u/rtsai)\
**Replies:** 4\
**Last updated:** [February 5, 2013, 9:51pm UTC](https://www.ruby-forum.com/t/http-1-1-505-http-version-not-supported-server-nginx-1-2-6/229869 "2013-02-05T21:51:43Z")

</div>

Hi, I am using nginx as a ssl offloader in front of HAProxy. The issue I am having is I get a 505 error on one of the calls I make to Nginx/haproxy. If I make that same call to haproxy directory, I get a 200. Serve…

---

## [MaxMind-GeoIP Question](https://www.ruby-forum.com/t/maxmind-geoip-question/229743)

<div class="topic-metadata">

**Author:** [@AJ\_Weber](https://www.ruby-forum.com/u/AJ_Weber)\
**Replies:** 3\
**Last updated:** [February 5, 2013, 6:26pm UTC](https://www.ruby-forum.com/t/maxmind-geoip-question/229743 "2013-02-05T18:26:00Z")

</div>

I see older pages referencing the ability to use geoip\_org (I assume if you purchase MaxMind’s Organization DB), but the latest documentation that I looked at only specifies country/city directives. Can anyone confirm…

---

## [Problem with client\_max\_body\_size](https://www.ruby-forum.com/t/problem-with-client-max-body-size/229394)

<div class="topic-metadata">

**Author:** [@dastSc-base](https://www.ruby-forum.com/u/dastSc-base)\
**Replies:** 7\
**Last updated:** [February 5, 2013, 4:23pm UTC](https://www.ruby-forum.com/t/problem-with-client-max-body-size/229394 "2013-02-05T16:23:51Z")

</div>

Hi, i want to use Nginx with apache2 and mod\_dav\_svn for hosting my SVN Repository via https. But i have problems on commit large files. On a 8MB ffmpeg binary commit, my SVN client brings this error: Commit failed …

---

## [How to make log show a successful exchange of digital certificates](https://www.ruby-forum.com/t/how-to-make-log-show-a-successful-exchange-of-digital-certificates/229675)

<div class="topic-metadata">

**Author:** [@dencivi](https://www.ruby-forum.com/u/dencivi)\
**Replies:** 2\
**Last updated:** [February 5, 2013, 9:10am UTC](https://www.ruby-forum.com/t/how-to-make-log-show-a-successful-exchange-of-digital-certificates/229675 "2013-02-05T09:10:46Z")

</div>

Hello, I've make nginx support TLS(Mutual Authentication), It's can be work and very cool. but i want have some detail log about exchange of digital certificates. for example, the log have exchange success and clie…

---

## [Hard-disk util% got higher on enabling aio for nginx-1.2.1](https://www.ruby-forum.com/t/hard-disk-util-got-higher-on-enabling-aio-for-nginx-1-2-1/229464)

<div class="topic-metadata">

**Author:** [@shahzaib12](https://www.ruby-forum.com/u/shahzaib12)\
**Replies:** 2\
**Last updated:** [February 5, 2013, 8:15am UTC](https://www.ruby-forum.com/t/hard-disk-util-got-higher-on-enabling-aio-for-nginx-1-2-1/229464 "2013-02-05T08:15:50Z")

</div>

Hello, I followed this post to optimize nginx for large static files i.e (flv,mp4) and enabled aio on nginx config which you can see below, and after enabling aio, directio, and output\_buffers, i could notic…

---

## [HDD util is 100% - aio questions](https://www.ruby-forum.com/t/hdd-util-is-100-aio-questions/225746)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 11\
**Last updated:** [February 5, 2013, 7:48am UTC](https://www.ruby-forum.com/t/hdd-util-is-100-aio-questions/225746 "2013-02-05T07:48:56Z")

</div>

Hello Right now nginx manages to put hdds in the server to high util rate. I try to run Nginx 1.2.3 with aio support to deliver mp4 videos with the streaming module. I compiled the server with aio and it starts fine. …

---

## [YA Converting .htaccess to nginx, I can't get it to work!](https://www.ruby-forum.com/t/ya-converting-htaccess-to-nginx-i-cant-get-it-to-work/229849)

<div class="topic-metadata">

**Author:** [@otherjohn](https://www.ruby-forum.com/u/otherjohn)\
**Replies:** 0\
**Last updated:** [February 5, 2013, 4:24am UTC](https://www.ruby-forum.com/t/ya-converting-htaccess-to-nginx-i-cant-get-it-to-work/229849 "2013-02-05T04:24:25Z")

</div>

Hi all, I am trying to convert this htaccess file to nginx config and it is not working. Here is my .htaccess Header unset ETag FileETag None Header unset Last-Modified …

---

## [Looking for help in setting up Magento Full Page Cache using NGINX](https://www.ruby-forum.com/t/looking-for-help-in-setting-up-magento-full-page-cache-using-nginx/229861)

<div class="topic-metadata">

**Author:** [@f.corriga](https://www.ruby-forum.com/u/f.corriga)\
**Replies:** 0\
**Last updated:** [February 4, 2013, 7:09pm UTC](https://www.ruby-forum.com/t/looking-for-help-in-setting-up-magento-full-page-cache-using-nginx/229861 "2013-02-04T19:09:19Z")

</div>

Hello. I’ve set up a custom Magento store on NGINX+PHP5-FPM+Percona DB. I would like to use the NGINX cache instead of Varnish or other FPCs. I’m looking for help to set up NGINX FCGI\_Cache for Magento the correct wa…

---

## [$upstream\_http\_\* variables exist but do not seem to be readable](https://www.ruby-forum.com/t/upstream-http-variables-exist-but-do-not-seem-to-be-readable/229383)

<div class="topic-metadata">

**Author:** [@shrikeh](https://www.ruby-forum.com/u/shrikeh)\
**Replies:** 5\
**Last updated:** [February 4, 2013, 1:47pm UTC](https://www.ruby-forum.com/t/upstream-http-variables-exist-but-do-not-seem-to-be-readable/229383 "2013-02-04T13:47:06Z")

</div>

Hi, I’m currently using OpenResty, and one of the things I am trying to do is have the backend send a specific header, and if that header is present, run a body\_filter\_by\_lua call on the output. However, while I can…

---

## [SSL proxy client certificate rewrite to username/password](https://www.ruby-forum.com/t/ssl-proxy-client-certificate-rewrite-to-username-password/229379)

<div class="topic-metadata">

**Author:** [@twine](https://www.ruby-forum.com/u/twine)\
**Replies:** 0\
**Last updated:** [February 4, 2013, 9:37am UTC](https://www.ruby-forum.com/t/ssl-proxy-client-certificate-rewrite-to-username-password/229379 "2013-02-04T09:37:31Z")

</div>

I want to use VoltDB’s HTTP JSON interface http://voltdb.com/docs/UsingVoltDB/ProgLangJson.php section 15.2.1 I also want to use certificate based authentication of the client. I am thinking that I can use nginx as S…

---

## [Ngx\_openresty devel version 1.2.6.3 released](https://www.ruby-forum.com/t/ngx-openresty-devel-version-1-2-6-3-released/229423)

<div class="topic-metadata">

**Author:** [@agentzh](https://www.ruby-forum.com/u/agentzh)\
**Replies:** 0\
**Last updated:** [February 4, 2013, 8:27am UTC](https://www.ruby-forum.com/t/ngx-openresty-devel-version-1-2-6-3-released/229423 "2013-02-04T08:27:24Z")

</div>

I am delighted to announce the new development version of ngx\_openresty, 1.2.6.3: http://openresty.org/#Download Special thanks go to all our contributors and users for helping make this happen! Below is the comple…

---

## [Features](https://www.ruby-forum.com/t/features/229396)

<div class="topic-metadata">

**Author:** [@cris](https://www.ruby-forum.com/u/cris)\
**Replies:** 0\
**Last updated:** [February 4, 2013, 7:59am UTC](https://www.ruby-forum.com/t/features/229396 "2013-02-04T07:59:55Z")

</div>

Hello I added some features to version 1.2.3, but since nginx moves forward, I’d like to see if there’s a way to put those as permanent patch The features refers to limit\_rate\_after directive and a new one limit\_ra…

---

## [Restricting access to specific subdirectories](https://www.ruby-forum.com/t/restricting-access-to-specific-subdirectories/229668)

<div class="topic-metadata">

**Author:** [@jdiana](https://www.ruby-forum.com/u/jdiana)\
**Replies:** 3\
**Last updated:** [February 3, 2013, 10:53pm UTC](https://www.ruby-forum.com/t/restricting-access-to-specific-subdirectories/229668 "2013-02-03T22:53:25Z")

</div>

Hey all, I’m a little stumped about what I’m doing wrong here. Basically I have a subdirectory that I want to restrict access to specific IP’s, otherwise return a 403. If I do the following (inside my server {} blo…

---

## [Strange php-fpm ini parsing](https://www.ruby-forum.com/t/strange-php-fpm-ini-parsing/229353)

<div class="topic-metadata">

**Author:** [@Anoop\_A](https://www.ruby-forum.com/u/Anoop_A)\
**Replies:** 0\
**Last updated:** [February 3, 2013, 12:00pm UTC](https://www.ruby-forum.com/t/strange-php-fpm-ini-parsing/229353 "2013-02-03T12:00:49Z")

</div>

Hi, This is probably Off Topic . But I think most people use php-fpm for php with nginx and thought people here could really help I have a strange issue of php.fpm parsing a file ending in .ini whereas this .ini file…

---

## [Too Many Redirects](https://www.ruby-forum.com/t/too-many-redirects/229578)

<div class="topic-metadata">

**Author:** [@billmanhillman](https://www.ruby-forum.com/u/billmanhillman)\
**Replies:** 5\
**Last updated:** [February 2, 2013, 7:59pm UTC](https://www.ruby-forum.com/t/too-many-redirects/229578 "2013-02-02T19:59:04Z")

</div>

Proxy Pass is causing to many redirects when web.xml is upshifting to SSL via security-constraint. It seems like tomcat doesn’t like receiving proxy\_pass with http://localhost:8080 and tries to convert to SSL again. …

---

## [Set arbitrary http header?](https://www.ruby-forum.com/t/set-arbitrary-http-header/229430)

<div class="topic-metadata">

**Author:** [@zacharyalexstern](https://www.ruby-forum.com/u/zacharyalexstern)\
**Replies:** 6\
**Last updated:** [February 1, 2013, 9:47pm UTC](https://www.ruby-forum.com/t/set-arbitrary-http-header/229430 "2013-02-01T21:47:47Z")

</div>

Currently in our setup, we are using the X-Real-IP header setting in nginx, to tell in our backend apache logs the IP address of the client. Is it possible to set up nginx to insert an arbitrary HTTP header with text …

---

## [Nginx and pseudostreaming with embedded perl and proxy](https://www.ruby-forum.com/t/nginx-and-pseudostreaming-with-embedded-perl-and-proxy/229606)

<div class="topic-metadata">

**Author:** [@Sven\_SDarkmanS\_Mich](https://www.ruby-forum.com/u/Sven_SDarkmanS_Mich)\
**Replies:** 0\
**Last updated:** [February 1, 2013, 8:52pm UTC](https://www.ruby-forum.com/t/nginx-and-pseudostreaming-with-embedded-perl-and-proxy/229606 "2013-02-01T20:52:49Z")

</div>

Hi there, i’ve the following setup: nginx as proxy in front of a central “storage” server who holds movies and pictures. So if a user requests some stuff, the proxy module fetches it from the central server and deliv…

---

## [Caching Objects, Passing Through and Rewrites](https://www.ruby-forum.com/t/caching-objects-passing-through-and-rewrites/229481)

<div class="topic-metadata">

**Author:** [@jwilson](https://www.ruby-forum.com/u/jwilson)\
**Replies:** 0\
**Last updated:** [February 1, 2013, 6:34pm UTC](https://www.ruby-forum.com/t/caching-objects-passing-through-and-rewrites/229481 "2013-02-01T18:34:19Z")

</div>

I’m trying to set up nginx to reverse proxy for our CDN to prevent unauthorized access to raw video feeds. The idea is to restrict it to a set user-agent and referer, and if doesn’t match, to instead call the page f…

---

## [Nginx randomly crashes](https://www.ruby-forum.com/t/nginx-randomly-crashes/225828)

<div class="topic-metadata">

**Author:** [@SSkonishi\_takurou\_S](https://www.ruby-forum.com/u/SSkonishi_takurou_S)\
**Replies:** 10\
**Last updated:** [February 1, 2013, 12:35pm UTC](https://www.ruby-forum.com/t/nginx-randomly-crashes/225828 "2013-02-01T12:35:18Z")

</div>

I’ve got a problem with Nginx running on Ubuntu 12.10. I’m running it mainly as a reverse proxy and there is no high load on the machine. It randomly crashes without any helpful log info (or at least I think so). H…

---

## [Nginx - php-fpm: access restrictions for some php pages](https://www.ruby-forum.com/t/nginx-php-fpm-access-restrictions-for-some-php-pages/225834)

<div class="topic-metadata">

**Author:** [@SSkonishi\_takurou\_S](https://www.ruby-forum.com/u/SSkonishi_takurou_S)\
**Replies:** 6\
**Last updated:** [January 31, 2013, 8:52pm UTC](https://www.ruby-forum.com/t/nginx-php-fpm-access-restrictions-for-some-php-pages/225834 "2013-01-31T20:52:37Z")

</div>

Hello, I have a folder containing some PHP files served with php-fpm (fastcgi); inside tihs folder, I have a file which I want to be allowed for internal IPs and deny for external. The problem I have is that with th…

---

## [Proxy\_pass to backend (varnish): delivered ip?](https://www.ruby-forum.com/t/proxy-pass-to-backend-varnish-delivered-ip/225810)

<div class="topic-metadata">

**Author:** [@SSkonishi\_takurou\_S](https://www.ruby-forum.com/u/SSkonishi_takurou_S)\
**Replies:** 7\
**Last updated:** [January 31, 2013, 8:13am UTC](https://www.ruby-forum.com/t/proxy-pass-to-backend-varnish-delivered-ip/225810 "2013-01-31T08:13:55Z")

</div>

Hey, maybe the solution is really simple, but i can’t find it. nginx (1.2.1) handles ssl and proxies the traffic to the backend (varnish, which also handles http): location / { proxy\_set\_header Host $host; prox…

---

## [Nginx deployments survey](https://www.ruby-forum.com/t/nginx-deployments-survey/225454)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 7\
**Last updated:** [January 30, 2013, 10:13pm UTC](https://www.ruby-forum.com/t/nginx-deployments-survey/225454 "2013-01-30T22:13:56Z")

</div>

Hello, We had a pretty packed 2012 in regards to nginx development. We’ve got a lot of feedback too from a variety of users. However as we gear up for the new development cycle in 2013, we’d appreciate a lot if you c…

---

## [Does zero buffer allowed in the output buffer chain?](https://www.ruby-forum.com/t/does-zero-buffer-allowed-in-the-output-buffer-chain/225793)

<div class="topic-metadata">

**Author:** [@SSkonishi\_takurou\_S](https://www.ruby-forum.com/u/SSkonishi_takurou_S)\
**Replies:** 2\
**Last updated:** [January 30, 2013, 8:13pm UTC](https://www.ruby-forum.com/t/does-zero-buffer-allowed-in-the-output-buffer-chain/225793 "2013-01-30T20:13:28Z")

</div>

Hi, I am writing a http handler module, I found when the last buffer in the output buffer chain is zero, I’ll get an alert in the error log about zero output buffer, and the browser will get no response after waiting …

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

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