# Server

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

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

---

## [Logging empty.gif](https://www.ruby-forum.com/t/logging-empty-gif/148758)

<div class="topic-metadata">

**Author:** [@paul](https://www.ruby-forum.com/u/paul)\
**Replies:** 3\
**Last updated:** [September 18, 2008, 3:59pm UTC](https://www.ruby-forum.com/t/logging-empty-gif/148758 "2008-09-18T15:59:28Z")

</div>

I have built a small stand alone nginx server, all it is doing is serving up one empty.gif. I want to use this server to get up to the minute logs for my main site. Each page on the main site has an image tag for the…

---

## [Nginx config not reset correctly after restart via HUP signal](https://www.ruby-forum.com/t/nginx-config-not-reset-correctly-after-restart-via-hup-signal/148808)

<div class="topic-metadata">

**Author:** [@Delta\_Y](https://www.ruby-forum.com/u/Delta_Y)\
**Replies:** 3\
**Last updated:** [September 18, 2008, 9:38am UTC](https://www.ruby-forum.com/t/nginx-config-not-reset-correctly-after-restart-via-hup-signal/148808 "2008-09-18T09:38:52Z")

</div>

Hi, I 'm testing nginx as a reverse proxy in scenarios. I use the following config : server { server\_name site1; location / { proxy\_set\_header my\_header site1; } } it works as expected. then I remove site1 ,…

---

## [SSL\_write errors](https://www.ruby-forum.com/t/ssl-write-errors/148901)

<div class="topic-metadata">

**Author:** [@Mansoor\_P](https://www.ruby-forum.com/u/Mansoor_P)\
**Replies:** 0\
**Last updated:** [September 18, 2008, 7:28am UTC](https://www.ruby-forum.com/t/ssl-write-errors/148901 "2008-09-18T07:28:09Z")

</div>

Hello Igor We (Yahoo) are running a customized version of NGINX (based off 0.5.30), and one of our customers is repeatedly getting such errors in his nginx.log 2008/09/15 04:02:19 \[info\] 4822#0: \*5983421 peer closed …

---

## [Solaris 10 issue with 0.7.10+ builds w/ patch fix](https://www.ruby-forum.com/t/solaris-10-issue-with-0-7-10-builds-w-patch-fix/148256)

<div class="topic-metadata">

**Author:** [@victori](https://www.ruby-forum.com/u/victori)\
**Replies:** 21\
**Last updated:** [September 18, 2008, 2:53am UTC](https://www.ruby-forum.com/t/solaris-10-issue-with-0-7-10-builds-w-patch-fix/148256 "2008-09-18T02:53:07Z")

</div>

/opt/SunStudioExpress/bin/cc -c -fast -xipo -errwarn=%all -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I …/pcre-7.6 -I objs -o objs/src/os/unix/ngx\_alloc.o src/os/unix/ngx\_alloc.c src/os/unix/…

---

## [Rewrite works, but want to redirect](https://www.ruby-forum.com/t/rewrite-works-but-want-to-redirect/148870)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 2\
**Last updated:** [September 17, 2008, 10:12pm UTC](https://www.ruby-forum.com/t/rewrite-works-but-want-to-redirect/148870 "2008-09-17T22:12:31Z")

</div>

Hi, My rewrite works, but I want this to be a permanent redirect. How can I achieve this please ? Thank you rewrite ^/forums/archive/index.php/t-(\[0-9\]+).html$ /forums/showthread.php?t=$1 last;

---

## [Offline/local install of mongrel\_service](https://www.ruby-forum.com/t/offline-local-install-of-mongrel-service/148839)

<div class="topic-metadata">

**Author:** [@zbm003](https://www.ruby-forum.com/u/zbm003)\
**Replies:** 1\
**Last updated:** [September 17, 2008, 8:13pm UTC](https://www.ruby-forum.com/t/offline-local-install-of-mongrel-service/148839 "2008-09-17T20:13:14Z")

</div>

I am trying to install mongrel\_service 0.3.4 on a server that does not have any outside internet connection. It has ruby 1.8.6 and I have been installing gems by copying the source into …\\ruby\\lib\\ruby\\gems\\1.8\\gems …

---

## [Error when install Mongrel as a Windows service](https://www.ruby-forum.com/t/error-when-install-mongrel-as-a-windows-service/148767)

<div class="topic-metadata">

**Author:** [@xiaoshimei](https://www.ruby-forum.com/u/xiaoshimei)\
**Replies:** 2\
**Last updated:** [September 17, 2008, 7:07pm UTC](https://www.ruby-forum.com/t/error-when-install-mongrel-as-a-windows-service/148767 "2008-09-17T19:07:58Z")

</div>

I have Ruby and Rails 2.1.1 installed, then I installed mongrel 1.1.5. Now I want to install mongrel as a service. I downloaded and installed mongrel\_service-0.3.3-mswin32.gem. After all these, I followed the instruct…

---

## [Proxy\_store remote control](https://www.ruby-forum.com/t/proxy-store-remote-control/148838)

<div class="topic-metadata">

**Author:** [@Maxim\_D](https://www.ruby-forum.com/u/Maxim_D)\
**Replies:** 0\
**Last updated:** [September 17, 2008, 5:09pm UTC](https://www.ruby-forum.com/t/proxy-store-remote-control/148838 "2008-09-17T17:09:33Z")

</div>

Hello! ÐŸÐ°Ñ‚Ñ‡, Ð²Ñ‹ÐºÐ»ÑŽÑ‡Ð°ÑŽÑ‰Ð¸Ð¹ proxy\_store ÐµÑÐ»Ð¸ Ð¾Ñ‚ Ð±ÐµÐºÐµÐ½Ð´Ð° Ð¿Ñ€Ð¸ÑˆÑ‘Ð» Ð·Ð°Ð³Ð¾Ð»Ð¾Ð²Ð¾Ðº X-Accel-Expires: 0. Ð’Ð´Ñ€ÑƒÐ³ ÐºÐ¾Ð¼Ñƒ Ð¿Ñ€Ð¸Ð³Ð¾Ð´Ð¸Ñ‚ÑÑ. Maxim D.

---

## [About the aio module](https://www.ruby-forum.com/t/about-the-aio-module/148831)

<div class="topic-metadata">

**Author:** [@Manlio\_P](https://www.ruby-forum.com/u/Manlio_P)\
**Replies:** 1\
**Last updated:** [September 17, 2008, 2:50pm UTC](https://www.ruby-forum.com/t/about-the-aio-module/148831 "2008-09-17T14:50:59Z")

</div>

I’m interested in POSIX AIO support, so I would like to know if with the aio module Nginx performance is better then simply increasing the number of worker processes. Thanks Manlio P.

---

## [Is nginx able to work with multiple memcached servers?](https://www.ruby-forum.com/t/is-nginx-able-to-work-with-multiple-memcached-servers/148768)

<div class="topic-metadata">

**Author:** [@erazor](https://www.ruby-forum.com/u/erazor)\
**Replies:** 3\
**Last updated:** [September 17, 2008, 8:53am UTC](https://www.ruby-forum.com/t/is-nginx-able-to-work-with-multiple-memcached-servers/148768 "2008-09-17T08:53:41Z")

</div>

Is nginx able to work with multiple memcached servers and therefore correctly hashes the key to pick a server from the cluster?

---

## [Request\_uri changes after rewrite](https://www.ruby-forum.com/t/request-uri-changes-after-rewrite/148780)

<div class="topic-metadata">

**Author:** [@m3rls](https://www.ruby-forum.com/u/m3rls)\
**Replies:** 0\
**Last updated:** [September 17, 2008, 1:55am UTC](https://www.ruby-forum.com/t/request-uri-changes-after-rewrite/148780 "2008-09-17T01:55:06Z")

</div>

Hi, In summary - after a rewrite where we strip some of the URI, $uri and $request\_uri both get updated to reflect the newly-redirected-to URI. The wording of the manual leads me to believe that $request\_uri is suppo…

---

## [Restrict access problem](https://www.ruby-forum.com/t/restrict-access-problem/148724)

<div class="topic-metadata">

**Author:** [@lhmwzy](https://www.ruby-forum.com/u/lhmwzy)\
**Replies:** 7\
**Last updated:** [September 16, 2008, 8:34pm UTC](https://www.ruby-forum.com/t/restrict-access-problem/148724 "2008-09-16T20:34:29Z")

</div>

I want to do a restrict access for URI contains xinxi,I do as follow: location ~ xinxi { allow 10.68.49.21; auth\_basic "need authried"; auth\_basic\_user\_file passwd; deny a…

---

## [Conflicting location blocks](https://www.ruby-forum.com/t/conflicting-location-blocks/148668)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 6\
**Last updated:** [September 16, 2008, 11:09am UTC](https://www.ruby-forum.com/t/conflicting-location-blocks/148668 "2008-09-16T11:09:18Z")

</div>

I have this config - The location block to set expires headers breaks the alias location. Is there a way to get them to both work? Everything that matches should issue an expires header. However, I want to alias /ico…

---

## [SCM code repository, anyone?](https://www.ruby-forum.com/t/scm-code-repository-anyone/148657)

<div class="topic-metadata">

**Author:** [@Toni\_M](https://www.ruby-forum.com/u/Toni_M)\
**Replies:** 1\
**Last updated:** [September 16, 2008, 6:37am UTC](https://www.ruby-forum.com/t/scm-code-repository-anyone/148657 "2008-09-16T06:37:13Z")

</div>

Hi, I have been searching for a source code repository (eg. SVN or Bazaar) for nginx, but couldn’t find one. Pointers are most welcome! Kind regards, –Toni++

---

## [Scripts/server with mongrel arguments](https://www.ruby-forum.com/t/scripts-server-with-mongrel-arguments/148662)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [September 16, 2008, 1:40am UTC](https://www.ruby-forum.com/t/scripts-server-with-mongrel-arguments/148662 "2008-09-16T01:40:01Z")

</div>

Does anyone here know how to pass an argument like: “-S config/ mongrel\_upload\_progress.conf” to the mongrel that is run using the standard scripts/server command in a Rails app? I haven’t been able to find any docum…

---

## [Scripts/server with mongrel arguments](https://www.ruby-forum.com/t/scripts-server-with-mongrel-arguments/196808)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [September 16, 2008, 1:27am UTC](https://www.ruby-forum.com/t/scripts-server-with-mongrel-arguments/196808 "2008-09-16T01:27:09Z")

</div>

Does anyone here know how to pass an argument like: “-S config/ mongrel\_upload\_progress.conf” to the mongrel that is run using the standard scripts/server command in a Rails app? I haven’t been able to find any docum…

---

## [Nginx-0.7.17](https://www.ruby-forum.com/t/nginx-0-7-17/148630)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 1\
**Last updated:** [September 15, 2008, 8:36pm UTC](https://www.ruby-forum.com/t/nginx-0-7-17/148630 "2008-09-15T20:36:46Z")

</div>

Changes with nginx 0.7.17 15 Sep 2008 \*) Feature: now the "directio" directive works on Linux. \*) Feature: the $pid variable. \*) Bugfix: the "directio" optimization that had app…

---

## [SSL proxy slow](https://www.ruby-forum.com/t/ssl-proxy-slow/148083)

<div class="topic-metadata">

**Author:** [@james](https://www.ruby-forum.com/u/james)\
**Replies:** 12\
**Last updated:** [September 15, 2008, 7:17pm UTC](https://www.ruby-forum.com/t/ssl-proxy-slow/148083 "2008-09-15T19:17:57Z")

</div>

Here is my server config. When I go to http://prod.givvy.com the result is normal. When I go to https://prod.givvy.com it’s dog slow. Any idea as to how to speed up the SSL side of it? (right now I am using a loca…

---

## [SSI "unsafe URI" problem after upgrade from 0.5 to 0.6](https://www.ruby-forum.com/t/ssi-unsafe-uri-problem-after-upgrade-from-0-5-to-0-6/148611)

<div class="topic-metadata">

**Author:** [@Toni\_M](https://www.ruby-forum.com/u/Toni_M)\
**Replies:** 0\
**Last updated:** [September 15, 2008, 4:16pm UTC](https://www.ruby-forum.com/t/ssi-unsafe-uri-problem-after-upgrade-from-0-5-to-0-6/148611 "2008-09-15T16:16:27Z")

</div>

Hi, I am running a site which has a lot of in it, which worked like a charm in 0.5.x, but broke in 0.6.32 due to the error “unsafe URI … detected while sending response to client”. The URI used by nginx looks much l…

---

## [Probably a yes, but thought best to check - php and python fastcgi](https://www.ruby-forum.com/t/probably-a-yes-but-thought-best-to-check-php-and-python-fastcgi/148501)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 3\
**Last updated:** [September 14, 2008, 3:13pm UTC](https://www.ruby-forum.com/t/probably-a-yes-but-thought-best-to-check-php-and-python-fastcgi/148501 "2008-09-14T15:13:08Z")

</div>

Hi, Is it possible with the same install of nginx to have php on some server{} sections and a python/django on another ? Thanks

---

## [Upload Issues with Nginx Reverse Proxy](https://www.ruby-forum.com/t/upload-issues-with-nginx-reverse-proxy/148505)

<div class="topic-metadata">

**Author:** [@Tony\_Holmes](https://www.ruby-forum.com/u/Tony_Holmes)\
**Replies:** 0\
**Last updated:** [September 13, 2008, 8:18pm UTC](https://www.ruby-forum.com/t/upload-issues-with-nginx-reverse-proxy/148505 "2008-09-13T20:18:18Z")

</div>

Hey All, I am using nginx (sweet server) as a reverse proxy in front of some user content web servers. Nginx redirects them to the right server/port given information extracted from a database. Standard form posts wo…

---

## [About apache's VirtualDocumentRoot](https://www.ruby-forum.com/t/about-apaches-virtualdocumentroot/148469)

<div class="topic-metadata">

**Author:** [@tony](https://www.ruby-forum.com/u/tony)\
**Replies:** 0\
**Last updated:** [September 13, 2008, 4:24am UTC](https://www.ruby-forum.com/t/about-apaches-virtualdocumentroot/148469 "2008-09-13T04:24:37Z")

</div>

Does anyone known how to transform apache’s “VirtualDocumentRoot /data/www/%1.1/%1.1%1.2/%1.1%1.2%1.3/%0” to nginx’s config?

---

## [Dynamic logs](https://www.ruby-forum.com/t/dynamic-logs/148347)

<div class="topic-metadata">

**Author:** [@Vladan\_Popovic](https://www.ruby-forum.com/u/Vladan_Popovic)\
**Replies:** 13\
**Last updated:** [September 13, 2008, 1:03am UTC](https://www.ruby-forum.com/t/dynamic-logs/148347 "2008-09-13T01:03:51Z")

</div>

Hi, I’m using version 0.716 and trying to make dynamic log files work. The log file is created but subsequently nothing is written inside the file. The configuration is as follows: Catch all web site server { serv…

---

## [Mac os nginx startup launchd configure](https://www.ruby-forum.com/t/mac-os-nginx-startup-launchd-configure/144673)

<div class="topic-metadata">

**Author:** [@xain](https://www.ruby-forum.com/u/xain)\
**Replies:** 4\
**Last updated:** [September 12, 2008, 7:32pm UTC](https://www.ruby-forum.com/t/mac-os-nginx-startup-launchd-configure/144673 "2008-09-12T19:32:53Z")

</div>

I want nginx to be started up every time my Mac os 10.5 system boots up. So I create a launchd file: \<?xml version="1.0" encoding="UTF-8"?\> Disabled Label com.zhan.nginx OnDemand ProgramArguments …

---

## [Porting php-code from apache with apache\_note to nginx+acp+php+logging](https://www.ruby-forum.com/t/porting-php-code-from-apache-with-apache-note-to-nginx-acp-php-logging/148412)

<div class="topic-metadata">

**Author:** [@Armin\_R](https://www.ruby-forum.com/u/Armin_R)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 4:19pm UTC](https://www.ruby-forum.com/t/porting-php-code-from-apache-with-apache-note-to-nginx-acp-php-logging/148412 "2008-09-12T16:19:08Z")

</div>

Heya, I am porting phpcode that comes from apache and uses apache\_note. What logging framework would you suggest to give me most speed with nginx? I guess something like apache\_note does not exist for nginx, right? T…

---

## [Behavior of server depends on a file name](https://www.ruby-forum.com/t/behavior-of-server-depends-on-a-file-name/148380)

<div class="topic-metadata">

**Author:** [@Gregor\_Jurgele](https://www.ruby-forum.com/u/Gregor_Jurgele)\
**Replies:** 6\
**Last updated:** [September 12, 2008, 3:58pm UTC](https://www.ruby-forum.com/t/behavior-of-server-depends-on-a-file-name/148380 "2008-09-12T15:58:02Z")

</div>

Hello I would like to run a few virtual sites on one IP on nginx 0.6.32 compiled from source as Debian package on Debian Etch. My nginx.conf contents are: user www-data; worker\_processes 1; error\_log /var/log/ng…

---

## [Cert handling on redirect of https subdomains](https://www.ruby-forum.com/t/cert-handling-on-redirect-of-https-subdomains/148095)

<div class="topic-metadata">

**Author:** [@Martian\_Alien](https://www.ruby-forum.com/u/Martian_Alien)\
**Replies:** 21\
**Last updated:** [September 12, 2008, 11:21am UTC](https://www.ruby-forum.com/t/cert-handling-on-redirect-of-https-subdomains/148095 "2008-09-12T11:21:33Z")

</div>

Hi Nginx Group, Just wanted to start off by saying nginx is a rad web server! Na zdrowie! So we’ve noticed some issues with setting up https ssl certificates over multiple subdomains. The base domain (example.com) …

---

## [Rewriting $uri to include session id from cookie](https://www.ruby-forum.com/t/rewriting-uri-to-include-session-id-from-cookie/148374)

<div class="topic-metadata">

**Author:** [@erazor](https://www.ruby-forum.com/u/erazor)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 10:22am UTC](https://www.ruby-forum.com/t/rewriting-uri-to-include-session-id-from-cookie/148374 "2008-09-12T10:22:42Z")

</div>

In order to implement user dependended memcached lookup for URIs I would like to rewrite the URI to include the value of the session\_id cookie as a query parameter but somehow I can’g get it working. I’ve tried these …

---

## [Log connection time](https://www.ruby-forum.com/t/log-connection-time/148355)

<div class="topic-metadata">

**Author:** [@Vladan\_Popovic](https://www.ruby-forum.com/u/Vladan_Popovic)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 1:07am UTC](https://www.ruby-forum.com/t/log-connection-time/148355 "2008-09-12T01:07:57Z")

</div>

Hello Igor, Would it be possible to provide a variable that $connection\_time for example that could be logged and that would provide the duration of a connection. If the connection time is longer than the keepalive\_…

---

## [Set a variable in configuration file](https://www.ruby-forum.com/t/set-a-variable-in-configuration-file/142542)

<div class="topic-metadata">

**Author:** [@thomas](https://www.ruby-forum.com/u/thomas)\
**Replies:** 6\
**Last updated:** [September 11, 2008, 10:48pm UTC](https://www.ruby-forum.com/t/set-a-variable-in-configuration-file/142542 "2008-09-11T22:48:33Z")

</div>

A really stupid question: how do I set a variable in Nginx’ config file? I’d like to set: path=/var/www/mysites/ And then reuse this variable, for instance: root $path/cool\_site; But I can’t figure out how to do it.

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

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