# Server

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

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

---

## [Apache -\> Nginx miration problem. Different tcp options?](https://www.ruby-forum.com/t/apache-nginx-miration-problem-different-tcp-options/171195)

<div class="topic-metadata">

**Author:** [@atlantos](https://www.ruby-forum.com/u/atlantos)\
**Replies:** 4\
**Last updated:** [June 29, 2009, 2:02pm UTC](https://www.ruby-forum.com/t/apache-nginx-miration-problem-different-tcp-options/171195 "2009-06-29T14:02:58Z")

</div>

Hello, I am in migration process of Joomla with JoomGalery component from apache to nginx. Joomgallery uses http://jupload.sourceforge.net/ applet to upload images. Problem is that Jupload applet do not upload images …

---

## [Disable gzip inside an IF statement?](https://www.ruby-forum.com/t/disable-gzip-inside-an-if-statement/171138)

<div class="topic-metadata">

**Author:** [@cxcxcx](https://www.ruby-forum.com/u/cxcxcx)\
**Replies:** 1\
**Last updated:** [June 29, 2009, 1:35pm UTC](https://www.ruby-forum.com/t/disable-gzip-inside-an-if-statement/171138 "2009-06-29T13:35:20Z")

</div>

I need to conditionally enable gzip, based on a variable. When I try to use an “if” statement, it doesn’t work, nginx complains I can’t use “gzip” inside of “if”. Looking at the manual, I see gzip has the following co…

---

## [Anything wrong with using 599, 598 error codes for logic?](https://www.ruby-forum.com/t/anything-wrong-with-using-599-598-error-codes-for-logic/171179)

<div class="topic-metadata">

**Author:** [@brianmercer](https://www.ruby-forum.com/u/brianmercer)\
**Replies:** 1\
**Last updated:** [June 29, 2009, 1:18pm UTC](https://www.ruby-forum.com/t/anything-wrong-with-using-599-598-error-codes-for-logic/171179 "2009-06-29T13:18:17Z")

</div>

I’m new here, thanks. I’m writing rules for Drupal using the Boost static caching module (like wp-super-cache). Is there anything wrong with using fake error codes like 599, 598 and internal locations to control log…

---

## [ERROR: Error installing mongrel:](https://www.ruby-forum.com/t/error-error-installing-mongrel/170847)

<div class="topic-metadata">

**Author:** [@ritesh008](https://www.ruby-forum.com/u/ritesh008)\
**Replies:** 1\
**Last updated:** [June 29, 2009, 8:52am UTC](https://www.ruby-forum.com/t/error-error-installing-mongrel/170847 "2009-06-29T08:52:04Z")

</div>

Hi, I am getting some problem while installing mongrel on GoDaddy(fedora) server. Env is :: \[root@ip-97-74-86-181 bin\]# gem environment RubyGems Environment: RUBYGEMS VERSION: 1.3.4 RUBY VERSION: 1.8.6 (2008-03-03…

---

## [Nginx 0.8.4 Trying to bind on port 80?](https://www.ruby-forum.com/t/nginx-0-8-4-trying-to-bind-on-port-80/171198)

<div class="topic-metadata">

**Author:** [@olefebvre](https://www.ruby-forum.com/u/olefebvre)\
**Replies:** 8\
**Last updated:** [June 29, 2009, 2:32am UTC](https://www.ruby-forum.com/t/nginx-0-8-4-trying-to-bind-on-port-80/171198 "2009-06-29T02:32:54Z")

</div>

My configuration is: Apache listening on port 80, Iptables redirecting port 80 to port 8080, Nginx listening on port 8080. I have been using Nginx with the same configuration for several months (0.7.x and 0.8.x): –c…

---

## [Rewrite every req to xxx.html unless coming from xxx.xxx.xxx.xxx?](https://www.ruby-forum.com/t/rewrite-every-req-to-xxx-html-unless-coming-from-xxx-xxx-xxx-xxx/171003)

<div class="topic-metadata">

**Author:** [@Pahud](https://www.ruby-forum.com/u/Pahud)\
**Replies:** 10\
**Last updated:** [June 27, 2009, 8:07pm UTC](https://www.ruby-forum.com/t/rewrite-every-req-to-xxx-html-unless-coming-from-xxx-xxx-xxx-xxx/171003 "2009-06-27T20:07:34Z")

</div>

Hi, I’d like to rewrite every request to xxx.html unless they are coming from my 2 trusted IP addresses. What can I do? In the mean time, I need to avoid the loop to request the xxx.html. Any example appreciated. p…

---

## [CMS suggestions?](https://www.ruby-forum.com/t/cms-suggestions/171030)

<div class="topic-metadata">

**Author:** [@Nuno\_MagalhSSSSes](https://www.ruby-forum.com/u/Nuno_MagalhSSSSes)\
**Replies:** 3\
**Last updated:** [June 27, 2009, 2:13pm UTC](https://www.ruby-forum.com/t/cms-suggestions/171030 "2009-06-27T14:13:58Z")

</div>

Greetings, I’d like to implement a Content Management System with the following characteristics, on a server running nginx of course: free and open-source php-based either database-independent (though PDO or somethin…

---

## [Nginx.conf rewritten](https://www.ruby-forum.com/t/nginx-conf-rewritten/171116)

<div class="topic-metadata">

**Author:** [@Pedro\_Mata-Mouros\_F](https://www.ruby-forum.com/u/Pedro_Mata-Mouros_F)\
**Replies:** 3\
**Last updated:** [June 27, 2009, 11:39am UTC](https://www.ruby-forum.com/t/nginx-conf-rewritten/171116 "2009-06-27T11:39:43Z")

</div>

Greetings, It seems that /etc/nginx.conf gets replaced by the default in each new nginx install. Do you confirm this? Any chance it doesn’t replace that file, if it exists already, by default? Thank you. Pedro.

---

## [Macro functionality](https://www.ruby-forum.com/t/macro-functionality/170754)

<div class="topic-metadata">

**Author:** [@Jools\_W](https://www.ruby-forum.com/u/Jools_W)\
**Replies:** 4\
**Last updated:** [June 27, 2009, 10:16am UTC](https://www.ruby-forum.com/t/macro-functionality/170754 "2009-06-27T10:16:37Z")

</div>

using apache and mod\_macro is it easy to setup a block of config, that can be reused, and makes maintaining complicated configurations possible. Is there anything for nginx like this ? Best Regards Jools

---

## [Virtual hosts](https://www.ruby-forum.com/t/virtual-hosts/171094)

<div class="topic-metadata">

**Author:** [@Joel\_Dahl](https://www.ruby-forum.com/u/Joel_Dahl)\
**Replies:** 3\
**Last updated:** [June 27, 2009, 9:21am UTC](https://www.ruby-forum.com/t/virtual-hosts/171094 "2009-06-27T09:21:04Z")

</div>

Hi, I use the following line in nginx.conf to serve websites for a bunch of virtual hosts: include /usr/local/etc/nginx/vhosts/\*.conf; …and a typical configuration file for each virtual host looks like this: server…

---

## [Eval module 1.0.1](https://www.ruby-forum.com/t/eval-module-1-0-1/171066)

<div class="topic-metadata">

**Author:** [@Valery\_K](https://www.ruby-forum.com/u/Valery_K)\
**Replies:** 4\
**Last updated:** [June 27, 2009, 9:21am UTC](https://www.ruby-forum.com/t/eval-module-1-0-1/171066 "2009-06-27T09:21:03Z")

</div>

Greetings! I release a new module for evaluating response of proxied server or memcached into one or set of variables. Possible application: retrieving session from memcached locating a node or cluster responsible f…

---

## [0.7.60: "could not open error log"](https://www.ruby-forum.com/t/0-7-60-could-not-open-error-log/171092)

<div class="topic-metadata">

**Author:** [@Toni\_M](https://www.ruby-forum.com/u/Toni_M)\
**Replies:** 2\
**Last updated:** [June 26, 2009, 10:18pm UTC](https://www.ruby-forum.com/t/0-7-60-could-not-open-error-log/171092 "2009-06-26T22:18:25Z")

</div>

Hi, while going from 0.6.x to 0.7.6\[01\], I notice the following: $ nginx -t -c /my/private/path/conf/nginx.conf \[alert\]: could not open error log file: open() “/var/log/nginx/error.log” failed (13: Permission denied) …

---

## [Re: nginx.conf rewritten](https://www.ruby-forum.com/t/re-nginx-conf-rewritten/171119)

<div class="topic-metadata">

**Author:** [@joviyach](https://www.ruby-forum.com/u/joviyach)\
**Replies:** 0\
**Last updated:** [June 26, 2009, 5:19pm UTC](https://www.ruby-forum.com/t/re-nginx-conf-rewritten/171119 "2009-06-26T17:19:30Z")

</div>

That has never happened on my servers. I use a different path but that should not matter. Are you compiling yourself? Jim

---

## [Installing ssl](https://www.ruby-forum.com/t/installing-ssl/171079)

<div class="topic-metadata">

**Author:** [@iberci](https://www.ruby-forum.com/u/iberci)\
**Replies:** 1\
**Last updated:** [June 26, 2009, 4:02am UTC](https://www.ruby-forum.com/t/installing-ssl/171079 "2009-06-26T04:02:20Z")

</div>

Can anyone point me to a document or step by step instructions as to how to install SSL / make it work with nginx? thanks

---

## [Proxy\_pass to multi background monit http services](https://www.ruby-forum.com/t/proxy-pass-to-multi-background-monit-http-services/161554)

<div class="topic-metadata">

**Author:** [@seven](https://www.ruby-forum.com/u/seven)\
**Replies:** 3\
**Last updated:** [June 25, 2009, 11:52pm UTC](https://www.ruby-forum.com/t/proxy-pass-to-multi-background-monit-http-services/161554 "2009-06-25T23:52:28Z")

</div>

monit has an embedded web interface, I want to use nginx to proxy several servers: http://monit.example.com/server1 http://monit.example.com/server2 http://monit.example.com/server3 http://monit.example.com/server4 …

---

## [Is there anything special I need to do to get ioncube working on nginx / php-fpm install?](https://www.ruby-forum.com/t/is-there-anything-special-i-need-to-do-to-get-ioncube-working-on-nginx-php-fpm-install/171059)

<div class="topic-metadata">

**Author:** [@iberci](https://www.ruby-forum.com/u/iberci)\
**Replies:** 2\
**Last updated:** [June 25, 2009, 10:33pm UTC](https://www.ruby-forum.com/t/is-there-anything-special-i-need-to-do-to-get-ioncube-working-on-nginx-php-fpm-install/171059 "2009-06-25T22:33:55Z")

</div>

Hi All, I needed to install some php software that requires Zend and Ioncube. I have both Zend and Ioncube installed but it doesn’t seem to be working properly (i.e. the php files are not being decoded by ioncube) T…

---

## [How to block by user agent?!](https://www.ruby-forum.com/t/how-to-block-by-user-agent/171028)

<div class="topic-metadata">

**Author:** [@sovok](https://www.ruby-forum.com/u/sovok)\
**Replies:** 3\
**Last updated:** [June 25, 2009, 5:56pm UTC](https://www.ruby-forum.com/t/how-to-block-by-user-agent/171028 "2009-06-25T17:56:33Z")

</div>

Im using nginx 0.7.60 for my blog, but I get a lot of weird requests from some users agent “Zulu\_1.0”. I wanna block it. How could this be done in nginx? If anyone has an idea please let me know. Sample from access\_lo…

---

## [Does http\_flv\_module suport variable download speed limit?](https://www.ruby-forum.com/t/does-http-flv-module-suport-variable-download-speed-limit/171022)

<div class="topic-metadata">

**Author:** [@Hua\_Su](https://www.ruby-forum.com/u/Hua_Su)\
**Replies:** 0\
**Last updated:** [June 25, 2009, 12:35pm UTC](https://www.ruby-forum.com/t/does-http-flv-module-suport-variable-download-speed-limit/171022 "2009-06-25T12:35:15Z")

</div>

Hi all,Because different flv files have different video/audio bit rates, it’s better to have different download speed limits for different flv files based on their bit rates. Is it possible to add this feature to htt…

---

## [Why doesn't this work?](https://www.ruby-forum.com/t/why-doesnt-this-work/170996)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 7\
**Last updated:** [June 25, 2009, 6:20am UTC](https://www.ruby-forum.com/t/why-doesnt-this-work/170996 "2009-06-25T06:20:11Z")

</div>

server { listen 80; index index.php index.html; server\_name ~^(.\*?).mike.foo.com$; set $name $1; root /home/mike/web/$name; location / { } include /etc/nginx/defaults.conf; include /etc/nginx/confs/development.co…

---

## [Tru64 SSI\_FD\_NEWMAX patch](https://www.ruby-forum.com/t/tru64-ssi-fd-newmax-patch/170997)

<div class="topic-metadata">

**Author:** [@Dustin\_Marquess](https://www.ruby-forum.com/u/Dustin_Marquess)\
**Replies:** 0\
**Last updated:** [June 25, 2009, 2:56am UTC](https://www.ruby-forum.com/t/tru64-ssi-fd-newmax-patch/170997 "2009-06-25T02:56:39Z")

</div>

Attached ugly patch attempts to add Tru64 SSI\_FD\_NEWMAX support to nginx. This allows nginx under Tru64 to use up to 64k FDs instead of just 4k. Technical details are at: http://h30097.www3.hp.com/docs/base\_doc/DOCU…

---

## [Building a custom NGINX module](https://www.ruby-forum.com/t/building-a-custom-nginx-module/170955)

<div class="topic-metadata">

**Author:** [@Maik\_Broemme](https://www.ruby-forum.com/u/Maik_Broemme)\
**Replies:** 0\
**Last updated:** [June 24, 2009, 12:40pm UTC](https://www.ruby-forum.com/t/building-a-custom-nginx-module/170955 "2009-06-24T12:40:55Z")

</div>

Hi, we are currently seeking a freelancer to build a customer NGINX module. I send it to the list, because many people here are involved in the NGINX development. Below is a small project description. This project is…

---

## [Nginx 499's returned for apache 200's](https://www.ruby-forum.com/t/nginx-499s-returned-for-apache-200s/165174)

<div class="topic-metadata">

**Author:** [@phaitour](https://www.ruby-forum.com/u/phaitour)\
**Replies:** 2\
**Last updated:** [June 24, 2009, 9:48am UTC](https://www.ruby-forum.com/t/nginx-499s-returned-for-apache-200s/165174 "2009-06-24T09:48:25Z")

</div>

hi all, i’ve read through the posts regarding 499s and i know it’s meant for “client closed connections” but it’s happening way too often for that to be the case. i’m seeing it at a frequency of around 10-15% of all …

---

## [What do these requests mean - do they need to be blocked/denied](https://www.ruby-forum.com/t/what-do-these-requests-mean-do-they-need-to-be-blocked-denied/170875)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [June 24, 2009, 8:05am UTC](https://www.ruby-forum.com/t/what-do-these-requests-mean-do-they-need-to-be-blocked-denied/170875 "2009-06-24T08:05:51Z")

</div>

I m seeing a lot of these requests 117.99.178.81 - - \[23/Jun/2009:12:41:57 -0700\] “-” 400 0 “-” “-” 0.000 what do these requests mean - do they need to be blocked/denied Thanks 117.99.178.81 - - \[23/Jun/2009:12:41:57…

---

## [How much Active connections on nginx for window?](https://www.ruby-forum.com/t/how-much-active-connections-on-nginx-for-window/170729)

<div class="topic-metadata">

**Author:** [@afen](https://www.ruby-forum.com/u/afen)\
**Replies:** 9\
**Last updated:** [June 24, 2009, 6:48am UTC](https://www.ruby-forum.com/t/how-much-active-connections-on-nginx-for-window/170729 "2009-06-24T06:48:00Z")

</div>

i stress test nginx on window2003,but the action connections never in excess of 512ã€‚ why?my config: worker\_processes 1; events { worker\_connections 1024; } Posted at Nginx Forum:

---

## [Nginx high memory usage in benchmarks](https://www.ruby-forum.com/t/nginx-high-memory-usage-in-benchmarks/170454)

<div class="topic-metadata">

**Author:** [@martinr](https://www.ruby-forum.com/u/martinr)\
**Replies:** 3\
**Last updated:** [June 24, 2009, 6:17am UTC](https://www.ruby-forum.com/t/nginx-high-memory-usage-in-benchmarks/170454 "2009-06-24T06:17:37Z")

</div>

hello, i’ve been running some benchmarks for static content with httperf and autobench to compare nginx to apache’s worker mpm. i used the default config on apache (2 worker processes, 150 max clients) and set nginx t…

---

## [Nginx-0.8.4](https://www.ruby-forum.com/t/nginx-0-8-4/170744)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 1\
**Last updated:** [June 24, 2009, 5:44am UTC](https://www.ruby-forum.com/t/nginx-0-8-4/170744 "2009-06-24T05:44:54Z")

</div>

Changes with nginx 0.8.4 22 Jun 2009 \*) Bugfix: nginx could not be built --without-http-cache; the bug had appeared in 0.8.3.

---

## [Suggestion about expansibility of the data](https://www.ruby-forum.com/t/suggestion-about-expansibility-of-the-data/170840)

<div class="topic-metadata">

**Author:** [@Chieu](https://www.ruby-forum.com/u/Chieu)\
**Replies:** 4\
**Last updated:** [June 24, 2009, 4:40am UTC](https://www.ruby-forum.com/t/suggestion-about-expansibility-of-the-data/170840 "2009-06-24T04:40:37Z")

</div>

hi, developers Because of the modularity of nginx, I can extend the new function easily. But there are some requirements which need to modify the original source code. For example: I want to add a variable which re…

---

## [Error 499 nginx + php-fpm](https://www.ruby-forum.com/t/error-499-nginx-php-fpm/165706)

<div class="topic-metadata">

**Author:** [@Deepan\_C](https://www.ruby-forum.com/u/Deepan_C)\
**Replies:** 3\
**Last updated:** [June 23, 2009, 5:07pm UTC](https://www.ruby-forum.com/t/error-499-nginx-php-fpm/165706 "2009-06-23T17:07:42Z")

</div>

Hi, I was using php fast cgi before. Just installed a fresh machine with the same config and replaced php-fastcgi with php-fpm. Now my access logs show return status 499 for 20% of the connections. The whole thing…

---

## [Hello world upload\_module adds 2 sec delay to file uploads](https://www.ruby-forum.com/t/hello-world-upload-module-adds-2-sec-delay-to-file-uploads/170791)

<div class="topic-metadata">

**Author:** [@jack](https://www.ruby-forum.com/u/jack)\
**Replies:** 2\
**Last updated:** [June 23, 2009, 4:27pm UTC](https://www.ruby-forum.com/t/hello-world-upload-module-adds-2-sec-delay-to-file-uploads/170791 "2009-06-23T16:27:08Z")

</div>

Uploading a small “hello world” file using upload\_module takes about 2 seconds, while not using upload\_module and passing it directly to my fastcgi is almost instantaneous. To debug the problem I modified the upload\_…

---

## [DoS attack in the wild](https://www.ruby-forum.com/t/dos-attack-in-the-wild/170631)

<div class="topic-metadata">

**Author:** [@luben\_karavelov](https://www.ruby-forum.com/u/luben_karavelov)\
**Replies:** 20\
**Last updated:** [June 23, 2009, 10:19am UTC](https://www.ruby-forum.com/t/dos-attack-in-the-wild/170631 "2009-06-23T10:19:15Z")

</div>

A DoS attack against number of http servers is available and has hit slashdot today: Out of the box nginx is also vulnerable (I have tested it on latest 0.7 installation). A quick fix for the vulnerability follows: P…

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

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