# Server

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

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

---

## [Set variables within config](https://www.ruby-forum.com/t/set-variables-within-config/167991)

<div class="topic-metadata">

**Author:** [@jonlog](https://www.ruby-forum.com/u/jonlog)\
**Replies:** 9\
**Last updated:** [May 15, 2009, 7:38am UTC](https://www.ruby-forum.com/t/set-variables-within-config/167991 "2009-05-15T07:38:47Z")

</div>

I haven’t seen any way to do this in the docs, so this might be more of a feature request, but if someone knows of a way to accomplish this that I missed, let me know. I’d really like to be able to set a variable in t…

---

## [Unable to restart mongrel service](https://www.ruby-forum.com/t/unable-to-restart-mongrel-service/196959)

<div class="topic-metadata">

**Author:** [@gypsygoks](https://www.ruby-forum.com/u/gypsygoks)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 3:42am UTC](https://www.ruby-forum.com/t/unable-to-restart-mongrel-service/196959 "2009-05-15T03:42:48Z")

</div>

Hello, I have upgraded my Redmine installation for my ite using SVN. After that i have restarted mongrel and it failed. It is never starting again. I used this command – mongrel\_rails start -d The error reported is :– …

---

## [Static images 404 on Windows](https://www.ruby-forum.com/t/static-images-404-on-windows/167557)

<div class="topic-metadata">

**Author:** [@Chris\_Cortese](https://www.ruby-forum.com/u/Chris_Cortese)\
**Replies:** 14\
**Last updated:** [May 15, 2009, 12:05am UTC](https://www.ruby-forum.com/t/static-images-404-on-windows/167557 "2009-05-15T00:05:30Z")

</div>

OK so I’ve tried everything I can think of on this one. Running 0.7.55 on both Ubuntu Jaunty and XP. Jaunty works just fine. On the Jaunty config, I do use rewrite to remap my js and css, but my location /images/ dir…

---

## [Is anyone else amazed at how many people use nginx on Windows?](https://www.ruby-forum.com/t/is-anyone-else-amazed-at-how-many-people-use-nginx-on-windows/167352)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 34\
**Last updated:** [May 14, 2009, 5:47pm UTC](https://www.ruby-forum.com/t/is-anyone-else-amazed-at-how-many-people-use-nginx-on-windows/167352 "2009-05-14T17:47:04Z")

</div>

I mean… really? If you’re looking for performance, is Windows really your target OS? and security? Not to mention things like php-fpm don’t exist… I’ve been surprised at the demand for nginx on Windows. I figure peo…

---

## [Rewrite help for w2box](https://www.ruby-forum.com/t/rewrite-help-for-w2box/167956)

<div class="topic-metadata">

**Author:** [@lblasc](https://www.ruby-forum.com/u/lblasc)\
**Replies:** 1\
**Last updated:** [May 14, 2009, 1:29pm UTC](https://www.ruby-forum.com/t/rewrite-help-for-w2box/167956 "2009-05-14T13:29:29Z")

</div>

Hello, No luck with rewrite for w2box. Can I get some help with this ? apache .htaccess : RewriteCond %{REQUEST\_FILENAME} !-d RewriteCond %{REQUEST\_FILENAME} !-f RewriteCond %{QUERY\_STRING} ^$ RewriteRule ^(.\*)$ in…

---

## [Does setting a variable only work once?](https://www.ruby-forum.com/t/does-setting-a-variable-only-work-once/167814)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 8\
**Last updated:** [May 13, 2009, 9:17pm UTC](https://www.ruby-forum.com/t/does-setting-a-variable-only-work-once/167814 "2009-05-13T21:17:00Z")

</div>

neither of these work. it only takes the first $port, the second one is ignored set $port 11019; root /home/foo/web/bar.com; include /etc/nginx/expires.conf; include /etc…

---

## [Proxy\_cache and restarts](https://www.ruby-forum.com/t/proxy-cache-and-restarts/167046)

<div class="topic-metadata">

**Author:** [@Resicow](https://www.ruby-forum.com/u/Resicow)\
**Replies:** 3\
**Last updated:** [May 13, 2009, 4:36pm UTC](https://www.ruby-forum.com/t/proxy-cache-and-restarts/167046 "2009-05-13T16:36:19Z")

</div>

Hello, I have a question on for nginx handles restarts and proxy\_cache. Say I have 2 million objects cached, taking up 50GBs of space. Then I get a kernel panic or some other error, and have to restart the physical m…

---

## [Reading from variable in config file](https://www.ruby-forum.com/t/reading-from-variable-in-config-file/167302)

<div class="topic-metadata">

**Author:** [@romez777](https://www.ruby-forum.com/u/romez777)\
**Replies:** 1\
**Last updated:** [May 13, 2009, 2:00pm UTC](https://www.ruby-forum.com/t/reading-from-variable-in-config-file/167302 "2009-05-13T14:00:26Z")

</div>

Hi all, I need to read client’s IP to store it in module context: { ngx\_string(“real\_ip”), NGX\_HTTP\_LOC\_CONF|NGX\_CONF\_TAKE1, ngx\_conf\_set\_str\_slot, NGX\_HTTP\_LOC\_CONF\_OFFSET, offsetof(ngx\_http\_my\_loc\_conf\_t, realIp)…

---

## [Unabe to restart mongrel](https://www.ruby-forum.com/t/unabe-to-restart-mongrel/167856)

<div class="topic-metadata">

**Author:** [@gypsygoks](https://www.ruby-forum.com/u/gypsygoks)\
**Replies:** 0\
**Last updated:** [May 13, 2009, 10:07am UTC](https://www.ruby-forum.com/t/unabe-to-restart-mongrel/167856 "2009-05-13T10:07:05Z")

</div>

Hello, I have upgraded my Redmine installation for my ite using SVN. After that i have restarted mongrel and it failed. It is never starting again. I used this command – mongrel\_rails start -d The error reported is :– …

---

## [Nginx-0.7.56](https://www.ruby-forum.com/t/nginx-0-7-56/167688)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 14\
**Last updated:** [May 13, 2009, 9:39am UTC](https://www.ruby-forum.com/t/nginx-0-7-56/167688 "2009-05-13T09:39:55Z")

</div>

Changes with nginx 0.7.56 11 May 2009 \*) Feature: nginx/Windows supports IPv6 in a "listen" directive of the HTTP module. \*) Bugfix: in ngx\_http\_image\_filter\_module.

---

## [Unable to use variables in error\_log](https://www.ruby-forum.com/t/unable-to-use-variables-in-error-log/167761)

<div class="topic-metadata">

**Author:** [@Phill](https://www.ruby-forum.com/u/Phill)\
**Replies:** 2\
**Last updated:** [May 13, 2009, 9:18am UTC](https://www.ruby-forum.com/t/unable-to-use-variables-in-error-log/167761 "2009-05-13T09:18:47Z")

</div>

It seems as though its not currently possible to use variables in error\_log config. At the moment I use a config similar to: set $root /var/www/myapp; root $root; location ~ .php($|/) { set $script $uri; fastcgi\_pa…

---

## [Modsecurity module for nginx](https://www.ruby-forum.com/t/modsecurity-module-for-nginx/167842)

<div class="topic-metadata">

**Author:** [@suntzu](https://www.ruby-forum.com/u/suntzu)\
**Replies:** 0\
**Last updated:** [May 13, 2009, 7:06am UTC](https://www.ruby-forum.com/t/modsecurity-module-for-nginx/167842 "2009-05-13T07:06:10Z")

</div>

Hi, I was looking for Web Application Firewall solution and found modsecurity (via apache) very useful. Only problem is that, it is GPLed and can not be embedded in commercial product. Is it possible to write modsecu…

---

## [Issues with Location: header in perl module](https://www.ruby-forum.com/t/issues-with-location-header-in-perl-module/167722)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 5\
**Last updated:** [May 13, 2009, 3:11am UTC](https://www.ruby-forum.com/t/issues-with-location-header-in-perl-module/167722 "2009-05-13T03:11:15Z")

</div>

trying to use nginx’s built-in perl stuff… here’s an example. any clue why this doesn’t work? in /etc/nginx/nginx.conf: http { perl\_modules /etc/nginx/perl/lib; perl\_require Foo.pm; server { listen 80; server\_n…

---

## [Setup multiple SSL servers in one config](https://www.ruby-forum.com/t/setup-multiple-ssl-servers-in-one-config/167745)

<div class="topic-metadata">

**Author:** [@Jonathan\_Garvin](https://www.ruby-forum.com/u/Jonathan_Garvin)\
**Replies:** 5\
**Last updated:** [May 12, 2009, 6:01pm UTC](https://www.ruby-forum.com/t/setup-multiple-ssl-servers-in-one-config/167745 "2009-05-12T18:01:44Z")

</div>

I’m in the process of trying to convert a Pound config file that manages multiple SSL sites over to Nginx. If I just have one site setup in the nginx.conf file then everything, including the SSL, works fine. But if I …

---

## [Nginx-0.7.57](https://www.ruby-forum.com/t/nginx-0-7-57/167781)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 0\
**Last updated:** [May 12, 2009, 2:27pm UTC](https://www.ruby-forum.com/t/nginx-0-7-57/167781 "2009-05-12T14:27:02Z")

</div>

Changes with nginx 0.7.57 12 May 2009 \*) Bugfix: a segmentation fault occurred in worker process, if the ngx\_http\_image\_filter\_module errors were redirected to named locatio…

---

## [Rewrite rule for reverse proxy](https://www.ruby-forum.com/t/rewrite-rule-for-reverse-proxy/167746)

<div class="topic-metadata">

**Author:** [@Claude](https://www.ruby-forum.com/u/Claude)\
**Replies:** 2\
**Last updated:** [May 12, 2009, 2:11pm UTC](https://www.ruby-forum.com/t/rewrite-rule-for-reverse-proxy/167746 "2009-05-12T14:11:07Z")

</div>

Hello. Trying to write a rewrite rule that will transform this url http://external\_site.com/login?back\_url=http%3A%2F%2Finternal\_url%2F to this one http://external\_site.com/login?back\_url=http%3A%2F%2Fexternal\_site.c…

---

## [Chunked Encoding on nginx](https://www.ruby-forum.com/t/chunked-encoding-on-nginx/167771)

<div class="topic-metadata">

**Author:** [@hostis.pl](https://www.ruby-forum.com/u/hostis.pl)\
**Replies:** 0\
**Last updated:** [May 12, 2009, 1:43pm UTC](https://www.ruby-forum.com/t/chunked-encoding-on-nginx/167771 "2009-05-12T13:43:58Z")

</div>

Hi i have little problem, with J2ME application. I create application in php and my friend create J2ME application to send files, video, etc. he connect to one php script and sending files with Chunked Encoding heade…

---

## [Ç­”å¤: static images 404 on Windows](https://www.ruby-forum.com/t/c-a-static-images-404-on-windows/167767)

<div class="topic-metadata">

**Author:** [@kevin](https://www.ruby-forum.com/u/kevin)\
**Replies:** 0\
**Last updated:** [May 12, 2009, 11:46am UTC](https://www.ruby-forum.com/t/c-a-static-images-404-on-windows/167767 "2009-05-12T11:46:18Z")

</div>

Hi åäºº(Bad guy), I had translated you mail. Hope it’ll help you. éº»çƒ¦æŠŠä½ çš„å„ç§ä¿¡æ¯å‘å‡ºæ¥ Please send all you configuration detail to me. åŒ…æ‹¬ä¸»ç›®å½•ã€å„ç§é™æ€æ–‡ä»¶çš„ç›®å½•ç»“æž„ã€ä»¥åŠè¯´…

---

## [Using XSLT and FastCGI together](https://www.ruby-forum.com/t/using-xslt-and-fastcgi-together/165618)

<div class="topic-metadata">

**Author:** [@Michael\_Nachbaur](https://www.ruby-forum.com/u/Michael_Nachbaur)\
**Replies:** 10\
**Last updated:** [May 12, 2009, 8:15am UTC](https://www.ruby-forum.com/t/using-xslt-and-fastcgi-together/165618 "2009-05-12T08:15:45Z")

</div>

I’m developing a web application that makes heavy use of nginx’s XSLT support (Thank you for that!) About half of the content is in static XML files that describes the application’s state. But when people click on a…

---

## [Repost: Inconsistent URL encoding in X-Accel-Redirect](https://www.ruby-forum.com/t/repost-inconsistent-url-encoding-in-x-accel-redirect/167254)

<div class="topic-metadata">

**Author:** [@bdmcnitt](https://www.ruby-forum.com/u/bdmcnitt)\
**Replies:** 2\
**Last updated:** [May 12, 2009, 12:05am UTC](https://www.ruby-forum.com/t/repost-inconsistent-url-encoding-in-x-accel-redirect/167254 "2009-05-12T00:05:52Z")

</div>

Sorry for the repost :: can anyone else confirm what we’re seeing? : I believe I’ve found an inconsistency in url encoding of X-Accel-Redirect requests. The URL that I’m providing in my X-Accel-Redirect header looks s…

---

## [Anyone know how to grab X-Forwarded-For from nginx to Apache?](https://www.ruby-forum.com/t/anyone-know-how-to-grab-x-forwarded-for-from-nginx-to-apache/167707)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 6\
**Last updated:** [May 11, 2009, 9:03pm UTC](https://www.ruby-forum.com/t/anyone-know-how-to-grab-x-forwarded-for-from-nginx-to-apache/167707 "2009-05-11T21:03:58Z")

</div>

In apache I want that to be the REMOTE\_ADDR, essentially. This is like nginx’s set\_real\_ip\_from. I am pretty sure Apache has it and I’m sure people on this list have used it.

---

## [Unusual e-mails volume on the list](https://www.ruby-forum.com/t/unusual-e-mails-volume-on-the-list/167693)

<div class="topic-metadata">

**Author:** [@Juan\_FcoSGiordana](https://www.ruby-forum.com/u/Juan_FcoSGiordana)\
**Replies:** 2\
**Last updated:** [May 11, 2009, 7:35pm UTC](https://www.ruby-forum.com/t/unusual-e-mails-volume-on-the-list/167693 "2009-05-11T19:35:47Z")

</div>

Is everything OK with the mailing list? I’ve been receiving less than 10-15 daily emails since Friday which is unusual on this list. Regards.

---

## [Load Balancing HTTPS/SSL requests](https://www.ruby-forum.com/t/load-balancing-https-ssl-requests/167667)

<div class="topic-metadata">

**Author:** [@miket](https://www.ruby-forum.com/u/miket)\
**Replies:** 0\
**Last updated:** [May 11, 2009, 10:10am UTC](https://www.ruby-forum.com/t/load-balancing-https-ssl-requests/167667 "2009-05-11T10:10:09Z")

</div>

Hi, I think I posted this in the wrong forum before so apologies for the repoeat posting! I have a question about load balancing HTTPS requests, it appears to me that in order for nginx to handle https you must suppl…

---

## [Nginx-0.7.55](https://www.ruby-forum.com/t/nginx-0-7-55/167281)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 6\
**Last updated:** [May 11, 2009, 2:19am UTC](https://www.ruby-forum.com/t/nginx-0-7-55/167281 "2009-05-11T02:19:45Z")

</div>

Changes with nginx 0.7.55 06 May 2009 \*) Bugfix: the http\_XXX parameters in "proxy\_cache\_use\_stale" and "fastcgi\_cache\_use\_stale" directives did not work. \*) Bugfix: fastcgi c…

---

## [Debugging - location directives](https://www.ruby-forum.com/t/debugging-location-directives/167594)

<div class="topic-metadata">

**Author:** [@Chris\_Cortese](https://www.ruby-forum.com/u/Chris_Cortese)\
**Replies:** 0\
**Last updated:** [May 9, 2009, 9:28pm UTC](https://www.ruby-forum.com/t/debugging-location-directives/167594 "2009-05-09T21:28:22Z")

</div>

This is basically a followup to my last post but I have some general questions now. I determined that in my config (and this seems to be Windoze only because my Ubuntu version works fine), the location directives I’ve…

---

## [Nginx X wsgi X Webpy](https://www.ruby-forum.com/t/nginx-x-wsgi-x-webpy/167480)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [May 9, 2009, 8:55am UTC](https://www.ruby-forum.com/t/nginx-x-wsgi-x-webpy/167480 "2009-05-09T08:55:47Z")

</div>

Hello World ! Im traying a lot to install Nginx with wsgi ! I tryed all the tutorials and nothing. Please PLEASE !!! someone help me . im using ubuntu server ! Thanks… Cadu Posted at Nginx Forum:

---

## [Load balancer and redirect to https](https://www.ruby-forum.com/t/load-balancer-and-redirect-to-https/167539)

<div class="topic-metadata">

**Author:** [@stevezhuo](https://www.ruby-forum.com/u/stevezhuo)\
**Replies:** 0\
**Last updated:** [May 9, 2009, 3:29am UTC](https://www.ruby-forum.com/t/load-balancer-and-redirect-to-https/167539 "2009-05-09T03:29:00Z")

</div>

HI I would like to setup my Load Balancer to distribute the load to different servers, and i would also like to forward all of the incoming http request to the https port. Here is my configuration: upstream mysvr …

---

## [Load balancer and redirect to https](https://www.ruby-forum.com/t/load-balancer-and-redirect-to-https/167538)

<div class="topic-metadata">

**Author:** [@stevezhuo](https://www.ruby-forum.com/u/stevezhuo)\
**Replies:** 0\
**Last updated:** [May 9, 2009, 3:28am UTC](https://www.ruby-forum.com/t/load-balancer-and-redirect-to-https/167538 "2009-05-09T03:28:02Z")

</div>

HI I would like to setup my Load Balancer to distribute the load to different servers, and i would also like to forward all of the incoming http request to the https port. Here is my configuration: upstream mysvr …

---

## [Looking for rewrite rules](https://www.ruby-forum.com/t/looking-for-rewrite-rules/167408)

<div class="topic-metadata">

**Author:** [@Crazy-Achmet](https://www.ruby-forum.com/u/Crazy-Achmet)\
**Replies:** 5\
**Last updated:** [May 8, 2009, 3:46pm UTC](https://www.ruby-forum.com/t/looking-for-rewrite-rules/167408 "2009-05-08T15:46:02Z")

</div>

Hey, i’m new to NGINX and this community so i hope this is the right place to post my question. I have this .htaccess which is working perfect on my apache: Options +FollowSymlinks RewriteEngine On RewriteRule ^(+)…

---

## [Bugs - Win Build](https://www.ruby-forum.com/t/bugs-win-build/167315)

<div class="topic-metadata">

**Author:** [@Trigun](https://www.ruby-forum.com/u/Trigun)\
**Replies:** 4\
**Last updated:** [May 8, 2009, 8:57am UTC](https://www.ruby-forum.com/t/bugs-win-build/167315 "2009-05-08T08:57:48Z")

</div>

This may have been posted already, sorry if it has - disregard in such case. OS: vista x64 Using fastcgi or proxy cache systems cause immediate crash upon start. Setting worker\_processes higher than 1 causes server …

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

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