# Server

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

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

---

## [What's the difference between "proxy\_cache" and "fastcgi\_cache"?](https://www.ruby-forum.com/t/whats-the-difference-between-proxy-cache-and-fastcgi-cache/203884)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 1, 2011, 4:49pm UTC](https://www.ruby-forum.com/t/whats-the-difference-between-proxy-cache-and-fastcgi-cache/203884 "2011-03-01T16:49:13Z")

</div>

I know that “proxy\_cache” is often used for static pages(or elements), and “fastcgi\_cache” is usually used for dynamic script(.php,.jsp etc.). But what's difference between their implementation? what content is …

---

## [Did the HTTP response headers change line encodings?](https://www.ruby-forum.com/t/did-the-http-response-headers-change-line-encodings/203885)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [March 1, 2011, 10:03am UTC](https://www.ruby-forum.com/t/did-the-http-response-headers-change-line-encodings/203885 "2011-03-01T10:03:36Z")

</div>

We have a server that was running 0.8.53, and a new one running 0.8.54. A consuming application written in .NET that used to work is now failing. The only difference should be the change in the version of nginx. The …

---

## [Does the nginx support "Header append."?](https://www.ruby-forum.com/t/does-the-nginx-support-header-append/203824)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 1, 2011, 10:00am UTC](https://www.ruby-forum.com/t/does-the-nginx-support-header-append/203824 "2011-03-01T10:00:28Z")

</div>

For Apache Httpd the “Header” directive can “append” a value to the exsisting headers of the same name. e.g. Before: Vary: Host Header append Vary User-Agent After: Vary: Host, User-Agent But for Nginx, neith…

---

## [Why NGX\_SOCKADDRLEN is 512?](https://www.ruby-forum.com/t/why-ngx-sockaddrlen-is-512/203879)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [March 1, 2011, 9:59am UTC](https://www.ruby-forum.com/t/why-ngx-sockaddrlen-is-512/203879 "2011-03-01T09:59:49Z")

</div>

For an IPv6, sizeof (struct sockaddr\_in6) is only 28bytes, so why set NGX\_SOCKADDRLEN 512? Posted at Nginx Forum:

---

## [Post\_action vs error\_page seems doesn't work](https://www.ruby-forum.com/t/post-action-vs-error-page-seems-doesnt-work/203869)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 1, 2011, 9:57am UTC](https://www.ruby-forum.com/t/post-action-vs-error-page-seems-doesnt-work/203869 "2011-03-01T09:57:56Z")

</div>

hi, what I want to do is: trying to serve content like url =\> http://my.domain.tld/static/bla-bla-bla?id=12345 check an html page on cache (on redis) if doesn’t exists, let’s create it (via php script /api/entrypoi…

---

## [Problem with virtual host settings](https://www.ruby-forum.com/t/problem-with-virtual-host-settings/203878)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [March 1, 2011, 8:55am UTC](https://www.ruby-forum.com/t/problem-with-virtual-host-settings/203878 "2011-03-01T08:55:51Z")

</div>

So I have a info.php page which is located on the folder /var/www/nginx-default, however when I go to my ip address/info.php, it always redirects me to this site:http://www.iana.org/domains/example/is this because I h…

---

## [Implementation of parsing URL to IPv6](https://www.ruby-forum.com/t/implementation-of-parsing-url-to-ipv6/203835)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [March 1, 2011, 7:01am UTC](https://www.ruby-forum.com/t/implementation-of-parsing-url-to-ipv6/203835 "2011-03-01T07:01:51Z")

</div>

Hey, guys. I’ve implement a parse URL to IPv6 function which is discussed in “Re: Does url resolve support ipv6?”. I change “ngx\_parse\_url” and add an function “ngx\_parse\_host” to resolve a host (IP or text) to either…

---

## [Scalability - using nginx with up to 300k comet connections](https://www.ruby-forum.com/t/scalability-using-nginx-with-up-to-300k-comet-connections/203874)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [March 1, 2011, 3:29am UTC](https://www.ruby-forum.com/t/scalability-using-nginx-with-up-to-300k-comet-connections/203874 "2011-03-01T03:29:22Z")

</div>

Hi all, I saw on the nginx faq that “10,000 inactive HTTP keep-alive connections take about 2.5M memory” Sounds incredibly good! I was wondering if nginx would scale to 300k comet connections on a single server. From…

---

## [Request hangs](https://www.ruby-forum.com/t/request-hangs/203742)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [February 28, 2011, 7:28pm UTC](https://www.ruby-forum.com/t/request-hangs/203742 "2011-02-28T19:28:24Z")

</div>

Hi, I have strange problem with main request hand if I call for sub-request. Maybe somebody can help me with it? I do spam filtering in post request. So I added location to nginx.conf and call sub-request for that …

---

## [Nginx.conf questions](https://www.ruby-forum.com/t/nginx-conf-questions/203818)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [February 28, 2011, 5:24pm UTC](https://www.ruby-forum.com/t/nginx-conf-questions/203818 "2011-02-28T17:24:41Z")

</div>

I was following the tutorial here. It says This will create the virtual host file for Nginx in the sites-available directory. Simply paste the following into the file and change each instance of example.com to your si…

---

## [LNMP installer](https://www.ruby-forum.com/t/lnmp-installer/203814)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [February 28, 2011, 4:04pm UTC](https://www.ruby-forum.com/t/lnmp-installer/203814 "2011-02-28T16:04:55Z")

</div>

Does anyone know any good LNMP installer that install everything up to date with the current version? PHP 5.3, Nginx 0.8, etc…etc

---

## [FastCGI PHP No input file specified](https://www.ruby-forum.com/t/fastcgi-php-no-input-file-specified/203544)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [February 28, 2011, 11:06am UTC](https://www.ruby-forum.com/t/fastcgi-php-no-input-file-specified/203544 "2011-02-28T11:06:02Z")

</div>

Hi, I have Zend Framework project working so all non static requests are forwarded to public/index.php. But now I need to allow PHP scripts from another folder - /generator/ to work as usual. So I’ve added another lo…

---

## [Lua headers](https://www.ruby-forum.com/t/lua-headers/203773)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [February 28, 2011, 8:57am UTC](https://www.ruby-forum.com/t/lua-headers/203773 "2011-02-28T08:57:56Z")

</div>

Hi Is it possible to set the headers of a lua request to my auth server? I can set the querystring/args as shown in a few examples but never seen headers being set in lua? Many thanks Sent from my iPhone

---

## [Re: Passing variables to access\_log, error\_log names](https://www.ruby-forum.com/t/re-passing-variables-to-access-log-error-log-names/203794)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [February 28, 2011, 2:14am UTC](https://www.ruby-forum.com/t/re-passing-variables-to-access-log-error-log-names/203794 "2011-02-28T02:14:39Z")

</div>

– Jim O. On Feb 27, 2011 11:28 AM, “Dayo” removed\_email\_address@domain.invalid wrote: mailing list directly instead. Unfortunately, the mailing list is not as user friendly for me as the forum. I note that the …

---

## [Nginx can't read images](https://www.ruby-forum.com/t/nginx-cant-read-images/203783)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 9\
**Last updated:** [February 28, 2011, 1:31am UTC](https://www.ruby-forum.com/t/nginx-cant-read-images/203783 "2011-02-28T01:31:31Z")

</div>

Hi, So it seems that mginx can’t read a url with .png, for example http://20.16.31.42/phpMyAdmin/themes/original/img/logo\_right.png that gives me a page not found. The ip address above has been changed (not the origi…

---

## [Nginx serving the wrong url?](https://www.ruby-forum.com/t/nginx-serving-the-wrong-url/203811)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [February 28, 2011, 12:58am UTC](https://www.ruby-forum.com/t/nginx-serving-the-wrong-url/203811 "2011-02-28T00:58:21Z")

</div>

I’m not sure what exactly “/var/www/https:/secure.domain.com/index.html” is (should be /var/www/index.html) How can I correct this? 2011/01/28 17:20:05 \[error\] 15415#0: \*1117703 “/var/www/https:/secure.domain.com/ind…

---

## [Error in nginx\_http\_push\_module: unable to allocate message, worker subscriber queue marker in share](https://www.ruby-forum.com/t/error-in-nginx-http-push-module-unable-to-allocate-message-worker-subscriber-queue-marker-in-share/203691)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [February 27, 2011, 5:02pm UTC](https://www.ruby-forum.com/t/error-in-nginx-http-push-module-unable-to-allocate-message-worker-subscriber-queue-marker-in-share/203691 "2011-02-27T17:02:20Z")

</div>

Hi, I am using nginx\_http\_push\_module for a web service which provides real time visitors stats for websites using our service. The service works fine for couple of days but after that it stops responding and leaves …

---

## [Proxy in nginx](https://www.ruby-forum.com/t/proxy-in-nginx/203791)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [February 27, 2011, 12:30pm UTC](https://www.ruby-forum.com/t/proxy-in-nginx/203791 "2011-02-27T12:30:13Z")

</div>

Hello, i want to make proxy to my service users that will work as: User \> fast.mydomain fast.mydomain return to my user file list (autoindex) user chose file what want download and fast.myhost send him this file on t…

---

## [Nginx doesn't recognize command](https://www.ruby-forum.com/t/nginx-doesnt-recognize-command/203775)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [February 27, 2011, 2:54am UTC](https://www.ruby-forum.com/t/nginx-doesnt-recognize-command/203775 "2011-02-27T02:54:03Z")

</div>

I was following the tutorial here: http://articles.slicehost.com/2009/2/2/centos-installing-nginx-from-source and I tried to stop nginx by executing: sudo nginx stop at the directory and it says: invalid option “sto…

---

## [Passing variables to access\_log, error\_log names](https://www.ruby-forum.com/t/passing-variables-to-access-log-error-log-names/203771)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 9\
**Last updated:** [February 27, 2011, 12:21am UTC](https://www.ruby-forum.com/t/passing-variables-to-access-log-error-log-names/203771 "2011-02-27T00:21:37Z")

</div>

Hello, I am configuring an automagic virtual hosting on my private machine, to serve myself projects which I currently work on. Configuration I’m using is like this: server { listen 80; server\_name ~^(www.)?(?P\[^.\]…

---

## [Problem with nginx installation on centOS](https://www.ruby-forum.com/t/problem-with-nginx-installation-on-centos/203765)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [February 26, 2011, 7:14pm UTC](https://www.ruby-forum.com/t/problem-with-nginx-installation-on-centos/203765 "2011-02-26T19:14:02Z")

</div>

Hi everyone, I am getting the following error when installing nginx after the configure, it seems that it’s missing some directive. What should I do? checking for OS + Linux 2.6.35.4-rscloud x86\_64checking for C compi…

---

## [Installing nginx issues](https://www.ruby-forum.com/t/installing-nginx-issues/203767)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [February 26, 2011, 7:12pm UTC](https://www.ruby-forum.com/t/installing-nginx-issues/203767 "2011-02-26T19:12:10Z")

</div>

Hi everyone, I am getting the following error when installing nginx after the configure, it seems that it’s missing some directive. When I do a make it gives me these two warnings: objs/src/os/unix/ngx\_process.o: In …

---

## [Question about extending nginx\_perl](https://www.ruby-forum.com/t/question-about-extending-nginx-perl/203738)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [February 26, 2011, 12:40am UTC](https://www.ruby-forum.com/t/question-about-extending-nginx-perl/203738 "2011-02-26T00:40:05Z")

</div>

Hi, I need to intercept cookies while it setting in upstream module. To make it controllable throw reverse proxy. I want to use for this purpose ngx\_perl, but it contains embedding only for getting headers\_in and cr…

---

## [Bug in HttpSslModule?](https://www.ruby-forum.com/t/bug-in-httpsslmodule/203733)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [February 25, 2011, 11:56pm UTC](https://www.ruby-forum.com/t/bug-in-httpsslmodule/203733 "2011-02-25T23:56:21Z")

</div>

Hi all, I think I’ve found a bug in the HttpSslModule. We’re running Rails (Passenger) with Nginx and need to check if the current request is SSL. To do this, Rails needs “HTTPS: on” set in the environment. In our ng…

---

## [Upload issue when NGINX actes as reverse proxy](https://www.ruby-forum.com/t/upload-issue-when-nginx-actes-as-reverse-proxy/203693)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 10\
**Last updated:** [February 25, 2011, 7:35pm UTC](https://www.ruby-forum.com/t/upload-issue-when-nginx-actes-as-reverse-proxy/203693 "2011-02-25T19:35:02Z")

</div>

Hi all: I met an issue when I use NGINX. When NGINX works as reverse proxy, I try to upload about 300M file to the backend webserver, I failed. I change the entry “client\_max\_body\_size 300m” in nginx.conf, but I …

---

## [Understanding HttpLimitReqModule](https://www.ruby-forum.com/t/understanding-httplimitreqmodule/203699)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [February 25, 2011, 3:09pm UTC](https://www.ruby-forum.com/t/understanding-httplimitreqmodule/203699 "2011-02-25T15:09:27Z")

</div>

Hi all: I’m trying to understand the HttpLimitReqModule, the wiki is a bit unverbose about the terminology. I’m trying to mimic Apache’s mod\_evasive module, specifically there is an annoying user that likes to reques…

---

## [Header cache control for CDN](https://www.ruby-forum.com/t/header-cache-control-for-cdn/203702)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [February 25, 2011, 12:25pm UTC](https://www.ruby-forum.com/t/header-cache-control-for-cdn/203702 "2011-02-25T12:25:51Z")

</div>

hi i try to setup akamai cdn i upload all my pictures to CDN server and all pictures point out from my website to CDN everything allright but they let me put upto 3 days ttl time of images, when i go www.webpagetest.o…

---

## [Logging POST data from $request\_body and returning 200](https://www.ruby-forum.com/t/logging-post-data-from-request-body-and-returning-200/203683)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [February 25, 2011, 1:17am UTC](https://www.ruby-forum.com/t/logging-post-data-from-request-body-and-returning-200/203683 "2011-02-25T01:17:00Z")

</div>

I am able to log POST data correctly with the following code: location /bk { if ($request\_method != POST) { return 405; } proxy\_pass $scheme://127.0.0.1:$server\_port/dummy; log\_format my\_tracking $request\_body; ac…

---

## [Application For Accreditation!](https://www.ruby-forum.com/t/application-for-accreditation/226200)

<div class="topic-metadata">

**Author:** [@Ana-Maria\_Mesea](https://www.ruby-forum.com/u/Ana-Maria_Mesea)\
**Replies:** 0\
**Last updated:** [February 24, 2011, 3:35pm UTC](https://www.ruby-forum.com/t/application-for-accreditation/226200 "2011-02-24T15:35:02Z")

</div>

My name is Mesea Ana-Maria, and I work as a economist adviser in commerce and marketing for ANF Certification Authority. Hereby I present you our intention to approve the certificates issued by ANF Certification Aut…

---

## [Application For Accreditation!](https://www.ruby-forum.com/t/application-for-accreditation/203661)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [February 24, 2011, 3:27pm UTC](https://www.ruby-forum.com/t/application-for-accreditation/203661 "2011-02-24T15:27:31Z")

</div>

My name is Mesea Ana-Maria, and I work as a economist adviser in commerce and marketing for ANF Certification Authority. Hereby I present you our intention to approve the certificates issued by ANF Certification Aut…

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

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