# Server

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

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

---

## [How to setup nginx to make php works in site subdirectories](https://www.ruby-forum.com/t/how-to-setup-nginx-to-make-php-works-in-site-subdirectories/216723)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 11\
**Last updated:** [February 12, 2012, 10:52pm UTC](https://www.ruby-forum.com/t/how-to-setup-nginx-to-make-php-works-in-site-subdirectories/216723 "2012-02-12T22:52:52Z")

</div>

Hello, I’m nuewbie in nginx, I’ve installed and setup nginx & php, everything is fine except .php files located in site’s subdirectories are not processed at all. i.e. example.com/download.php works fine, but exampl…

---

## [Old thread: Cache for non-cookie users and fresh for cookie users](https://www.ruby-forum.com/t/old-thread-cache-for-non-cookie-users-and-fresh-for-cookie-users/216607)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 16\
**Last updated:** [February 12, 2012, 12:15pm UTC](https://www.ruby-forum.com/t/old-thread-cache-for-non-cookie-users-and-fresh-for-cookie-users/216607 "2012-02-12T12:15:12Z")

</div>

Picking up an old thread for caching http://nginx.2469901.n2.nabble.com/Help-cache-or-not-by-cookie-td3124462.html Igor talks about caching by “No, currently the single way is: add the cookie in proxy\_cache\_key pr…

---

## [Filter out headers for fastcgi cache](https://www.ruby-forum.com/t/filter-out-headers-for-fastcgi-cache/216650)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [February 10, 2012, 11:55pm UTC](https://www.ruby-forum.com/t/filter-out-headers-for-fastcgi-cache/216650 "2012-02-10T23:55:22Z")

</div>

Greetings, I would like to propose that an additional feature for nginx be considered related to fastcgi caching: the ability to specify headers that will not be stored in cache, but will be sent to the client when t…

---

## [Problem compiling nginx from svn source with http\_push\_module on windows](https://www.ruby-forum.com/t/problem-compiling-nginx-from-svn-source-with-http-push-module-on-windows/209265)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [February 10, 2012, 10:57pm UTC](https://www.ruby-forum.com/t/problem-compiling-nginx-from-svn-source-with-http-push-module-on-windows/209265 "2012-02-10T22:57:11Z")

</div>

Hello everyone, I’m new to using SVN and what I want to achieve is: custom compiled nginx web server with http push module on windows using either mingw, cygwin or Visual Studio compilers. The problem lies in 2 thing…

---

## [Tomcat load balancing](https://www.ruby-forum.com/t/tomcat-load-balancing/216691)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [February 10, 2012, 9:16pm UTC](https://www.ruby-forum.com/t/tomcat-load-balancing/216691 "2012-02-10T21:16:36Z")

</div>

Hello, I didn’t find nginx module for “fair” Tomcat load balancing. My understanding, that by default nginx load balancing round robins through a list of upstream servers. Is any way for load balance to take into ac…

---

## [File is not refreshed when using proxy\_cache\_use\_stale](https://www.ruby-forum.com/t/file-is-not-refreshed-when-using-proxy-cache-use-stale/216670)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [February 10, 2012, 4:34pm UTC](https://www.ruby-forum.com/t/file-is-not-refreshed-when-using-proxy-cache-use-stale/216670 "2012-02-10T16:34:38Z")

</div>

I have following config: location /images { proxy\_pass http://my.host; proxy\_redirect off; proxy\_cache static-cache; proxy\_cache\_valid any 5m; proxy\_cache\_valid 404 5m; proxy\_cache\_use\_stale updating invalid\_heade…

---

## [400 response HTTP code logged when using Haproxy 'option ssl-hello-chk'](https://www.ruby-forum.com/t/400-response-http-code-logged-when-using-haproxy-option-ssl-hello-chk/216667)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [February 10, 2012, 2:49pm UTC](https://www.ruby-forum.com/t/400-response-http-code-logged-when-using-haproxy-option-ssl-hello-chk/216667 "2012-02-10T14:49:22Z")

</div>

Hello, We’re using haproxy to load balance SSL between two nginx servers. We’re using ‘option ssl-hello-chk’ for health monitoring in haproxy’s config. The problem is it’s flooding our logs with 400 errors every 2 …

---

## [How to Autstart Nginx - php-cgi.exe](https://www.ruby-forum.com/t/how-to-autstart-nginx-php-cgi-exe/216561)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [February 10, 2012, 2:32pm UTC](https://www.ruby-forum.com/t/how-to-autstart-nginx-php-cgi-exe/216561 "2012-02-10T14:32:32Z")

</div>

Hey, I’m fairly new to this’ and I really need help! My php-cgi.exe off automatically after 10-20 min. Does anyone have the energy and time to look at it? I will pay for it. I really hope someone will help me with thi…

---

## [Problem with Client SSL certificates](https://www.ruby-forum.com/t/problem-with-client-ssl-certificates/216671)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [February 10, 2012, 10:33am UTC](https://www.ruby-forum.com/t/problem-with-client-ssl-certificates/216671 "2012-02-10T10:33:33Z")

</div>

I tried to configure nginx with client certificates, but only get 400 Bad Request (No required SSL certificate was sent) Here is my Setup: Nginx 0.7.65 on Ubuntu 10.4.3 with php5-fmp 5.3.2-1 I set up a vhost configur…

---

## [Adding "Link" Header](https://www.ruby-forum.com/t/adding-link-header/216649)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [February 10, 2012, 12:32am UTC](https://www.ruby-forum.com/t/adding-link-header/216649 "2012-02-10T00:32:12Z")

</div>

To avoid SEO issues on my subdomains, I need to add a “Link” header to support Google’s canonical header. The format is as follows (from Official Google Webmaster Central Blog: Supporting rel="canonical" HTTP Headers)…

---

## [Config file order](https://www.ruby-forum.com/t/config-file-order/216633)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [February 9, 2012, 7:07pm UTC](https://www.ruby-forum.com/t/config-file-order/216633 "2012-02-09T19:07:38Z")

</div>

I know the server order in the config file makes a difference. Does the order of the statements inside the location tags make a difference? Do I need to set the headers before doing a proxy\_pass or does it matter? T…

---

## [Unique server for all domains or a server per domain?](https://www.ruby-forum.com/t/unique-server-for-all-domains-or-a-server-per-domain/216599)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [February 9, 2012, 7:05pm UTC](https://www.ruby-forum.com/t/unique-server-for-all-domains-or-a-server-per-domain/216599 "2012-02-09T19:05:08Z")

</div>

Hello, I am currently using a unique server conf for all my domains. When I wanna restrain certain activity to certain domains (subdirectories, URL rewriting, etc.) I do not have other choice than using ‘if’ on the …

---

## [Unable log out of some applications](https://www.ruby-forum.com/t/unable-log-out-of-some-applications/216615)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [February 9, 2012, 6:40pm UTC](https://www.ruby-forum.com/t/unable-log-out-of-some-applications/216615 "2012-02-09T18:40:51Z")

</div>

We have a at least a two web applications (Zenoss & Sharepoint) behind nginx that we are unable to log out off! We have many other websites (\>200) also behind nginx that don’t have this issue. Before posting the confi…

---

## [Invalidate just one page under a location directive](https://www.ruby-forum.com/t/invalidate-just-one-page-under-a-location-directive/216570)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 12\
**Last updated:** [February 9, 2012, 11:14am UTC](https://www.ruby-forum.com/t/invalidate-just-one-page-under-a-location-directive/216570 "2012-02-09T11:14:08Z")

</div>

Hi all, A section of my virtual(say /industry) is cached with proxy\_cache\_key $scheme$host$request\_uri; key. This will cache all pages under this virtual. I do cache invalidation by firing a request with pr…

---

## [Perl interaction with HTTP Proxy:](https://www.ruby-forum.com/t/perl-interaction-with-http-proxy/216606)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [February 9, 2012, 9:40am UTC](https://www.ruby-forum.com/t/perl-interaction-with-http-proxy/216606 "2012-02-09T09:40:51Z")

</div>

Hey guys, I’m trying to write a couple of perl modules for my nginx server that is acting as an HTTP Proxy. What I’d like to do is use Perl to perform some (quick) checks and then return an error code, but I’m noticin…

---

## [HA cookie-based routing in the cloud](https://www.ruby-forum.com/t/ha-cookie-based-routing-in-the-cloud/216565)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [February 9, 2012, 4:07am UTC](https://www.ruby-forum.com/t/ha-cookie-based-routing-in-the-cloud/216565 "2012-02-09T04:07:23Z")

</div>

We are looking for a solution for “sticky bit routing” based on cookies that will run on Amazon’s EC2 cloud. I’ve looked at the sticky module (although not the source yet) and it ~may~ be capable of doing what we need…

---

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

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [February 9, 2012, 2:48am UTC](https://www.ruby-forum.com/t/504-ssl-do-handshake-failed/216600 "2012-02-09T02:48:54Z")

</div>

A similar problem to below case occurred in mine. Following is the ssl server configuration. At first I used AJP. But after I could not find a corresponding directive to proxy\_ssl\_session\_reuse, I changed to proxy. …

---

## [How do I cache a page for logged-in user?](https://www.ruby-forum.com/t/how-do-i-cache-a-page-for-logged-in-user/216567)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [February 9, 2012, 12:42am UTC](https://www.ruby-forum.com/t/how-do-i-cache-a-page-for-logged-in-user/216567 "2012-02-09T00:42:38Z")

</div>

Hi all, I maintain sessions with cookie name as “company\_sessionid” having the session info. Now if I need to cache for that user or per user, how should I construct my proxy\_cache\_key? -Quintin

---

## [Is sendfile\_max\_chunk needed when using aio on FreeBSD 9?](https://www.ruby-forum.com/t/is-sendfile-max-chunk-needed-when-using-aio-on-freebsd-9/216581)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [February 8, 2012, 4:34pm UTC](https://www.ruby-forum.com/t/is-sendfile-max-chunk-needed-when-using-aio-on-freebsd-9/216581 "2012-02-08T16:34:41Z")

</div>

Hi all, Following Igor’s advice \[1\], I’m using the following configuration for file handling on FreeBSD 9.0 amd64: sendfile on; aio sendfile; tcp\_nopush on; read\_ahead 256K; My understanding of this setup is that …

---

## [Beginner developer question: streaming mjpeg in nginx](https://www.ruby-forum.com/t/beginner-developer-question-streaming-mjpeg-in-nginx/216578)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [February 8, 2012, 12:30pm UTC](https://www.ruby-forum.com/t/beginner-developer-question-streaming-mjpeg-in-nginx/216578 "2012-02-08T12:30:41Z")

</div>

Hi to all, I’d like to stream live, continuous Motion JPEG throught nginx web server. Right now, I have a little program that captures the frames from my hardware, separates them with boundaries and send them to stdou…

---

## [Intermittent "504 SSL\_do\_handshake() failed"](https://www.ruby-forum.com/t/intermittent-504-ssl-do-handshake-failed/198006)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 3\
**Last updated:** [February 8, 2012, 7:46am UTC](https://www.ruby-forum.com/t/intermittent-504-ssl-do-handshake-failed/198006 "2012-02-08T07:46:30Z")

</div>

I seem to be having a problem with the secure reverse proxy. I have a “Synology Disk Station” that hosts Apache virtual servers with one being an administration web panel, and the other “https://192.168.2.2/photo” bei…

---

## [Remove query string on rewrite](https://www.ruby-forum.com/t/remove-query-string-on-rewrite/193156)

<div class="topic-metadata">

**Author:** [@celevra](https://www.ruby-forum.com/u/celevra)\
**Replies:** 4\
**Last updated:** [February 8, 2012, 2:44am UTC](https://www.ruby-forum.com/t/remove-query-string-on-rewrite/193156 "2012-02-08T02:44:51Z")

</div>

Hi, I am trying to make a 301 redirect like this: /authors.php?name=xxx ==\> /author/xxx this config solves the problem partially - location ~ ^/authors.php { if ($args ~ "name=(.+)" ) { …

---

## [Proxy\_buffering off causes truncated responses when backend emits response in small chunks](https://www.ruby-forum.com/t/proxy-buffering-off-causes-truncated-responses-when-backend-emits-response-in-small-chunks/216563)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [February 8, 2012, 2:14am UTC](https://www.ruby-forum.com/t/proxy-buffering-off-causes-truncated-responses-when-backend-emits-response-in-small-chunks/216563 "2012-02-08T02:14:33Z")

</div>

We use nginx as both a load-balancer and webserver. This issue is with the nginx functioning as a load-balancer. We reverse proxy to 6 nginx webservers running a number of Unicorn (Rails) application servers, these …

---

## [Autoindex module extension](https://www.ruby-forum.com/t/autoindex-module-extension/216496)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [February 8, 2012, 1:31am UTC](https://www.ruby-forum.com/t/autoindex-module-extension/216496 "2012-02-08T01:31:20Z")

</div>

Hello, I have written an extension for the Autoindex module that adds two new directives. I’ve included the patch against the latest 1.1.14 version of nginx, as well as the documentation for the Wiki. Max autoindex…

---

## [Re2:](https://www.ruby-forum.com/t/re2/216541)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [February 7, 2012, 4:58pm UTC](https://www.ruby-forum.com/t/re2/216541 "2012-02-07T16:58:24Z")

</div>

Hi, ok, no problem! http://www.dekalb911.org/httphome76solutions37752.php?gysCID=14 Tue, 7 Feb 2012 16:57:56 “The girl sat down on the grassy bank, pulled Cora down beside her and in her gentle, kindly way, …

---

## [Status 0 on proxy MISS](https://www.ruby-forum.com/t/status-0-on-proxy-miss/216317)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [February 7, 2012, 3:35pm UTC](https://www.ruby-forum.com/t/status-0-on-proxy-miss/216317 "2012-02-07T15:35:03Z")

</div>

Hello. I’m using nginx as proxy for an apache. Somtimes, on a MISS, the logged status is 0, instead of 200 (or anything else). The log format is configured like this: log\_format cache '\[$time\_local\] $remote\_addr - $r…

---

## [Undefined symbols for architecture i386](https://www.ruby-forum.com/t/undefined-symbols-for-architecture-i386/216531)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [February 7, 2012, 12:19pm UTC](https://www.ruby-forum.com/t/undefined-symbols-for-architecture-i386/216531 "2012-02-07T12:19:30Z")

</div>

Hello, problems installing Mac OS X 10.6.8 arch i386 pcre 8.21 nginx 1.1.14 make - ok make install: objs/src/http/modules/ngx\_http\_browser\_module.o \\ objs/src/http/modules/ngx\_http\_upstream\_ip\_hash\_module.o \\ objs…

---

## [Nginx-1.0.12](https://www.ruby-forum.com/t/nginx-1-0-12/216492)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [February 7, 2012, 5:15am UTC](https://www.ruby-forum.com/t/nginx-1-0-12/216492 "2012-02-07T05:15:47Z")

</div>

Changes with nginx 1.0.12 06 Feb 2012 \*) Feature: the "TLSv1.1" and "TLSv1.2" parameters of the "ssl\_protocols" directive. \*) Feature: the "if" SSI command supports captures i…

---

## [Nginx 1.0.12 proxy\_redirect](https://www.ruby-forum.com/t/nginx-1-0-12-proxy-redirect/216503)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [February 6, 2012, 7:12pm UTC](https://www.ruby-forum.com/t/nginx-1-0-12-proxy-redirect/216503 "2012-02-06T19:12:37Z")

</div>

I was really hoping this feature from the 1.1.11 realse would make it into the next stable release (1.0.12) \*) Feature: the “proxy\_redirect” directive supports variables in the first parameter. Looks like it didn’t m…

---

## [Using alias with variables](https://www.ruby-forum.com/t/using-alias-with-variables/216500)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [February 6, 2012, 5:59pm UTC](https://www.ruby-forum.com/t/using-alias-with-variables/216500 "2012-02-06T17:59:19Z")

</div>

Hello everybody, I need to use the alias setting from a request made to /test/str1\_str2/, so path become /var/www/data/str1\_cache\_str2/. I don’t understand how to extract str1, str2 and convert to str1\_cache\_str2. T…

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

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