# Server

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

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

---

## [Nginx reload, stop error](https://www.ruby-forum.com/t/nginx-reload-stop-error/231063)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [November 25, 2014, 1:47pm UTC](https://www.ruby-forum.com/t/nginx-reload-stop-error/231063 "2014-11-25T13:47:13Z")

</div>

Hey, when I run ‘./nginx -s reload’ or ‘./nginx -s stop’ i get this: nginx: \[error\] open() “/usr/local/nginx-1.4.3/logs/nginx.pid” failed (2: No such file or directory) Any ideas why it’s trying to open this f…

---

## [Rewrite or return for simple redirection](https://www.ruby-forum.com/t/rewrite-or-return-for-simple-redirection/233178)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 6\
**Last updated:** [November 24, 2014, 3:40pm UTC](https://www.ruby-forum.com/t/rewrite-or-return-for-simple-redirection/233178 "2014-11-24T15:40:02Z")

</div>

I am trying to understand which option would result in more efficient HTTP redirection. I am trying to redirect ^/address page to ^/contact page. Option 1: rewrite ^/address /contact permanent; Option 2: location ~…

---

## [Matching multiple endpoints in location of nginx.conf](https://www.ruby-forum.com/t/matching-multiple-endpoints-in-location-of-nginx-conf/233197)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [November 24, 2014, 7:13am UTC](https://www.ruby-forum.com/t/matching-multiple-endpoints-in-location-of-nginx-conf/233197 "2014-11-24T07:13:19Z")

</div>

I can’t really test this easily so I am asking instead. I have this location statement in my nginx.conf: location ~\* ^/(api/abcd)/ { ... } Now I want to match against “api/efgh”. Then the regex should…

---

## [How to extract multiple values of a header for logging](https://www.ruby-forum.com/t/how-to-extract-multiple-values-of-a-header-for-logging/233149)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [November 23, 2014, 9:48pm UTC](https://www.ruby-forum.com/t/how-to-extract-multiple-values-of-a-header-for-logging/233149 "2014-11-23T21:48:54Z")

</div>

I have a custom header in http response and it can appear more than once. Let’s say it is called x-extra. In my nginx configuration, I want to extract all of its values and log them together but I found it is always…

---

## [Rate limit with good bot IPs whitelisted](https://www.ruby-forum.com/t/rate-limit-with-good-bot-ips-whitelisted/233180)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 5\
**Last updated:** [November 22, 2014, 8:59pm UTC](https://www.ruby-forum.com/t/rate-limit-with-good-bot-ips-whitelisted/233180 "2014-11-22T20:59:15Z")

</div>

I am trying to figure out if there is any way to rate limit all traffic except Googlebot, msnbot, yandex and baidu bots. Here is what I have started with: Whitelisted IPs geo $rate\_limit\_ip { default $binary\_remote\_a…

---

## [Best Hosting Panel to use with Nginx](https://www.ruby-forum.com/t/best-hosting-panel-to-use-with-nginx/233184)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [November 22, 2014, 9:23am UTC](https://www.ruby-forum.com/t/best-hosting-panel-to-use-with-nginx/233184 "2014-11-22T09:23:17Z")

</div>

Hi guys, I fell in love with Nginx and want to use it on every server I’m setting up. What hosting admin panel would you recommend to use with Nginx ? I want to use Nginx as HTTP server insteads of Apache. Thanks

---

## [Use of worker\_cpu\_affinity in hyper-threading context](https://www.ruby-forum.com/t/use-of-worker-cpu-affinity-in-hyper-threading-context/233164)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [November 21, 2014, 9:55pm UTC](https://www.ruby-forum.com/t/use-of-worker-cpu-affinity-in-hyper-threading-context/233164 "2014-11-21T21:55:02Z")

</div>

Hi, I have one E3-1240 v3 CPU here, which has 4 cores with hyper-threading enabled. Currently I have the following setup in nginx.conf: worker\_processes 4; worker\_cpu\_affinity 10100000 01010000 00001010 00000101; In…

---

## [Nginx performance with aritificial latency - help?](https://www.ruby-forum.com/t/nginx-performance-with-aritificial-latency-help/233169)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [November 21, 2014, 9:07pm UTC](https://www.ruby-forum.com/t/nginx-performance-with-aritificial-latency-help/233169 "2014-11-21T21:07:53Z")

</div>

Hello All! I am attempting to do stress testing of a custom proxy server. Basically, the scenario looks somewhat like the following: performance testing software (client) —\> proxy server —\> nginx (server). The ngin…

---

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

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [November 21, 2014, 8:56am UTC](https://www.ruby-forum.com/t/nginx-configuration-sharetronix/232895 "2014-11-21T08:56:05Z")

</div>

i try to setup sharetronix on my vps server, with nginx + php5-fpm. The problem is (maybe) my nginx configuration, when i try to view website, i get error 404 - No input file specified. My configuration (at last) se…

---

## [Using both keepalive requests and timeout](https://www.ruby-forum.com/t/using-both-keepalive-requests-and-timeout/233146)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 14\
**Last updated:** [November 21, 2014, 7:11am UTC](https://www.ruby-forum.com/t/using-both-keepalive-requests-and-timeout/233146 "2014-11-21T07:11:27Z")

</div>

Hi all, I was curious to see if anyone used both keepalive\_requests and keepalive\_timeout at the same time and knew the expected behaviour? I was hoping that nginx would do whichever conditions were met first. Thank…

---

## [Too many redirects](https://www.ruby-forum.com/t/too-many-redirects/233156)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 10\
**Last updated:** [November 21, 2014, 1:10am UTC](https://www.ruby-forum.com/t/too-many-redirects/233156 "2014-11-21T01:10:17Z")

</div>

Hello, I try to force SSL redirect on my website, but I’m getting a ERR\_TOO\_MANY\_REDIRECTS. I can’t figure what’s wrong, here is my vhost .conf file : server { listen \*:80; listen \*:443 ssl; ssl on; ssl\_protocols…

---

## [Rewrite with permanent and last](https://www.ruby-forum.com/t/rewrite-with-permanent-and-last/233151)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 6\
**Last updated:** [November 20, 2014, 11:28pm UTC](https://www.ruby-forum.com/t/rewrite-with-permanent-and-last/233151 "2014-11-20T23:28:47Z")

</div>

Is it possible to rewrite URL with HTTP 301 and make that last rule in current ruleset? For example, in apache one can use flags “\[R=301,L\]” , but how can one do it in nginx? I tried using following, but it returned …

---

## [Incomplete HTTP request body sent to upstream](https://www.ruby-forum.com/t/incomplete-http-request-body-sent-to-upstream/233140)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [November 20, 2014, 7:08pm UTC](https://www.ruby-forum.com/t/incomplete-http-request-body-sent-to-upstream/233140 "2014-11-20T19:08:09Z")

</div>

Hi, I’m experiencing an issue whereby nginx and the upstream server get into disagreement about the state of the HTTP interaction, apparently caused by nginx not transmitting the complete request body. The scenario i…

---

## [Technical reason behind client\_body\_temp\_path](https://www.ruby-forum.com/t/technical-reason-behind-client-body-temp-path/233150)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [November 20, 2014, 12:03am UTC](https://www.ruby-forum.com/t/technical-reason-behind-client-body-temp-path/233150 "2014-11-20T00:03:34Z")

</div>

I am trying to understand the reason for buffering incoming request (client\_body\_buffer\_size) in which nginx would either keep request in memory or write to file client\_body\_temp\_path (based on request size). What ar…

---

## [Integrating softHSM with nginx](https://www.ruby-forum.com/t/integrating-softhsm-with-nginx/233128)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [November 19, 2014, 7:16pm UTC](https://www.ruby-forum.com/t/integrating-softhsm-with-nginx/233128 "2014-11-19T19:16:22Z")

</div>

Hii friends, I want to integrate softHSM with nginx. I did not find any resource to make it working. I found two below links from Nginx developement forum. But, They are not helpful to me. I’m trying to integr…

---

## [Config file syntax: is there a formal definition?](https://www.ruby-forum.com/t/config-file-syntax-is-there-a-formal-definition/233143)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [November 19, 2014, 4:42pm UTC](https://www.ruby-forum.com/t/config-file-syntax-is-there-a-formal-definition/233143 "2014-11-19T16:42:12Z")

</div>

I like to see something like BNF (Extended Backus–Naur form - Wikipedia) describing the configuration file language. Anyone created such a list? thanks Noam Posted at Nginx Forum:

---

## [Have full URL redirect to SSL (not just $server\_name and $request\_uri)](https://www.ruby-forum.com/t/have-full-url-redirect-to-ssl-not-just-server-name-and-request-uri/233135)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [November 19, 2014, 4:13pm UTC](https://www.ruby-forum.com/t/have-full-url-redirect-to-ssl-not-just-server-name-and-request-uri/233135 "2014-11-19T16:13:11Z")

</div>

Hi – we currently have a redirect rule in a location on our server to redirect all non-SSL traffic to SSL, like so: location / { return 301 https://$server\_name$request\_uri; } This works for almost all cases, but th…

---

## [Intermittent problems reaching files (whether served via php or not)](https://www.ruby-forum.com/t/intermittent-problems-reaching-files-whether-served-via-php-or-not/233141)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [November 19, 2014, 3:04pm UTC](https://www.ruby-forum.com/t/intermittent-problems-reaching-files-whether-served-via-php-or-not/233141 "2014-11-19T15:04:49Z")

</div>

having difficulty to serve simple video files here (for playback in a browser via video-js or other player). even without the video player there are problems. i have tested access to the video file both when the file…

---

## [Chunked\_transfer\_encoding seems doesn't work as expected](https://www.ruby-forum.com/t/chunked-transfer-encoding-seems-doesnt-work-as-expected/233137)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [November 19, 2014, 2:14pm UTC](https://www.ruby-forum.com/t/chunked-transfer-encoding-seems-doesnt-work-as-expected/233137 "2014-11-19T14:14:01Z")

</div>

Hi All, When i try to use the directive “chunked\_transfer\_encoding” to control the encoding type of output data, it failed to output the chunked data even thougth i turned on the directive as “chunked\_transfer\_encodin…

---

## ["110: Connection timed out" and "104: Connection reset by peer" error in nginx error log](https://www.ruby-forum.com/t/110-connection-timed-out-and-104-connection-reset-by-peer-error-in-nginx-error-log/233133)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [November 19, 2014, 10:21am UTC](https://www.ruby-forum.com/t/110-connection-timed-out-and-104-connection-reset-by-peer-error-in-nginx-error-log/233133 "2014-11-19T10:21:37Z")

</div>

Hi All, When i run my Jmeter load test with 2000 users ,I got below 2 error in nginx error log frequently. /opt/nginx/logs/error.log=\> 2014/11/06 11:05:40 \[error\] 3430#0: \*18263 connect() failed (110: Connection t…

---

## [Slow Time to first byte](https://www.ruby-forum.com/t/slow-time-to-first-byte/233107)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [November 19, 2014, 9:46am UTC](https://www.ruby-forum.com/t/slow-time-to-first-byte/233107 "2014-11-19T09:46:30Z")

</div>

Currently running into a host of problems with a collections of sites that I’m running off a Digital Ocean LEMP stack. There is a \> 1s TTFB delay & things are in general are sluggish Ubuntu 12.04 4 Core CPU 8GB RAM …

---

## [Problem with argument route in upstream](https://www.ruby-forum.com/t/problem-with-argument-route-in-upstream/233125)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 5\
**Last updated:** [November 18, 2014, 10:39pm UTC](https://www.ruby-forum.com/t/problem-with-argument-route-in-upstream/233125 "2014-11-18T22:39:53Z")

</div>

Hi, I was looking for hours what is the problem with my conf. I am trying to implement a nginx reverse loadbalancer with tomcat application servers. I chose the route method here is the conf : map $cookie\_jsessionid…

---

## [How to serve all existing static files directly with NGINX, but proxy other requests to jetty?](https://www.ruby-forum.com/t/how-to-serve-all-existing-static-files-directly-with-nginx-but-proxy-other-requests-to-jetty/233117)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [November 18, 2014, 9:54pm UTC](https://www.ruby-forum.com/t/how-to-serve-all-existing-static-files-directly-with-nginx-but-proxy-other-requests-to-jetty/233117 "2014-11-18T21:54:31Z")

</div>

My question is similar to is that my site directory structure looks like this: /nginxRoot/test/js /nginxRoot/test/images /nginxRoot/test/html … So the site root isn’t “/nginxRoot/” but “/nginxRoot/test/” I want t…

---

## [Log blacklisted domains to a separate log file](https://www.ruby-forum.com/t/log-blacklisted-domains-to-a-separate-log-file/233122)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [November 18, 2014, 8:20pm UTC](https://www.ruby-forum.com/t/log-blacklisted-domains-to-a-separate-log-file/233122 "2014-11-18T20:20:11Z")

</div>

Hello, I have a list of blacklisted domains in a file. For these domains I want to log to a different log file. I assume i have to write nginx module for this. Or do we have some other way to do this? Since there ar…

---

## [Nginx-rtmp - lags of stream, big bandwidth on master](https://www.ruby-forum.com/t/nginx-rtmp-lags-of-stream-big-bandwidth-on-master/233113)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [November 18, 2014, 2:31pm UTC](https://www.ruby-forum.com/t/nginx-rtmp-lags-of-stream-big-bandwidth-on-master/233113 "2014-11-18T14:31:40Z")

</div>

Hi, i have master server and edge nodes, what use pull function to restream. Anyone streaming to master (rtmp) and its available in flash player from website (from any edge node in cluster). I debuging two problems s…

---

## [SSL Session Ticket Expiration](https://www.ruby-forum.com/t/ssl-session-ticket-expiration/233112)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [November 18, 2014, 1:25pm UTC](https://www.ruby-forum.com/t/ssl-session-ticket-expiration/233112 "2014-11-18T13:25:41Z")

</div>

in a blogpost\[1\] from tim taubert of firefox/mozilla - team he states, when wanting to have PFS: “The best you can do to provide forward secrecy to visitors is thus again switch off session ticket support until a p…

---

## [Disable keep\_alive based on specific useragent](https://www.ruby-forum.com/t/disable-keep-alive-based-on-specific-useragent/233089)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 6\
**Last updated:** [November 18, 2014, 1:23pm UTC](https://www.ruby-forum.com/t/disable-keep-alive-based-on-specific-useragent/233089 "2014-11-18T13:23:16Z")

</div>

Due to a bug in iOS 8, I want to disable http keep-alive for all iOS 8 useragents for now. https://github.com/AFNetworking/AFNetworking/issues/2314 I can’t see a way to do this in nginx at the moment. The docs for ke…

---

## [Package 'nginx' isn't signed with proper key and segfault](https://www.ruby-forum.com/t/package-nginx-isnt-signed-with-proper-key-and-segfault/233111)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [November 18, 2014, 1:00pm UTC](https://www.ruby-forum.com/t/package-nginx-isnt-signed-with-proper-key-and-segfault/233111 "2014-11-18T13:00:16Z")

</div>

Earlier i was using nginx installed from epel repo but i then decided to use latest nginx I use the exact modules that the epel one used except that i added spdy and i complie from source(just so as not to break thi…

---

## [Convert ngx\_chain\_t to buffer memory](https://www.ruby-forum.com/t/convert-ngx-chain-t-to-buffer-memory/233106)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [November 18, 2014, 12:08pm UTC](https://www.ruby-forum.com/t/convert-ngx-chain-t-to-buffer-memory/233106 "2014-11-18T12:08:14Z")

</div>

Hi, I am looking for a way to read ngx\_chain\_t buffer like what we do with buffer memory (file-\> buffer memory) Is there any way we can do it with internal nginx api? Thanks, Posted at Nginx Forum:

---

## [Default nginx rewrite with regexp](https://www.ruby-forum.com/t/default-nginx-rewrite-with-regexp/233093)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [November 18, 2014, 8:30am UTC](https://www.ruby-forum.com/t/default-nginx-rewrite-with-regexp/233093 "2014-11-18T08:30:52Z")

</div>

Hello, I’m working on a default server\_name that match everything but www.domain.tld then rewrite to www.domain.tld. I use nginx 1.2.1-2.2+wheezy3 with a big regexp. I have an issu with tld that contain a dot (co.uk …

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

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