# Server

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

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

---

## [Why does nginx work at the server IP address only with default root location?](https://www.ruby-forum.com/t/why-does-nginx-work-at-the-server-ip-address-only-with-default-root-location/228417)

<div class="topic-metadata">

**Author:** [@Paul\_NSPace](https://www.ruby-forum.com/u/Paul_NSPace)\
**Replies:** 2\
**Last updated:** [April 21, 2013, 10:15pm UTC](https://www.ruby-forum.com/t/why-does-nginx-work-at-the-server-ip-address-only-with-default-root-location/228417 "2013-04-21T22:15:10Z")

</div>

I have set up a server on Rackspace using Ubuntu 12.04 and the nginx stable PPA. Using the default root location of /usr/share/nginx/html the index.html file is displayed when I call the public IP address of the serv…

---

## [Websocket backend](https://www.ruby-forum.com/t/websocket-backend/227462)

<div class="topic-metadata">

**Author:** [@djczaski](https://www.ruby-forum.com/u/djczaski)\
**Replies:** 3\
**Last updated:** [April 18, 2013, 10:16pm UTC](https://www.ruby-forum.com/t/websocket-backend/227462 "2013-04-18T22:16:04Z")

</div>

What are the best options for websocket backends? I’m working with an embedded platform so I’m somewhat restricted to something lightweight in C/C++. The things I found so far are: libwebsockets: http://git.warmcat.…

---

## [Php supports](https://www.ruby-forum.com/t/php-supports/228349)

<div class="topic-metadata">

**Author:** [@Friedrich\_L](https://www.ruby-forum.com/u/Friedrich_L)\
**Replies:** 2\
**Last updated:** [April 18, 2013, 9:48pm UTC](https://www.ruby-forum.com/t/php-supports/228349 "2013-04-18T21:48:37Z")

</div>

Hi folks, I wonder if i can use php with ldap support in nginx ? does kadm5 PECL is supported too by php nginx ? Thanks once more. Best regards, Gustavo.

---

## [Exchange / Outlook - RPC Method and Error 405](https://www.ruby-forum.com/t/exchange-outlook-rpc-method-and-error-405/227009)

<div class="topic-metadata">

**Author:** [@gmor](https://www.ruby-forum.com/u/gmor)\
**Replies:** 7\
**Last updated:** [April 18, 2013, 1:47pm UTC](https://www.ruby-forum.com/t/exchange-outlook-rpc-method-and-error-405/227009 "2013-04-18T13:47:12Z")

</div>

Hi all, I’ve tried to do some research on this already, but without much luck. So I’m hoping others may be able to assist. I’m trying to use Nginx as a Reverse Proxy back to an Exchange 2007 environment. Nginx is …

---

## [Listen backlog](https://www.ruby-forum.com/t/listen-backlog/228333)

<div class="topic-metadata">

**Author:** [@crazynuxer](https://www.ruby-forum.com/u/crazynuxer)\
**Replies:** 2\
**Last updated:** [April 18, 2013, 12:04pm UTC](https://www.ruby-forum.com/t/listen-backlog/228333 "2013-04-18T12:04:57Z")

</div>

Dear All, I have some vhost with nginx , when I set backlog at some vhost, I get error nginx: \[emerg\] duplicate listen options for 0.0.0.0:80 in my question is. When we configure 1 vhost with backlog option , it will …

---

## [HealthCheck in Baseconfiguration](https://www.ruby-forum.com/t/healthcheck-in-baseconfiguration/228332)

<div class="topic-metadata">

**Author:** [@HajoLOcke](https://www.ruby-forum.com/u/HajoLOcke)\
**Replies:** 2\
**Last updated:** [April 18, 2013, 11:40am UTC](https://www.ruby-forum.com/t/healthcheck-in-baseconfiguration/228332 "2013-04-18T11:40:25Z")

</div>

Hello, i use nginx 1.0.12 and 1.2.4 I know there is a special healthcheckmodule. But i want to know if nginx ist doing a kind of healtcheck in its basic Configuration without the special HttpHealthcheckModule. Is n…

---

## [Ngx\_openresty stable version 1.2.7.6 released](https://www.ruby-forum.com/t/ngx-openresty-stable-version-1-2-7-6-released/228327)

<div class="topic-metadata">

**Author:** [@agentzh](https://www.ruby-forum.com/u/agentzh)\
**Replies:** 0\
**Last updated:** [April 18, 2013, 8:21am UTC](https://www.ruby-forum.com/t/ngx-openresty-stable-version-1-2-7-6-released/228327 "2013-04-18T08:21:47Z")

</div>

Hello! I am happy to announce that the new stable version of ngx\_openresty, 1.2.7.6, is now released: http://openresty.org/#Download Special thanks go to all our contributors and users for helping make this happen! …

---

## [Resumable uploads using PUT method](https://www.ruby-forum.com/t/resumable-uploads-using-put-method/228321)

<div class="topic-metadata">

**Author:** [@Nicolas\_de\_Bari\_Emb](https://www.ruby-forum.com/u/Nicolas_de_Bari_Emb)\
**Replies:** 0\
**Last updated:** [April 17, 2013, 11:27pm UTC](https://www.ruby-forum.com/t/resumable-uploads-using-put-method/228321 "2013-04-17T23:27:45Z")

</div>

Hi, is there a way to use the PUT method instead of POST when using the upload module (http://www.grid.net.ru/nginx/resumable\_uploads.en.html) regards.

---

## [Cross-compiling Nginx for ARM?](https://www.ruby-forum.com/t/cross-compiling-nginx-for-arm/228184)

<div class="topic-metadata">

**Author:** [@Shohreh](https://www.ruby-forum.com/u/Shohreh)\
**Replies:** 4\
**Last updated:** [April 17, 2013, 3:32pm UTC](https://www.ruby-forum.com/t/cross-compiling-nginx-for-arm/228184 "2013-04-17T15:32:40Z")

</div>

Hello, I’d like to run Nginx on the SheevaPlug (SheevaPlug - Wikipedia), which is based on Marvell’s Kirkwood 88F6281 (ARM9E/ARMv5TE). I have a couple of newbie questions: The archives of the mailing list (Re: ngi…

---

## [Nginx connection close module](https://www.ruby-forum.com/t/nginx-connection-close-module/228300)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 0\
**Last updated:** [April 17, 2013, 8:36am UTC](https://www.ruby-forum.com/t/nginx-connection-close-module/228300 "2013-04-17T08:36:05Z")

</div>

Hello, I’m sending you this email after some hours of struggling on google and nginx related page/articles/wiki for finding some nginx plugin for tcp disconnect/reset of some client. My plan is to make an reverse mai…

---

## [Nginx-1.3.16](https://www.ruby-forum.com/t/nginx-1-3-16/228279)

<div class="topic-metadata">

**Author:** [@Maxim\_D](https://www.ruby-forum.com/u/Maxim_D)\
**Replies:** 1\
**Last updated:** [April 17, 2013, 4:13am UTC](https://www.ruby-forum.com/t/nginx-1-3-16/228279 "2013-04-17T04:13:47Z")

</div>

Changes with nginx 1.3.16 16 Apr 2013 \*) Bugfix: a segmentation fault might occur in a worker process if subrequests were used; the bug had appeared in 1.3.9. \*) Bugfix: the "…

---

## [Status Code 001 In Logs](https://www.ruby-forum.com/t/status-code-001-in-logs/228139)

<div class="topic-metadata">

**Author:** [@abstein2](https://www.ruby-forum.com/u/abstein2)\
**Replies:** 4\
**Last updated:** [April 16, 2013, 6:23pm UTC](https://www.ruby-forum.com/t/status-code-001-in-logs/228139 "2013-04-16T18:23:29Z")

</div>

I can’t find documention anywhere on what it means when nginx shows 001 as the value of $status in the access\_log. I currently use nginx as a reverse proxy and I get this error when uploading large files (2+ MB thou…

---

## [Rewrite rule for all domains](https://www.ruby-forum.com/t/rewrite-rule-for-all-domains/228280)

<div class="topic-metadata">

**Author:** [@David\_S\_StyleFlare](https://www.ruby-forum.com/u/David_S_StyleFlare)\
**Replies:** 3\
**Last updated:** [April 16, 2013, 5:19pm UTC](https://www.ruby-forum.com/t/rewrite-rule-for-all-domains/228280 "2013-04-16T17:19:46Z")

</div>

Pardon me if I missed this in the docs… My issue is that I want to rewrite every domain and not create a server block for each. I am trying to rewrite every domain thats pointing to Nginx from www.server.com to serve…

---

## [Least connections and multi\_accept](https://www.ruby-forum.com/t/least-connections-and-multi-accept/228269)

<div class="topic-metadata">

**Author:** [@SSAntS\_nio\_PSPSAlm](https://www.ruby-forum.com/u/SSAntS_nio_PSPSAlm)\
**Replies:** 2\
**Last updated:** [April 16, 2013, 2:07pm UTC](https://www.ruby-forum.com/t/least-connections-and-multi-accept/228269 "2013-04-16T14:07:30Z")

</div>

Recently Ruslan, while replying to someone stated that the internal counters for the least connections load balancing algorithm ate per worker and consequently unless there is a high load it might not add up that in f…

---

## [Handling x\_forwarded\_proto with Nginx as backend to HAproxy](https://www.ruby-forum.com/t/handling-x-forwarded-proto-with-nginx-as-backend-to-haproxy/228263)

<div class="topic-metadata">

**Author:** [@jaychris](https://www.ruby-forum.com/u/jaychris)\
**Replies:** 4\
**Last updated:** [April 16, 2013, 10:13am UTC](https://www.ruby-forum.com/t/handling-x-forwarded-proto-with-nginx-as-backend-to-haproxy/228263 "2013-04-16T10:13:13Z")

</div>

Running Nginx 1.2.7 behind HAproxy, with SSL being terminated on on HAproxy. I was using the X\_FORWARDED\_PROTO header to make some decisions on the backend when I was using Apache, but it doesn’t look like Nginx is h…

---

## [Open\_file\_cache](https://www.ruby-forum.com/t/open-file-cache/228256)

<div class="topic-metadata">

**Author:** [@rkoskela](https://www.ruby-forum.com/u/rkoskela)\
**Replies:** 1\
**Last updated:** [April 15, 2013, 9:59pm UTC](https://www.ruby-forum.com/t/open-file-cache/228256 "2013-04-15T21:59:23Z")

</div>

Hi Is the max value specified in open\_file\_cache on a per-worker basis? e.g. if I set it to 20,000, will it cache 80,000 open fds with 4 workers? Thanks

---

## [Reverse proxy : preserving base url](https://www.ruby-forum.com/t/reverse-proxy-preserving-base-url/228221)

<div class="topic-metadata">

**Author:** [@mastah](https://www.ruby-forum.com/u/mastah)\
**Replies:** 1\
**Last updated:** [April 15, 2013, 8:06pm UTC](https://www.ruby-forum.com/t/reverse-proxy-preserving-base-url/228221 "2013-04-15T20:06:03Z")

</div>

Hi. I’m struggling since about 2days to create a reverse proxy with nginx. Here is my situation : I’ve a sub domain which we will call : sub.example.com I’ve an internal application at 127.0.0.1:9090/app What I woul…

---

## [Reg. automatic failover](https://www.ruby-forum.com/t/reg-automatic-failover/228096)

<div class="topic-metadata">

**Author:** [@ESWAR\_RAO](https://www.ruby-forum.com/u/ESWAR_RAO)\
**Replies:** 2\
**Last updated:** [April 15, 2013, 1:00pm UTC](https://www.ruby-forum.com/t/reg-automatic-failover/228096 "2013-04-15T13:00:06Z")

</div>

Hi All, I observed that automatic failover behaviour is not working with my nginx server. /opt/nginx/sbin/nginx -v nginx version: nginx/1.2.8 nginx server is running with following conf: upstream lb\_get { server…

---

## [Limit\_conn\_zone and limit\_conn behavior in 1.2.8](https://www.ruby-forum.com/t/limit-conn-zone-and-limit-conn-behavior-in-1-2-8/228188)

<div class="topic-metadata">

**Author:** [@mrtn](https://www.ruby-forum.com/u/mrtn)\
**Replies:** 1\
**Last updated:** [April 15, 2013, 1:06am UTC](https://www.ruby-forum.com/t/limit-conn-zone-and-limit-conn-behavior-in-1-2-8/228188 "2013-04-15T01:06:48Z")

</div>

In my config, within http section, I have: limit\_conn\_zone $binary\_remote\_addr zone=addr:10m; limit\_conn addr 3; which I interpret as, setting a memory zone of size 10 megabytes for keeping states of…

---

## [Using upstream module that won't override the original request](https://www.ruby-forum.com/t/using-upstream-module-that-wont-override-the-original-request/228224)

<div class="topic-metadata">

**Author:** [@gadh](https://www.ruby-forum.com/u/gadh)\
**Replies:** 1\
**Last updated:** [April 14, 2013, 10:22pm UTC](https://www.ruby-forum.com/t/using-upstream-module-that-wont-override-the-original-request/228224 "2013-04-14T22:22:04Z")

</div>

I’m trying to hold a client request to backend (not go to the server yet), issue an upstream request to another server, then parse the upstream response, store it in my orig. request ctx, only then go to backend serv…

---

## [Buffering stopped after 3minutes](https://www.ruby-forum.com/t/buffering-stopped-after-3minutes/228213)

<div class="topic-metadata">

**Author:** [@shahzaib12](https://www.ruby-forum.com/u/shahzaib12)\
**Replies:** 3\
**Last updated:** [April 14, 2013, 4:22pm UTC](https://www.ruby-forum.com/t/buffering-stopped-after-3minutes/228213 "2013-04-14T16:22:13Z")

</div>

Hello, We are running a video stream website and using nginx(1.2.1) for streaming. Whenever user plays the video it started smoothly but buffering stopped on the mid point and user have to seek again to play the vid…

---

## [How to set up nginx as a 2-factor authentication portal that becomes transparent once auth'd?](https://www.ruby-forum.com/t/how-to-set-up-nginx-as-a-2-factor-authentication-portal-that-becomes-transparent-once-authd/228191)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [April 13, 2013, 1:02am UTC](https://www.ruby-forum.com/t/how-to-set-up-nginx-as-a-2-factor-authentication-portal-that-becomes-transparent-once-authd/228191 "2013-04-13T01:02:21Z")

</div>

Hi, I just started with a small company that’s got a bunch of web apps being served up from a bunch of different web servers. Some are ‘appliances’, most are Apache. It’s a mess of an infrastrucutre – slow and . My…

---

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

<div class="topic-metadata">

**Author:** [@cruise](https://www.ruby-forum.com/u/cruise)\
**Replies:** 4\
**Last updated:** [April 12, 2013, 9:12pm UTC](https://www.ruby-forum.com/t/nginx-reverse-proxy-502-bad-gateway-error/228183 "2013-04-12T21:12:10Z")

</div>

Hello, I am getting 502 bad gateway error while trying to setup nginx server as reverse proxy server with caching enabled. Both servers are on seperate machines, another server having apache web server. Given below a…

---

## [Large\_client\_header\_buffers directive is accepted, but ignored](https://www.ruby-forum.com/t/large-client-header-buffers-directive-is-accepted-but-ignored/228172)

<div class="topic-metadata">

**Author:** [@Scott\_ESMacKenzie](https://www.ruby-forum.com/u/Scott_ESMacKenzie)\
**Replies:** 8\
**Last updated:** [April 12, 2013, 6:23pm UTC](https://www.ruby-forum.com/t/large-client-header-buffers-directive-is-accepted-but-ignored/228172 "2013-04-12T18:23:20Z")

</div>

large\_client\_header\_buffers directive is accepted, but ignored nginx version: nginx/1.0.14 We are trying to pass a file through nginx but it dies at the same line level no matter what changes we make to nginx.conf or …

---

## [Is there any harm if the map directive in nginx is repeated for the same variable name?](https://www.ruby-forum.com/t/is-there-any-harm-if-the-map-directive-in-nginx-is-repeated-for-the-same-variable-name/228161)

<div class="topic-metadata">

**Author:** [@jayesh\_kapoor](https://www.ruby-forum.com/u/jayesh_kapoor)\
**Replies:** 0\
**Last updated:** [April 11, 2013, 7:12pm UTC](https://www.ruby-forum.com/t/is-there-any-harm-if-the-map-directive-in-nginx-is-repeated-for-the-same-variable-name/228161 "2013-04-11T19:12:09Z")

</div>

When I try it out, the definition that comes later seems to take effect. The question is, are there unintended consequences of doing this? http { map $http\_host $a { hostnames; default 1; example.com 1; \*.example…

---

## [Dropbox as upsream server](https://www.ruby-forum.com/t/dropbox-as-upsream-server/228147)

<div class="topic-metadata">

**Author:** [@winniethepooh](https://www.ruby-forum.com/u/winniethepooh)\
**Replies:** 3\
**Last updated:** [April 11, 2013, 5:45pm UTC](https://www.ruby-forum.com/t/dropbox-as-upsream-server/228147 "2013-04-11T17:45:40Z")

</div>

I’m trying to use the Dropbox public folder and my nginx server as a upstream server to server static files. I’m hoping someone can point me in the right direction or tell me what I’m doing wrong. So: my.domain.net/…

---

## [Configure --prefix with "~"](https://www.ruby-forum.com/t/configure-prefix-with/228144)

<div class="topic-metadata">

**Author:** [@mengqy](https://www.ruby-forum.com/u/mengqy)\
**Replies:** 1\
**Last updated:** [April 11, 2013, 2:20pm UTC](https://www.ruby-forum.com/t/configure-prefix-with/228144 "2013-04-11T14:20:29Z")

</div>

nginx 1.3.15, ubuntu 12.04, bash: $ ./configure --prefix=~/tools/webserver/install … $ make && make install → a dir named ‘~’ is created within current dir, but ~ should be interpreted as $HOME instead, right? Than…

---

## [Auth\_basic and file uploads](https://www.ruby-forum.com/t/auth-basic-and-file-uploads/228145)

<div class="topic-metadata">

**Author:** [@steveybaby](https://www.ruby-forum.com/u/steveybaby)\
**Replies:** 1\
**Last updated:** [April 11, 2013, 1:01pm UTC](https://www.ruby-forum.com/t/auth-basic-and-file-uploads/228145 "2013-04-11T13:01:01Z")

</div>

Hi Folks, I’ve got a magento site under development, and just want it to be password protected until it goes live. No problem I thought… add in the auth\_basic/auth\_basic\_user\_file entries to the location / block. Ho…

---

## [Nginx 1.2: static file truncated with HTTP status code 200](https://www.ruby-forum.com/t/nginx-1-2-static-file-truncated-with-http-status-code-200/219801)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [April 11, 2013, 5:52am UTC](https://www.ruby-forum.com/t/nginx-1-2-static-file-truncated-with-http-status-code-200/219801 "2013-04-11T05:52:50Z")

</div>

We’ve been running nginx 1.1.18, 1.1.19, 1.2.0, with both HTTP/HTTPS enabled. Our static files are loaded from nginx root, but since 1.1.18 $request\_time of static files some times gets 10+ seconds, recardless the act…

---

## [Try\_files for alias](https://www.ruby-forum.com/t/try-files-for-alias/170402)

<div class="topic-metadata">

**Author:** [@Edho\_P\_Arief](https://www.ruby-forum.com/u/Edho_P_Arief)\
**Replies:** 8\
**Last updated:** [April 10, 2013, 9:07am UTC](https://www.ruby-forum.com/t/try-files-for-alias/170402 "2013-04-10T09:07:20Z")

</div>

How do I make this work? location ~ /~someapp(.\*)$ { alias /home/someapp/root$1; try\_files $uri /~someapp/err404.htm; } The try\_files never catch the $uri (nor $1) and returns 500 (redirection cycle) Am I ‘forced’ t…

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

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