# Server

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

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

---

## [Nginx location fine routing multiple backend](https://www.ruby-forum.com/t/nginx-location-fine-routing-multiple-backend/239279)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [February 20, 2014, 10:48am UTC](https://www.ruby-forum.com/t/nginx-location-fine-routing-multiple-backend/239279 "2014-02-20T10:48:10Z")

</div>

I neet to route requests to multiple backends, and I’m can’t match all, what I have so far: … root /srv/www; == below does what it should == location ~ /assets/(.+.(?:gif|jpe?g|png|txt|html|css|eot|svg|ttf|woff|sw…

---

## [Minimal configuration](https://www.ruby-forum.com/t/minimal-configuration/239169)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 11\
**Last updated:** [February 20, 2014, 9:59am UTC](https://www.ruby-forum.com/t/minimal-configuration/239169 "2014-02-20T09:59:54Z")

</div>

One could imagine a minimal server configured as such: in /nginx/nginx.conf: http { #All default http stuff, like MIME type inclusion, etc. include conf.d/.conf } in \*/nginx/conf.d/default.conf server { listen 80…

---

## [Loadable runtime modules?](https://www.ruby-forum.com/t/loadable-runtime-modules/239275)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 5\
**Last updated:** [February 20, 2014, 8:27am UTC](https://www.ruby-forum.com/t/loadable-runtime-modules/239275 "2014-02-20T08:27:31Z")

</div>

Hi, I much prefer Nginx over Apache, and would use it as our primary HTTP server at my place of work (as I already do for my personal sites), but the thing that limits my willingness to do this is the fact that one …

---

## [Rcvbuf option](https://www.ruby-forum.com/t/rcvbuf-option/239248)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 4\
**Last updated:** [February 19, 2014, 10:35pm UTC](https://www.ruby-forum.com/t/rcvbuf-option/239248 "2014-02-19T22:35:27Z")

</div>

The config listen option rcvbuf which maps to the TCP SO\_RCVBUF, is applied to the listening socket, and not inherited by the accept()ed connections. So if you have a high load application where the legitimate reques…

---

## [Headers\_in\_hash](https://www.ruby-forum.com/t/headers-in-hash/239159)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 4\
**Last updated:** [February 19, 2014, 10:00pm UTC](https://www.ruby-forum.com/t/headers-in-hash/239159 "2014-02-19T22:00:09Z")

</div>

Creating a module, I want to read in from config desired http header fields. Then, during config still, I want to get the struct offset for the fields that have dedicated pointers in the header\_in struct. It seems th…

---

## [\[Ubuntu\] Limit access to upstream server based on request header](https://www.ruby-forum.com/t/ubuntu-limit-access-to-upstream-server-based-on-request-header/239249)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [February 18, 2014, 9:08pm UTC](https://www.ruby-forum.com/t/ubuntu-limit-access-to-upstream-server-based-on-request-header/239249 "2014-02-18T21:08:52Z")

</div>

Hello, I want something like limit\_except functionality but based on custom request headers. Lets say I have a Request header X-Secured-Client set. In that case only I want to allow the request to my upstream server…

---

## [Issue with spdy and proxy\_pass](https://www.ruby-forum.com/t/issue-with-spdy-and-proxy-pass/239237)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 12\
**Last updated:** [February 18, 2014, 3:54pm UTC](https://www.ruby-forum.com/t/issue-with-spdy-and-proxy-pass/239237 "2014-02-18T15:54:58Z")

</div>

Hello, I compiled nginx 1.5.10 on Centos 6.5 and try to use it as frontend for Tomcat. If I use pure SSL everything works fine. But as soon as I enable SPDY, I only get a blank page. And Content-Length Header is 0, …

---

## [Proxy pass location inheritance](https://www.ruby-forum.com/t/proxy-pass-location-inheritance/239135)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 10\
**Last updated:** [February 18, 2014, 1:13pm UTC](https://www.ruby-forum.com/t/proxy-pass-location-inheritance/239135 "2014-02-18T13:13:36Z")

</div>

Hello, we are using NGINX to serve a combination of local and proxied content coming from both an Apache server (mostly PHP content) and IIS 7.5 (a handful of third party .Net applications). The proxy is working prope…

---

## [Does $remote\_port has to change when streaming?](https://www.ruby-forum.com/t/does-remote-port-has-to-change-when-streaming/239210)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [February 17, 2014, 3:30pm UTC](https://www.ruby-forum.com/t/does-remote-port-has-to-change-when-streaming/239210 "2014-02-17T15:30:07Z")

</div>

Hello ! I tried but cannot trust myself (and what I tried) : when streaming / playing video in the client browser, does the client’s port ($remote\_port) may change ? in the logs when configuring remote\_port I belie…

---

## [Proxy cache passes GET instead of HEAD to upstream](https://www.ruby-forum.com/t/proxy-cache-passes-get-instead-of-head-to-upstream/239162)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [February 17, 2014, 2:44pm UTC](https://www.ruby-forum.com/t/proxy-cache-passes-get-instead-of-head-to-upstream/239162 "2014-02-17T14:44:47Z")

</div>

I’m trying to figure out how to get Nginx to proxy cache HEAD requests as HEAD requests and I can’t find any info on google. Basically, I have an upstream server in another datacenter, far away, that I am proxying r…

---

## [Cache-proxy passes garbled fonts + alias problem](https://www.ruby-forum.com/t/cache-proxy-passes-garbled-fonts-alias-problem/239206)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [February 17, 2014, 1:35pm UTC](https://www.ruby-forum.com/t/cache-proxy-passes-garbled-fonts-alias-problem/239206 "2014-02-17T13:35:49Z")

</div>

Is there any possibility to get some input re this problem? Where can I start looking for answers?

---

## [Nginx like Rewrite feature (.htaccess) doesn't seem to be working (Help)](https://www.ruby-forum.com/t/nginx-like-rewrite-feature-htaccess-doesnt-seem-to-be-working-help/239185)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [February 17, 2014, 11:38am UTC](https://www.ruby-forum.com/t/nginx-like-rewrite-feature-htaccess-doesnt-seem-to-be-working-help/239185 "2014-02-17T11:38:03Z")

</div>

Good Morning. I’m making a site and I want to make the link more usable so I used the Apache’s RewriteCond which is the one I more comfortable with. I know that there are a site or two that lets me convert and so I u…

---

## [Nginx limit\_rate if in location - strange behaviour - possible bug?](https://www.ruby-forum.com/t/nginx-limit-rate-if-in-location-strange-behaviour-possible-bug/236893)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 4\
**Last updated:** [February 17, 2014, 11:10am UTC](https://www.ruby-forum.com/t/nginx-limit-rate-if-in-location-strange-behaviour-possible-bug/236893 "2014-02-17T11:10:57Z")

</div>

Hi, nginx -V nginx version: nginx/1.4.2 configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt=‘-I /usr/local/include’ --with-ld-opt=‘-L /usr/local/lib’ –conf-path=/usr/local/etc/nginx/nginx.conf –sbin-pa…

---

## [1.5.10 doesn't like curl -I](https://www.ruby-forum.com/t/1-5-10-doesnt-like-curl-i/239194)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [February 16, 2014, 11:25pm UTC](https://www.ruby-forum.com/t/1-5-10-doesnt-like-curl-i/239194 "2014-02-16T23:25:48Z")

</div>

I’ve built up a version of 1.5.10 on amazon linux 2013.09 which supports spdy and ngx\_pagespeed… configure looks like this: ./configure --prefix=/etc/nginx –sbin-path=/usr/sbin/nginx –conf-path=/etc/nginx/nginx.con…

---

## [Rewrite except one directory](https://www.ruby-forum.com/t/rewrite-except-one-directory/239181)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 5\
**Last updated:** [February 16, 2014, 10:45pm UTC](https://www.ruby-forum.com/t/rewrite-except-one-directory/239181 "2014-02-16T22:45:47Z")

</div>

Hello, I’m using the following rewrite options { try\_files $uri @pico; } location @pico { rewrite ^(.\*)$ /index.php; } So I would like to disable the rewrite for one subfolder. I have some PHP scripts …

---

## [WSGIScriptAlias](https://www.ruby-forum.com/t/wsgiscriptalias/239188)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [February 16, 2014, 1:27pm UTC](https://www.ruby-forum.com/t/wsgiscriptalias/239188 "2014-02-16T13:27:52Z")

</div>

I want to put my Django application behind Nginx. I have got it working with Apache as - WSGIScriptAlias /app /home/ubuntu/project/settings/wsgi.py What is the equivalent of this in Nginx? I have tried various optio…

---

## [HTTP-Post data with Tomcat](https://www.ruby-forum.com/t/http-post-data-with-tomcat/239183)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [February 16, 2014, 10:51am UTC](https://www.ruby-forum.com/t/http-post-data-with-tomcat/239183 "2014-02-16T10:51:20Z")

</div>

Hello, I’m using Nginx as proxy for a Tomcat 7. My configuration shows: upstream tomcat { server 127.0.0.1:9090 fail\_timeout=0; } location /jenkins { proxy\_set\_header Host $http\_host; proxy\_set\_header …

---

## [Webdav Access](https://www.ruby-forum.com/t/webdav-access/239182)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [February 16, 2014, 3:41am UTC](https://www.ruby-forum.com/t/webdav-access/239182 "2014-02-16T03:41:20Z")

</div>

Hello, i has read that i can use nginx as webdav server. I has set up the config which was on wiki but the access make me trouble. Can i set so that all is allowed from my dyndns address? Or best authentification wit…

---

## [Nginx ask me to watch error log but error log is empty](https://www.ruby-forum.com/t/nginx-ask-me-to-watch-error-log-but-error-log-is-empty/239179)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [February 15, 2014, 11:48pm UTC](https://www.ruby-forum.com/t/nginx-ask-me-to-watch-error-log-but-error-log-is-empty/239179 "2014-02-15T23:48:40Z")

</div>

Hello, Sometimes I get a 403 error also “Un error occured. Faithfully yours, nginx.” with nothing in error.log Already checked /var/log/nginx/error.log /usr/local/nginx/logs/error.log Both of them are chmod in 777 …

---

## [Grunt deploy and nginx root dir](https://www.ruby-forum.com/t/grunt-deploy-and-nginx-root-dir/239175)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [February 15, 2014, 9:30pm UTC](https://www.ruby-forum.com/t/grunt-deploy-and-nginx-root-dir/239175 "2014-02-15T21:30:58Z")

</div>

Just curious if anyone out there is using grunt and how you deal the possibility of race conditions, i.e. people trying to access old assets just as grunt is creating/renaming new ones. I’d be interested to hear how p…

---

## [Way to pass all HTTP requests headers verbatim to PHP-FastCGI server?](https://www.ruby-forum.com/t/way-to-pass-all-http-requests-headers-verbatim-to-php-fastcgi-server/239171)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [February 15, 2014, 5:39pm UTC](https://www.ruby-forum.com/t/way-to-pass-all-http-requests-headers-verbatim-to-php-fastcgi-server/239171 "2014-02-15T17:39:45Z")

</div>

Hi, I would require to access via PHP a client’s unmodified HTTP request headers. Using standard PHP variables ($\_SERVER etc.) isn’t an option since these store headers in normalized form; but I would need to have th…

---

## [Inlining](https://www.ruby-forum.com/t/inlining/239161)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 6\
**Last updated:** [February 15, 2014, 1:01am UTC](https://www.ruby-forum.com/t/inlining/239161 "2014-02-15T01:01:00Z")

</div>

Looking through the codebase, I see a lot of very short helper like functions that are defined in .c files with prototypes in .h files. This means that the compiler cannot inline them outside of that .c file. Am I wro…

---

## [Retrying proxy\_pass on connection failure or similar](https://www.ruby-forum.com/t/retrying-proxy-pass-on-connection-failure-or-similar/239160)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [February 14, 2014, 10:51pm UTC](https://www.ruby-forum.com/t/retrying-proxy-pass-on-connection-failure-or-similar/239160 "2014-02-14T22:51:34Z")

</div>

Hello, I was wondering if proxy\_pass has any ability to retry ECONNREFUSED, or a connection timeout, or similar? It looks like proxy\_next\_upstream is fairly close to what I want, though I would rather not configure…

---

## [Nginx not passing http request to backend server](https://www.ruby-forum.com/t/nginx-not-passing-http-request-to-backend-server/239158)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [February 14, 2014, 5:07pm UTC](https://www.ruby-forum.com/t/nginx-not-passing-http-request-to-backend-server/239158 "2014-02-14T17:07:57Z")

</div>

Hi, I have configured Nginx as a reverse-proxy to pass http requests to backend servers. When i try to see the domains thay all show me the default page of Nginx. The config file is in /etc/nginx/conf.d Theese are…

---

## [Compile error with OpenSSL source on Solaris 11 sparc](https://www.ruby-forum.com/t/compile-error-with-openssl-source-on-solaris-11-sparc/239156)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [February 14, 2014, 3:48pm UTC](https://www.ruby-forum.com/t/compile-error-with-openssl-source-on-solaris-11-sparc/239156 "2014-02-14T15:48:30Z")

</div>

Hi. My system: uname -a: SunOS web-srv 5.11 11.1 sun4v sparc sun4v My configure line: /configure --prefix=/opt/nginx --group=webservd --user=webservd –with-cc-opt=‘-I …/pcre-8.34’ --with-cpu-opt=sparc64 –with-pcre=…

---

## [Mmm Subrequests anyone?](https://www.ruby-forum.com/t/mmm-subrequests-anyone/239132)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [February 14, 2014, 2:12pm UTC](https://www.ruby-forum.com/t/mmm-subrequests-anyone/239132 "2014-02-14T14:12:37Z")

</div>

Hello ! I am not sure that I understood this sentence from Redirecting… : “However, nginx goes further—not only can filters perform multiple subrequests and combine the outputs into a single response, but subrequest…

---

## [Correct usage of proxy\_set\_header?](https://www.ruby-forum.com/t/correct-usage-of-proxy-set-header/239143)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [February 14, 2014, 1:04pm UTC](https://www.ruby-forum.com/t/correct-usage-of-proxy-set-header/239143 "2014-02-14T13:04:57Z")

</div>

Hello all! I have configured a location that acts list a transparent proxying cache: location /get { set $hostx ""; set $addrs ""; if ( $uri ~ "^/get/http./+(\[^/\]+)/(.+)$") { …

---

## [500 error when posting, no message in error logs](https://www.ruby-forum.com/t/500-error-when-posting-no-message-in-error-logs/239137)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [February 14, 2014, 11:14am UTC](https://www.ruby-forum.com/t/500-error-when-posting-no-message-in-error-logs/239137 "2014-02-14T11:14:17Z")

</div>

Hi All, I’m running nginx 1.4.1 on OpenBSD 5.4 stable along with php and php-fpm version 5.3.27 and mysql 5.1.70 on two systems. I’m trying to install piwigo-2.6.1 and running into an issue on of of the systems as in…

---

## [How to disable PHP output buffering](https://www.ruby-forum.com/t/how-to-disable-php-output-buffering/239109)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 9\
**Last updated:** [February 14, 2014, 11:10am UTC](https://www.ruby-forum.com/t/how-to-disable-php-output-buffering/239109 "2014-02-14T11:10:09Z")

</div>

Hi, I know this has been asked before, but I could not find a definitive answer. I tried different solutions, nothing worked. I have a PHP script that has to do time intensive operations and provide a status update…

---

## [Nginx 400 error](https://www.ruby-forum.com/t/nginx-400-error/239148)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [February 14, 2014, 10:50am UTC](https://www.ruby-forum.com/t/nginx-400-error/239148 "2014-02-14T10:50:07Z")

</div>

I use nginx proxy tomcat, but there have been many 400 error, about 10%. But do not use nginx, tomcat can normally handle this part of the request. This is my nginx configuration : user nobody; work…

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

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