# Server

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

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

---

## [$fastcgi\_script\_name and $document\_uri chenged after 0.5.34?](https://www.ruby-forum.com/t/fastcgi-script-name-and-document-uri-chenged-after-0-5-34/142488)

<div class="topic-metadata">

**Author:** [@SS\_SSSSSSSSSSSSSSSS](https://www.ruby-forum.com/u/SS_SSSSSSSSSSSSSSSS)\
**Replies:** 1\
**Last updated:** [July 8, 2008, 1:59pm UTC](https://www.ruby-forum.com/t/fastcgi-script-name-and-document-uri-chenged-after-0-5-34/142488 "2008-07-08T13:59:01Z")

</div>

I have used nginx 0.5.34 for some days. The backend server is Django (run as fastcgi). I want to upgrade nginx to newer version now, but I find that all the versions after 0.5.34 seem to change something with $fastcg…

---

## [Using auth\_basic in dynamic vhosts](https://www.ruby-forum.com/t/using-auth-basic-in-dynamic-vhosts/142401)

<div class="topic-metadata">

**Author:** [@Lee\_Brotherston](https://www.ruby-forum.com/u/Lee_Brotherston)\
**Replies:** 3\
**Last updated:** [July 8, 2008, 11:29am UTC](https://www.ruby-forum.com/t/using-auth-basic-in-dynamic-vhosts/142401 "2008-07-08T11:29:06Z")

</div>

Hi, I have an nginx installation which allows vhosts to be setup dynamically: -------8\<------- server { listen 10.1.2.3:80; root /data/www/$host; index index.php index.html; loca…

---

## [Using geo-like functionality on another variable](https://www.ruby-forum.com/t/using-geo-like-functionality-on-another-variable/142440)

<div class="topic-metadata">

**Author:** [@yammer](https://www.ruby-forum.com/u/yammer)\
**Replies:** 0\
**Last updated:** [July 8, 2008, 12:25am UTC](https://www.ruby-forum.com/t/using-geo-like-functionality-on-another-variable/142440 "2008-07-08T00:25:41Z")

</div>

I’d like to be able to do something like: grab variable from arguments if ($args ~ “ip=(\[0-9.\]+)&”) { set $iparg $1; } set country based on variable map $iparg $country { default international; 192.168.0.0/16 us; …

---

## [How to hide the server version?](https://www.ruby-forum.com/t/how-to-hide-the-server-version/137394)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 24\
**Last updated:** [July 7, 2008, 10:42pm UTC](https://www.ruby-forum.com/t/how-to-hide-the-server-version/137394 "2008-07-07T22:42:41Z")

</div>

Hi Guys, is there any directive to hide the exact server version in the header and error pages? I don’t mind showing that I’m running nginx but I don’t want to give out the exact version it is. It could give attacke…

---

## [ANNOUNCE: nginx 0.7.6, 0.6.32, and 0.5.37 for Windows (win32) (2000, XP, Vista)](https://www.ruby-forum.com/t/announce-nginx-0-7-6-0-6-32-and-0-5-37-for-windows-win32-2000-xp-vista/142405)

<div class="topic-metadata">

**Author:** [@inspire22](https://www.ruby-forum.com/u/inspire22)\
**Replies:** 0\
**Last updated:** [July 7, 2008, 5:19pm UTC](https://www.ruby-forum.com/t/announce-nginx-0-7-6-0-6-32-and-0-5-37-for-windows-win32-2000-xp-vista/142405 "2008-07-07T17:19:25Z")

</div>

Announcement here - Feedback is always welcome: http://www.kevinworthington.com/index.php/2008/07/07/announce-nginx-076-0632-0537-for-windows-win32/ Download nginx/0.7.6-win32, nginx/0.6.32-win32, and nginx/0.5.37-win3…

---

## [Keepalive and workers](https://www.ruby-forum.com/t/keepalive-and-workers/142372)

<div class="topic-metadata">

**Author:** [@MichaSSSSSJaszczyk](https://www.ruby-forum.com/u/MichaSSSSSJaszczyk)\
**Replies:** 8\
**Last updated:** [July 7, 2008, 4:43pm UTC](https://www.ruby-forum.com/t/keepalive-and-workers/142372 "2008-07-07T16:43:03Z")

</div>

Hi, I’m creating a website with Nginx and have some questions. When a user comes with a request, my application server has to connect to many other servers in order to create the response. Due to separation of concer…

---

## [Nginx-0.7.6](https://www.ruby-forum.com/t/nginx-0-7-6/142385)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 0\
**Last updated:** [July 7, 2008, 2:28pm UTC](https://www.ruby-forum.com/t/nginx-0-7-6/142385 "2008-07-07T14:28:01Z")

</div>

Changes with nginx 0.7.6 07 Jul 2008 \*) Bugfix: now if variables are used in the "access\_log" directive a request root existence is always tested. \*) Bugfix: the ngx\_http\_flv…

---

## [Nginx-0.5.37](https://www.ruby-forum.com/t/nginx-0-5-37/142383)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 0\
**Last updated:** [July 7, 2008, 2:26pm UTC](https://www.ruby-forum.com/t/nginx-0-5-37/142383 "2008-07-07T14:26:16Z")

</div>

Changes with nginx 0.5.37 07 Jul 2008 \*) Bugfix: if sub\_filter and SSI were used together, then responses might were transferred incorrectly. \*) Bugfix: large SSI inclusions m…

---

## [Fastcgi bug when doing something a little tricky](https://www.ruby-forum.com/t/fastcgi-bug-when-doing-something-a-little-tricky/142253)

<div class="topic-metadata">

**Author:** [@Kingsley\_F](https://www.ruby-forum.com/u/Kingsley_F)\
**Replies:** 6\
**Last updated:** [July 5, 2008, 10:30pm UTC](https://www.ruby-forum.com/t/fastcgi-bug-when-doing-something-a-little-tricky/142253 "2008-07-05T22:30:05Z")

</div>

Hi folks, Ive just found a bug/feature when using fastcgi in a slightly unusual manner. nginx version: nginx/0.6.31 http://websiteurl/article.php works fine however if you do http://websiteurl/article.php/blah/bla…

---

## [Default page](https://www.ruby-forum.com/t/default-page/141831)

<div class="topic-metadata">

**Author:** [@Marcos\_N](https://www.ruby-forum.com/u/Marcos_N)\
**Replies:** 12\
**Last updated:** [July 5, 2008, 2:13pm UTC](https://www.ruby-forum.com/t/default-page/141831 "2008-07-05T14:13:35Z")

</div>

I´m doing this to show a default favicon.ico, when the site doesn´t have one: location = /favicon.ico { if (!-f $request\_filename) { rewrite ^.\*$ /favicon.ico.default; } } location = /fav…

---

## [Streaming flv video to JW FLV media player 4.0](https://www.ruby-forum.com/t/streaming-flv-video-to-jw-flv-media-player-4-0/142157)

<div class="topic-metadata">

**Author:** [@thomas](https://www.ruby-forum.com/u/thomas)\
**Replies:** 4\
**Last updated:** [July 5, 2008, 1:20am UTC](https://www.ruby-forum.com/t/streaming-flv-video-to-jw-flv-media-player-4-0/142157 "2008-07-05T01:20:15Z")

</div>

Hi, Using this flash player in version 4.0: I have a problem when scrubbing. I think it is because, JW has updated his code to send the following request: myvideo.flv?start=2659763&width=280&client=FLASH%20MAC%209,0…

---

## [Protect streamed files from being downloaded](https://www.ruby-forum.com/t/protect-streamed-files-from-being-downloaded/142024)

<div class="topic-metadata">

**Author:** [@thomas](https://www.ruby-forum.com/u/thomas)\
**Replies:** 14\
**Last updated:** [July 4, 2008, 12:09pm UTC](https://www.ruby-forum.com/t/protect-streamed-files-from-being-downloaded/142024 "2008-07-04T12:09:31Z")

</div>

Hi list, I am currently using Nginx’ flv module for streaming some video, however I have one slight little problem, is that the file can still be easily downloaded. Is there a way I can protect against that? Is it an…

---

## [URL rewriting: last versus break](https://www.ruby-forum.com/t/url-rewriting-last-versus-break/142149)

<div class="topic-metadata">

**Author:** [@thomas](https://www.ruby-forum.com/u/thomas)\
**Replies:** 5\
**Last updated:** [July 3, 2008, 11:05pm UTC](https://www.ruby-forum.com/t/url-rewriting-last-versus-break/142149 "2008-07-03T23:05:01Z")

</div>

Hi, I don’t understand the difference between “last” and “break”. Can someone explain me how it works or point me to some more detailed info? Best regards,

---

## [Wordpress setup](https://www.ruby-forum.com/t/wordpress-setup/142122)

<div class="topic-metadata">

**Author:** [@Francisco\_Valladoli](https://www.ruby-forum.com/u/Francisco_Valladoli)\
**Replies:** 1\
**Last updated:** [July 3, 2008, 8:07pm UTC](https://www.ruby-forum.com/t/wordpress-setup/142122 "2008-07-03T20:07:53Z")

</div>

Hi folks I’m setting wordpres 2.5 in a BSD box, running nginx 0.5.35, my basic php setup is : server { listen 80; server\_name blog.bsdguy.net; root /var/www/blog.bsdguy.net/wordpress; index index.php; access\_log …

---

## [About location](https://www.ruby-forum.com/t/about-location/142108)

<div class="topic-metadata">

**Author:** [@Marcos\_N](https://www.ruby-forum.com/u/Marcos_N)\
**Replies:** 1\
**Last updated:** [July 3, 2008, 3:50pm UTC](https://www.ruby-forum.com/t/about-location/142108 "2008-07-03T15:50:32Z")

</div>

if a location match, the processing stops? I try to solve my last problem with this: location ~ / { if ($http\_user\_agent ~\* httperf) { access\_log off; } } and almos works, but my php scripts stop working. So it se…

---

## [Conditional access\_log](https://www.ruby-forum.com/t/conditional-access-log/142105)

<div class="topic-metadata">

**Author:** [@Marcos\_N](https://www.ruby-forum.com/u/Marcos_N)\
**Replies:** 0\
**Last updated:** [July 3, 2008, 2:06pm UTC](https://www.ruby-forum.com/t/conditional-access-log/142105 "2008-07-03T14:06:08Z")

</div>

How can I disable log to access\_log based on a runtime condition? Example that does not works: if ($http\_user\_agent ~\* httperf) { access\_log off; } thanks in advance.

---

## [Traffic Shaping](https://www.ruby-forum.com/t/traffic-shaping/127693)

<div class="topic-metadata">

**Author:** [@The\_Man](https://www.ruby-forum.com/u/The_Man)\
**Replies:** 4\
**Last updated:** [July 3, 2008, 1:11pm UTC](https://www.ruby-forum.com/t/traffic-shaping/127693 "2008-07-03T13:11:11Z")

</div>

Hi, almost 2 days now searching google and nginx wiki, but no luck so far, is it possible to limit bandwidth per vhost / server not per client as used in $limit\_rate ? Thanks in Advanced…

---

## [Emiller nginx modules guide](https://www.ruby-forum.com/t/emiller-nginx-modules-guide/140202)

<div class="topic-metadata">

**Author:** [@toddf](https://www.ruby-forum.com/u/toddf)\
**Replies:** 3\
**Last updated:** [July 3, 2008, 7:43am UTC](https://www.ruby-forum.com/t/emiller-nginx-modules-guide/140202 "2008-07-03T07:43:56Z")

</div>

Hi, I’ve just started working on a new nginx filter module… Not sure if I’ll get it finished, but did notice an issue in the emiller guide, here: Best Sign Company National City, CA | Custom Sign Shop and Wraps Near M…

---

## [SSL load balancing](https://www.ruby-forum.com/t/ssl-load-balancing/141995)

<div class="topic-metadata">

**Author:** [@Max\_Sevenfold](https://www.ruby-forum.com/u/Max_Sevenfold)\
**Replies:** 2\
**Last updated:** [July 3, 2008, 1:05am UTC](https://www.ruby-forum.com/t/ssl-load-balancing/141995 "2008-07-03T01:05:26Z")

</div>

Hello, Is it possible to use nginx as load balancer for SSL traffic? Will connections from nginx to web servers be encrypted? What are encryption options are available? Is there some fast non SSL encryption available…

---

## [Traffic between proxy and backend](https://www.ruby-forum.com/t/traffic-between-proxy-and-backend/141873)

<div class="topic-metadata">

**Author:** [@Bartlomiej\_Syryjczy](https://www.ruby-forum.com/u/Bartlomiej_Syryjczy)\
**Replies:** 3\
**Last updated:** [July 2, 2008, 7:41pm UTC](https://www.ruby-forum.com/t/traffic-between-proxy-and-backend/141873 "2008-07-02T19:41:10Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I’m using nginx as proxy (only) and Apache as backend. {Internet} -A- \[nginx\] -B- \[Apache\] Is the traffic between Internet and nginx (A) should be the same as betwe…

---

## [Protecting nginx from syn flood and DOS vs legit heavy traffic](https://www.ruby-forum.com/t/protecting-nginx-from-syn-flood-and-dos-vs-legit-heavy-traffic/137888)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 3\
**Last updated:** [July 2, 2008, 5:16pm UTC](https://www.ruby-forum.com/t/protecting-nginx-from-syn-flood-and-dos-vs-legit-heavy-traffic/137888 "2008-07-02T17:16:43Z")

</div>

We are using nginx as a public web server and need to do good common sense things to try and limit or prevent syn floods and related types of DOS attacks. I’ve researched iptables extensively and have found a lot of i…

---

## [Deleting pid files on ubuntu restart due to power down](https://www.ruby-forum.com/t/deleting-pid-files-on-ubuntu-restart-due-to-power-down/142004)

<div class="topic-metadata">

**Author:** [@jags](https://www.ruby-forum.com/u/jags)\
**Replies:** 3\
**Last updated:** [July 2, 2008, 5:11pm UTC](https://www.ruby-forum.com/t/deleting-pid-files-on-ubuntu-restart-due-to-power-down/142004 "2008-07-02T17:11:24Z")

</div>

hi guys we are running a ubuntu machine as our demo server for serving Ruby on rails apps we are using mysql,nginx,mongrel for serving the sites. the problem is if for any reason the power fails out and comes back m…

---

## [Mongrel claims to be available, but the site isn't visible](https://www.ruby-forum.com/t/mongrel-claims-to-be-available-but-the-site-isnt-visible/141931)

<div class="topic-metadata">

**Author:** [@clararaubertas](https://www.ruby-forum.com/u/clararaubertas)\
**Replies:** 2\
**Last updated:** [July 2, 2008, 4:39pm UTC](https://www.ruby-forum.com/t/mongrel-claims-to-be-available-but-the-site-isnt-visible/141931 "2008-07-02T16:39:50Z")

</div>

I’m trying to deploy a rails app for development on slicehost and I can’t seem to get mongrel to work correctly. When I run mongrel\_rails start I get: \*\* Starting Mongrel listening at 0.0.0.0:3000 \*\* Starting Rails …

---

## [301](https://www.ruby-forum.com/t/topic/141989)

<div class="topic-metadata">

**Author:** [@Marcos\_N](https://www.ruby-forum.com/u/Marcos_N)\
**Replies:** 3\
**Last updated:** [July 2, 2008, 4:36pm UTC](https://www.ruby-forum.com/t/topic/141989 "2008-07-02T16:36:10Z")

</div>

How can I overload the default html output for 301 header code? I try this: error\_page 301 /nginx-default/301.html; but 301 must be between 400 and 599

---

## [A catch-all and named server in a single configuration](https://www.ruby-forum.com/t/a-catch-all-and-named-server-in-a-single-configuration/140382)

<div class="topic-metadata">

**Author:** [@mlangenberg](https://www.ruby-forum.com/u/mlangenberg)\
**Replies:** 4\
**Last updated:** [July 2, 2008, 3:58pm UTC](https://www.ruby-forum.com/t/a-catch-all-and-named-server-in-a-single-configuration/140382 "2008-07-02T15:58:02Z")

</div>

Hi all, I want to setup a catch-all server for all domains referred to that ip. (It should pass various domains to a rails app). Therefore I use: server { server\_name \_; do some stuff } Now I there is one exceptio…

---

## [Nginx + .cgi/perl scripts](https://www.ruby-forum.com/t/nginx-cgi-perl-scripts/141940)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 14\
**Last updated:** [July 2, 2008, 4:34am UTC](https://www.ruby-forum.com/t/nginx-cgi-perl-scripts/141940 "2008-07-02T04:34:03Z")

</div>

This seems a bit overkill: http://wiki.codemongers.com/NginxSimpleCGI Not to mention it’s not persistent. Anyone have any better tools to keep Perl-capable fastcgi engines running? I have it supposedly running at the…

---

## [Per host php.ini](https://www.ruby-forum.com/t/per-host-php-ini/141916)

<div class="topic-metadata">

**Author:** [@Marcos\_N](https://www.ruby-forum.com/u/Marcos_N)\
**Replies:** 4\
**Last updated:** [July 1, 2008, 9:29pm UTC](https://www.ruby-forum.com/t/per-host-php-ini/141916 "2008-07-01T21:29:29Z")

</div>

is it possible to have diferent php.ini configurations for each virtualhost, like .htaccess while using mod\_php with apache? If not, there´s any workround?

---

## [ANNOUNCE: nginx 0.7.5 for Windows (win32) (2000, XP, Vista)](https://www.ruby-forum.com/t/announce-nginx-0-7-5-for-windows-win32-2000-xp-vista/141894)

<div class="topic-metadata">

**Author:** [@inspire22](https://www.ruby-forum.com/u/inspire22)\
**Replies:** 0\
**Last updated:** [July 1, 2008, 2:43pm UTC](https://www.ruby-forum.com/t/announce-nginx-0-7-5-for-windows-win32-2000-xp-vista/141894 "2008-07-01T14:43:19Z")

</div>

Announcement here - Feedback is always welcome: http://www.kevinworthington.com/index.php/2008/07/01/announcing-nginx-075-for-windows-win32/ Download nginx/0.7.5-win32 here: http://www.kevinworthington.com/nginx/win32…

---

## [Problem while uploading through flash](https://www.ruby-forum.com/t/problem-while-uploading-through-flash/141890)

<div class="topic-metadata">

**Author:** [@arca1n](https://www.ruby-forum.com/u/arca1n)\
**Replies:** 0\
**Last updated:** [July 1, 2008, 1:46pm UTC](https://www.ruby-forum.com/t/problem-while-uploading-through-flash/141890 "2008-07-01T13:46:31Z")

</div>

I have the following setup for my ror server. I have nginx serving a mongrel cluster. The nginx server has 6 worker processs, and 6 mongrel instances in the mongrel cluster. Now the trouble comes when I am uploading a…

---

## [What a worker does?](https://www.ruby-forum.com/t/what-a-worker-does/141817)

<div class="topic-metadata">

**Author:** [@Marcos\_N](https://www.ruby-forum.com/u/Marcos_N)\
**Replies:** 8\
**Last updated:** [July 1, 2008, 12:52pm UTC](https://www.ruby-forum.com/t/what-a-worker-does/141817 "2008-07-01T12:52:57Z")

</div>

Hi, I need some help to fully understand what´s a worker is. For example, if I have only one worker, and run a long request, like a file download/upload or a long running proxy script like php or rails. Will this blo…

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

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