# Server

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

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

---

## [Nginx throws a 502 (invalid header) when downloading a file attachment if filename has a space chara](https://www.ruby-forum.com/t/nginx-throws-a-502-invalid-header-when-downloading-a-file-attachment-if-filename-has-a-space-chara/239992)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 13\
**Last updated:** [March 24, 2014, 8:44pm UTC](https://www.ruby-forum.com/t/nginx-throws-a-502-invalid-header-when-downloading-a-file-attachment-if-filename-has-a-space-chara/239992 "2014-03-24T20:44:33Z")

</div>

Hello, I have nginx set as a reverse proxy for a mail server and it throws this 502 (invalid header) error while trying to fetch a file with a space in the filename. Any clues on where is this bug in the nginx code ?…

---

## [Re: Pass path to thttpd for CGI](https://www.ruby-forum.com/t/re-pass-path-to-thttpd-for-cgi/240008)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [March 24, 2014, 3:22pm UTC](https://www.ruby-forum.com/t/re-pass-path-to-thttpd-for-cgi/240008 "2014-03-24T15:22:11Z")

</div>

On Mon, Mar 24, 2014 at 8:28 AM, Francis D. wrote: Can you request the download of thttpd directly? If you can’t, nginx nginx mailing list removed\_email\_address@domain.invalid nginx Info Page Like my other thread…

---

## [Re: Full pathname not sent](https://www.ruby-forum.com/t/re-full-pathname-not-sent/240007)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [March 24, 2014, 3:19pm UTC](https://www.ruby-forum.com/t/re-full-pathname-not-sent/240007 "2014-03-24T15:19:51Z")

</div>

On Mon, Mar 24, 2014 at 8:13 AM, Francis D. wrote: location ~ /radio/download/.\*.mp3$ { Good luck with it, f Francis D. removed\_email\_address@domain.invalid nginx mailing list removed\_email\_address@domain…

---

## [Nginx reverse proxy](https://www.ruby-forum.com/t/nginx-reverse-proxy/239974)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [March 24, 2014, 2:34pm UTC](https://www.ruby-forum.com/t/nginx-reverse-proxy/239974 "2014-03-24T14:34:11Z")

</div>

Hi, I have configured nginx as reverse proxy for jboss. All the system are hosted in Amazon cloud and using AWS ELB for both nginx and jboss WEB ELB \<—\> nginx reverse proxy \<—\> APP ELB \<—\> Jboss7. When i access abc.e…

---

## [Pass path to thttpd for CGI](https://www.ruby-forum.com/t/pass-path-to-thttpd-for-cgi/239982)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [March 24, 2014, 2:28pm UTC](https://www.ruby-forum.com/t/pass-path-to-thttpd-for-cgi/239982 "2014-03-24T14:28:55Z")

</div>

I sort of have this working but not quite. I have http://mysite.com/music/play/song.mp3 and this plays fine in the browser by accessing the mp3 file in its folder. However, I want to handle requests to download the so…

---

## [Hotlinking protection not working on firefox 28.0!](https://www.ruby-forum.com/t/hotlinking-protection-not-working-on-firefox-28-0/240000)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [March 24, 2014, 2:20pm UTC](https://www.ruby-forum.com/t/hotlinking-protection-not-working-on-firefox-28-0/240000 "2014-03-24T14:20:44Z")

</div>

Hello, hotlinking protection works fine with chrome and gives 403 forbidden error but somehow it is not working for firefox clients and plays the forbidden video without restrictions. Following is the config : s…

---

## [Full pathname not sent](https://www.ruby-forum.com/t/full-pathname-not-sent/239987)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [March 24, 2014, 2:14pm UTC](https://www.ruby-forum.com/t/full-pathname-not-sent/239987 "2014-03-24T14:14:17Z")

</div>

This might be more of a regex problem on my part than nginx. I do a rewrite to pass the full pathname to thttpd like this: location ~ /radio/download/.\*.mp3$ { rewrite ^ /test/$1; } location /test { proxy\_pass http…

---

## [Ssl cache pooling (kind of)](https://www.ruby-forum.com/t/ssl-cache-pooling-kind-of/239979)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 6\
**Last updated:** [March 24, 2014, 2:10pm UTC](https://www.ruby-forum.com/t/ssl-cache-pooling-kind-of/239979 "2014-03-24T14:10:46Z")

</div>

Hello, I would like to know if we could replicate the shared memory over multiple servers. One cannot reliably use the new ticket system since not all webbrowsers support this. My idea is to modify the ngx\_shared\_m…

---

## [Proper display of a "server overloaded" page](https://www.ruby-forum.com/t/proper-display-of-a-server-overloaded-page/239998)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [March 24, 2014, 12:51pm UTC](https://www.ruby-forum.com/t/proper-display-of-a-server-overloaded-page/239998 "2014-03-24T12:51:48Z")

</div>

Hi, I want to set up a small static HTML Page that informs visitors that our site is currently under load if an appserver cannot handle the request within N seconds. What would be the proper way to do this? Just set …

---

## [How to proxy request to different upstream by url request parameters](https://www.ruby-forum.com/t/how-to-proxy-request-to-different-upstream-by-url-request-parameters/239973)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [March 24, 2014, 2:47am UTC](https://www.ruby-forum.com/t/how-to-proxy-request-to-different-upstream-by-url-request-parameters/239973 "2014-03-24T02:47:25Z")

</div>

upstream upstream1{ } upstream upstream2{ } upstream upstream3{ } upstream upstream4{ } request url is XXXX if (id is 1~100 key=key1) send to upstream1 if (id is 1~100 key=key2) send to upstream2 if (id is 101…

---

## [403 after changing root, but permissions look correct](https://www.ruby-forum.com/t/403-after-changing-root-but-permissions-look-correct/239988)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [March 23, 2014, 10:36pm UTC](https://www.ruby-forum.com/t/403-after-changing-root-but-permissions-look-correct/239988 "2014-03-23T22:36:12Z")

</div>

I’ve been struggling with this for a few hours. I installed nginx 1.4.6 on Fedora 20. The test page displayed fine. I changed the root, leaving all other configuration the same, and I get a 403 Forbidden error. If I…

---

## [How to get rid of caching completely](https://www.ruby-forum.com/t/how-to-get-rid-of-caching-completely/239991)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [March 23, 2014, 9:23pm UTC](https://www.ruby-forum.com/t/how-to-get-rid-of-caching-completely/239991 "2014-03-23T21:23:47Z")

</div>

Is there a way to stop caching at all level? I have added expires -1;\* add\_header Cache-Control "private, must-revalidate, max-age=0";\* add\_header Last-Modified "";\* this on my nginx server bloc…

---

## [Fwd: How to get rid of caching completely](https://www.ruby-forum.com/t/fwd-how-to-get-rid-of-caching-completely/239990)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [March 23, 2014, 9:23pm UTC](https://www.ruby-forum.com/t/fwd-how-to-get-rid-of-caching-completely/239990 "2014-03-23T21:23:12Z")

</div>

Mrinmoy D. http://goromlagche.in/ ---------- Forwarded message ---------- From: Mrinmoy D. removed\_email\_address@domain.invalid Date: Mon, Mar 24, 2014 at 1:47 AM Subject: How to get rid of caching completely To: r…

---

## [Rewrite HTTP status code](https://www.ruby-forum.com/t/rewrite-http-status-code/239970)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [March 23, 2014, 2:50pm UTC](https://www.ruby-forum.com/t/rewrite-http-status-code/239970 "2014-03-23T14:50:43Z")

</div>

Hello. I’m running nginx as a proxy for back-end servers that are returning a non-standard HTTP status phrase. I’d like to be able to rewrite the status to something standard. For example, if the back-end returns: HT…

---

## [Redirect help please this one's driving me mad!](https://www.ruby-forum.com/t/redirect-help-please-this-ones-driving-me-mad/239944)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 4\
**Last updated:** [March 22, 2014, 10:12am UTC](https://www.ruby-forum.com/t/redirect-help-please-this-ones-driving-me-mad/239944 "2014-03-22T10:12:28Z")

</div>

I’m tryiing to migrate a site that uses codeigniter behind modx to draw pages, and this is the block that breaks the site when I remove it from .htaccess… RewriteRule ^$ home \[L\] RewriteCond %{HTTP\_HOST} ^(?:w…

---

## [Nginx-sflow-module](https://www.ruby-forum.com/t/nginx-sflow-module/239968)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [March 21, 2014, 9:44pm UTC](https://www.ruby-forum.com/t/nginx-sflow-module/239968 "2014-03-21T21:44:03Z")

</div>

To anyone using (or considering) the nginx-sflow-module for monitoring, then please use version 0.9.9 or later. Previous versions generated incorrect sFlow output in deployments with multiple worker-processes. Sympto…

---

## [Problem with application/octet-stream content-type](https://www.ruby-forum.com/t/problem-with-application-octet-stream-content-type/239966)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [March 21, 2014, 8:43pm UTC](https://www.ruby-forum.com/t/problem-with-application-octet-stream-content-type/239966 "2014-03-21T20:43:54Z")

</div>

How to configure that? the files xxx-yyy-ddd-hhh and xxx-yyy-ddd-hhh.html have the same html code in it. Typing example.com/xxx-yyy-ddd-hhh.html in the browser is OK. Typing example.com/xxx-yyy-ddd-hhh in the browse…

---

## [Nginx proxypass issue](https://www.ruby-forum.com/t/nginx-proxypass-issue/239948)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [March 21, 2014, 1:14pm UTC](https://www.ruby-forum.com/t/nginx-proxypass-issue/239948 "2014-03-21T13:14:07Z")

</div>

We have a setup in which nginx proxypass is working fine for tomcat like this: server { listen 80; server\_name app.geo.com; location /app { proxy\_pass https://192.168.1.100:8080/app; } Now while accessing h…

---

## [Removing blank location block causes 404 errors](https://www.ruby-forum.com/t/removing-blank-location-block-causes-404-errors/239941)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [March 20, 2014, 10:00pm UTC](https://www.ruby-forum.com/t/removing-blank-location-block-causes-404-errors/239941 "2014-03-20T22:00:14Z")

</div>

I was just typing what I think may be the reason. That other location blocks may be picking this up and eventually returning a 404 but, with that block in there, the image and css requests are getting “handled”, ie, n…

---

## [Removing blank location block causes 404 errors](https://www.ruby-forum.com/t/removing-blank-location-block-causes-404-errors/239940)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [March 20, 2014, 9:25pm UTC](https://www.ruby-forum.com/t/removing-blank-location-block-causes-404-errors/239940 "2014-03-20T21:25:12Z")

</div>

I’m new to nginx and had this in my conf file which I had copied some time ago but never filled it in and continued building a test page with images, css and javascript: location ~\* ^.+.(css|js|jpg|jpeg|gif|png|ico|g…

---

## [Nginx stop function in service file](https://www.ruby-forum.com/t/nginx-stop-function-in-service-file/239924)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [March 20, 2014, 6:15pm UTC](https://www.ruby-forum.com/t/nginx-stop-function-in-service-file/239924 "2014-03-20T18:15:57Z")

</div>

I am using the official Debian package (stable) and I noticed the service file, in its do\_stop() function, sends SIGTERM to the master process. However, the docs say SIGTERM (and SIGQUIT) sent to the master process p…

---

## [Nginx-1.5.12](https://www.ruby-forum.com/t/nginx-1-5-12/239888)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [March 20, 2014, 4:58pm UTC](https://www.ruby-forum.com/t/nginx-1-5-12/239888 "2014-03-20T16:58:49Z")

</div>

Changes with nginx 1.5.12 18 Mar 2014 \*) Security: a heap memory buffer overflow might occur in a worker process while handling a specially crafted request by ngx\_http\_spdy\_…

---

## [Nginx-1.4.7](https://www.ruby-forum.com/t/nginx-1-4-7/239889)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [March 20, 2014, 3:08pm UTC](https://www.ruby-forum.com/t/nginx-1-4-7/239889 "2014-03-20T15:08:59Z")

</div>

Changes with nginx 1.4.7 18 Mar 2014 \*) Security: a heap memory buffer overflow might occur in a worker process while handling a specially crafted request by ngx\_http\_spdy\_…

---

## [PHP type. Thread Safe or Non Thread Safe?](https://www.ruby-forum.com/t/php-type-thread-safe-or-non-thread-safe/239880)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 5\
**Last updated:** [March 20, 2014, 1:08pm UTC](https://www.ruby-forum.com/t/php-type-thread-safe-or-non-thread-safe/239880 "2014-03-20T13:08:37Z")

</div>

What kind of php to use as a fastcgi in nginx on Windows?

---

## [Nginx Server with Two network Card](https://www.ruby-forum.com/t/nginx-server-with-two-network-card/239922)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [March 20, 2014, 9:17am UTC](https://www.ruby-forum.com/t/nginx-server-with-two-network-card/239922 "2014-03-20T09:17:19Z")

</div>

Hi All, Server has installed with Nginx with one NIC and later on we add another NIC. we can use SSH or any other service to connect to the server with new IP address (New NIC). But I am not able to connect to the por…

---

## [How to Purge cach of 502 and 504's](https://www.ruby-forum.com/t/how-to-purge-cach-of-502-and-504s/239912)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [March 19, 2014, 3:42pm UTC](https://www.ruby-forum.com/t/how-to-purge-cach-of-502-and-504s/239912 "2014-03-19T15:42:32Z")

</div>

Hi All, I am using nginx as a reverse proxy and have configured it to cache 502 using proxy\_cache\_valid 502 30m; This is working fine, but my question is how do I purge these from the cache if required? There is no…

---

## [Optimal gcc parameters for building nginx from source](https://www.ruby-forum.com/t/optimal-gcc-parameters-for-building-nginx-from-source/239903)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [March 19, 2014, 10:41am UTC](https://www.ruby-forum.com/t/optimal-gcc-parameters-for-building-nginx-from-source/239903 "2014-03-19T10:41:43Z")

</div>

Hello list Are there recommended gcc parameters when building nginx from source - regarding performance and security? –with-cc-opt=parameters I noticed that the prebuilt package on ubuntu used –with-cc-opt=’-g -O2 -…

---

## [Windows nginx 1.5.12.2 Cheshire](https://www.ruby-forum.com/t/windows-nginx-1-5-12-2-cheshire/239898)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [March 18, 2014, 9:11pm UTC](https://www.ruby-forum.com/t/windows-nginx-1-5-12-2-cheshire/239898 "2014-03-18T21:11:36Z")

</div>

20:29 18-3-2014 nginx 1.5.12.2 Cheshire Based on nginx 1.5.12 (release 18-3-2014) with; nginx security advisory (CVE-2014-0133) echo-nginx-module v0.51 (upgraded 18-3-2014) Nginx-limit-traffic-rate-module (GitHub - b…

---

## [Starting](https://www.ruby-forum.com/t/starting/239894)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [March 18, 2014, 8:34pm UTC](https://www.ruby-forum.com/t/starting/239894 "2014-03-18T20:34:12Z")

</div>

Hi. How to get started with nginx ? Is there some tutorial for Lisp usets ? What’s the connection between nginx and hunchentoot ? Why do I get something about nginx when trying to access hunchentoot mailing list ? T…

---

## [Converting Rewrites to Nginx](https://www.ruby-forum.com/t/converting-rewrites-to-nginx/239879)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [March 18, 2014, 8:10pm UTC](https://www.ruby-forum.com/t/converting-rewrites-to-nginx/239879 "2014-03-18T20:10:49Z")

</div>

I have been trying to convert the following htaccess rules to nginx with no luck. RewriteCond %{REQUEST\_FILENAME} !-d RewriteCond %{REQUEST\_FILENAME} !-f RewriteCond %{REQUEST\_FILENAME} !-l RewriteRule ^(.+)$ index…

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

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