# NGINX

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

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

---

## [502 errors and request\_time](https://www.ruby-forum.com/t/502-errors-and-request-time/243527)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [December 2, 2015, 8:40am UTC](https://www.ruby-forum.com/t/502-errors-and-request-time/243527 "2015-12-02T08:40:59Z")

</div>

Hi: I’ve found 2 kinds of 502 errors in my server: connection reset by peer, it happens as request\_time reach to 10s. connection timeout, it happens as request\_time reach to 3s. Server is: centos , kernel(2.6.32) p…

---

## [Nginx Magento multistore configuration](https://www.ruby-forum.com/t/nginx-magento-multistore-configuration/242664)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [November 26, 2015, 7:27am UTC](https://www.ruby-forum.com/t/nginx-magento-multistore-configuration/242664 "2015-11-26T07:27:44Z")

</div>

There is a website that has multiple subcatogories which are stores in magento: www.website.com/sub1 www.website.com/sub2 www.website.com/sub3 The server used is ngnix. everything is set up. And used to work, the ngi…

---

## [Websockets proxy "Broken pipe"](https://www.ruby-forum.com/t/websockets-proxy-broken-pipe/243305)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [September 9, 2015, 1:09pm UTC](https://www.ruby-forum.com/t/websockets-proxy-broken-pipe/243305 "2015-09-09T13:09:59Z")

</div>

I have a problem with nginx and websockets proxy. Here is the message I receive: \[error\] 20999#0: \*1997296 send() failed (32: Broken pipe) while proxying upgraded connection, client: 10.0.25.47, server: example.com, r…

---

## [Proxy\_cache\_use\_stale updating](https://www.ruby-forum.com/t/proxy-cache-use-stale-updating/243304)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [September 9, 2015, 12:38pm UTC](https://www.ruby-forum.com/t/proxy-cache-use-stale-updating/243304 "2015-09-09T12:38:18Z")

</div>

I’ve one storage server using nginx, one cache file server using nginx. The following are my configuration files: storage\_server.conf(ip address 192.168.1.10): server { listen 80; listen \[::\]:80 ipv6only=on; …

---

## [NginxPlus error: zero size buf in output](https://www.ruby-forum.com/t/nginxplus-error-zero-size-buf-in-output/243292)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [September 8, 2015, 8:14pm UTC](https://www.ruby-forum.com/t/nginxplus-error-zero-size-buf-in-output/243292 "2015-09-08T20:14:39Z")

</div>

Hello, saw this logged in the error log in our NginxPlus (nginx/1.7.11 (nginx-plus-extras-r6-p1) load balancer. Any ideas? 2015/09/08 14:31:02 \[alert\] 2399#0: \*452322 zero size buf in output t:0 r:0 f:1 0000000000000…

---

## [Compiling nginx](https://www.ruby-forum.com/t/compiling-nginx/243294)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [September 8, 2015, 5:26pm UTC](https://www.ruby-forum.com/t/compiling-nginx/243294 "2015-09-08T17:26:57Z")

</div>

Hello, I noticed the documentation page about compiling nginx http://nginx.org/en/docs/configure.html is not up-to-date, making it impossible to have a clear view about which modules are included by default (ie with…

---

## [Root and alias with php5-fpm](https://www.ruby-forum.com/t/root-and-alias-with-php5-fpm/243278)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 6\
**Last updated:** [September 8, 2015, 4:24pm UTC](https://www.ruby-forum.com/t/root-and-alias-with-php5-fpm/243278 "2015-09-08T16:24:27Z")

</div>

I am having a difficult time finding a solution for this. I have PHP applications that may be referenced to from several websites, either from root locations or sub locations. For example: server { server\_name domai…

---

## [Redirect from HTTP to HTTPS does not work](https://www.ruby-forum.com/t/redirect-from-http-to-https-does-not-work/242965)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [September 8, 2015, 2:01pm UTC](https://www.ruby-forum.com/t/redirect-from-http-to-https-does-not-work/242965 "2015-09-08T14:01:54Z")

</div>

This is my configuration: server { listen 80; server\_name shell.\*; return 301 https://$server\_name$request\_uri; } server { listen 443 ssl; server\_name shell.\*; location / { proxy\_pass http://192.168.0.16:4200; …

---

## [How to send all these requests to the same file when I have an Angular state based router?](https://www.ruby-forum.com/t/how-to-send-all-these-requests-to-the-same-file-when-i-have-an-angular-state-based-router/243228)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [September 8, 2015, 2:17am UTC](https://www.ruby-forum.com/t/how-to-send-all-these-requests-to-the-same-file-when-i-have-an-angular-state-based-router/243228 "2015-09-08T02:17:22Z")

</div>

I’m using the Angular ui-router which uses states to control the routes. Meaning that all request should serve the same index.html file, and the JavaScript worries about loading in appropriate content. The .htaccess r…

---

## [OCSP stapling: automatic updates](https://www.ruby-forum.com/t/ocsp-stapling-automatic-updates/243281)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [September 7, 2015, 7:29pm UTC](https://www.ruby-forum.com/t/ocsp-stapling-automatic-updates/243281 "2015-09-07T19:29:34Z")

</div>

Hello, nginx is not updating the ocsp response cache: This Update: Sep 5 08:36:32 2015 GMT Next Update: Sep 7 08:36:32 2015 GMT It is 16:09, so the cache is 8h behind. How would you diagnose and solve this problem? …

---

## [Content-length missing from Nginx headers](https://www.ruby-forum.com/t/content-length-missing-from-nginx-headers/243277)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [September 7, 2015, 5:21pm UTC](https://www.ruby-forum.com/t/content-length-missing-from-nginx-headers/243277 "2015-09-07T17:21:38Z")

</div>

Hi When browsing one of our websites the content-length field header is not shown, even with gzip turned off. This causes issues with chunked\_transfer\_encoding and kaspersky av. How can we get the content-length to …

---

## [Authentication on trac.nginx.org](https://www.ruby-forum.com/t/authentication-on-trac-nginx-org/243273)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [September 7, 2015, 4:10pm UTC](https://www.ruby-forum.com/t/authentication-on-trac-nginx-org/243273 "2015-09-07T16:10:56Z")

</div>

Hello. As you know we used openid to authenticate users on trac.nginx.org. Unfortunately many openid providers vanished or ceased to support openid. Last week I added oauth-based authentication instead of openid one,…

---

## [Htaccess to nginx conversion?](https://www.ruby-forum.com/t/htaccess-to-nginx-conversion/242045)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [September 7, 2015, 9:36am UTC](https://www.ruby-forum.com/t/htaccess-to-nginx-conversion/242045 "2015-09-07T09:36:37Z")

</div>

Hello, I am working with a panel in which requires the pages to function properly from the .htaccess file. However, I am no longer using Apache and have decided to do a Centmin Mod LEMP web stack to improve performan…

---

## [Android apk in mime.types](https://www.ruby-forum.com/t/android-apk-in-mime-types/243276)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [September 7, 2015, 9:26am UTC](https://www.ruby-forum.com/t/android-apk-in-mime-types/243276 "2015-09-07T09:26:06Z")

</div>

Firefox/IE sometimes gets an android apk as text, this forces octet, anyone see any issues? conf/mime.types line 64: application/octet-stream iso img; application/octet-stream msi msp msm…

---

## [Css file 403 error in nginx](https://www.ruby-forum.com/t/css-file-403-error-in-nginx/243266)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [September 5, 2015, 6:19pm UTC](https://www.ruby-forum.com/t/css-file-403-error-in-nginx/243266 "2015-09-05T18:19:48Z")

</div>

Hello I enabled python cgi in nginx server .I create a python simple on the localhost it is showing on the browsers but when i download a html temlate and converted html file to .py file then Css is not loading.403 e…

---

## [Handler modules : Content Handler vs Content Phase Handler](https://www.ruby-forum.com/t/handler-modules-content-handler-vs-content-phase-handler/243261)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [September 5, 2015, 4:29pm UTC](https://www.ruby-forum.com/t/handler-modules-content-handler-vs-content-phase-handler/243261 "2015-09-05T16:29:07Z")

</div>

Hello ! I’m developping some handler modules for nginx and I’m wondering why they are two kinds of handlers : Content Phase Handler Content Handler I read this interesting blog : http://www.nginxguts.com/2011/01/ph…

---

## [Nginx as a reverse caching / load balancing solution - verification of setup needed](https://www.ruby-forum.com/t/nginx-as-a-reverse-caching-load-balancing-solution-verification-of-setup-needed/243253)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 3\
**Last updated:** [September 4, 2015, 8:02pm UTC](https://www.ruby-forum.com/t/nginx-as-a-reverse-caching-load-balancing-solution-verification-of-setup-needed/243253 "2015-09-04T20:02:11Z")

</div>

Good day Guys. I would like to ask if someone could please verify my configs : I have a Nginx server sitting in front of two Apache servers. I’m using Nginx as a reverse caching / load balancing solution. But what …

---

## [Proxy module buffering and timeouts](https://www.ruby-forum.com/t/proxy-module-buffering-and-timeouts/243254)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [September 4, 2015, 4:29pm UTC](https://www.ruby-forum.com/t/proxy-module-buffering-and-timeouts/243254 "2015-09-04T16:29:32Z")

</div>

Given the following nginx config: master\_process off; daemon off; events { worker\_connections 16384; } http { error\_log stderr debug; access\_log on; log\_not\_found on; client\_body\_buffer\_size 64k; client\_body\_…

---

## [Gzip disrupts users?](https://www.ruby-forum.com/t/gzip-disrupts-users/243248)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [September 4, 2015, 9:10am UTC](https://www.ruby-forum.com/t/gzip-disrupts-users/243248 "2015-09-04T09:10:49Z")

</div>

Over the years, whenever I’ve enabled gzip compression on my web server I’ve seen website conversions drop. I just enabled compression on nginx again and I noticed conversions drop again: gzip on; gzip\_disable msie6…

---

## [How to edit url and pass forward to wsgi?](https://www.ruby-forum.com/t/how-to-edit-url-and-pass-forward-to-wsgi/243235)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [September 3, 2015, 8:47pm UTC](https://www.ruby-forum.com/t/how-to-edit-url-and-pass-forward-to-wsgi/243235 "2015-09-03T20:47:46Z")

</div>

Hello, If I have the following directive: location ~ /staging/dog/.\*/info/cat { rewrite /staging/(.+) /$1 break; include uwsgi\_params; uwsgi\_pass 127.0.0.1:3130; } then a call to http://127.0.0.1/stag…

---

## [Logging access in stream module](https://www.ruby-forum.com/t/logging-access-in-stream-module/243243)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [September 3, 2015, 6:02pm UTC](https://www.ruby-forum.com/t/logging-access-in-stream-module/243243 "2015-09-03T18:02:26Z")

</div>

hi, is there a way to log access (ip, date, size of payload) within the stream-module? i found error - log configurable for the stream only so far. cheers, mex Posted at Nginx Forum:

---

## [Nginx v1.8.0 / redirects](https://www.ruby-forum.com/t/nginx-v1-8-0-redirects/243215)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 4\
**Last updated:** [September 3, 2015, 4:40pm UTC](https://www.ruby-forum.com/t/nginx-v1-8-0-redirects/243215 "2015-09-03T16:40:39Z")

</div>

How do I best: 1.\> redirect \> www. a.) if www is already present, skip to step 2 2.\> redirect http://www. request \> https://… ??? Thanks. Fabian S.

---

## [Implementing proxy\_cache\_lock when updating items](https://www.ruby-forum.com/t/implementing-proxy-cache-lock-when-updating-items/243189)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [September 3, 2015, 9:38am UTC](https://www.ruby-forum.com/t/implementing-proxy-cache-lock-when-updating-items/243189 "2015-09-03T09:38:52Z")

</div>

Hello, I am currently implementing a caching proxy with many short-lived items, expiring at a specific date (Expires header set at an absolute time between 10 and 30 seconds in the future by the origin). For various…

---

## [Why is NGINX serving a 404 here?](https://www.ruby-forum.com/t/why-is-nginx-serving-a-404-here/243187)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [September 2, 2015, 7:32pm UTC](https://www.ruby-forum.com/t/why-is-nginx-serving-a-404-here/243187 "2015-09-02T19:32:57Z")

</div>

I have a pretty standard test nginx configuration file (/etc/nginx/sites-available/default) that was configured to serve a sample html document. Here’s the modified portion of the configuration file. upstream auth{ …

---

## [ABout setting cookie to capture j\_username and j\_password](https://www.ruby-forum.com/t/about-setting-cookie-to-capture-j-username-and-j-password/243218)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [September 2, 2015, 10:55am UTC](https://www.ruby-forum.com/t/about-setting-cookie-to-capture-j-username-and-j-password/243218 "2015-09-02T10:55:17Z")

</div>

Hi, We are using NGINX as proxy server and redirecting to amazon ELB to access Agile application. we are unable to access application because j\_username & j\_password are not sent with cookie to proxy server. Is ther…

---

## [How to cache js/css request containing a question mark?](https://www.ruby-forum.com/t/how-to-cache-js-css-request-containing-a-question-mark/243194)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 4\
**Last updated:** [September 2, 2015, 9:08am UTC](https://www.ruby-forum.com/t/how-to-cache-js-css-request-containing-a-question-mark/243194 "2015-09-02T09:08:23Z")

</div>

Following nginx configuration in a server block can cache js and css files with “js” or “css” as the end of the url. location ~ .\*\\.(js|css)?$ { expires 7d; } But it can’t cache request su…

---

## [Redirect on specific threshold!](https://www.ruby-forum.com/t/redirect-on-specific-threshold/242310)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 7\
**Last updated:** [September 1, 2015, 11:37pm UTC](https://www.ruby-forum.com/t/redirect-on-specific-threshold/242310 "2015-09-01T23:37:39Z")

</div>

Hi, We’re using Nginx to serve videos on one of our Storage server(contains mp4 videos) and due to high amount of requests we’re planning to have a separate caching Node based on Fast SSD drives to serve “Hot” conten…

---

## [Create a single config for multiple Apache virtual hosts](https://www.ruby-forum.com/t/create-a-single-config-for-multiple-apache-virtual-hosts/243148)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [September 1, 2015, 8:20pm UTC](https://www.ruby-forum.com/t/create-a-single-config-for-multiple-apache-virtual-hosts/243148 "2015-09-01T20:20:07Z")

</div>

Hi everyone! First time posting here, I have been searching online but have not found any good solutions yet. I am trying to run nginx as reverse proxy for Apache, running multiple virtual hosts (domains) on the sam…

---

## [Dynamically rate\_limit?](https://www.ruby-forum.com/t/dynamically-rate-limit/243206)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [September 1, 2015, 2:55pm UTC](https://www.ruby-forum.com/t/dynamically-rate-limit/243206 "2015-09-01T14:55:50Z")

</div>

Hi folks, I’m after a way to dynamically adjust bandwidth in nginx. Current vhost setup is: maximum connections 10 max connection per client ip = 2 maximum rate per connection = 8Mbit Ideally, 5 clients x 2 connect…

---

## [Parsing HTTP Response](https://www.ruby-forum.com/t/parsing-http-response/243204)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [September 1, 2015, 2:10pm UTC](https://www.ruby-forum.com/t/parsing-http-response/243204 "2015-09-01T14:10:51Z")

</div>

I have been using Tengine’s health check and it does not support parsing the health check response (like what commercial Nginx provides). Is there any other third party module which I can use to parse the http health…

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

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