# Server

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

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

---

## [Nginx 1.8.0 not logging properly](https://www.ruby-forum.com/t/nginx-1-8-0-not-logging-properly/243602)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [December 9, 2015, 12:41pm UTC](https://www.ruby-forum.com/t/nginx-1-8-0-not-logging-properly/243602 "2015-12-09T12:41:08Z")

</div>

Hi, I’m using the Nginx 1.8.0 rpm found on Index of /packages/centos/7/x86\_64/RPMS/ with a config that has been working fine so far with Nginx 1.6.x. The problem is that sometimes I get 500 Internal Server Errors but…

---

## [The nginx server could not access win2012r2's request](https://www.ruby-forum.com/t/the-nginx-server-could-not-access-win2012r2s-request/243600)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [December 9, 2015, 11:00am UTC](https://www.ruby-forum.com/t/the-nginx-server-could-not-access-win2012r2s-request/243600 "2015-12-09T11:00:40Z")

</div>

i install a nginx service in a centos 7 server.i can visit the nginx web page from a linux client.but i can not visit the page from a win2012r2 client.it show ERR\_CONNECTION\_TIMED\_OUT error.there is no error on the ng…

---

## [Nginx ignoring config file when started via systemd](https://www.ruby-forum.com/t/nginx-ignoring-config-file-when-started-via-systemd/243593)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [December 9, 2015, 8:59am UTC](https://www.ruby-forum.com/t/nginx-ignoring-config-file-when-started-via-systemd/243593 "2015-12-09T08:59:45Z")

</div>

Hi Guys, Got a somewhat interesting bug with nginx, which is where my config is being ignored by nginx when it’s started via systemd. Here’s the config: server { listen 80 default\_server; listen …

---

## [Nginx use ssl slow than ELB](https://www.ruby-forum.com/t/nginx-use-ssl-slow-than-elb/243595)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [December 8, 2015, 3:04pm UTC](https://www.ruby-forum.com/t/nginx-use-ssl-slow-than-elb/243595 "2015-12-08T15:04:19Z")

</div>

Hi, I want to use nginx as LB to replace aws ELB, but found that it is much slower, it affected web users, sometime user will encounter access web time out. this is my configuration, please help to check if somethin…

---

## [Sending the body](https://www.ruby-forum.com/t/sending-the-body/243594)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [December 8, 2015, 2:43pm UTC](https://www.ruby-forum.com/t/sending-the-body/243594 "2015-12-08T14:43:17Z")

</div>

Hi, I am using the “Emiller’s Guide To Nginx Module Development”, in section “3.1.4. Sending the body”, there is allocation to: ngx\_chain\_t out. I do not understand where is the free for this allocation? Should it b…

---

## [Output\_buffers value breaks thread\_pool/aio on 1.9.5+](https://www.ruby-forum.com/t/output-buffers-value-breaks-thread-pool-aio-on-1-9-5/243575)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [December 7, 2015, 4:57pm UTC](https://www.ruby-forum.com/t/output-buffers-value-breaks-thread-pool-aio-on-1-9-5/243575 "2015-12-07T16:57:41Z")

</div>

Hi Since 1.9.5, \*) Change: now the “output\_buffers” directive uses two buffers by default. The two buffers do not work with thread\_pool/aio, the connection is closed at 32,768 bytes (size of one buffer) These messa…

---

## [Optional SSL on same port, or access control/log with stream protocol](https://www.ruby-forum.com/t/optional-ssl-on-same-port-or-access-control-log-with-stream-protocol/243586)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [December 7, 2015, 3:17pm UTC](https://www.ruby-forum.com/t/optional-ssl-on-same-port-or-access-control-log-with-stream-protocol/243586 "2015-12-07T15:17:13Z")

</div>

Hi! I’m running an HTTP-based application (Plex) that decides whether or not to use SSL based on what the client decides to talk to it. I would like to be able to control what it does and who’s able to connect to it …

---

## [IPv6, HTTPS, and SNI](https://www.ruby-forum.com/t/ipv6-https-and-sni/243583)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 6\
**Last updated:** [December 7, 2015, 2:01pm UTC](https://www.ruby-forum.com/t/ipv6-https-and-sni/243583 "2015-12-07T14:01:51Z")

</div>

Hi, I am having in issue using https with multiple sites on ipv6 (nominally SNI). If I declare more than one listen directive for ipv6 on port 443 nginx refuses to start. The ipv4 configuration is fine, it’s only an …

---

## [Can we limit a ngnix website bandwidth to 2 gb per day](https://www.ruby-forum.com/t/can-we-limit-a-ngnix-website-bandwidth-to-2-gb-per-day/243584)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [December 7, 2015, 11:59am UTC](https://www.ruby-forum.com/t/can-we-limit-a-ngnix-website-bandwidth-to-2-gb-per-day/243584 "2015-12-07T11:59:10Z")

</div>

→Can we limit a website bandwidth (i.e. 2 GB per day) I’m running multiple website on a single webserver, one of these is heavily accessed and consuming huge bandwidth and due to this other websites unnecessarily suf…

---

## [OCSP malformedrequest with 1.9.7 and openssl 1.0.2e](https://www.ruby-forum.com/t/ocsp-malformedrequest-with-1-9-7-and-openssl-1-0-2e/243566)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 3\
**Last updated:** [December 7, 2015, 2:58am UTC](https://www.ruby-forum.com/t/ocsp-malformedrequest-with-1-9-7-and-openssl-1-0-2e/243566 "2015-12-07T02:58:15Z")

</div>

Hello, OCSP is not working on my raspberrypi2 with nginx 1.9.7 and OpenSSL 1.0.2e. I have compiled both together. tail /var/log/nginx/error.log 2015/12/04 22:28:21 \[error\] 14841#0: OCSP response not successful (1: …

---

## [NginX SSL reverse mode, client ip address problem](https://www.ruby-forum.com/t/nginx-ssl-reverse-mode-client-ip-address-problem/243574)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [December 6, 2015, 12:04pm UTC](https://www.ruby-forum.com/t/nginx-ssl-reverse-mode-client-ip-address-problem/243574 "2015-12-06T12:04:28Z")

</div>

In NginX reverse mode, There is a problem that can’t get real client’s Ip address. If I use Http protocol, I can simply handle this problem with below http configuration. http { server { listen 80; location / { p…

---

## [Web application to call C code](https://www.ruby-forum.com/t/web-application-to-call-c-code/243571)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [December 5, 2015, 11:45pm UTC](https://www.ruby-forum.com/t/web-application-to-call-c-code/243571 "2015-12-05T23:45:29Z")

</div>

I am writing a web application and am interested in whether I can use nginx. For each request for the web server, I want it to call some C code I have written. The code C will generate the HTML I want to send back. Is…

---

## [Nginx crashing every few hours?](https://www.ruby-forum.com/t/nginx-crashing-every-few-hours/243564)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 4\
**Last updated:** [December 4, 2015, 3:54pm UTC](https://www.ruby-forum.com/t/nginx-crashing-every-few-hours/243564 "2015-12-04T15:54:07Z")

</div>

Hi, last few years I using nginx on very busy websites and all time all working fine, never I don\`t have problem with nginx crashing but now I move my websites to new server and I using same settings like on old serv…

---

## [Blocking unknown hostnames for SSL/TLS connections](https://www.ruby-forum.com/t/blocking-unknown-hostnames-for-ssl-tls-connections/243561)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [December 4, 2015, 2:35am UTC](https://www.ruby-forum.com/t/blocking-unknown-hostnames-for-ssl-tls-connections/243561 "2015-12-04T02:35:33Z")

</div>

Hello, We’re currently using nginx for SSL/TLS termination, which then proxies the request to a pair of internal pair of load balancers. Since the TLS handshake is performed before nginx is able to figure out what ho…

---

## [Could Nginx stream support FTP PASSIVE?](https://www.ruby-forum.com/t/could-nginx-stream-support-ftp-passive/243550)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [December 3, 2015, 4:06pm UTC](https://www.ruby-forum.com/t/could-nginx-stream-support-ftp-passive/243550 "2015-12-03T16:06:23Z")

</div>

Dears, Could Nginx stream support FTP PASSIVE? #er nobody; worker\_processes 4; #error\_log logs/error.log; #error\_log logs/error.log notice; #error\_log logs/error.log info; #pid logs/nginx.pid; event…

---

## [SSL handshake issue!](https://www.ruby-forum.com/t/ssl-handshake-issue/243555)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [December 3, 2015, 2:27pm UTC](https://www.ruby-forum.com/t/ssl-handshake-issue/243555 "2015-12-03T14:27:39Z")

</div>

Hi, We’ve been encountering this issue quiet frequently. Looks like that is the reason of our drop in traffic as well. 2015/12/03 16:19:18 \[crit\] 26272#0: \*176263213 SSL\_do\_handshake() failed (SSL: error:140A1175:S…

---

## [Re: server\_name within tcp server blocks](https://www.ruby-forum.com/t/re-server-name-within-tcp-server-blocks/243552)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [December 3, 2015, 11:11am UTC](https://www.ruby-forum.com/t/re-server-name-within-tcp-server-blocks/243552 "2015-12-03T11:11:55Z")

</div>

Thanks a lot for the clarification guys! :slight\_smile:

---

## [Nginx node helth check](https://www.ruby-forum.com/t/nginx-node-helth-check/243549)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [December 3, 2015, 7:05am UTC](https://www.ruby-forum.com/t/nginx-node-helth-check/243549 "2015-12-03T07:05:24Z")

</div>

Hi ! We currently use NginX as a L4 switch. We have 1 single Upstream VIP which has 2 real nodes of Apache web server. If all nodes under the VIP works fine, we always get normal response from the NginX whenever we…

---

## [Bug of discarding request body](https://www.ruby-forum.com/t/bug-of-discarding-request-body/243540)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [December 3, 2015, 1:39am UTC](https://www.ruby-forum.com/t/bug-of-discarding-request-body/243540 "2015-12-03T01:39:25Z")

</div>

Hi, There: I run into a bug which I believe it is about ngx\_http\_discard\_request\_body() (discard\_body() for short). This bug is reproducible using the 1.9.7 release. The discard\_body() discards request body by read…

---

## [Server\_name within tcp server blocks](https://www.ruby-forum.com/t/server-name-within-tcp-server-blocks/243542)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [December 2, 2015, 7:47pm UTC](https://www.ruby-forum.com/t/server-name-within-tcp-server-blocks/243542 "2015-12-02T19:47:08Z")

</div>

Hi guys, I have the following tcp server block in my nginx.conf stream { upstream kafka\_producer { server kafka.service.consul:9092; } server { listen 9092; server\_name kafka.stream.mycompany.com; pr…

---

## [Nginx Reverse proxy + RD Gateway Auth Problem](https://www.ruby-forum.com/t/nginx-reverse-proxy-rd-gateway-auth-problem/232602)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 8\
**Last updated:** [December 2, 2015, 6:26pm UTC](https://www.ruby-forum.com/t/nginx-reverse-proxy-rd-gateway-auth-problem/232602 "2015-12-02T18:26:31Z")

</div>

Hello all, Nginx is the reverse proxy+ MS Remote Desktop Gateway using SSL, the first authentication is working, the problem is when I try to open a program in this environment for example wordpad.exe of session hos…

---

## [Nginx changes the hostname of proxy\_pass into ip address unwantedly](https://www.ruby-forum.com/t/nginx-changes-the-hostname-of-proxy-pass-into-ip-address-unwantedly/243538)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [December 2, 2015, 5:05pm UTC](https://www.ruby-forum.com/t/nginx-changes-the-hostname-of-proxy-pass-into-ip-address-unwantedly/243538 "2015-12-02T17:05:53Z")

</div>

I have configured nginx to use mod\_zip to zip up multiple files. I also have configured nginx so that it proxies to s3 when our server gets a request to /images. location /p/ { proxy\_pass http://bucket-name.s3.amazo…

---

## [PHP and CGI on UserDir](https://www.ruby-forum.com/t/php-and-cgi-on-userdir/243526)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 9\
**Last updated:** [December 2, 2015, 2:04pm UTC](https://www.ruby-forum.com/t/php-and-cgi-on-userdir/243526 "2015-12-02T14:04:47Z")

</div>

Hello. I am new here. I try to enable PHP and CGI(Perl) on UserDir (/home/user/public\_html) with nginx. But on my Chrome, PHP script is downloaded and CGI script shows me “404 Not Found” page. Here’s my configurat…

---

## [Sctp](https://www.ruby-forum.com/t/sctp/243539)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [December 2, 2015, 9:56am UTC](https://www.ruby-forum.com/t/sctp/243539 "2015-12-02T09:56:27Z")

</div>

Hello, Can I load balance SCTP traffic by using nginx? Thanks so much, Meir Posted at Nginx Forum:

---

## [Purger directive not available](https://www.ruby-forum.com/t/purger-directive-not-available/243529)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [December 2, 2015, 9:45am UTC](https://www.ruby-forum.com/t/purger-directive-not-available/243529 "2015-12-02T09:45:56Z")

</div>

Hello! I am using nginx 1.8.0 on Cent OS 7, tried to enable purger directive, mentioned on http://nginx.org/en/docs/http/ngx\_http\_proxy\_module.html#proxy\_cache\_path But got error like this : nginx\[46931\]: nginx: \[em…

---

## [Nginx SSL\_do\_handshake() failed](https://www.ruby-forum.com/t/nginx-ssl-do-handshake-failed/243535)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [December 2, 2015, 9:13am UTC](https://www.ruby-forum.com/t/nginx-ssl-do-handshake-failed/243535 "2015-12-02T09:13:11Z")

</div>

it’s the first time I configure an SSL certificate on my development machine (I’m no sysadmin - I need SSL to work with facebook). I decided to go with ngingx proxying a ruby sinatra application, nothing fancy. This i…

---

## [Basic auth is slow](https://www.ruby-forum.com/t/basic-auth-is-slow/243532)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [December 2, 2015, 9:09am UTC](https://www.ruby-forum.com/t/basic-auth-is-slow/243532 "2015-12-02T09:09:41Z")

</div>

Hi, I just noticed that enabling basic authentication adds between 100 and 150 ms to my otherwise 30-40 ms page load time. Is this known behaviour? Is this somehow inherent or a design / implementation mistake? Á

---

## [Bind failed](https://www.ruby-forum.com/t/bind-failed/243531)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [December 2, 2015, 9:09am UTC](https://www.ruby-forum.com/t/bind-failed/243531 "2015-12-02T09:09:41Z")

</div>

Hi, I was doing some tests today and have created a single test virtual host with listen 8181; and nginx runs fine (1.9.7). Now if I change the listen to only one interface ip: listen 192.168.10.10:8181 configtest…

---

## [Is it possible to get headers from X-Accel-Redirect reply](https://www.ruby-forum.com/t/is-it-possible-to-get-headers-from-x-accel-redirect-reply/243537)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [December 2, 2015, 9:09am UTC](https://www.ruby-forum.com/t/is-it-possible-to-get-headers-from-x-accel-redirect-reply/243537 "2015-12-02T09:09:05Z")

</div>

Hello, my upstream server replies with this: HTTP/1.1 200 OK. Server: test. Date: Sat, 28 Nov 2015 00:05:55 GMT. Content-Type: application/json. Content-Length: 0. Connection: close. X-ExtraInfo: domain\_name=test1…

---

## [ETag from S3 did not match computed MD5](https://www.ruby-forum.com/t/etag-from-s3-did-not-match-computed-md5/243534)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [December 2, 2015, 8:56am UTC](https://www.ruby-forum.com/t/etag-from-s3-did-not-match-computed-md5/243534 "2015-12-02T08:56:13Z")

</div>

Hello, I am new in NGINX. I am using boto service with NGINX. When I am sending a put request I get a response with ETag which does not match the MD5. My question is: what could be the reason for that? Thanks, Orta…

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

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