# Server

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

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

---

## [Where is the pid file](https://www.ruby-forum.com/t/where-is-the-pid-file/227845)

<div class="topic-metadata">

**Author:** [@JCR](https://www.ruby-forum.com/u/JCR)\
**Replies:** 1\
**Last updated:** [March 31, 2013, 3:14am UTC](https://www.ruby-forum.com/t/where-is-the-pid-file/227845 "2013-03-31T03:14:02Z")

</div>

Hi on Linux Centos 5 wiht nginx 1.2.7, I am struggling to find the pid file in my nginx.conf file I have pid /usr/local/nginx/logs/nginx.pid; but I dont see any nginx.pid in there. I tried to set that path at …

---

## [Default domain name](https://www.ruby-forum.com/t/default-domain-name/227846)

<div class="topic-metadata">

**Author:** [@esujit](https://www.ruby-forum.com/u/esujit)\
**Replies:** 0\
**Last updated:** [March 30, 2013, 6:17pm UTC](https://www.ruby-forum.com/t/default-domain-name/227846 "2013-03-30T18:17:34Z")

</div>

I am trying out the proxy (without cache module) functionality in nginx. Here is the problem I am encountering On the client machine the default domain name is company.com when user types in http://department in the b…

---

## [Php-fpm take up all cpu resources](https://www.ruby-forum.com/t/php-fpm-take-up-all-cpu-resources/227841)

<div class="topic-metadata">

**Author:** [@Meteor](https://www.ruby-forum.com/u/Meteor)\
**Replies:** 1\
**Last updated:** [March 30, 2013, 5:16pm UTC](https://www.ruby-forum.com/t/php-fpm-take-up-all-cpu-resources/227841 "2013-03-30T17:16:48Z")

</div>

Hi All, In these days, php-fpm took up all cpu resources several times a day… Each php-fpm may take up 25% cpu resource which should be less than 5% in normal status. Below is the php-fpm.log. \[30-Mar-2013 22:18:47\]…

---

## [Fastcgi-cache and expires](https://www.ruby-forum.com/t/fastcgi-cache-and-expires/227836)

<div class="topic-metadata">

**Author:** [@Ian\_MSEvans](https://www.ruby-forum.com/u/Ian_MSEvans)\
**Replies:** 1\
**Last updated:** [March 30, 2013, 12:00pm UTC](https://www.ruby-forum.com/t/fastcgi-cache-and-expires/227836 "2013-03-30T12:00:09Z")

</div>

Just curious… In a lot of examples I’ve seen on the net for setting up fastcgi-cache the directives fastcgi\_ignore\_headers Cache-Control Expires; expires epoch; are included. Is there any major reason for that? For…

---

## [Why socket for communication between master and worker used the so large memory?](https://www.ruby-forum.com/t/why-socket-for-communication-between-master-and-worker-used-the-so-large-memory/227815)

<div class="topic-metadata">

**Author:** [@MCoder](https://www.ruby-forum.com/u/MCoder)\
**Replies:** 3\
**Last updated:** [March 29, 2013, 1:15pm UTC](https://www.ruby-forum.com/t/why-socket-for-communication-between-master-and-worker-used-the-so-large-memory/227815 "2013-03-29T13:15:58Z")

</div>

my nginx is just a http tunul proxy http connection, and max connection is just lower than 100. ps aux root 19849 0.0 0.0 18028 2452 ? Ss 2012 0:00 nginx: master process /usr/local/qqwebsrv/nginx/…

---

## [Jpeg image quality is bad](https://www.ruby-forum.com/t/jpeg-image-quality-is-bad/227808)

<div class="topic-metadata">

**Author:** [@Praveen\_Yarlagadda](https://www.ruby-forum.com/u/Praveen_Yarlagadda)\
**Replies:** 1\
**Last updated:** [March 29, 2013, 5:57am UTC](https://www.ruby-forum.com/t/jpeg-image-quality-is-bad/227808 "2013-03-29T05:57:46Z")

</div>

Hi there! I’m playing around with nginx and I’m running into a problem related to image uploading. I have nginx as a load balancer and java server (jetty, spring based) as the backend server. When I upload an image (J…

---

## [How to investigate upstream timed out issues?](https://www.ruby-forum.com/t/how-to-investigate-upstream-timed-out-issues/227426)

<div class="topic-metadata">

**Author:** [@michael.heuberger](https://www.ruby-forum.com/u/michael.heuberger)\
**Replies:** 2\
**Last updated:** [March 29, 2013, 2:36am UTC](https://www.ruby-forum.com/t/how-to-investigate-upstream-timed-out-issues/227426 "2013-03-29T02:36:48Z")

</div>

Hello guys In my nginx version 1.3.14 I’m having lots of upstream timeouts like these and wonder what’s the correct, professional approach is, to solve these: example: 762#0: \*113 upstream timed out (110: Connection…

---

## [How to make nginx establish persistent connections with squid?](https://www.ruby-forum.com/t/how-to-make-nginx-establish-persistent-connections-with-squid/227644)

<div class="topic-metadata">

**Author:** [@selphon](https://www.ruby-forum.com/u/selphon)\
**Replies:** 6\
**Last updated:** [March 28, 2013, 10:05am UTC](https://www.ruby-forum.com/t/how-to-make-nginx-establish-persistent-connections-with-squid/227644 "2013-03-28T10:05:23Z")

</div>

hi, I use nginx as load balance and forward request to squid use http/1.1, the topology is below: chrome —\> nginx(:80) —\> squid(:8080) —\> origin server(nginx :80) the nginx configuration: upstream backend { server…

---

## [Error when proxying websocket connection over unix socket](https://www.ruby-forum.com/t/error-when-proxying-websocket-connection-over-unix-socket/227751)

<div class="topic-metadata">

**Author:** [@David.Neumann](https://www.ruby-forum.com/u/David.Neumann)\
**Replies:** 1\
**Last updated:** [March 27, 2013, 6:50pm UTC](https://www.ruby-forum.com/t/error-when-proxying-websocket-connection-over-unix-socket/227751 "2013-03-27T18:50:29Z")

</div>

Hello everybody, I found that if you try to proxy a websocket connection over a unix socket you get an error. This is due to the fact that nginx tries to set TCP\_NODELAY for the unix socket in ngx\_http\_upstream\_upg…

---

## [Client\_max\_body\_size](https://www.ruby-forum.com/t/client-max-body-size/227678)

<div class="topic-metadata">

**Author:** [@Hagai\_A](https://www.ruby-forum.com/u/Hagai_A)\
**Replies:** 1\
**Last updated:** [March 27, 2013, 2:33pm UTC](https://www.ruby-forum.com/t/client-max-body-size/227678 "2013-03-27T14:33:25Z")

</div>

Hi Is there any way to deny all requests with body? I know I can set set client\_max\_body\_size to 1 (byte) But… in that case Nginx reads all body request before finalizing the request. In case of requests with body a…

---

## [Can i change time format in access log?](https://www.ruby-forum.com/t/can-i-change-time-format-in-access-log/227708)

<div class="topic-metadata">

**Author:** [@appchemist](https://www.ruby-forum.com/u/appchemist)\
**Replies:** 4\
**Last updated:** [March 26, 2013, 7:28am UTC](https://www.ruby-forum.com/t/can-i-change-time-format-in-access-log/227708 "2013-03-26T07:28:43Z")

</div>

Hi, EveryBody! I am really happy with nginx from now. but I have one question. I want to customize time format in access log, because of calculating time. There are two kind of time format in log\_format. one is $ti…

---

## [uWSGI + Moin (subdir) + Nginx](https://www.ruby-forum.com/t/uwsgi-moin-subdir-nginx/227697)

<div class="topic-metadata">

**Author:** [@calabriama](https://www.ruby-forum.com/u/calabriama)\
**Replies:** 2\
**Last updated:** [March 25, 2013, 7:12pm UTC](https://www.ruby-forum.com/t/uwsgi-moin-subdir-nginx/227697 "2013-03-25T19:12:55Z")

</div>

Hi, I followed the example in: http://projects.unbit.it/uwsgi/wiki/Example#MoinMoinonlinenow However when I type domain/wiki I get a message that the page does not exist yet… which already tells me something is wrong…

---

## [Ngx unescape uri bug](https://www.ruby-forum.com/t/ngx-unescape-uri-bug/227689)

<div class="topic-metadata">

**Author:** [@David\_Shee](https://www.ruby-forum.com/u/David_Shee)\
**Replies:** 1\
**Last updated:** [March 25, 2013, 12:47pm UTC](https://www.ruby-forum.com/t/ngx-unescape-uri-bug/227689 "2013-03-25T12:47:19Z")

</div>

I’m Zuwen Shi from China,I find a unescape uri bug in your program. The source code location is src\\core\\ngx\_string.c-\>ngx\_unescape\_uri If I put a string “%%s%elect”,it convert the string to “%slect”,and %% to %,%el …

---

## [Request path not passed to proxy when $scheme is used in proxy\_pass URI](https://www.ruby-forum.com/t/request-path-not-passed-to-proxy-when-scheme-is-used-in-proxy-pass-uri/227676)

<div class="topic-metadata">

**Author:** [@Ben\_Hoskings](https://www.ruby-forum.com/u/Ben_Hoskings)\
**Replies:** 1\
**Last updated:** [March 24, 2013, 11:51am UTC](https://www.ruby-forum.com/t/request-path-not-passed-to-proxy-when-scheme-is-used-in-proxy-pass-uri/227676 "2013-03-24T11:51:19Z")

</div>

Hi all, I’ve found a strange behaviour with proxy\_pass. I’ve reduced a simple vhost that reproduces it: server { listen 127.0.0.1:8000; location / { proxy\_pass $scheme://127.0.0.1:9000/; } } A listener on localho…

---

## [Nginx/freebsd kern.maxbcache](https://www.ruby-forum.com/t/nginx-freebsd-kern-maxbcache/227658)

<div class="topic-metadata">

**Author:** [@rkoskela](https://www.ruby-forum.com/u/rkoskela)\
**Replies:** 1\
**Last updated:** [March 23, 2013, 8:04pm UTC](https://www.ruby-forum.com/t/nginx-freebsd-kern-maxbcache/227658 "2013-03-23T20:04:10Z")

</div>

Hi I’m trying to tune ‘kern.maxbcache’ with hope of increasing ‘vfs.maxbufspace’ so that more files can be stored in buffer memory on freebsd 9.1 It’s suggested to tune this value here and here http://wiki.nginx.or…

---

## [Max virtualhosts](https://www.ruby-forum.com/t/max-virtualhosts/227670)

<div class="topic-metadata">

**Author:** [@larry](https://www.ruby-forum.com/u/larry)\
**Replies:** 3\
**Last updated:** [March 23, 2013, 6:39pm UTC](https://www.ruby-forum.com/t/max-virtualhosts/227670 "2013-03-23T18:39:27Z")

</div>

Hi ! I was wondering, for the sake of curiosity, how many server blocks (virtual hosts) nginx can afford ? To the extreme : will 1000 server blocks will decrease nginx performances ? Cheers, Larry Posted at Nginx…

---

## [Require 'www' for https://example.com](https://www.ruby-forum.com/t/require-www-for-https-example-com/227667)

<div class="topic-metadata">

**Author:** [@openletter](https://www.ruby-forum.com/u/openletter)\
**Replies:** 3\
**Last updated:** [March 23, 2013, 6:20am UTC](https://www.ruby-forum.com/t/require-www-for-https-example-com/227667 "2013-03-23T06:20:26Z")

</div>

I am setting up a server that will be for a B2B business, and I want the whole site to be served as https://www.example.com/ I have gotten a certificate and https://www.example.com runs just fine, but I can’t figure …

---

## [403 Forbidden, Nignx](https://www.ruby-forum.com/t/403-forbidden-nignx/227665)

<div class="topic-metadata">

**Author:** [@Yunior\_Miguel\_A](https://www.ruby-forum.com/u/Yunior_Miguel_A)\
**Replies:** 0\
**Last updated:** [March 22, 2013, 9:46pm UTC](https://www.ruby-forum.com/t/403-forbidden-nignx/227665 "2013-03-22T21:46:00Z")

</div>

Hello again: I am have public a redmine and other aplication with nginx the other aplication is make in php, the php aplication have a api direccion for some services, when i put the url of de aplication without the a…

---

## [Re: Simple question about proxy cache](https://www.ruby-forum.com/t/re-simple-question-about-proxy-cache/227660)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 0\
**Last updated:** [March 22, 2013, 4:40pm UTC](https://www.ruby-forum.com/t/re-simple-question-about-proxy-cache/227660 "2013-03-22T16:40:13Z")

</div>

On 22/03/13 14:11, Maxim D. wrote: This looks like valid regular expression (try pcretest if unsure), but from maintainability point of view I would recommend to use multiple normal prefix or exact match locations in…

---

## [Re: Simple question about proxy cache](https://www.ruby-forum.com/t/re-simple-question-about-proxy-cache/227654)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 1\
**Last updated:** [March 22, 2013, 3:12pm UTC](https://www.ruby-forum.com/t/re-simple-question-about-proxy-cache/227654 "2013-03-22T15:12:30Z")

</div>

On 22/03/13 11:43, Maxim D. wrote: level instead. If I do this, though, then EVERY request for that server ends up being logged, even if there is no cache in force for the request location (i.e., the location has ei…

---

## [Re: Simple question about proxy cache](https://www.ruby-forum.com/t/re-simple-question-about-proxy-cache/227650)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 1\
**Last updated:** [March 22, 2013, 12:44pm UTC](https://www.ruby-forum.com/t/re-simple-question-about-proxy-cache/227650 "2013-03-22T12:44:00Z")

</div>

On 18/03/13 11:21, John M. wrote: another server and cache the results. Thus: seeing the URLs of all kinds of requests which SHOULD NOT be cached, and column. Actually, there is one final tweak I’d like. There …

---

## [Re: Simple question about proxy cache](https://www.ruby-forum.com/t/re-simple-question-about-proxy-cache/227649)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 0\
**Last updated:** [March 22, 2013, 12:39pm UTC](https://www.ruby-forum.com/t/re-simple-question-about-proxy-cache/227649 "2013-03-22T12:39:20Z")

</div>

On 22/03/13 11:18, John M. wrote: cache is in force? Sorry, please pretend I never wrote that! My problem was simply that I was defining the log\_format in each location, hence the duplication. I can DEFINE it once …

---

## [Too Many Redirects - CDN Rewrite Rule](https://www.ruby-forum.com/t/too-many-redirects-cdn-rewrite-rule/227601)

<div class="topic-metadata">

**Author:** [@toddlahman](https://www.ruby-forum.com/u/toddlahman)\
**Replies:** 13\
**Last updated:** [March 22, 2013, 10:33am UTC](https://www.ruby-forum.com/t/too-many-redirects-cdn-rewrite-rule/227601 "2013-03-22T10:33:39Z")

</div>

I have tried both ways to redirect my static files to a CDN (content delivery network), but both ways result in the message “too many redirects.” Can anyone tell me what I am doing wrong here? location ~\* ^.+.(jpe?g|…

---

## [Upstream least\_conn behavior irregularity](https://www.ruby-forum.com/t/upstream-least-conn-behavior-irregularity/227604)

<div class="topic-metadata">

**Author:** [@princenamor](https://www.ruby-forum.com/u/princenamor)\
**Replies:** 5\
**Last updated:** [March 21, 2013, 9:02pm UTC](https://www.ruby-forum.com/t/upstream-least-conn-behavior-irregularity/227604 "2013-03-21T21:02:19Z")

</div>

Was investigating some issues today when we noticed that least\_conn wasn’t behaving as expected. upstream backend { least\_conn; server unix:/tmp/sock-1.sock; server unix:/tmp/sock-2.sock; server unix:/tmp/sock-3.s…

---

## [Need to proxypass to different servers](https://www.ruby-forum.com/t/need-to-proxypass-to-different-servers/227535)

<div class="topic-metadata">

**Author:** [@Geo\_P.C](https://www.ruby-forum.com/u/Geo_P.C)\
**Replies:** 10\
**Last updated:** [March 21, 2013, 7:01pm UTC](https://www.ruby-forum.com/t/need-to-proxypass-to-different-servers/227535 "2013-03-21T19:01:57Z")

</div>

We have 3 servers with Nginx as webserver. The setup is as follows: Server1 : Proxy server Server2 : App Server1 Server3 : App Server 2 In both App servers port 80 is accessed only by Proxy server. We need to setup …

---

## [Tcp splicing](https://www.ruby-forum.com/t/tcp-splicing/227620)

<div class="topic-metadata">

**Author:** [@SSHeSSbolt](https://www.ruby-forum.com/u/SSHeSSbolt)\
**Replies:** 1\
**Last updated:** [March 21, 2013, 6:56pm UTC](https://www.ruby-forum.com/t/tcp-splicing/227620 "2013-03-21T18:56:41Z")

</div>

Hello, I am new in nginx and I’d like to know if nginx implements tcp-splicing system call. Thanx – Lukáš Heřbolt Linux Administrator ET NETERA | smart e-business \[a\] Milady Horákové 108, 160 00 Praha 6 \[t\] +420…

---

## [How to change cookie header in a filter?](https://www.ruby-forum.com/t/how-to-change-cookie-header-in-a-filter/227532)

<div class="topic-metadata">

**Author:** [@cool](https://www.ruby-forum.com/u/cool)\
**Replies:** 4\
**Last updated:** [March 21, 2013, 5:17pm UTC](https://www.ruby-forum.com/t/how-to-change-cookie-header-in-a-filter/227532 "2013-03-21T17:17:55Z")

</div>

Hi, What’s the right way to change incoming cookie header so that upstream can get it just like it’s from user’s original request header? For example, user’s browser sends: Cookie: PHPSESSID=34406134e25e5e07727f5de6d…

---

## [Tengine-1.4.4 is released](https://www.ruby-forum.com/t/tengine-1-4-4-is-released/227612)

<div class="topic-metadata">

**Author:** [@yaoweibin](https://www.ruby-forum.com/u/yaoweibin)\
**Replies:** 0\
**Last updated:** [March 21, 2013, 2:01pm UTC](https://www.ruby-forum.com/t/tengine-1-4-4-is-released/227612 "2013-03-21T14:01:30Z")

</div>

Hi folks! We are excited to announce that Tengine-1.4.4 (development version) has been released. You can either checkout the source code from GitHub: GitHub - alibaba/tengine: A distribution of Nginx with some advance…

---

## [Proxy\_pass of PUT with no Content\_length header returns 411](https://www.ruby-forum.com/t/proxy-pass-of-put-with-no-content-length-header-returns-411/227598)

<div class="topic-metadata">

**Author:** [@nickpalmer](https://www.ruby-forum.com/u/nickpalmer)\
**Replies:** 1\
**Last updated:** [March 21, 2013, 11:33am UTC](https://www.ruby-forum.com/t/proxy-pass-of-put-with-no-content-length-header-returns-411/227598 "2013-03-21T11:33:04Z")

</div>

I am having trouble with proxy\_pass and PUT without a Content-Length header returning a 411 error. curl -XPUT http://localhost:8080/ 411 Length Required 411 Length Required nginx/1.1.19 # touch temp # curl -X PU…

---

## [When does nginx return a Bad gateway (502)?](https://www.ruby-forum.com/t/when-does-nginx-return-a-bad-gateway-502/227572)

<div class="topic-metadata">

**Author:** [@fastcatch](https://www.ruby-forum.com/u/fastcatch)\
**Replies:** 3\
**Last updated:** [March 21, 2013, 11:03am UTC](https://www.ruby-forum.com/t/when-does-nginx-return-a-bad-gateway-502/227572 "2013-03-21T11:03:51Z")

</div>

I have an application behind nginx (Rails on Unicorn if it matters) which listens on a UNIX socket. It all works nice, especially when load is low. When there is some load on the server though (say 70%), I randoml…

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

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