# NGINX

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

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

---

## [NGINX and mod\_log\_sql](https://www.ruby-forum.com/t/nginx-and-mod-log-sql/234441)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [March 12, 2015, 5:34pm UTC](https://www.ruby-forum.com/t/nginx-and-mod-log-sql/234441 "2015-03-12T17:34:01Z")

</div>

Hello List. I use mod\_log\_sql-1.10 compiled into Apache / 2.4.7 and write correctly in MySQL. In the nginx web server with the IP writer in MySQL is the IP of the webserver and not the client IP to access the website…

---

## [Verify Content-Length matches request body](https://www.ruby-forum.com/t/verify-content-length-matches-request-body/234542)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [March 12, 2015, 4:19pm UTC](https://www.ruby-forum.com/t/verify-content-length-matches-request-body/234542 "2015-03-12T16:19:00Z")

</div>

Hi, Is there a way for nginx to verify that the Content-Length header isn’t exceeded by the actual size of the request body? Context: I’m working on an upload endpoint with a maximum upload size, and it seems that c…

---

## [Map with two variables](https://www.ruby-forum.com/t/map-with-two-variables/234499)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [March 12, 2015, 12:09pm UTC](https://www.ruby-forum.com/t/map-with-two-variables/234499 "2015-03-12T12:09:08Z")

</div>

Hi, I’d like to set a variable to the value of $host where the dots are replaced by underscore. My first idea: map $host $graphite\_host { “~(?P\[^.\]).(?P\[^.\]).(?P\[^.\]\*)” $a\_$b\_$c; } But I can’t use more than one var…

---

## [Gzip\_types not working as expected](https://www.ruby-forum.com/t/gzip-types-not-working-as-expected/234500)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [March 11, 2015, 2:11pm UTC](https://www.ruby-forum.com/t/gzip-types-not-working-as-expected/234500 "2015-03-11T14:11:46Z")

</div>

gzip is not working on my piwik.js file according to Google at developers.google.com/speed/pagespeed/insights. It’s working fine on my CSS file. How can I troubleshoot this? gzip on; gzip\_disable msie6; gzip\_types…

---

## [http://wiki.nginx.org/Redmine](https://www.ruby-forum.com/t/http-wiki-nginx-org-redmine/234484)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 13\
**Last updated:** [March 10, 2015, 11:30pm UTC](https://www.ruby-forum.com/t/http-wiki-nginx-org-redmine/234484 "2015-03-10T23:30:44Z")

</div>

Hello, webpage Redmine | NGINX has some security problems: All redmine config files are available for anybody in internet, for example: https://redmine.example.com/config/database.yml contains in plain text login a…

---

## [Nginx page caching not working for responses with valid (rfc 1123 compliant) Expires header](https://www.ruby-forum.com/t/nginx-page-caching-not-working-for-responses-with-valid-rfc-1123-compliant-expires-header/234519)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [March 10, 2015, 9:35pm UTC](https://www.ruby-forum.com/t/nginx-page-caching-not-working-for-responses-with-valid-rfc-1123-compliant-expires-header/234519 "2015-03-10T21:35:28Z")

</div>

Hello, I am on nginx-1.7.1 & trying to use nginx’s page caching feature but run into an issue for responses with a valid ‘Expires’ header which seem to be in the correct rfc 1123 compliant format. Nginx somehow doesn’…

---

## [AES-NI support with nginx](https://www.ruby-forum.com/t/aes-ni-support-with-nginx/234271)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 5\
**Last updated:** [March 10, 2015, 8:18pm UTC](https://www.ruby-forum.com/t/aes-ni-support-with-nginx/234271 "2015-03-10T20:18:17Z")

</div>

Hi, Is AES-NI is enabled in nginx 1.7.10 by default, through the openssl evp library (https://www.openssl.org/docs/crypto/evp.html), or does it have to be enabled somehow? ssl\_engine aesni; gives me an error upon te…

---

## [Nginx upstream delays](https://www.ruby-forum.com/t/nginx-upstream-delays/234498)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 7\
**Last updated:** [March 10, 2015, 3:56pm UTC](https://www.ruby-forum.com/t/nginx-upstream-delays/234498 "2015-03-10T15:56:19Z")

</div>

Hello, I have a question about sporadic long upstream response times I’m seeing on (two of) our Nginx servers. It’s kind of hard to show and quantify, but I’ll do my best. One is a Django Gunicorn server. We included…

---

## [Fastcgi\_ignore\_headers inside if{} - block](https://www.ruby-forum.com/t/fastcgi-ignore-headers-inside-if-block/234483)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [March 10, 2015, 3:23pm UTC](https://www.ruby-forum.com/t/fastcgi-ignore-headers-inside-if-block/234483 "2015-03-10T15:23:29Z")

</div>

Hi. I need set some fascgi\_\* inside “if” block. E.g.: if ($foo = “bar”) { fastcgi\_ignore\_headers “Set-Cookie”; } But the error is occure on configtest stage: nginx: \[emerg\] “fastcgi\_ignore\_headers” directive is not…

---

## [Nginx + LibreSSL + ECDSA cert = Error](https://www.ruby-forum.com/t/nginx-libressl-ecdsa-cert-error/234512)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [March 10, 2015, 12:03pm UTC](https://www.ruby-forum.com/t/nginx-libressl-ecdsa-cert-error/234512 "2015-03-10T12:03:20Z")

</div>

nginx mailing list removed\_email\_address@domain.invalid http://mailman.nginx.org/mailman/listinfo/nginx

---

## [How to "undo" a global server deny all in a location block](https://www.ruby-forum.com/t/how-to-undo-a-global-server-deny-all-in-a-location-block/234507)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [March 10, 2015, 1:07am UTC](https://www.ruby-forum.com/t/how-to-undo-a-global-server-deny-all-in-a-location-block/234507 "2015-03-10T01:07:32Z")

</div>

Is it possible to undo a server level deny all; inside a more specific location block? See the following: server { allow 1.2.3.4; allow 2.3.4.5; deny all; location / { location ~ ^/api/(?\<url\>.\*) { # …

---

## [403 Forbidden](https://www.ruby-forum.com/t/403-forbidden/234478)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [March 9, 2015, 10:24am UTC](https://www.ruby-forum.com/t/403-forbidden/234478 "2015-03-09T10:24:54Z")

</div>

Hi I can’t access my domain after installing nginx and coinfigurong the default server conf file : You may add here your server { … } statements for each of your virtual hosts to this file You should look at the…

---

## [Nginx trying to connect to upstream host which is down](https://www.ruby-forum.com/t/nginx-trying-to-connect-to-upstream-host-which-is-down/234493)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [March 9, 2015, 8:42am UTC](https://www.ruby-forum.com/t/nginx-trying-to-connect-to-upstream-host-which-is-down/234493 "2015-03-09T08:42:09Z")

</div>

Hi, Note: I had to change the hostnames and domain names. nginx version: nginx/1.4.6 (Ubuntu) I have the following the configuration: upstream ssl-app-cluster { ip\_hash; server app01.example.com:8443 max\_fails=1 fa…

---

## [Limit the number of buffered connections?](https://www.ruby-forum.com/t/limit-the-number-of-buffered-connections/234492)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [March 9, 2015, 6:28am UTC](https://www.ruby-forum.com/t/limit-the-number-of-buffered-connections/234492 "2015-03-09T06:28:10Z")

</div>

Hi, is there a way in nginx to set a limit to the number of “buffered” connections? I am referring to the client’s request being buffered on disk)? I was not able to find a directive for this but wanted to confirm, th…

---

## [Can not change email address on website](https://www.ruby-forum.com/t/can-not-change-email-address-on-website/234486)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [March 8, 2015, 7:45pm UTC](https://www.ruby-forum.com/t/can-not-change-email-address-on-website/234486 "2015-03-08T19:45:35Z")

</div>

I have for a long time had my own website and server using nginx sofware. I have only one page and use (gksudo gedit /var/www/nginx-default/index.html) to make changes to the site with no problems until I wanted to c…

---

## [Native variable for one level above $document\_root?](https://www.ruby-forum.com/t/native-variable-for-one-level-above-document-root/234480)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [March 8, 2015, 3:00am UTC](https://www.ruby-forum.com/t/native-variable-for-one-level-above-document-root/234480 "2015-03-08T03:00:16Z")

</div>

At the nginx vhost level, is there a native nginx value similar to $document\_root for one directory level above $document\_root ? for example if $document\_root = /home/username/public or /home/username2/public is ther…

---

## [NGINX Worker process stuck, CPU usage at 100%](https://www.ruby-forum.com/t/nginx-worker-process-stuck-cpu-usage-at-100/234471)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [March 7, 2015, 9:25am UTC](https://www.ruby-forum.com/t/nginx-worker-process-stuck-cpu-usage-at-100/234471 "2015-03-07T09:25:52Z")

</div>

I’ve migrated my server over from lighttpd to NGINX(memory leaks were causing cache issues which invoked OOM Killer in Linux). It seems that after a while of running(about 30 minutes) with NGINX and processing reques…

---

## [Weird issues with fastcgi\_cache and images](https://www.ruby-forum.com/t/weird-issues-with-fastcgi-cache-and-images/234455)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [March 6, 2015, 8:25pm UTC](https://www.ruby-forum.com/t/weird-issues-with-fastcgi-cache-and-images/234455 "2015-03-06T20:25:46Z")

</div>

Hey guys, I got a strange issues when I activate fastcgi\_cache some images doesn’t load on first load of the page but when hitting refresh it loads. Here’s my configuration : location ~ .php$ { FastCGI optimizing …

---

## [Server bloc conf?](https://www.ruby-forum.com/t/server-bloc-conf/234466)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [March 6, 2015, 7:47pm UTC](https://www.ruby-forum.com/t/server-bloc-conf/234466 "2015-03-06T19:47:11Z")

</div>

Hello, I used to use sites-available & sites-enabled in a previous version of NginX. I compiled it from source with ngx\_pagespeed module on another VPS. I don’t see anymore the folders available / enabled. On the ot…

---

## [Curl "Connection refused" caused by SSL config](https://www.ruby-forum.com/t/curl-connection-refused-caused-by-ssl-config/234445)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 5\
**Last updated:** [March 6, 2015, 1:47pm UTC](https://www.ruby-forum.com/t/curl-connection-refused-caused-by-ssl-config/234445 "2015-03-06T13:47:54Z")

</div>

Hi all, I have a strange problem with nginx: I tried to harden the TLS stack by setting default to recommended values from https://wiki.mozilla.org/Security/Server\_Side\_TLS but one server has to keep backward compat…

---

## [How do I show 403 error](https://www.ruby-forum.com/t/how-do-i-show-403-error/234429)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [March 5, 2015, 1:25pm UTC](https://www.ruby-forum.com/t/how-do-i-show-403-error/234429 "2015-03-05T13:25:03Z")

</div>

Hi Guys, I just setup nginx reverse proxy for my webservers which has port 80/443 opened from internet and have very restircted access on firewall to the destination servers again those to particular servers on port 8…

---

## [Add\_before\_body](https://www.ruby-forum.com/t/add-before-body/234438)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 9\
**Last updated:** [March 5, 2015, 9:46am UTC](https://www.ruby-forum.com/t/add-before-body/234438 "2015-03-05T09:46:50Z")

</div>

Hey! I’m trying to use the add\_before\_body in nginx.comf, add\_before\_body \\subsites\\dropletlocal\\library\\global\\func-global.class.php; After I add it all the sites display a “No input file specified.”. If I use: ad…

---

## [RE: nginx Digest, Vol 65, Issue 5](https://www.ruby-forum.com/t/re-nginx-digest-vol-65-issue-5/234437)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [March 4, 2015, 4:58pm UTC](https://www.ruby-forum.com/t/re-nginx-digest-vol-65-issue-5/234437 "2015-03-04T16:58:23Z")

</div>

Por favor arem de enviar esse e-mail para mim. Atenciosamente: Julio Cesar Dos Santos -mensag. original- Assunto: nginx Digest, Vol 65, Issue 5 De: removed\_email\_address@domain.invalid Data: 04/03/2015 09:00 Send n…

---

## [Whether nginx can cache video file and large file via the way ( monitoring Port mirroring + send 302](https://www.ruby-forum.com/t/whether-nginx-can-cache-video-file-and-large-file-via-the-way-monitoring-port-mirroring-send-302/234420)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [March 4, 2015, 2:54pm UTC](https://www.ruby-forum.com/t/whether-nginx-can-cache-video-file-and-large-file-via-the-way-monitoring-port-mirroring-send-302/234420 "2015-03-04T14:54:23Z")

</div>

Hi , i have a switch , and i hope to redirect video traffic to Cache via using Port mirroring feature , and monitoring network traffic that involves forwarding a copy of each packet from one network switch. Whether ng…

---

## [EBLB with IWCP for nginx, any OS (beta 0.2)](https://www.ruby-forum.com/t/eblb-with-iwcp-for-nginx-any-os-beta-0-2/234416)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [March 3, 2015, 12:03pm UTC](https://www.ruby-forum.com/t/eblb-with-iwcp-for-nginx-any-os-beta-0-2/234416 "2015-03-03T12:03:43Z")

</div>

Coming up in our next nginx for Windows release, but available now for everyone; (EBLB) Elastic Backend Load Balancer, and (IWCP) Inter Worker Communication Protocol \[Lua required, for Windows don’t try it until our…

---

## [Nginx symfony2 configuration](https://www.ruby-forum.com/t/nginx-symfony2-configuration/234405)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [March 2, 2015, 11:15pm UTC](https://www.ruby-forum.com/t/nginx-symfony2-configuration/234405 "2015-03-02T23:15:28Z")

</div>

I’m trying to set up an nginx webserver for website that uses angularjs for the frontend and symfony2 for backend stuff. I’m having trouble to set up nginx for symfony (the angular configuration works fine). If I nav…

---

## [FastCGI caching mistakes](https://www.ruby-forum.com/t/fastcgi-caching-mistakes/234401)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [March 2, 2015, 5:16pm UTC](https://www.ruby-forum.com/t/fastcgi-caching-mistakes/234401 "2015-03-02T17:16:53Z")

</div>

Hi, I encountered several failure about fastcgi caching. Requests with special characters are not cached. Same for requests with query string. When I try to purge those URLs, each one send me a 404. This is my cachi…

---

## [Does ssl\_trusted\_certificate actually send certs to client?](https://www.ruby-forum.com/t/does-ssl-trusted-certificate-actually-send-certs-to-client/234177)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [March 2, 2015, 4:54pm UTC](https://www.ruby-forum.com/t/does-ssl-trusted-certificate-actually-send-certs-to-client/234177 "2015-03-02T16:54:20Z")

</div>

Hi all, I have an Nginx 1.7.6 server serving HTTPS content, and I’ve been tweaking the configuration lately to ensure it is secure and performant\[1\]. One component of this is ensuring that the intermediate certificat…

---

## [How write at access log only part of $request?](https://www.ruby-forum.com/t/how-write-at-access-log-only-part-of-request/234396)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [March 2, 2015, 2:10pm UTC](https://www.ruby-forum.com/t/how-write-at-access-log-only-part-of-request/234396 "2015-03-02T14:10:54Z")

</div>

Hi All, I have next question: is it possible at nginx access log file decrease stored $request to smaller size? We have very big traffic, and $request part is significant for us only at some start substring of $re…

---

## [Fastcgi\_cache sometimes returns statuscode 500](https://www.ruby-forum.com/t/fastcgi-cache-sometimes-returns-statuscode-500/234397)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 6\
**Last updated:** [March 2, 2015, 2:05pm UTC](https://www.ruby-forum.com/t/fastcgi-cache-sometimes-returns-statuscode-500/234397 "2015-03-02T14:05:57Z")

</div>

Hello, Nginx (all versions since September 2014, but at least 1.7.9, 1.7.10) sometimes returns HTTP status code 500, when serving pages from fastcgi\_cache. Each time this happens, following conditions hold true: \*) …

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

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