# Server

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

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

---

## [Sending POSTs to backend](https://www.ruby-forum.com/t/sending-posts-to-backend/236596)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [February 13, 2014, 10:08pm UTC](https://www.ruby-forum.com/t/sending-posts-to-backend/236596 "2014-02-13T22:08:59Z")

</div>

Hello folks, I use nginx in front of a django/fastcgi application, and we serve a subset of the URLs of this webapp statically. I use try\_files to determine what’s served statically and what goes to the backend. S…

---

## [Serving static files statically with GET, everything else to backend](https://www.ruby-forum.com/t/serving-static-files-statically-with-get-everything-else-to-backend/239138)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [February 13, 2014, 9:57pm UTC](https://www.ruby-forum.com/t/serving-static-files-statically-with-get-everything-else-to-backend/239138 "2014-02-13T21:57:47Z")

</div>

Hello folks, Maybe this will save some time to someone. I have a setup where I serve a web application as follows: server A with nginx handles directly as much static content as possible only requests for URLs reque…

---

## [Acess log over nfs hanging](https://www.ruby-forum.com/t/acess-log-over-nfs-hanging/239013)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 4\
**Last updated:** [February 13, 2014, 6:42pm UTC](https://www.ruby-forum.com/t/acess-log-over-nfs-hanging/239013 "2014-02-13T18:42:55Z")

</div>

Hello all. I’ve been using nginx as a reverse proxy and to write access.log files named with variables. I am also using open log file cache. It seems that when some processes are running in the nfs server, the share …

---

## [Passing Uncontrolled Requests to PHP](https://www.ruby-forum.com/t/passing-uncontrolled-requests-to-php/239133)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [February 13, 2014, 5:58pm UTC](https://www.ruby-forum.com/t/passing-uncontrolled-requests-to-php/239133 "2014-02-13T17:58:43Z")

</div>

Does the wiki example mitigate the “Passing Uncontrolled Requests to PHP” risk? location ~ \[^/\]\\.php(/|$) { fastcgi\_split\_path\_info ^(.+?\\.php)(/.\*)$; if (!-f $document\_root$fastcgi\_script\_n…

---

## [Minimal fastcgi config for 1 file?](https://www.ruby-forum.com/t/minimal-fastcgi-config-for-1-file/239127)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 5\
**Last updated:** [February 13, 2014, 5:08pm UTC](https://www.ruby-forum.com/t/minimal-fastcgi-config-for-1-file/239127 "2014-02-13T17:08:05Z")

</div>

Is it OK to use a minimal fastcgi configuration for a single file like this: location ~ ^/piwik/piwik.php$ { fastcgi\_pass unix:/run/php-fpm.socket; include fastcgi\_params; } Grant

---

## [Fastcgi & index](https://www.ruby-forum.com/t/fastcgi-index/239129)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 9\
**Last updated:** [February 13, 2014, 3:21pm UTC](https://www.ruby-forum.com/t/fastcgi-index/239129 "2014-02-13T15:21:32Z")

</div>

I’ve found that if I don’t specify: index index.html index.htm index.php; in the server blocks where I use fastcgi, I can get a 403 due to the forbidden directory index. I would have thought ‘fastcgi\_index index.php…

---

## [Path components interpretation by nginx](https://www.ruby-forum.com/t/path-components-interpretation-by-nginx/239099)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 5\
**Last updated:** [February 13, 2014, 2:53pm UTC](https://www.ruby-forum.com/t/path-components-interpretation-by-nginx/239099 "2014-02-13T14:53:51Z")

</div>

Hello, While doing an audit for a client I came across an URL of the from: http://host/foobar;arg=quux?q=en/somewhere&a=1&b=2 Now doing something like: location /test-args { return 200 “u: $uri\\nq: $query\_string\\na:…

---

## [Nginx crash!](https://www.ruby-forum.com/t/nginx-crash/239119)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 6\
**Last updated:** [February 13, 2014, 2:25pm UTC](https://www.ruby-forum.com/t/nginx-crash/239119 "2014-02-13T14:25:00Z")

</div>

Hello, We're using nginx (1.4.2) as reverse proxy in front of apache. Looks like nginx keeps on crashing. Is following alerts in nginx error\_log are normal ? 2014/02/12 11:57:12 \[alert\] 6076#0: ignore long locke…

---

## [After 1 minute, I get this error: "connect() to 127.0.0.1:8080 failed (99: Cannot assign requested a](https://www.ruby-forum.com/t/after-1-minute-i-get-this-error-connect-to-127-0-0-1-8080-failed-99-cannot-assign-requested-a/239121)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [February 13, 2014, 1:52pm UTC](https://www.ruby-forum.com/t/after-1-minute-i-get-this-error-connect-to-127-0-0-1-8080-failed-99-cannot-assign-requested-a/239121 "2014-02-13T13:52:38Z")

</div>

Hi, First of all, my environment: About 1.6 GB RAM, which doesn’t seem to be a bottleneck because actually I’m barely using it. CPU fast enough (I guess) Ubuntu 12.0.4 (32 bits, probably thats irrelevant here) My us…

---

## [Proxy\_pass & getServerPort problems](https://www.ruby-forum.com/t/proxy-pass-getserverport-problems/239102)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [February 13, 2014, 11:21am UTC](https://www.ruby-forum.com/t/proxy-pass-getserverport-problems/239102 "2014-02-13T11:21:22Z")

</div>

When I use the nginx upstream and proxy\_pass to Reverse Proxy the request. the configuration is: upstream w3new\_cls { server szxap205-in.huawei.com:9090; server szxap206-in.huawei.com:9090; } server { listen 80; …

---

## [Delete temp upload files at the end of the request?](https://www.ruby-forum.com/t/delete-temp-upload-files-at-the-end-of-the-request/239115)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [February 13, 2014, 7:00am UTC](https://www.ruby-forum.com/t/delete-temp-upload-files-at-the-end-of-the-request/239115 "2014-02-13T07:00:06Z")

</div>

Hi With the upload module, is the uploaded file supposed to be removed automatically at the end of the request? That is, the file that has just been uploaded and stored in upload\_store. I think I saw some behaviour o…

---

## [Using memcached from an Nginx module](https://www.ruby-forum.com/t/using-memcached-from-an-nginx-module/239124)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [February 12, 2014, 11:29pm UTC](https://www.ruby-forum.com/t/using-memcached-from-an-nginx-module/239124 "2014-02-12T23:29:46Z")

</div>

Hi All, I want to develop an Nginx HTTP module that gets several values from memcache, performs some processing on them and returns the result to the client. I want all memcache operations to be performed asynchronous…

---

## [Nginx-1.4.5](https://www.ruby-forum.com/t/nginx-1-4-5/239088)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [February 12, 2014, 3:29pm UTC](https://www.ruby-forum.com/t/nginx-1-4-5/239088 "2014-02-12T15:29:17Z")

</div>

Changes with nginx 1.4.5 11 Feb 2014 \*) Bugfix: the $ssl\_session\_id variable contained full session serialized instead of just a session id. Thanks to Ivan Ristić. \*) Bugf…

---

## [Security risks ( a bit OT )](https://www.ruby-forum.com/t/security-risks-a-bit-ot/239100)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [February 12, 2014, 10:14am UTC](https://www.ruby-forum.com/t/security-risks-a-bit-ot/239100 "2014-02-12T10:14:37Z")

</div>

Hi folks, I’m just about to build up a server to take over about 100 smallish drupal sites. I’ve found that it is better to share a lot of resources between sites if possible, rather than allocate small slices to each…

---

## [TCP -TLS Redirection](https://www.ruby-forum.com/t/tcp-tls-redirection/237904)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [February 12, 2014, 12:12am UTC](https://www.ruby-forum.com/t/tcp-tls-redirection/237904 "2014-02-12T00:12:45Z")

</div>

Hi Team , I want to do a tcp to tls proxy. we need to communicate to apple server via tls (tcp over ssl). our server does not have internet access so we need to use a proxy server that has internet access which can …

---

## [Proxy to upstream HTTPS server \*with different\* keys/certs in nginx](https://www.ruby-forum.com/t/proxy-to-upstream-https-server-with-different-keys-certs-in-nginx/239038)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 14\
**Last updated:** [February 11, 2014, 11:58pm UTC](https://www.ruby-forum.com/t/proxy-to-upstream-https-server-with-different-keys-certs-in-nginx/239038 "2014-02-11T23:58:40Z")

</div>

Is it possible to use a different set of certs for the client side and another set for the upstream server side? My use case is to have different sets of local ssl certs on Nginx. A key/cert pair for communicating wit…

---

## [High Traffic setup problem, module status don't deliver data](https://www.ruby-forum.com/t/high-traffic-setup-problem-module-status-dont-deliver-data/239054)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 21\
**Last updated:** [February 11, 2014, 8:26pm UTC](https://www.ruby-forum.com/t/high-traffic-setup-problem-module-status-dont-deliver-data/239054 "2014-02-11T20:26:49Z")

</div>

Dear list member. currently we have a huge traffic come up. ~500 r/s http://download.none.at/nginx\_request-day.png ~3.5K active connections http://download.none.at/port\_www-day.png http://download.none.at/nginx\_com…

---

## [Nginx returning 414 even when large\_client\_header\_buffers is set](https://www.ruby-forum.com/t/nginx-returning-414-even-when-large-client-header-buffers-is-set/218717)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 8\
**Last updated:** [February 11, 2014, 6:23pm UTC](https://www.ruby-forum.com/t/nginx-returning-414-even-when-large-client-header-buffers-is-set/218717 "2014-02-11T18:23:30Z")

</div>

My nginx server needs a request whose URI is about 4k long, it currently returns 414 with message Request-URI Too Long. I looked online and added: large\_client\_header\_buffers 4 16k; to the http block in nginx.conf, r…

---

## [Sometimes SPDY/2, Sometimes SPDY/3.1?](https://www.ruby-forum.com/t/sometimes-spdy-2-sometimes-spdy-3-1/239089)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [February 11, 2014, 4:44pm UTC](https://www.ruby-forum.com/t/sometimes-spdy-2-sometimes-spdy-3-1/239089 "2014-02-11T16:44:53Z")

</div>

Hello Everyone, We have been running SPDY/2 for months and months without issue and recently upgraded to 1.5.10 for SPDY/3.1 support. However, we are having an issue where sometimes our site reports SPDY/2 and someti…

---

## [Protecting URIs with OAuth2](https://www.ruby-forum.com/t/protecting-uris-with-oauth2/239080)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [February 11, 2014, 1:33pm UTC](https://www.ruby-forum.com/t/protecting-uris-with-oauth2/239080 "2014-02-11T13:33:18Z")

</div>

Hi Does anyone know how to protect an URI with OAuth authentication? the upstream sever is already capable of issuing new tokens, but I’m hoping that nginx can check the access token for certain URIs. Thanks! Poste…

---

## ["Idiomatic" Gallery3 configuration](https://www.ruby-forum.com/t/idiomatic-gallery3-configuration/236409)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [February 11, 2014, 1:18pm UTC](https://www.ruby-forum.com/t/idiomatic-gallery3-configuration/236409 "2014-02-11T13:18:03Z")

</div>

Hello world, I’ve looked around the net for quite some time to find a suitable configuration for nginx that allows me to run Gallery3 with php-fpm. Unfortunately, the search results weren’t that helpful. So I carefull…

---

## [Upstream sent too big header while reading response header from upstream](https://www.ruby-forum.com/t/upstream-sent-too-big-header-while-reading-response-header-from-upstream/238974)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 11\
**Last updated:** [February 11, 2014, 11:55am UTC](https://www.ruby-forum.com/t/upstream-sent-too-big-header-while-reading-response-header-from-upstream/238974 "2014-02-11T11:55:23Z")

</div>

After I added some CORS headers to my API, one of the users of my nginx-based system complained about occasional errors with: upstream sent too big header while reading response header from upstream He also reported t…

---

## [Upstream\_response\_time](https://www.ruby-forum.com/t/upstream-response-time/239070)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [February 11, 2014, 10:41am UTC](https://www.ruby-forum.com/t/upstream-response-time/239070 "2014-02-11T10:41:31Z")

</div>

I am using add\_header x-responsetime $upstream\_response\_time; to report response times of the back-end to the client. I was expecting to see the back-end response time (e.g. 0.500 for half a second), however the head…

---

## [Replace the \_\_ to %](https://www.ruby-forum.com/t/replace-the-to/239082)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [February 11, 2014, 10:25am UTC](https://www.ruby-forum.com/t/replace-the-to/239082 "2014-02-11T10:25:42Z")

</div>

hi all , I have a problem about rewrite location ~ (.ts)$ { } req http://127.0.0.1/\_\_ce\_\_a3\_\_c7\_\_e9\_\_b5\_\_fd\_\_d5\_\_bd(1080P\_\_bb\_\_ad\_\_d6\_\_ca).ts I need to replace \_\_ to % http://127.0.0.1/Σ����ս(1080P����).ts How t…

---

## [Missing /etc/nginx/sites-available](https://www.ruby-forum.com/t/missing-etc-nginx-sites-available/239063)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 4\
**Last updated:** [February 10, 2014, 9:34pm UTC](https://www.ruby-forum.com/t/missing-etc-nginx-sites-available/239063 "2014-02-10T21:34:53Z")

</div>

Hello, I’m new to linux and webservers, but I have a brain and C# background. I installed ngx\_pagespeed with nginx on a fresh ubuntu 13.10 following this tutorial : https://developers.google.com/speed/pagespeed/modu…

---

## [404 not showing up in error logs (for PHP files)](https://www.ruby-forum.com/t/404-not-showing-up-in-error-logs-for-php-files/215486)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [February 10, 2014, 4:27pm UTC](https://www.ruby-forum.com/t/404-not-showing-up-in-error-logs-for-php-files/215486 "2014-02-10T16:27:46Z")

</div>

Hi All, When a user enters an invalid php file name they are correctly routed to our default 404.html: try\_files $fastcgi\_script\_name =404; The problem is that the 404 error is not showing up in our error logs. Othe…

---

## [100% CPU Usage](https://www.ruby-forum.com/t/100-cpu-usage/239015)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [February 10, 2014, 9:13am UTC](https://www.ruby-forum.com/t/100-cpu-usage/239015 "2014-02-10T09:13:33Z")

</div>

Hi (In first sorry for my english, I’m French) In my Company we work with Trend Micro Deep Security v9. This solution is installed on a 2008R2 SP1 (Virtual Machine) and every week we have a crash; 2 NGINX.EXE proces…

---

## [No authentication prompt with if block](https://www.ruby-forum.com/t/no-authentication-prompt-with-if-block/239018)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [February 8, 2014, 10:05pm UTC](https://www.ruby-forum.com/t/no-authentication-prompt-with-if-block/239018 "2014-02-08T22:05:54Z")

</div>

Authentication works fine if I don’t include the if block but I’d like to allow only a certain user access to this server block. I get a 403 in the browser without any prompt for authentication. auth\_basic “Authentic…

---

## [SSL Question/Error](https://www.ruby-forum.com/t/ssl-question-error/239025)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 5\
**Last updated:** [February 8, 2014, 4:21am UTC](https://www.ruby-forum.com/t/ssl-question-error/239025 "2014-02-08T04:21:57Z")

</div>

Hello, i has set my vhost with ssl and has create a certificate on cacert.org. I use the tutorial on: https://www.mare-system.de/guide-to-nginx-ssl-spdy-hsts/ I has no problems in error log, no in access log all ok, …

---

## [NginxHttpRewriteModule compiled sequence](https://www.ruby-forum.com/t/nginxhttprewritemodule-compiled-sequence/238983)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [February 8, 2014, 3:40am UTC](https://www.ruby-forum.com/t/nginxhttprewritemodule-compiled-sequence/238983 "2014-02-08T03:40:21Z")

</div>

Hi , Is there a way to print all the compiled sequences of a rewrite module as documented in http://wiki.nginx.org/NginxHttpRewriteModule This interpreter is a simple stack virtual machine. For example, the directi…

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

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