# NGINX

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

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

---

## [Help secure my location block](https://www.ruby-forum.com/t/help-secure-my-location-block/242305)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [June 13, 2015, 8:34pm UTC](https://www.ruby-forum.com/t/help-secure-my-location-block/242305 "2015-06-13T20:34:22Z")

</div>

I have files that are served by the backend web app at |/xxx/File?file=yyy.png|. These files are stored at |/storage/files| on the server. So, I wrote a location block to serve these files from storage directly from t…

---

## [Windows nginx 1.9.2.1 Lizard](https://www.ruby-forum.com/t/windows-nginx-1-9-2-1-lizard/242297)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [June 12, 2015, 8:32pm UTC](https://www.ruby-forum.com/t/windows-nginx-1-9-2-1-lizard/242297 "2015-06-12T20:32:06Z")

</div>

19:19 12-6-2015 nginx 1.9.2.1 Lizard Based on nginx 1.9.2 (9-6-2015) with; Openssl-1.0.1o (upgraded 12-6-2015) Naxsi WAF v0.53-3 (upgraded 12-6-2015) Openssl-1.0.1n (CVE-2015-4000, CVE-2015-1788, CVE-2015-1789, CVE-2…

---

## [A bit confused](https://www.ruby-forum.com/t/a-bit-confused/242290)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 11\
**Last updated:** [June 12, 2015, 10:35am UTC](https://www.ruby-forum.com/t/a-bit-confused/242290 "2015-06-12T10:35:37Z")

</div>

I’m tryiong to make some sense out of this and am left a bit cold! What could cause this: ( I’ve left out any attempt at anonymising in case I hide something ) From the docroot… $ ls -l images/models/Lapierre/Overvol…

---

## [Auth\_basic plain password in html](https://www.ruby-forum.com/t/auth-basic-plain-password-in-html/242279)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [June 11, 2015, 9:29pm UTC](https://www.ruby-forum.com/t/auth-basic-plain-password-in-html/242279 "2015-06-11T21:29:53Z")

</div>

All, I have setup aut\_basic on my nginx webserver, whenever I authenticate the username and password are send as plain text via the html request from my webbrowser, is there an easy solution for this? Or should I swi…

---

## [Upcoming NGINX Events](https://www.ruby-forum.com/t/upcoming-nginx-events/242285)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [June 11, 2015, 8:27pm UTC](https://www.ruby-forum.com/t/upcoming-nginx-events/242285 "2015-06-11T20:27:23Z")

</div>

Hi All! NGINX has lots of upcoming events and we’re looking for a variety of talks for them ranging from beginner to advanced – topics on and around NGINX and its use cases - from APIs, to resilient modern web archit…

---

## [答复: nginx plus with ssl on TCP load balance not work](https://www.ruby-forum.com/t/nginx-plus-with-ssl-on-tcp-load-balance-not-work/242281)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [June 11, 2015, 10:59am UTC](https://www.ruby-forum.com/t/nginx-plus-with-ssl-on-tcp-load-balance-not-work/242281 "2015-06-11T10:59:21Z")

</div>

When I’m trying http ssl, I found need to set proxy\_set\_header X-Forwarded-Proto $scheme; in server block, or it will also encounter ERR\_TOO\_MANY\_REDIRECTS. Is TCP has same kind of setting? -----邮件原件----- 发件人: smith…

---

## [Nginx plus with ssl on TCP load balance not work](https://www.ruby-forum.com/t/nginx-plus-with-ssl-on-tcp-load-balance-not-work/242276)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 5\
**Last updated:** [June 11, 2015, 10:28am UTC](https://www.ruby-forum.com/t/nginx-plus-with-ssl-on-tcp-load-balance-not-work/242276 "2015-06-11T10:28:58Z")

</div>

Hi, I’m using nginx plus with ssl on TCP load balance, Configured like the documentation, but it not work. (All the IP below is not real-ip) I have web servers behind, I want to use ssl offloading, and I choose TCP …

---

## [Nginx upstream closed when spdy is active](https://www.ruby-forum.com/t/nginx-upstream-closed-when-spdy-is-active/242261)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [June 11, 2015, 8:08am UTC](https://www.ruby-forum.com/t/nginx-upstream-closed-when-spdy-is-active/242261 "2015-06-11T08:08:10Z")

</div>

hi there we have a problem while downloading files from our website while spdy is enabled. the download wont start and after a few seconds is runs to a timeoute. if i disable spdy, the download is working. what coul…

---

## [Handling subdirectories location](https://www.ruby-forum.com/t/handling-subdirectories-location/242238)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 9\
**Last updated:** [June 10, 2015, 11:38pm UTC](https://www.ruby-forum.com/t/handling-subdirectories-location/242238 "2015-06-10T23:38:12Z")

</div>

Hi, I have the following in my nginx configuration: server { listen 8080; server\_name myservername.com; root /data/www/myservername.com; location / { index index.php index.html index.htm; try\_files $…

---

## [So\_reuseport](https://www.ruby-forum.com/t/so-reuseport/242262)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 8\
**Last updated:** [June 10, 2015, 12:11pm UTC](https://www.ruby-forum.com/t/so-reuseport/242262 "2015-06-10T12:11:57Z")

</div>

Hello, Ihave rebuild nginx 1.9.1 from source to use SO\_REUSEPORT on my wheezy install with kernel 3.16 (from backports). (packages from http://nginx.org/packages/mainline/debian/has not include SO\_REUSEPORT) Some er…

---

## [Problem : nginx with magento](https://www.ruby-forum.com/t/problem-nginx-with-magento/242243)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 11\
**Last updated:** [June 9, 2015, 1:47pm UTC](https://www.ruby-forum.com/t/problem-nginx-with-magento/242243 "2015-06-09T13:47:07Z")

</div>

hi i am using nginx with magento which use fastCGI . whenever i type in url http://example.com/index.php then index.php start downloading . can anyone help me ?

---

## [Fastcgi\_pass / error page /error code in HTTP rsp](https://www.ruby-forum.com/t/fastcgi-pass-error-page-error-code-in-http-rsp/242246)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 5\
**Last updated:** [June 9, 2015, 6:30am UTC](https://www.ruby-forum.com/t/fastcgi-pass-error-page-error-code-in-http-rsp/242246 "2015-06-09T06:30:09Z")

</div>

Hi, I would like nginx to map a fastcgi error response a static error page, and include the HTTP error code in its HTTP response header; e.g. have nginx return the proper error code in its header to the client. have…

---

## [Right use of 'if'](https://www.ruby-forum.com/t/right-use-of-if/242237)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [June 7, 2015, 1:44pm UTC](https://www.ruby-forum.com/t/right-use-of-if/242237 "2015-06-07T13:44:37Z")

</div>

Hai. I try to refuse some attacks with map and if. The requests looks like: ############# /?id=…/…/…/…/…/…/etc/passwd%00&page=…/…/…/…/…/…/etc/passwd%00&file=…/…/…/…/…/…/etc/passwd%00&inc=…/…/…/…/…/…/etc/passwd%00&loa…

---

## [Writing first test Nginx module](https://www.ruby-forum.com/t/writing-first-test-nginx-module/242231)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [June 6, 2015, 2:28pm UTC](https://www.ruby-forum.com/t/writing-first-test-nginx-module/242231 "2015-06-06T14:28:10Z")

</div>

Hello everyone, Recently for some of our needs on Nginx, I am working to develop a new module on Nginx. So I have started to develop a test and basic module. My intention is to call a function before selecting one se…

---

## [TCP Connection details](https://www.ruby-forum.com/t/tcp-connection-details/241976)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [June 6, 2015, 12:07pm UTC](https://www.ruby-forum.com/t/tcp-connection-details/241976 "2015-06-06T12:07:59Z")

</div>

I am using the Nginx as a reverse proxy and I want to find out the TCP connection information on both east and west bound connections. With the following params on the access log, I am able to get the info about the …

---

## [Listen backlog for stream servers](https://www.ruby-forum.com/t/listen-backlog-for-stream-servers/242227)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [June 5, 2015, 2:25pm UTC](https://www.ruby-forum.com/t/listen-backlog-for-stream-servers/242227 "2015-06-05T14:25:15Z")

</div>

Hi, Listen backlog in Nginx defaults to NGX\_LISTEN\_BACKLOG=511 on Linux & other platforms (excepting FreeBSD & MacOS), not to system somaxconn (why does it differ for different OSes?). It’s not a problem to increase …

---

## [HUP signal to nginx doesn't work Ubuntu14](https://www.ruby-forum.com/t/hup-signal-to-nginx-doesnt-work-ubuntu14/242201)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [June 5, 2015, 7:45am UTC](https://www.ruby-forum.com/t/hup-signal-to-nginx-doesnt-work-ubuntu14/242201 "2015-06-05T07:45:01Z")

</div>

Hello, Am seeing an issue while sending HUP signal to nginx (for config reload) on Ubuntu14. It just kills the master process & doesn’t start the new worker processes. The same works just fine on CentOS 6.6 64-bit $ …

---

## [Time out](https://www.ruby-forum.com/t/time-out/242219)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [June 5, 2015, 3:40am UTC](https://www.ruby-forum.com/t/time-out/242219 "2015-06-05T03:40:50Z")

</div>

Hi! Could nginx be the cause of (google chrome message): " This webpage is not available ERR\_CONNECTION\_TIMED\_OUT " My IP change is dynamic and changed this afternoon, and after that all I’m getting now is this TI…

---

## [Accept-Encoding: gzip and the Vary header](https://www.ruby-forum.com/t/accept-encoding-gzip-and-the-vary-header/242204)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 7\
**Last updated:** [June 4, 2015, 9:50pm UTC](https://www.ruby-forum.com/t/accept-encoding-gzip-and-the-vary-header/242204 "2015-06-04T21:50:53Z")

</div>

I have used gzip\_static for some years without any issue that I am aware of with the default gzip\_vary off. My reasoning is that the HTTP spec says in http://tools.ietf.org/html/rfc2616#page-145 that “the Vary field…

---

## [Reverse proxy SMTP - How distinguish MUA and MTA](https://www.ruby-forum.com/t/reverse-proxy-smtp-how-distinguish-mua-and-mta/242213)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [June 4, 2015, 9:47pm UTC](https://www.ruby-forum.com/t/reverse-proxy-smtp-how-distinguish-mua-and-mta/242213 "2015-06-04T21:47:58Z")

</div>

Hi Still building a nginx reverse proxy for my mail servers. Thanks to the community, I now have a secure connection between nginx and my backend mail server. POP and IMAP are working well, from a MUA to my server. …

---

## [Thanks](https://www.ruby-forum.com/t/thanks/242202)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [June 4, 2015, 10:03am UTC](https://www.ruby-forum.com/t/thanks/242202 "2015-06-04T10:03:24Z")

</div>

Thanks all devs who put Nginx together and made this awesome piece of work! With it and freedns.afraid.org I was able to host my site from my home server. – Thiago F.

---

## [Nginx LibreSSL and BoringSSL alternative to OpenSSL?](https://www.ruby-forum.com/t/nginx-libressl-and-boringssl-alternative-to-openssl/242171)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 4\
**Last updated:** [June 4, 2015, 9:09am UTC](https://www.ruby-forum.com/t/nginx-libressl-and-boringssl-alternative-to-openssl/242171 "2015-06-04T09:09:40Z")

</div>

Currently on CentOS 6/7, I source compile my Nginx 1.9.x versions with static OpenSSL 1.02a patched for chacha20\_poly1305 but thinking about switching to LibreSSL or BoringSSL (for equal preference group cipher suppor…

---

## [Add header based on fastcgi response](https://www.ruby-forum.com/t/add-header-based-on-fastcgi-response/242153)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 5\
**Last updated:** [June 3, 2015, 7:10pm UTC](https://www.ruby-forum.com/t/add-header-based-on-fastcgi-response/242153 "2015-06-03T19:10:47Z")

</div>

Good morning! I’d like to add a X-Fastcgi-Cache header when there is a fastcgi cache hit, when the response is stored to or retrieved from the cache. add\_header X-Fastcgi-Cache 600; Could you help me? Thank you. S…

---

## [Any reason stub\_status would return 0.00 for last CPU?](https://www.ruby-forum.com/t/any-reason-stub-status-would-return-0-00-for-last-cpu/242177)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [June 3, 2015, 3:33am UTC](https://www.ruby-forum.com/t/any-reason-stub-status-would-return-0-00-for-last-cpu/242177 "2015-06-03T03:33:40Z")

</div>

Server is running really hot so investigating. Stub\_status displays requests, but CPU data is 0.00 for all: http://pastebin.com/U0pLCBQ8 I’m running 1.8.0 with php-fpm and fastcgi caching Posted at Nginx Forum:

---

## [SSL session caching](https://www.ruby-forum.com/t/ssl-session-caching/242174)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [June 2, 2015, 7:46pm UTC](https://www.ruby-forum.com/t/ssl-session-caching/242174 "2015-06-02T19:46:54Z")

</div>

In my current setup I have nginx behind a load balancing router (OSPF) where each connection to the same address has about 16% chance of hitting the same server as the last time. In a setup like that, does SSL sessio…

---

## [In-flight HTTP requests fail during hot configuration reload (SIGHUP)](https://www.ruby-forum.com/t/in-flight-http-requests-fail-during-hot-configuration-reload-sighup/242159)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [June 2, 2015, 3:28pm UTC](https://www.ruby-forum.com/t/in-flight-http-requests-fail-during-hot-configuration-reload-sighup/242159 "2015-06-02T15:28:35Z")

</div>

We have recently migrated across from HAProxy to Nginx because it supports true zero-downtime configuration reloads. However, we are occasionally getting 502 and 504 errors from our monitoring systems during deploym…

---

## [Find out if config file is loaded/used](https://www.ruby-forum.com/t/find-out-if-config-file-is-loaded-used/242172)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [June 2, 2015, 2:29pm UTC](https://www.ruby-forum.com/t/find-out-if-config-file-is-loaded-used/242172 "2015-06-02T14:29:34Z")

</div>

Hi, we configured load balancing around 10 machines in 2 clusters using symbolic links to various configuration file. We change the symbolic link to a different file if we need to do maintenance on one of the cluster…

---

## [Mail proxying](https://www.ruby-forum.com/t/mail-proxying/242145)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 7\
**Last updated:** [June 2, 2015, 7:48am UTC](https://www.ruby-forum.com/t/mail-proxying/242145 "2015-06-02T07:48:14Z")

</div>

Hi I’m setting up nginx as a reverse proxy for a postfix / dovecot setup. My imap server requires STARTTLS usage. Nginx seems to not issue STARTTLS command before forwarding users credentials. Here is the error I fo…

---

## [Occasionally 500 responses](https://www.ruby-forum.com/t/occasionally-500-responses/242170)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [June 1, 2015, 10:32pm UTC](https://www.ruby-forum.com/t/occasionally-500-responses/242170 "2015-06-01T22:32:03Z")

</div>

We were seeing occasionally 500 responses from nginx on our production servers. There is nothing in the error log correlated to the event. Upon turning on debugging log and TCP dump, we identified the occasionally 500 …

---

## [Cant write across filesystem mounts?](https://www.ruby-forum.com/t/cant-write-across-filesystem-mounts/242144)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [June 1, 2015, 9:26pm UTC](https://www.ruby-forum.com/t/cant-write-across-filesystem-mounts/242144 "2015-06-01T21:26:36Z")

</div>

Hi I dont think this is specific to nginx but I hope its a good place to ask! When running PHP script through Nginx it writes OK to files on the same disk mount where the PHP file is located but not to the other part…

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

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