# Server

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

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

---

## [Incorrect log being generated?](https://www.ruby-forum.com/t/incorrect-log-being-generated/215294)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [December 29, 2011, 2:43pm UTC](https://www.ruby-forum.com/t/incorrect-log-being-generated/215294 "2011-12-29T14:43:29Z")

</div>

Using the following, log\_format main '$remote\_addr - $remote\_user \[$time\_local\] ' '"$request" $status $body\_bytes\_sent ' '"$http\_referer" "$http\_user\_agent"'; access\_log logs/access.lo…

---

## [Directive proxy\_next\_upstream doesn't work?](https://www.ruby-forum.com/t/directive-proxy-next-upstream-doesnt-work/215283)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [December 29, 2011, 1:36pm UTC](https://www.ruby-forum.com/t/directive-proxy-next-upstream-doesnt-work/215283 "2011-12-29T13:36:40Z")

</div>

nginx conf is: http { large\_client\_header\_buffers 8 8k; proxy\_buffers 8 8K; proxy\_buffer\_size 8K; open\_file\_cache max=1000 inactive=20s; open\_…

---

## [Apache Reverse Proxy to Nginx](https://www.ruby-forum.com/t/apache-reverse-proxy-to-nginx/215275)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [December 29, 2011, 3:17am UTC](https://www.ruby-forum.com/t/apache-reverse-proxy-to-nginx/215275 "2011-12-29T03:17:33Z")

</div>

Hello guys, I’m having a bit of trouble with getting the proper REMOTE\_ADDR client address on my server. The current configuration is Apache ReverseProxy (mod\_security) —\> Ngninx —\> PHP-FPM. Apache is listening on a…

---

## [Awstats and NGinX](https://www.ruby-forum.com/t/awstats-and-nginx/215268)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 7\
**Last updated:** [December 29, 2011, 2:49am UTC](https://www.ruby-forum.com/t/awstats-and-nginx/215268 "2011-12-29T02:49:06Z")

</div>

Hi All, I have recently set-up a new LEMP on Ubuntu 11.10 (64-bit), it is a pretty simple set-up and all is running fine. That is until I try to get Awstats working. I have diligently followed the Awstats set up ou…

---

## [How to use $host variable in proxy\_pass](https://www.ruby-forum.com/t/how-to-use-host-variable-in-proxy-pass/215262)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [December 28, 2011, 9:18pm UTC](https://www.ruby-forum.com/t/how-to-use-host-variable-in-proxy-pass/215262 "2011-12-28T21:18:03Z")

</div>

I want to use $host variable in proxy\_pass. If directly hardcode Hostname in proxy\_pass it is working fine. But if I use variable $host it is giving me “502 Bad Gateway” server { listen 80; server\_name “”; …

---

## [Ngx\_postgres-0.9](https://www.ruby-forum.com/t/ngx-postgres-0-9/215259)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [December 28, 2011, 7:05pm UTC](https://www.ruby-forum.com/t/ngx-postgres-0-9/215259 "2011-12-28T19:05:52Z")

</div>

Version 0.9 is now available at: http://labs.frickle.com/nginx\_ngx\_postgres/ GitHub repository is available at: Changes: 2011-12-27 VERSION 0.9 \* Improve debug logging. From Yichun Z. (agentzh). 2011-12-23 \* …

---

## [Fastcgi\_cache\_key with cookie](https://www.ruby-forum.com/t/fastcgi-cache-key-with-cookie/215216)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 18\
**Last updated:** [December 28, 2011, 5:53pm UTC](https://www.ruby-forum.com/t/fastcgi-cache-key-with-cookie/215216 "2011-12-28T17:53:32Z")

</div>

I’m trying to cache per user Drupal using this config : fastcgi\_ignore\_headers Cache-Control Expires; #tried ‘\_\_utma’ ‘Set-Cookie’ fastcgi\_cache drupal; fastcgi\_cache\_key $http\_cookie$request\_method$scheme$host$reque…

---

## [Nginx as a Proxy for WSUS static caching not working](https://www.ruby-forum.com/t/nginx-as-a-proxy-for-wsus-static-caching-not-working/215258)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [December 28, 2011, 5:47pm UTC](https://www.ruby-forum.com/t/nginx-as-a-proxy-for-wsus-static-caching-not-working/215258 "2011-12-28T17:47:57Z")

</div>

Hello there, I have a remote site containing lots of Windows Clients, which have no access to WSUS server but nginx. What I want to achieve is ; get the WSUS updates over the nginx proxy saving bandwith for me. I…

---

## [Fastcgi problem](https://www.ruby-forum.com/t/fastcgi-problem/215256)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [December 28, 2011, 5:30pm UTC](https://www.ruby-forum.com/t/fastcgi-problem/215256 "2011-12-28T17:30:38Z")

</div>

Hi All! I have got a problem with my fastcgi backend. A have a fastcgi server listening on a TCP docket (also tried unix socket as well). The fastcgi server randomly dies. There is nothing in the nginx error log, no…

---

## [Nginx cached page returning binary data(.gz file) every now and then. Works when cached folder is de](https://www.ruby-forum.com/t/nginx-cached-page-returning-binary-data-gz-file-every-now-and-then-works-when-cached-folder-is-de/215253)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [December 28, 2011, 5:13pm UTC](https://www.ruby-forum.com/t/nginx-cached-page-returning-binary-data-gz-file-every-now-and-then-works-when-cached-folder-is-de/215253 "2011-12-28T17:13:18Z")

</div>

I have an nginx server running as a proxy. A page from it is configured to be cached and served compressed. But then every now and then it serves the page as .gz file which shows as up a file to be downloaded. A curl …

---

## [Http auth](https://www.ruby-forum.com/t/http-auth/215251)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [December 28, 2011, 5:08pm UTC](https://www.ruby-forum.com/t/http-auth/215251 "2011-12-28T17:08:22Z")

</div>

Hi All! Is it possible to set up http auth against linux users (/etc/passwd)? thx

---

## [Phpmyadmin](https://www.ruby-forum.com/t/phpmyadmin/215245)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [December 28, 2011, 1:18pm UTC](https://www.ruby-forum.com/t/phpmyadmin/215245 "2011-12-28T13:18:19Z")

</div>

Hi i m work with nginx .i have installed nginx with php and mysql . but how to install phpmyadmin on nginx … please give me soluction. Posted at Nginx Forum:

---

## [Nginx-perl 1.1.11.1](https://www.ruby-forum.com/t/nginx-perl-1-1-11-1/215125)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [December 27, 2011, 5:55pm UTC](https://www.ruby-forum.com/t/nginx-perl-1-1-11-1/215125 "2011-12-27T17:55:18Z")

</div>

Hello, everyone. I’m happy to announce the first release of nginx-perl, version 1.1.11.1: http://zzzcpan.github.com/nginx-perl/ Nginx-perl provides asynchronous functions for original embedded perl to resolve domain…

---

## [Nginx return Error 400 on long cookies,](https://www.ruby-forum.com/t/nginx-return-error-400-on-long-cookies/215186)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [December 27, 2011, 5:03pm UTC](https://www.ruby-forum.com/t/nginx-return-error-400-on-long-cookies/215186 "2011-12-27T17:03:58Z")

</div>

i tried to install google friend connect on my forum, and i can’t get it worked. when i checked with firebug, it shows: "“NetworkError: 400 Bad Request - http://mc8tdi0ripmbpds25eboaupdulritrp6-a-fc-opensocial.google…

---

## [Invalid tcpdump result](https://www.ruby-forum.com/t/invalid-tcpdump-result/215218)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [December 27, 2011, 12:31pm UTC](https://www.ruby-forum.com/t/invalid-tcpdump-result/215218 "2011-12-27T12:31:26Z")

</div>

Hi there, I were warned by the datacenter network admin which said that my server is doing spoofed packets. When I did tcpdump, here’s the results. It serving from 0.0.0.0:80 rather than my own IP. Can you please tell…

---

## [Content-length or size of transfer-encoding](https://www.ruby-forum.com/t/content-length-or-size-of-transfer-encoding/229201)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [December 27, 2011, 9:19am UTC](https://www.ruby-forum.com/t/content-length-or-size-of-transfer-encoding/229201 "2011-12-27T09:19:52Z")

</div>

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

---

## [Problem with large static files](https://www.ruby-forum.com/t/problem-with-large-static-files/215023)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [December 26, 2011, 9:31pm UTC](https://www.ruby-forum.com/t/problem-with-large-static-files/215023 "2011-12-26T21:31:19Z")

</div>

I have a strange problem with slow load of relatively large files. On a domain without proxy (designed for serving static files), the request time (as monitored by access log $request\_time) for an simple jpg image fil…

---

## [NGINX and Cookies are hijacking on clients on the same network(NAT)](https://www.ruby-forum.com/t/nginx-and-cookies-are-hijacking-on-clients-on-the-same-network-nat/215204)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [December 26, 2011, 8:28pm UTC](https://www.ruby-forum.com/t/nginx-and-cookies-are-hijacking-on-clients-on-the-same-network-nat/215204 "2011-12-26T20:28:22Z")

</div>

We are experiencing a problem after the adoption of nginx as a server (apache had before). It turns out that we are seeing many cases of clients that access data from other users in the session. This is because the lo…

---

## [Help writing apache htaccess for nginx](https://www.ruby-forum.com/t/help-writing-apache-htaccess-for-nginx/215200)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [December 26, 2011, 4:10pm UTC](https://www.ruby-forum.com/t/help-writing-apache-htaccess-for-nginx/215200 "2011-12-26T16:10:45Z")

</div>

I have this htaccess file that’s used in my zend project. We just moved from apache to nginx Rewrite rules for Zend Framework RewriteEngine on RewriteCond %{REQUEST\_FILENAME} !-f RewriteCond %{REQUEST\_URI} !/public.…

---

## [Content-length or size of transfer-encoding](https://www.ruby-forum.com/t/content-length-or-size-of-transfer-encoding/229206)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [December 26, 2011, 2:56pm UTC](https://www.ruby-forum.com/t/content-length-or-size-of-transfer-encoding/229206 "2011-12-26T14:56:02Z")

</div>

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

---

## [Proxy\_bind doesn't work outside location](https://www.ruby-forum.com/t/proxy-bind-doesnt-work-outside-location/215173)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [December 26, 2011, 11:38am UTC](https://www.ruby-forum.com/t/proxy-bind-doesnt-work-outside-location/215173 "2011-12-26T11:38:28Z")

</div>

Hi I don’t know if this is appropriate place or not but there is a bug with proxy\_bind, the directive has to be inside a location to work. I’m sure this wasn’t true for early versions. so this won’t work: proxy\_bind…

---

## [Need this htaccess url rewrite to Nginx rewrite](https://www.ruby-forum.com/t/need-this-htaccess-url-rewrite-to-nginx-rewrite/215111)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [December 26, 2011, 3:45am UTC](https://www.ruby-forum.com/t/need-this-htaccess-url-rewrite-to-nginx-rewrite/215111 "2011-12-26T03:45:16Z")

</div>

Helo my friends, i have problem converting this .htaccess url rewrite to Nginx rewrite rule, RewriteEngine on RewriteRule ^(index.php)?(\[a-z0-9\]+)$ index.php?$2 \[L\]

---

## [D state when high load on same static file](https://www.ruby-forum.com/t/d-state-when-high-load-on-same-static-file/215101)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 7\
**Last updated:** [December 25, 2011, 12:46am UTC](https://www.ruby-forum.com/t/d-state-when-high-load-on-same-static-file/215101 "2011-12-25T00:46:55Z")

</div>

Hi guys, I have some file hosting servers running nginx, serving static files which size average from 500MB to 6GB. The servers use Lustre1.8 as cluster filesystem. Files stay on some raid6 array with stripe size = 5…

---

## [Setting an error\_page for upstream timeouts](https://www.ruby-forum.com/t/setting-an-error-page-for-upstream-timeouts/215133)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [December 24, 2011, 4:05am UTC](https://www.ruby-forum.com/t/setting-an-error-page-for-upstream-timeouts/215133 "2011-12-24T04:05:49Z")

</div>

I have a seemingly simple question about configuration, but have been unable to find the answer through searching so far. I just want to override the default 504 page when the upstream server times out, which I would …

---

## [Ngx upstream round robin bug?](https://www.ruby-forum.com/t/ngx-upstream-round-robin-bug/215145)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [December 23, 2011, 4:25pm UTC](https://www.ruby-forum.com/t/ngx-upstream-round-robin-bug/215145 "2011-12-23T16:25:03Z")

</div>

I use nginx as a load balancing for backend web server. if this upstream has n servers, and when the number of backend web server can’t connect(502 or down) be equal n-1, nginx will response 502 or 503 status to clie…

---

## [503 custom error page](https://www.ruby-forum.com/t/503-custom-error-page/215146)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [December 23, 2011, 4:16pm UTC](https://www.ruby-forum.com/t/503-custom-error-page/215146 "2011-12-23T16:16:25Z")

</div>

I’m trying to get a maintenance page working for my site. I added the following to the server block: error\_page 503 /maintenance.html; return 503; This serves 503 but with default nginx 503 error page. The following…

---

## [Re: nginx-perl 1.1.11.1](https://www.ruby-forum.com/t/re-nginx-perl-1-1-11-1/215149)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [December 23, 2011, 2:58pm UTC](https://www.ruby-forum.com/t/re-nginx-perl-1-1-11-1/215149 "2011-12-23T14:58:31Z")

</div>

On Fri, Dec 23, 2011 at 5:10 AM, agentzh removed\_email\_address@domain.invalid wrote: BTW, is it possible to make it also a synchronous but still nonblocking framework just like the ngx\_lua module’s cosocket mechanism…

---

## [Duplicate the client's requests to another server](https://www.ruby-forum.com/t/duplicate-the-clients-requests-to-another-server/215102)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [December 22, 2011, 9:56am UTC](https://www.ruby-forum.com/t/duplicate-the-clients-requests-to-another-server/215102 "2011-12-22T09:56:15Z")

</div>

Hello, When nginx pass the client’s request to an original server, I want it always duplicate the request to another webserver. For example, the request is following: client -\> nginx -\> original-server What I want i…

---

## [Re: Re: signal process in nginx](https://www.ruby-forum.com/t/re-re-signal-process-in-nginx/229205)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [December 22, 2011, 8:08am UTC](https://www.ruby-forum.com/t/re-re-signal-process-in-nginx/229205 "2011-12-22T08:08:44Z")

</div>

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

---

## [Re : Re: signal process in nginx](https://www.ruby-forum.com/t/re-re-signal-process-in-nginx/215100)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [December 22, 2011, 4:32am UTC](https://www.ruby-forum.com/t/re-re-signal-process-in-nginx/215100 "2011-12-22T04:32:26Z")

</div>

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

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

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