# Server

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

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

---

## [Video Reveals 3 Steps for Internet Success…](https://www.ruby-forum.com/t/video-reveals-3-steps-for-internet-success/231230)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [July 28, 2014, 11:56pm UTC](https://www.ruby-forum.com/t/video-reveals-3-steps-for-internet-success/231230 "2014-07-28T23:56:31Z")

</div>

Have you seen this video? I recently watched a video where its revealed by a world class marketer the EXACT 3 steps that every HUGE internet marketer must take if they want the life changing six-figure income. I was s…

---

## [Using User-Agent & IP address to rate limit](https://www.ruby-forum.com/t/using-user-agent-ip-address-to-rate-limit/231225)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [July 28, 2014, 6:43pm UTC](https://www.ruby-forum.com/t/using-user-agent-ip-address-to-rate-limit/231225 "2014-07-28T18:43:49Z")

</div>

Nginx novice here - after spending some time both here, reading through other community forums, and trial and error I’m looking for confirmation on my current Nginx config and/or suggestions on a better Nginx config. …

---

## [Module Advice - Cassandra / Thrift](https://www.ruby-forum.com/t/module-advice-cassandra-thrift/216237)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [July 28, 2014, 3:27pm UTC](https://www.ruby-forum.com/t/module-advice-cassandra-thrift/216237 "2014-07-28T15:27:09Z")

</div>

Hi all … looking for some advice. I am looking to use the lau module in conjunction with a module that talks to nosql cassandra database. A couple of questions: Does a module exist that can talk to Apache Cassandra No…

---

## [Nginx support for HLS](https://www.ruby-forum.com/t/nginx-support-for-hls/231191)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [July 28, 2014, 1:38pm UTC](https://www.ruby-forum.com/t/nginx-support-for-hls/231191 "2014-07-28T13:38:21Z")

</div>

Hi, I am going to deploy a streaming server and stream video using HLS and want to use Nginx. I have a few special requirements that I wanted to understand whether Nginx supports. It would be great if anyone knows …

---

## [Break flag in rewrite directive](https://www.ruby-forum.com/t/break-flag-in-rewrite-directive/231205)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [July 27, 2014, 6:55pm UTC](https://www.ruby-forum.com/t/break-flag-in-rewrite-directive/231205 "2014-07-27T18:55:09Z")

</div>

Hi, I wanted to ask about break flag in rewrite directive as i understand Nginx does not initiate a new request for the modified URI but i cant understand how this will be useful? Posted at Nginx Forum:

---

## [Is proxy\_cache\_valid required?](https://www.ruby-forum.com/t/is-proxy-cache-valid-required/231183)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [July 25, 2014, 7:01pm UTC](https://www.ruby-forum.com/t/is-proxy-cache-valid-required/231183 "2014-07-25T19:01:05Z")

</div>

Hello! I had trouble this morning setting up a basic cache with a proxy. Based on the proxy documentation and What Is Caching? Local Storage of Popular Content | NGINX, I did not expect to have to set proxy\_cache\_val…

---

## [Download full mp4 file with proxy\_cache or proxy\_store!](https://www.ruby-forum.com/t/download-full-mp4-file-with-proxy-cache-or-proxy-store/230464)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 11\
**Last updated:** [July 25, 2014, 12:24pm UTC](https://www.ruby-forum.com/t/download-full-mp4-file-with-proxy-cache-or-proxy-store/230464 "2014-07-25T12:24:27Z")

</div>

we’re using two servers (one proxy and one backend). Proxy server is using proxy\_cache to cache mp4 files from backend server and working fine. When i stream a full video from cache, the header response gives me the …

---

## [Difficulty adding headers](https://www.ruby-forum.com/t/difficulty-adding-headers/234788)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 17\
**Last updated:** [July 25, 2014, 9:38am UTC](https://www.ruby-forum.com/t/difficulty-adding-headers/234788 "2014-07-25T09:38:18Z")

</div>

i need to ensure the Accept-Ranges header is present to serve video files while supporting forward/backwards seeking. i notice in many tutorials for nginx that this header is shown as being present in server response…

---

## [Reverse ssl proxy - speed & jitter](https://www.ruby-forum.com/t/reverse-ssl-proxy-speed-jitter/231148)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [July 24, 2014, 6:47pm UTC](https://www.ruby-forum.com/t/reverse-ssl-proxy-speed-jitter/231148 "2014-07-24T18:47:37Z")

</div>

I am setting up a nginx reverse ssl proxy - I have a machine I can use with 2 E5-2650 CPU’s and lots of RAM. I have nginx-1.6.0 + openssl-1.0.1h installed. I have taken into consideration most optimization suggestions …

---

## [FastCGI caching and X-Accel-Redirect responses](https://www.ruby-forum.com/t/fastcgi-caching-and-x-accel-redirect-responses/231158)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [July 24, 2014, 3:29pm UTC](https://www.ruby-forum.com/t/fastcgi-caching-and-x-accel-redirect-responses/231158 "2014-07-24T15:29:55Z")

</div>

I have Nginx sitting in front of a php5-fpm pool via fastcgi. The application will serve static assets by means of responding with an X-Accel-Redirect to an internal location. My intention is to avoid repeatedly hitti…

---

## [SYN\_ACK issue as r-proxy with SSL and non SSL vhosts](https://www.ruby-forum.com/t/syn-ack-issue-as-r-proxy-with-ssl-and-non-ssl-vhosts/231163)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [July 24, 2014, 2:51pm UTC](https://www.ruby-forum.com/t/syn-ack-issue-as-r-proxy-with-ssl-and-non-ssl-vhosts/231163 "2014-07-24T14:51:27Z")

</div>

Hello, I have a reverse proxy serving both SSL and non SSL. When I serve a HTTPS host, SSL termination and forwarding works well. When I serve a HTTP host, forwarding is lost in missing SYN\_ACK. I’ve added default ba…

---

## [Nginx subdomains ajp module](https://www.ruby-forum.com/t/nginx-subdomains-ajp-module/231156)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [July 24, 2014, 12:21pm UTC](https://www.ruby-forum.com/t/nginx-subdomains-ajp-module/231156 "2014-07-24T12:21:28Z")

</div>

Hello, i tried to use nginx as a reverse proxy for tomcat and jboss application (that live on other servers) , using subdomains (eg. app1.domain.com, app2.domain.com etc), but, unfortunatelly, tomcat and jboss applica…

---

## [Documentation / Beginner's Guide error](https://www.ruby-forum.com/t/documentation-beginners-guide-error/231149)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [July 23, 2014, 7:52pm UTC](https://www.ruby-forum.com/t/documentation-beginners-guide-error/231149 "2014-07-23T19:52:56Z")

</div>

Just getting started with NGINX and reading the Beginner’s Guide. The guide says to create two directories: /data/www /data/images Then goes on to tell you to setup two locations: location / { root /data/www; } a…

---

## [Nginx -s reload problem](https://www.ruby-forum.com/t/nginx-s-reload-problem/230396)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 2\
**Last updated:** [July 22, 2014, 10:16pm UTC](https://www.ruby-forum.com/t/nginx-s-reload-problem/230396 "2014-07-22T22:16:50Z")

</div>

hi all I use a endless rtmp stream /usr/local/nginx/wsgi/ffmpeg -i haha.mp4 -c:v libx264 -b:v 500k -c:a copy -f flv rtmp://172.16.205.50:1936/publish/you as you known, if I use nginx -s reload , then I got a lot …

---

## [Memory use flares up sharply, how to troubleshoot?](https://www.ruby-forum.com/t/memory-use-flares-up-sharply-how-to-troubleshoot/231101)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 9\
**Last updated:** [July 22, 2014, 9:36pm UTC](https://www.ruby-forum.com/t/memory-use-flares-up-sharply-how-to-troubleshoot/231101 "2014-07-22T21:36:55Z")

</div>

Hi, Several times recently, we have seen our production nginx memory usage flare up a hundred-fold, from its normal ~42 MB to 3-4 GB, for 20 minutes to an hour or so, and then recover. There is not a spike in number…

---

## [403 Forbidden + Permission Denied - Temporarily?](https://www.ruby-forum.com/t/403-forbidden-permission-denied-temporarily/231106)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [July 21, 2014, 11:10pm UTC](https://www.ruby-forum.com/t/403-forbidden-permission-denied-temporarily/231106 "2014-07-21T23:10:46Z")

</div>

Im having a strange issue running nginx 1.4.5 and Im hoping someone might have some ideas. We have a Symfony based app that we use Capistrano to deploy. The deploy keeps a few versions of the app around and rotates t…

---

## [HEAD with mp4 runs in timeout](https://www.ruby-forum.com/t/head-with-mp4-runs-in-timeout/231098)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [July 21, 2014, 2:02pm UTC](https://www.ruby-forum.com/t/head-with-mp4-runs-in-timeout/231098 "2014-07-21T14:02:16Z")

</div>

Hallo. When I make a GET request I get the file as expected, but the HEAD Request runs in a time out. curl -v ‘http://vhost/cams/44/zoom.mp4?\_=1405930346082’ -X HEAD I use the following version. /home/nginx/server/s…

---

## [Redirect /it to /](https://www.ruby-forum.com/t/redirect-it-to/231092)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [July 21, 2014, 9:36am UTC](https://www.ruby-forum.com/t/redirect-it-to/231092 "2014-07-21T09:36:48Z")

</div>

Hi, I need to hide /it Query portion for SEO request in a django-cms setup. I tryed with:: location /it { if ($request\_method = 'GET') { rewrite ^/it(/?.\*) https://my.domain.it$1 ; } } location / { uwsgi\_p…

---

## [Proxy\_pass Directive!](https://www.ruby-forum.com/t/proxy-pass-directive/231066)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 10\
**Last updated:** [July 20, 2014, 8:55pm UTC](https://www.ruby-forum.com/t/proxy-pass-directive/231066 "2014-07-20T20:55:07Z")

</div>

I am confused about the proxy\_pass directive. Suppose, i need to serve an mp4 file from Origin server and using proxy\_pass directive in Edge server, whose resources(I/o,bandwidth,Ram) will be used ? Edge or Origin ? …

---

## [Multiple sites under same domain with one app codebase](https://www.ruby-forum.com/t/multiple-sites-under-same-domain-with-one-app-codebase/231054)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 15\
**Last updated:** [July 20, 2014, 8:52pm UTC](https://www.ruby-forum.com/t/multiple-sites-under-same-domain-with-one-app-codebase/231054 "2014-07-20T20:52:57Z")

</div>

Hello nginx gurus, First post but I have been reading this board for over a year! My scenario: I have many separate “sites” to run and they all use the same back end application(opencart). They also will be under the…

---

## [Nginx can not upload image to cloudinary (hosted in AWS)](https://www.ruby-forum.com/t/nginx-can-not-upload-image-to-cloudinary-hosted-in-aws/231014)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [July 20, 2014, 11:17am UTC](https://www.ruby-forum.com/t/nginx-can-not-upload-image-to-cloudinary-hosted-in-aws/231014 "2014-07-20T11:17:04Z")

</div>

Hi, Im new in Nginx. After read few articles, i think Nginx is faster than apache (if i’m not mistaken) Currently we’re developing a project in apache. But when we set up a “user acceptance test”, our clients compla…

---

## [Why ngx\_trylock do extra judgement?](https://www.ruby-forum.com/t/why-ngx-trylock-do-extra-judgement/231068)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [July 19, 2014, 11:57am UTC](https://www.ruby-forum.com/t/why-ngx-trylock-do-extra-judgement/231068 "2014-07-19T11:57:27Z")

</div>

Hi there, function ngx\_shmtx\_lock: if (mtx-\>lock == 0 && ngx\_atomic\_cmp\_set(mtx-\>lock, 0, ngx\_pid)) and ngx\_trylock (ngx\_atomic.h): ((lock) == 0 && ngx\_atomic\_cmp\_set(lock, 0, 1)) I think ngx\_atomic\_cmp\_set is…

---

## [Nginx multiple php sites](https://www.ruby-forum.com/t/nginx-multiple-php-sites/230966)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 6\
**Last updated:** [July 18, 2014, 4:39pm UTC](https://www.ruby-forum.com/t/nginx-multiple-php-sites/230966 "2014-07-18T16:39:34Z")

</div>

Hi, I’ve been searching (last two days) to find how to setup multiple php sites using nginx. Couldn’t find any documentation around it, hence writing it here. I’ve two codeignetor (php framework) in two different fo…

---

## [Change stub status layout](https://www.ruby-forum.com/t/change-stub-status-layout/230963)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [July 18, 2014, 4:36pm UTC](https://www.ruby-forum.com/t/change-stub-status-layout/230963 "2014-07-18T16:36:03Z")

</div>

hi is there any way to change the stub status website layout i need the values in \[vlaue\] form (so with the \[\] on the website.) Posted at Nginx Forum:

---

## [Limit connections to endpoint](https://www.ruby-forum.com/t/limit-connections-to-endpoint/231010)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [July 17, 2014, 1:07pm UTC](https://www.ruby-forum.com/t/limit-connections-to-endpoint/231010 "2014-07-17T13:07:40Z")

</div>

Hello, I have a situation: opening an endpoint under location: /api/info uses a lot of resources. If ~20 people open it, the service goes down. For a several months it is impossible to improve ‘info’ to not kill the…

---

## [If-none-match with proxy\_cache : properly set headers](https://www.ruby-forum.com/t/if-none-match-with-proxy-cache-properly-set-headers/235092)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 5\
**Last updated:** [July 16, 2014, 3:40pm UTC](https://www.ruby-forum.com/t/if-none-match-with-proxy-cache-properly-set-headers/235092 "2014-07-16T15:40:10Z")

</div>

Hi, i struggled a little to get nginx to cache 304 responses from backend using proxy\_cache. What happens when configuring proxy\_cache is that 304 responses are not happening because nginx strips If-None-Match requ…

---

## [Nginx + LibreSSL - a first test](https://www.ruby-forum.com/t/nginx-libressl-a-first-test/230931)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 8\
**Last updated:** [July 15, 2014, 8:07pm UTC](https://www.ruby-forum.com/t/nginx-libressl-a-first-test/230931 "2014-07-15T20:07:44Z")

</div>

https://www.mare-system.de/blog/page/1405201517/ Summary It works. While it is not recommended to substitude OpenSSL with LibreSSL in this early stage, i wanted to test if it is possible. And it is. There are no fun…

---

## [Is it possible to send html HEAD early (chunked)?](https://www.ruby-forum.com/t/is-it-possible-to-send-html-head-early-chunked/230930)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 10\
**Last updated:** [July 15, 2014, 2:45pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-send-html-head-early-chunked/230930 "2014-07-15T14:45:33Z")

</div>

Hi all, inspired by the bigpipe pattern I’m wondering if it’s possible to send the full html head so that the browser can start downloading CSS and javascript files. An idea would be that the proxied backend uses a…

---

## [Strange try\_files behaviour](https://www.ruby-forum.com/t/strange-try-files-behaviour/230914)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 10\
**Last updated:** [July 15, 2014, 11:34am UTC](https://www.ruby-forum.com/t/strange-try-files-behaviour/230914 "2014-07-15T11:34:39Z")

</div>

Simple php config (nginx 1.7.4 development); server { \[…\] location ~ .php$ { try\_files $uri $uri/ =404; index index.html index.htm index.php; fastcgi\_ignore\_client\_abort on; fastcgi\_pass myLoadBalancer; fastcg…

---

## [Windows nginx 1.7.4.1 RedKnight](https://www.ruby-forum.com/t/windows-nginx-1-7-4-1-redknight/230933)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [July 13, 2014, 4:17pm UTC](https://www.ruby-forum.com/t/windows-nginx-1-7-4-1-redknight/230933 "2014-07-13T16:17:31Z")

</div>

15:54 13-7-2014 nginx 1.7.4.1 RedKnight Based on nginx 1.7.4 (11-7-2014, last changeset 5767:abd460ece11e) with; lua-nginx-module v0.9.11 (upgraded 12-7-2014) echo-nginx-module v0.54 (upgraded 3-7-2014) form-input-ngi…

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

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