# Server

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

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

---

## [Rewrite conversion](https://www.ruby-forum.com/t/rewrite-conversion/209810)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 7\
**Last updated:** [November 11, 2011, 2:26pm UTC](https://www.ruby-forum.com/t/rewrite-conversion/209810 "2011-11-11T14:26:14Z")

</div>

Hello, I’m trying to convert from apache to nginx rewrite. ErrorDocument 403 /index.php?do=/public/error/403/ ErrorDocument 404 /index.php?do=/public/error/404/ RewriteEngine On RewriteCond %{REQUEST\_URI} !^/file/.\* …

---

## [Q: about try\_files and regex location](https://www.ruby-forum.com/t/q-about-try-files-and-regex-location/213788)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [November 11, 2011, 2:18pm UTC](https://www.ruby-forum.com/t/q-about-try-files-and-regex-location/213788 "2011-11-11T14:18:50Z")

</div>

Dear all, please can you help me to fix the issue with try\_files an regex location, thank you. I use sbin/nginx -V nginx: nginx version: nginx/1.1.4 nginx: built by gcc 4.4.3 (Ubuntu 4.4.3-4ubuntu5) nginx: TLS SN…

---

## [Error: deadlock happened in ngx\_http\_file\_cache\_expire()](https://www.ruby-forum.com/t/error-deadlock-happened-in-ngx-http-file-cache-expire/213773)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [November 11, 2011, 12:28pm UTC](https://www.ruby-forum.com/t/error-deadlock-happened-in-ngx-http-file-cache-expire/213773 "2011-11-11T12:28:48Z")

</div>

{{{ proxy\_cache\_path /nginx/cache/three levels=1:1:2 keys\_zone=three:1000m; proxy\_cache\_valid 200 304 302 60m; }}} Nginx version: 1.0.1 nginx: configure arguments: --with-pcre --group=admin --user=admin –prefix…

---

## [Trac authentication failing](https://www.ruby-forum.com/t/trac-authentication-failing/213751)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [November 11, 2011, 12:30am UTC](https://www.ruby-forum.com/t/trac-authentication-failing/213751 "2011-11-11T00:30:59Z")

</div>

I am running Trac inside uWSGI, with nginx as front-end server. I have also set up basic http authentication in nginx. Now, theoretically, when authenticated in nginx, Trac should recognize the user and display its na…

---

## [Migrate tables FromOracle To Mysql](https://www.ruby-forum.com/t/migrate-tables-fromoracle-to-mysql/213737)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [November 10, 2011, 6:28pm UTC](https://www.ruby-forum.com/t/migrate-tables-fromoracle-to-mysql/213737 "2011-11-10T18:28:37Z")

</div>

How can i migrate the oracle tables to mysql tables.

---

## [Proxy\_store HEAD](https://www.ruby-forum.com/t/proxy-store-head/213746)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [November 10, 2011, 5:20pm UTC](https://www.ruby-forum.com/t/proxy-store-head/213746 "2011-11-10T17:20:37Z")

</div>

Hello, is there a (simple) way to make ‘proxy\_store on’ store the files also on HEAD requests instead of just returning the response from upstream? I understand the reasons behind the current behaviour but I’m trying…

---

## [Reducing Connect time for static files](https://www.ruby-forum.com/t/reducing-connect-time-for-static-files/213745)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [November 10, 2011, 12:13pm UTC](https://www.ruby-forum.com/t/reducing-connect-time-for-static-files/213745 "2011-11-10T12:13:39Z")

</div>

Exploring the webpage load by pingdom service, I just found that the main delay of page load is due to slow load of images. The images come from a cookieless domain. I changed the nginx conf for that domain as locatio…

---

## [Proxy cache for php site](https://www.ruby-forum.com/t/proxy-cache-for-php-site/212857)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 11\
**Last updated:** [November 10, 2011, 8:50am UTC](https://www.ruby-forum.com/t/proxy-cache-for-php-site/212857 "2011-11-10T08:50:25Z")

</div>

Hi, I’m trying to implement this style of proxy\_cache config http://fennb.com/microcaching-speed-your-app-up-250x-with-no-n as a test locally, to stick in front of php sites. This is what I have: http://pastie.org/27…

---

## [Tcpcopy,an online request replication tool fit for nginx](https://www.ruby-forum.com/t/tcpcopy-an-online-request-replication-tool-fit-for-nginx/213440)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [November 10, 2011, 8:13am UTC](https://www.ruby-forum.com/t/tcpcopy-an-online-request-replication-tool-fit-for-nginx/213440 "2011-11-10T08:13:58Z")

</div>

Tcpcopy is an online request replication tool . It may be useful for migrating to nginx from apache GitHub - wangbin579/tcpcopy: An online request replication tool, also a tcp stream replay tool, fit for real testing,…

---

## [Nginx HttpAccessModule command invalid when rewrite command existed](https://www.ruby-forum.com/t/nginx-httpaccessmodule-command-invalid-when-rewrite-command-existed/213709)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [November 9, 2011, 3:58pm UTC](https://www.ruby-forum.com/t/nginx-httpaccessmodule-command-invalid-when-rewrite-command-existed/213709 "2011-11-09T15:58:29Z")

</div>

In the following simple case: location /entry1 { allow 127.0.0.1; }

---

## [Mailing list software that plays nice with nginx](https://www.ruby-forum.com/t/mailing-list-software-that-plays-nice-with-nginx/213676)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [November 9, 2011, 3:51pm UTC](https://www.ruby-forum.com/t/mailing-list-software-that-plays-nice-with-nginx/213676 "2011-11-09T15:51:05Z")

</div>

Hi everyone, Looking for s script (preferably PHP) that plays nice with nginx “out of the box” i.e. doesn’t require rewriting .htaccess files into nginx rules, etc. Just lloking for something that will let me send o…

---

## [T-shirts](https://www.ruby-forum.com/t/t-shirts/208270)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [November 9, 2011, 7:11am UTC](https://www.ruby-forum.com/t/t-shirts/208270 "2011-11-09T07:11:38Z")

</div>

For anyone interested, the guy who printed the Nginx t-shirts a couple of years ago finally put the remainder up on eBay: http://cgi.ebay.com/NGINX-t-shirt-/170654481676?pt=US\_Mens\_Tshirts&var=&hash=item6d700b391a#ht\_5…

---

## [SOLVED: Timeout when sending over 16k of data with UTF-8 characters](https://www.ruby-forum.com/t/solved-timeout-when-sending-over-16k-of-data-with-utf-8-characters/213690)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [November 9, 2011, 2:31am UTC](https://www.ruby-forum.com/t/solved-timeout-when-sending-over-16k-of-data-with-utf-8-characters/213690 "2011-11-09T02:31:38Z")

</div>

On Tue, Nov 1, 2011 at 9:56 AM, Maxim D. removed\_email\_address@domain.invalid wrote: Though client fails to provide one more byte. For me, it looks like problem in client. It’s either calculate content length incorre…

---

## [Php-fpm and nginx return "The page you are looking for is temporarily unavailable. Please try again](https://www.ruby-forum.com/t/php-fpm-and-nginx-return-the-page-you-are-looking-for-is-temporarily-unavailable-please-try-again/213660)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [November 9, 2011, 2:28am UTC](https://www.ruby-forum.com/t/php-fpm-and-nginx-return-the-page-you-are-looking-for-is-temporarily-unavailable-please-try-again/213660 "2011-11-09T02:28:33Z")

</div>

php-fpm and nginx return "The page you are looking for is temporarily unavailable. Please try again later. " call http://173.212.207.146/upload/info.php location ~ \\.php$ { root /home/admin/18loadnet; fastcgi\_pa…

---

## [@fallback is not working in version 1.0.4?](https://www.ruby-forum.com/t/fallback-is-not-working-in-version-1-0-4/213679)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [November 8, 2011, 7:59pm UTC](https://www.ruby-forum.com/t/fallback-is-not-working-in-version-1-0-4/213679 "2011-11-08T19:59:29Z")

</div>

Hi! I’m using nginx 1.0.4 and I have the following configuration: server { listen 8080; server\_name xxx.yyy.com; location / { error\_page 500 502 503 @fallback; proxy\_pass http://upstream1; } location @fallback { …

---

## [Speed up static content](https://www.ruby-forum.com/t/speed-up-static-content/213671)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [November 8, 2011, 6:06pm UTC](https://www.ruby-forum.com/t/speed-up-static-content/213671 "2011-11-08T18:06:53Z")

</div>

Is there a special configuration for static content like image files? I have no problem with nginx, and the reason that I am asking is to know if there is a different nginx conf to load static files faster. Posted at …

---

## [Running Shell Script from html webpage](https://www.ruby-forum.com/t/running-shell-script-from-html-webpage/213662)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [November 8, 2011, 3:14pm UTC](https://www.ruby-forum.com/t/running-shell-script-from-html-webpage/213662 "2011-11-08T15:14:07Z")

</div>

I have a Nginx installed on Linux (Ubuntu or Centos) without any scripting language such as PHP or Python (connected to the webserver). Can I run Shell commands from a webpage (e.g. html)? I mean is it possible to use…

---

## [Log response header from upstream](https://www.ruby-forum.com/t/log-response-header-from-upstream/213596)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 7\
**Last updated:** [November 8, 2011, 2:31pm UTC](https://www.ruby-forum.com/t/log-response-header-from-upstream/213596 "2011-11-08T14:31:58Z")

</div>

Hi, I have some problem with access log combined with X-Accel-Redirect requests. In my case I have Nginx set up as load-balancer to group of application servers. These servers return some special header in every requ…

---

## [Is the 607418-ipv6-addresses.diff patch still needed?](https://www.ruby-forum.com/t/is-the-607418-ipv6-addresses-diff-patch-still-needed/213664)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [November 8, 2011, 12:52pm UTC](https://www.ruby-forum.com/t/is-the-607418-ipv6-addresses-diff-patch-still-needed/213664 "2011-11-08T12:52:43Z")

</div>

Hello, The current version of the debianized Nginx code applies the attached 607418-ipv6-addresses.diff patch. Do you still see any need to apply this patch to the current nginx\_1.1.7 code? Regards, M. ######## 6…

---

## [Error: too many arguments to function 'ngx\_time\_update'](https://www.ruby-forum.com/t/error-too-many-arguments-to-function-ngx-time-update/213640)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [November 8, 2011, 11:59am UTC](https://www.ruby-forum.com/t/error-too-many-arguments-to-function-ngx-time-update/213640 "2011-11-08T11:59:13Z")

</div>

Hello, While trying to compile with: pdebuild …/nginx\_1.1.7-0.ubuntu.2.dsc the latest nginx code using an Ubuntu 11.10 machine with these parameters: ./configure \\ \\t --prefix=/etc/nginx \\ \\t --conf-path=/et…

---

## [Path to a directory should return 404](https://www.ruby-forum.com/t/path-to-a-directory-should-return-404/213645)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [November 8, 2011, 9:31am UTC](https://www.ruby-forum.com/t/path-to-a-directory-should-return-404/213645 "2011-11-08T09:31:11Z")

</div>

Under the document root, I have few directories like /1/file1.html /1/file2.html /2/file1.html /2/file2.html If I go to the url http://localhost:8080/1, I get back a 301 with the new location http://localhost/1/ …

---

## [Multipule Map modules](https://www.ruby-forum.com/t/multipule-map-modules/213639)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [November 8, 2011, 6:21am UTC](https://www.ruby-forum.com/t/multipule-map-modules/213639 "2011-11-08T06:21:06Z")

</div>

What i would like to do is like Apache is to use multiple map files and get the vars form them i have tried the following and can only get one value $variable1 what is a rewrite to get $variable1 and $variable2 in one…

---

## [Nginx\_hmux\_module - support hmux protocol proxy with Nginx](https://www.ruby-forum.com/t/nginx-hmux-module-support-hmux-protocol-proxy-with-nginx/213441)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [November 8, 2011, 3:49am UTC](https://www.ruby-forum.com/t/nginx-hmux-module-support-hmux-protocol-proxy-with-nginx/213441 "2011-11-08T03:49:57Z")

</div>

With this module, Nginx can connect to Resin through hmux protocol directly. You also can use tcpcopy to test this module. nginx\_hmux\_module: GitHub - session-replay-tools/nginx-hmux-module: The module implements res…

---

## [Port\_in\_redirect not working?](https://www.ruby-forum.com/t/port-in-redirect-not-working/213625)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [November 7, 2011, 8:45pm UTC](https://www.ruby-forum.com/t/port-in-redirect-not-working/213625 "2011-11-07T20:45:22Z")

</div>

Hi all, I posted this question on SO but haven’t received much attention, so I figured here would be better. Basically I am attempting to run varnish on port 80 and my nginx server on 8080, however any request to 80 …

---

## [Rewrite problem http://x.x.x.x/folder\_name/index.php/css/first.css](https://www.ruby-forum.com/t/rewrite-problem-http-x-x-x-x-folder-name-index-php-css-first-css/213627)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [November 7, 2011, 8:42pm UTC](https://www.ruby-forum.com/t/rewrite-problem-http-x-x-x-x-folder-name-index-php-css-first-css/213627 "2011-11-07T20:42:53Z")

</div>

Hello, I made test against lighttpd and ngninx is 50% faster… So I tried to use it with my already made application. (postgres & php). After setting evrything I found the URL to be a problem. Apache and lighttpd can…

---

## [Problem with url http://x.x.x.x/folder\_name/index.php/css/column.css](https://www.ruby-forum.com/t/problem-with-url-http-x-x-x-x-folder-name-index-php-css-column-css/213623)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [November 7, 2011, 3:44pm UTC](https://www.ruby-forum.com/t/problem-with-url-http-x-x-x-x-folder-name-index-php-css-column-css/213623 "2011-11-07T15:44:26Z")

</div>

Problematic URL is http://x.x.x.x/folder\_name/index.php/css/column.css Why apache and lighttpd can serve this url passing “/css/column.css” as REQUEST\_URI to index.php file. Both in default configuration (right after …

---

## [Can I log HTTP 400s to a different log file instead of my default access logs](https://www.ruby-forum.com/t/can-i-log-http-400s-to-a-different-log-file-instead-of-my-default-access-logs/213617)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [November 7, 2011, 3:20pm UTC](https://www.ruby-forum.com/t/can-i-log-http-400s-to-a-different-log-file-instead-of-my-default-access-logs/213617 "2011-11-07T15:20:15Z")

</div>

Hello I’d like to know if its possible for me to log HTTP 400 errors to a different log file. Right now they go in the access log. To give some background, we’ve got this problem where if a single resource is request…

---

## [Nginx config: multiple locations, authentication in one, triggered for both?](https://www.ruby-forum.com/t/nginx-config-multiple-locations-authentication-in-one-triggered-for-both/213611)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [November 7, 2011, 12:49pm UTC](https://www.ruby-forum.com/t/nginx-config-multiple-locations-authentication-in-one-triggered-for-both/213611 "2011-11-07T12:49:10Z")

</div>

I originally posted this question on SO, but it might of course be more logical to ask here; I’m flummoxed. I have a server that is primarily running couchdb over ssl (using nginx to proxy the ssl connection) but a…

---

## [Rewrite /index.html to /](https://www.ruby-forum.com/t/rewrite-index-html-to/213608)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [November 7, 2011, 12:33pm UTC](https://www.ruby-forum.com/t/rewrite-index-html-to/213608 "2011-11-07T12:33:43Z")

</div>

Developing static files on the local filesystem I use index.html instead of / for the home page. When I push them to the remote server I want http://domain.com/index.html to be redirected to http://domain.com/ for SE…

---

## [Finer grained control on caching](https://www.ruby-forum.com/t/finer-grained-control-on-caching/213614)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [November 7, 2011, 10:35am UTC](https://www.ruby-forum.com/t/finer-grained-control-on-caching/213614 "2011-11-07T10:35:13Z")

</div>

I posted and idea last week to Ideas and Feature Requests: “Finer grained control on caching” (Finer grained control on caching), but since I’m new to this forum/mailing list I have no idea if anybody saw this. I wan…

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

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