# NGINX

**URL:** https://www.ruby-forum.com/c/server/nginx/21.md?page=38

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

---

## [301 redirect](https://www.ruby-forum.com/t/301-redirect/234207)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 5\
**Last updated:** [February 14, 2015, 11:41pm UTC](https://www.ruby-forum.com/t/301-redirect/234207 "2015-02-14T23:41:37Z")

</div>

Hello, I need to redirect some URLs after redesigning my website. I use a 301 redirect for HTTP to HTTPS protocole : if ($scheme = “http”) { return 301 https://$server\_name$request\_uri; } But how do I redirect URLs…

---

## [Nginx add location details to URL when we stop decoding URL](https://www.ruby-forum.com/t/nginx-add-location-details-to-url-when-we-stop-decoding-url/234188)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [February 14, 2015, 7:23am UTC](https://www.ruby-forum.com/t/nginx-add-location-details-to-url-when-we-stop-decoding-url/234188 "2015-02-14T07:23:44Z")

</div>

I am accessing a URL which has encode characters http:…/malintha/tel%3A%2B6281808147137 location /gateway/ { proxy\_set\_header X-Forwarded-Host $host; proxy\_set\_header X-Forwarded-Server $host; proxy\_set\_header X-For…

---

## [Proxying websockets, connections sometimes being dropped](https://www.ruby-forum.com/t/proxying-websockets-connections-sometimes-being-dropped/234201)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [February 13, 2015, 10:12pm UTC](https://www.ruby-forum.com/t/proxying-websockets-connections-sometimes-being-dropped/234201 "2015-02-13T22:12:38Z")

</div>

I’ve been investigating a fairly infrequent issue related to websockets being dropped and attempted downgraded to long-polling when talking to a cometd server (a proprietary java server with jetty embedded). To simul…

---

## [Fwd: Deny access to subfolder/files](https://www.ruby-forum.com/t/fwd-deny-access-to-subfolder-files/234196)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [February 13, 2015, 8:11pm UTC](https://www.ruby-forum.com/t/fwd-deny-access-to-subfolder-files/234196 "2015-02-13T20:11:14Z")

</div>

Hello, i have a URL like https://example.com/foo/doc/bar/filename.txt I want to deny access to all files and folders in /doc/… and try location ~ ^/foo/(doc|etc|lib|log|sbin|var/cache|var/lib|var/log)/ { deny all; …

---

## [Keep-alive confused](https://www.ruby-forum.com/t/keep-alive-confused/234190)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [February 13, 2015, 2:02pm UTC](https://www.ruby-forum.com/t/keep-alive-confused/234190 "2015-02-13T14:02:33Z")

</div>

hello, I use nginx as a reverse proxy, and I find a question that confused me. In upstream loction I use keepalive direction to keep a connection pool. As everyone knows, that can reduse tcp handshake cost. When…

---

## [Fastcgi\_request\_buffering directive for 1.6.2?](https://www.ruby-forum.com/t/fastcgi-request-buffering-directive-for-1-6-2/234189)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [February 13, 2015, 8:46am UTC](https://www.ruby-forum.com/t/fastcgi-request-buffering-directive-for-1-6-2/234189 "2015-02-13T08:46:37Z")

</div>

Hi, how do I get a patch for the fastcgi\_request\_buffering directive support for nginx version 1.6.2 or any other version going forward? Thank you. Posted at Nginx Forum:

---

## [Need to remove folder name from URL](https://www.ruby-forum.com/t/need-to-remove-folder-name-from-url/234161)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 7\
**Last updated:** [February 12, 2015, 11:03pm UTC](https://www.ruby-forum.com/t/need-to-remove-folder-name-from-url/234161 "2015-02-12T23:03:00Z")

</div>

Hi We’re using proxy\_pass to silently forward a website to a different URL. Here is the code location ^~/ { proxy\_pass http://www.example.org/; } So let’s say the site is example1.org. Going to www.example1.com//h…

---

## [Protect /analytics on Nginx with basic authentication, but allow access to .php and .js files?](https://www.ruby-forum.com/t/protect-analytics-on-nginx-with-basic-authentication-but-allow-access-to-php-and-js-files/234163)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [February 12, 2015, 10:12pm UTC](https://www.ruby-forum.com/t/protect-analytics-on-nginx-with-basic-authentication-but-allow-access-to-php-and-js-files/234163 "2015-02-12T22:12:28Z")

</div>

Hey folks, Nginx noob here. I also posted here with no luck yet: I have Piwik setup and running on a Nginx webserver that I protected with HTTP basic authentication, as seen below. location /analytics { alias /var/…

---

## [Keep-alive message flood](https://www.ruby-forum.com/t/keep-alive-message-flood/234178)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [February 12, 2015, 4:14pm UTC](https://www.ruby-forum.com/t/keep-alive-message-flood/234178 "2015-02-12T16:14:27Z")

</div>

Hi all, I am running an application that uses the nginx\_http\_push\_module-0.712 push module. The relevant set up is server { listen 443 default ssl; ## SSL Certs ssl on; ssl\_certificate /ssl\_keys/coachmaster.co…

---

## [Intermittent 500 errors with Nginx reverse proxy for Apache PHP FPM](https://www.ruby-forum.com/t/intermittent-500-errors-with-nginx-reverse-proxy-for-apache-php-fpm/234171)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [February 12, 2015, 8:48am UTC](https://www.ruby-forum.com/t/intermittent-500-errors-with-nginx-reverse-proxy-for-apache-php-fpm/234171 "2015-02-12T08:48:54Z")

</div>

I have Nginx as reverse proxy in front of Apache. Nginx is handling most of the redirects and static content. Apache is handling PHP requests using fastcgi php-fpm. This setup is giving intermittent 500 errors, howeve…

---

## [GET requests returning 404](https://www.ruby-forum.com/t/get-requests-returning-404/234170)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [February 11, 2015, 11:54pm UTC](https://www.ruby-forum.com/t/get-requests-returning-404/234170 "2015-02-11T23:54:25Z")

</div>

Hi, We are using Play for the backend and using NGinx to serve requests for static files from local. Below is the config that we are using upstream backend { server x.x.x.x:9000; } server { listen 0.0.0.0:8…

---

## [Typo in proxy\_cache\_key documentation](https://www.ruby-forum.com/t/typo-in-proxy-cache-key-documentation/234168)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [February 11, 2015, 10:05pm UTC](https://www.ruby-forum.com/t/typo-in-proxy-cache-key-documentation/234168 "2015-02-11T22:05:46Z")

</div>

Default isn’t $scheme$proxy\_host$request\_uri, but rather $scheme://$proxy\_host$request\_uri Thanks! Posted at Nginx Forum:

---

## [Catching 408 response from upstream server](https://www.ruby-forum.com/t/catching-408-response-from-upstream-server/234148)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 5\
**Last updated:** [February 11, 2015, 9:48pm UTC](https://www.ruby-forum.com/t/catching-408-response-from-upstream-server/234148 "2015-02-11T21:48:57Z")

</div>

Hi, I’m using nginx as reversed proxy, using the proxy module. Whenever i get a response code \>= 400 from the upstream server, i’m redirecting the client to a different url. This is the configuration i use (simplifie…

---

## [Buffering / uploading large files](https://www.ruby-forum.com/t/buffering-uploading-large-files/234028)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 10\
**Last updated:** [February 11, 2015, 9:08pm UTC](https://www.ruby-forum.com/t/buffering-uploading-large-files/234028 "2015-02-11T21:08:57Z")

</div>

Hi, how can tell nginx not to buffer client’s requests? I need this capability to upload files larger than the nginx’s max buffering size. I got an nginx unknown directive error when I tried the fastcgi\_request\_buffe…

---

## [Nginx-1.7.10](https://www.ruby-forum.com/t/nginx-1-7-10/234150)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [February 11, 2015, 12:35pm UTC](https://www.ruby-forum.com/t/nginx-1-7-10/234150 "2015-02-11T12:35:14Z")

</div>

Changes with nginx 1.7.10 10 Feb 2015 \*) Feature: the "use\_temp\_path" parameter of the "proxy\_cache\_path", "fastcgi\_cache\_path", "scgi\_cache\_path", and "uwsgi\_cache\_path" di…

---

## [G-WAN assumptions: Part of truth/lies?](https://www.ruby-forum.com/t/g-wan-assumptions-part-of-truth-lies/234117)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [February 10, 2015, 10:28am UTC](https://www.ruby-forum.com/t/g-wan-assumptions-part-of-truth-lies/234117 "2015-02-10T10:28:38Z")

</div>

Hello, Documentating myself on proper benchmarking, I ran into the following page: Their conclusion is that their product is the best of all. Well, ‘of course’ one might say… ;o) What surprised me most that they cl…

---

## [Benchmarking with wrk](https://www.ruby-forum.com/t/benchmarking-with-wrk/234121)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [February 10, 2015, 9:22am UTC](https://www.ruby-forum.com/t/benchmarking-with-wrk/234121 "2015-02-10T09:22:15Z")

</div>

Hello, I am starting to play with some benchmarking tools. Following Konstantin advice (video from the last user conference ;o) ), I am avoiding ab. After a few runs, I notice I get some ‘Socket errors’ of diffent t…

---

## [Limiting parallel requests by source IP address](https://www.ruby-forum.com/t/limiting-parallel-requests-by-source-ip-address/234130)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [February 10, 2015, 4:24am UTC](https://www.ruby-forum.com/t/limiting-parallel-requests-by-source-ip-address/234130 "2015-02-10T04:24:36Z")

</div>

I am using nginx as a reverse proxy to a Ruby on Rails application using the unicorn server on multiple load-balanced application servers. This configuration allows many HTTP requests to be serviced in parallel. I’ll …

---

## [Diconnect clients at given time](https://www.ruby-forum.com/t/diconnect-clients-at-given-time/234132)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [February 9, 2015, 7:13am UTC](https://www.ruby-forum.com/t/diconnect-clients-at-given-time/234132 "2015-02-09T07:13:58Z")

</div>

Is it possible to diconnect on purpose a connection after x minutes? Sort of “diconnect zoneX 5min” Posted at Nginx Forum:

---

## [Receiving 2 strict-transport-security headers with different times](https://www.ruby-forum.com/t/receiving-2-strict-transport-security-headers-with-different-times/234118)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [February 8, 2015, 5:44am UTC](https://www.ruby-forum.com/t/receiving-2-strict-transport-security-headers-with-different-times/234118 "2015-02-08T05:44:44Z")

</div>

I have a domain setup with SSL and I am trying to get HSTS headers working. I have done this in NGINX before with no problem. On this new domain I can’t seem to get HSTS working properly. Not sure what I am doing wro…

---

## [Nginx dows't serve compressed static .html files. is it a bug?](https://www.ruby-forum.com/t/nginx-dowst-serve-compressed-static-html-files-is-it-a-bug/234088)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 7\
**Last updated:** [February 7, 2015, 9:24pm UTC](https://www.ruby-forum.com/t/nginx-dowst-serve-compressed-static-html-files-is-it-a-bug/234088 "2015-02-07T21:24:13Z")

</div>

In my previous post I explained what tried and didn’t manage to it. I attached nginx.conf file. I’ll be very grateful is somebody show me a successful way to do this.

---

## [OpenResty 1.7.7.2 released](https://www.ruby-forum.com/t/openresty-1-7-7-2-released/234091)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [February 5, 2015, 9:38pm UTC](https://www.ruby-forum.com/t/openresty-1-7-7-2-released/234091 "2015-02-05T21:38:35Z")

</div>

Hi folks! I am happy to announce the new formal release, 1.7.7.2, of the OpenResty bundle: http://openresty.org/#Download The highlights of this release are the SSL/TLS support in the websocket client of lua-resty…

---

## [Nginx Rewrite](https://www.ruby-forum.com/t/nginx-rewrite/234097)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [February 5, 2015, 7:16pm UTC](https://www.ruby-forum.com/t/nginx-rewrite/234097 "2015-02-05T19:16:41Z")

</div>

How can i turn this into a rewrite i have include what i have tried for example you have www.example.com/test/c\_index.shtml you click a the change language button and the url changes to www.example/com/test/c\_index.sh…

---

## [Debian repository Package list mismatch?](https://www.ruby-forum.com/t/debian-repository-package-list-mismatch/234098)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [February 5, 2015, 4:36pm UTC](https://www.ruby-forum.com/t/debian-repository-package-list-mismatch/234098 "2015-02-05T16:36:04Z")

</div>

Hi! We’re using Debian 7.x (Wheezy), and because I rather have the latest version of nginx than the stock or backports version, I decided to add your repository. I grabbed the lines from nginx: Linux packages and ad…

---

## [Slow downloads over SSL](https://www.ruby-forum.com/t/slow-downloads-over-ssl/234038)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 6\
**Last updated:** [February 5, 2015, 2:26pm UTC](https://www.ruby-forum.com/t/slow-downloads-over-ssl/234038 "2015-02-05T14:26:13Z")

</div>

Hi, I’m trying to find answers to a problem that I’m currently experiencing in all my servers. Downloads offered over HTTPS are at least 4 times slower than those delivered over HTTP. All these servers are running n…

---

## [Nginx as a proxy with Blocking operations](https://www.ruby-forum.com/t/nginx-as-a-proxy-with-blocking-operations/234094)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [February 5, 2015, 1:26pm UTC](https://www.ruby-forum.com/t/nginx-as-a-proxy-with-blocking-operations/234094 "2015-02-05T13:26:56Z")

</div>

Hi All, We have an existing TCP/TLS based server application ‘A’ in production. Around 10K users can connect to this application. We now have a requirement as follows: 1). Intercept the traffic between Client and A …

---

## [Ports monitoring](https://www.ruby-forum.com/t/ports-monitoring/234093)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [February 5, 2015, 8:26am UTC](https://www.ruby-forum.com/t/ports-monitoring/234093 "2015-02-05T08:26:03Z")

</div>

Hi guys, I have a site configured to run on port 443 only, where can we see if the request coming in are using port 443 instead of port 80? Can we capture the traffic live? Thank you. Posted at Nginx Forum:

---

## [Request Id for logging purposes](https://www.ruby-forum.com/t/request-id-for-logging-purposes/234084)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [February 4, 2015, 8:34pm UTC](https://www.ruby-forum.com/t/request-id-for-logging-purposes/234084 "2015-02-04T20:34:36Z")

</div>

hi, I want to be able to identify requests by a unique id. I’m able to do this in the location section: proxy\_set\_header X-Request-Id $pid-$msec-$remote\_addr-$request\_length; but I want instead to set it to a…

---

## [Need help to configure nginx-varnish-php](https://www.ruby-forum.com/t/need-help-to-configure-nginx-varnish-php/234068)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [February 4, 2015, 12:20am UTC](https://www.ruby-forum.com/t/need-help-to-configure-nginx-varnish-php/234068 "2015-02-04T00:20:41Z")

</div>

Hi All, I am newbie to nginx and would need help configuring nginx-varnish-php-fpm setup to allow hitting specific php nodes for troubleshooting Our current setup. Nginx Varnish running in same server …

---

## [Help](https://www.ruby-forum.com/t/help/234058)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [February 3, 2015, 7:04pm UTC](https://www.ruby-forum.com/t/help/234058 "2015-02-03T19:04:21Z")

</div>

hi , I have been trying to persuade nginx into serving html.gz file with no success for past three days. I tried probably everything written in the web. I am using CentOS 7 minimal and nginx 1.7.9 mainline. I configu…

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

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