# Server

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

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

---

## [Upload name conflict](https://www.ruby-forum.com/t/upload-name-conflict/205326)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [April 4, 2011, 8:40am UTC](https://www.ruby-forum.com/t/upload-name-conflict/205326 "2011-04-04T08:40:35Z")

</div>

mr valery, we have alredy discussed much more about upload module. if i want to save the file in real name .which part of your code i should focus and is this possible to change your code for file to get saved i…

---

## [Why am I needing to add ampersand manually in rewrites?](https://www.ruby-forum.com/t/why-am-i-needing-to-add-ampersand-manually-in-rewrites/205316)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [April 4, 2011, 7:54am UTC](https://www.ruby-forum.com/t/why-am-i-needing-to-add-ampersand-manually-in-rewrites/205316 "2011-04-04T07:54:59Z")

</div>

In a Wordpress/Buddypress installation, I am having to go through all my code and manually insert ampersands. For example, where there are links to things such as “?r=user” I am having to convert that into “?&r=user” …

---

## [Nginx Fancyindex Module v0.3.1](https://www.ruby-forum.com/t/nginx-fancyindex-module-v0-3-1/205321)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [April 4, 2011, 3:05am UTC](https://www.ruby-forum.com/t/nginx-fancyindex-module-v0-3-1/205321 "2011-04-04T03:05:44Z")

</div>

Hello to all, I know it has been quite a long time since I last wrote to the list, but I have been skimming almost daily through it. This weekend I got some spare time to hack a bit :slight\_smile: My Fancyindex modul…

---

## [Websockets - HTTP 1.1 support for backends](https://www.ruby-forum.com/t/websockets-http-1-1-support-for-backends/204830)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [April 3, 2011, 3:00pm UTC](https://www.ruby-forum.com/t/websockets-http-1-1-support-for-backends/204830 "2011-04-03T15:00:05Z")

</div>

Hi Is there a chance nginx will support HTTP 1.1? Websockets is about to become mainstream and we currently can’t use nginx as a proxy in front of a websocket server. Is there some other solution? Thanks

---

## [Request for Review: nginx module to strip whitespace from served pages](https://www.ruby-forum.com/t/request-for-review-nginx-module-to-strip-whitespace-from-served-pages/205275)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [April 2, 2011, 4:27pm UTC](https://www.ruby-forum.com/t/request-for-review-nginx-module-to-strip-whitespace-from-served-pages/205275 "2011-04-02T16:27:16Z")

</div>

Hi All, I’ve written a module to strip whitespace from text served by nginx in order to reduce bandwidth consumed. I’m currently testing my module on a staging server with nginx 0.7.67. However, since this is the fi…

---

## [Session expire](https://www.ruby-forum.com/t/session-expire/205268)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [April 2, 2011, 7:34am UTC](https://www.ruby-forum.com/t/session-expire/205268 "2011-04-02T07:34:38Z")

</div>

Hi Our server running ruby application using web server nginx + passenger , every thing work fine. But we are facing session out problem in nginx + passenger , some time working fine… some time automatically session …

---

## [24: Too many open files](https://www.ruby-forum.com/t/24-too-many-open-files/205243)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [April 1, 2011, 11:11pm UTC](https://www.ruby-forum.com/t/24-too-many-open-files/205243 "2011-04-01T23:11:36Z")

</div>

Hi. Hope someone can answer which open file limit is being reached (doesn’t seem right to me) tail error.log 2011/04/01 15:43:46 \[alert\] 18945#0: accept() failed (24: Too many open files) 2011/04/01 15:43:46 \[alert\]…

---

## [Rewrite rule help](https://www.ruby-forum.com/t/rewrite-rule-help/205217)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [April 1, 2011, 10:10pm UTC](https://www.ruby-forum.com/t/rewrite-rule-help/205217 "2011-04-01T22:10:25Z")

</div>

hi i’m running nginx with tomcat. I tried to rewrite all the incoming url with /en appended. ex: www.example.com/main/index.html will get rewrite to www.example.com/en/main/index.html Following is my nginx config: u…

---

## [Linux netfilter NAT variable](https://www.ruby-forum.com/t/linux-netfilter-nat-variable/200266)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 1\
**Last updated:** [April 1, 2011, 7:06pm UTC](https://www.ruby-forum.com/t/linux-netfilter-nat-variable/200266 "2011-04-01T19:06:33Z")

</div>

Hi, I’ve added very useful for me variable which helps get destination IP from netfilter NAT table, in this case we don’t need to make extra resolving requests, adding code for this variable, is it useful for other? …

---

## [Upload notification](https://www.ruby-forum.com/t/upload-notification/205178)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 8\
**Last updated:** [April 1, 2011, 1:37pm UTC](https://www.ruby-forum.com/t/upload-notification/205178 "2011-04-01T13:37:16Z")

</div>

hi all, i am uploading files via nginx upload module.can i pass query parameters to tomcat which is running on backend after every file upload is completed? can i do that via configuration? Posted at Nginx Forum:

---

## [Bad gateway error from nginx](https://www.ruby-forum.com/t/bad-gateway-error-from-nginx/205177)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [April 1, 2011, 12:57pm UTC](https://www.ruby-forum.com/t/bad-gateway-error-from-nginx/205177 "2011-04-01T12:57:42Z")

</div>

Hi I configured Nginx to serve as a reverse proxy for Apache. Sometimes Nginx is giving bad gateway error. This is how nginx configuration is done server { client\_max\_body\_size 20M; listen 80; server\_name sq-fe1.e…

---

## [Logwatch and nginx logs](https://www.ruby-forum.com/t/logwatch-and-nginx-logs/205077)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [April 1, 2011, 8:21am UTC](https://www.ruby-forum.com/t/logwatch-and-nginx-logs/205077 "2011-04-01T08:21:32Z")

</div>

Hello, Does anyone know how to configure logwatch to parse nginx logs instead of apache ones? Thanks. Alex. Posted at Nginx Forum:

---

## [Redirect a user based in country and querystring value](https://www.ruby-forum.com/t/redirect-a-user-based-in-country-and-querystring-value/205205)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [April 1, 2011, 8:20am UTC](https://www.ruby-forum.com/t/redirect-a-user-based-in-country-and-querystring-value/205205 "2011-04-01T08:20:17Z")

</div>

Hello, I’m looking for a way to redirect users from some countries and with a querystring value to a specific page. I tried this without success: location /register.php { if (($geoip\_country\_code = (BR|PT)) and ($ar…

---

## [HTTPLimitRequest Module: Whitelisting IPs](https://www.ruby-forum.com/t/httplimitrequest-module-whitelisting-ips/204859)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [March 31, 2011, 10:59am UTC](https://www.ruby-forum.com/t/httplimitrequest-module-whitelisting-ips/204859 "2011-03-31T10:59:44Z")

</div>

Hello, I am trying to use the HTTPLimitRequests Module to prevent excessive usage of resources on our server. However we also have some spikes which seem to originate from search bots or other allowed usage. We want t…

---

## [Reconfigure nginx](https://www.ruby-forum.com/t/reconfigure-nginx/205174)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [March 31, 2011, 9:22am UTC](https://www.ruby-forum.com/t/reconfigure-nginx/205174 "2011-03-31T09:22:09Z")

</div>

I’ve installed nginx and run site success.but now,i wish reconfigure nginx with same configure before and add send mail command. sudo ./configure --sbin-path=/usr/local/sbin --with-http\_stub\_status\_module --with-http\_f…

---

## [Log\_format help](https://www.ruby-forum.com/t/log-format-help/205180)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [March 31, 2011, 7:34am UTC](https://www.ruby-forum.com/t/log-format-help/205180 "2011-03-31T07:34:07Z")

</div>

hi all, I am uploading files through Nginx Server .i am using upload module configuration . when i try to write new variables in log .it is not printing new variales (for ex.–\>printing $upload\_file\_name doesn…

---

## [Execution order of HttpLimitReq, proxy\_pass and rewrites](https://www.ruby-forum.com/t/execution-order-of-httplimitreq-proxy-pass-and-rewrites/205138)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [March 30, 2011, 8:52pm UTC](https://www.ruby-forum.com/t/execution-order-of-httplimitreq-proxy-pass-and-rewrites/205138 "2011-03-30T20:52:21Z")

</div>

Hello, I have tried to rate limit a resource using HttpLimitReq that is passed on to a backend Apache server. Now when I try to limit this resource, nothing is blocked and all requests go through. When using static r…

---

## [Question about Perl CGI](https://www.ruby-forum.com/t/question-about-perl-cgi/205125)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [March 30, 2011, 6:06pm UTC](https://www.ruby-forum.com/t/question-about-perl-cgi/205125 "2011-03-30T18:06:08Z")

</div>

Hello, I am trying to integrate Nginx with Perl CGI script. I am following the How-TO http://blog.oddeven.info/nginx-perl-fastcgi-how-to/ My conf file is conf/nginx.conf worker\_processes 1; error\_log logs/error.l…

---

## [Query time](https://www.ruby-forum.com/t/query-time/205084)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [March 30, 2011, 6:02pm UTC](https://www.ruby-forum.com/t/query-time/205084 "2011-03-30T18:02:26Z")

</div>

Greetings, I am not really sure if this is the right place to ask something like that but seeing all those available mods doing almost everything, here it goes. Is there any way (php-cgi mod?) that i can use to measu…

---

## [HttpLimitReq Module not blocking every request?](https://www.ruby-forum.com/t/httplimitreq-module-not-blocking-every-request/205132)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [March 30, 2011, 2:57pm UTC](https://www.ruby-forum.com/t/httplimitreq-module-not-blocking-every-request/205132 "2011-03-30T14:57:38Z")

</div>

Hello, I am trying to understand how the HttpLimitReq Module works. I have read that it uses the Leaky Bucket Algorithm, however I am not sure how to understand the behaviour I am observing. Here is my test setup: li…

---

## [Upload module error](https://www.ruby-forum.com/t/upload-module-error/205091)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 10\
**Last updated:** [March 30, 2011, 6:37am UTC](https://www.ruby-forum.com/t/upload-module-error/205091 "2011-03-30T06:37:19Z")

</div>

hi , i am using nginx upload module to upload files.i am using the following configuration and file is uploaded successfully but 405 Not Allowed error is returned to browser from Server.can someone help what is the p…

---

## [Nginx rewrite question](https://www.ruby-forum.com/t/nginx-rewrite-question/205085)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [March 29, 2011, 2:59pm UTC](https://www.ruby-forum.com/t/nginx-rewrite-question/205085 "2011-03-29T14:59:41Z")

</div>

Hello I want to konw nginx rewrite ,how to write rewrite /indxe.htm to /dir/ ex: XXXX redirecting http://xxxx.com/ Posted at Nginx Forum:

---

## [Getting ip address from fastcgi for Wordpress plugin](https://www.ruby-forum.com/t/getting-ip-address-from-fastcgi-for-wordpress-plugin/205082)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [March 29, 2011, 1:14pm UTC](https://www.ruby-forum.com/t/getting-ip-address-from-fastcgi-for-wordpress-plugin/205082 "2011-03-29T13:14:40Z")

</div>

I am running a Redhat EL5 server using Nginx 0.8.54 on the frontend, with Apache 2.2.3 on the backend and mod\_rpaf to forward the IP address to be used in filtering spam from Wordpress comments using the Spam Free Wor…

---

## [A lot of connections](https://www.ruby-forum.com/t/a-lot-of-connections/205087)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [March 29, 2011, 10:05am UTC](https://www.ruby-forum.com/t/a-lot-of-connections/205087 "2011-03-29T10:05:41Z")

</div>

Hi, We have in our production environment several servers that were once running tomcat directly on the edge to the web but since then have been modified so that the tomcat is proxied by nginx. I have Zabbix set up t…

---

## [Upload module can not upload file (Permission denied)](https://www.ruby-forum.com/t/upload-module-can-not-upload-file-permission-denied/205070)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 9\
**Last updated:** [March 29, 2011, 9:03am UTC](https://www.ruby-forum.com/t/upload-module-can-not-upload-file-permission-denied/205070 "2011-03-29T09:03:56Z")

</div>

Hi, I am trying to use upload moduel to upload file. I am following the instructions: http://www.grid.net.ru/nginx/upload.en.html However, I encountered “503 Service Temporarily Unavailable”. When I looked at error.…

---

## [Chunkin module is not working](https://www.ruby-forum.com/t/chunkin-module-is-not-working/204922)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [March 29, 2011, 8:44am UTC](https://www.ruby-forum.com/t/chunkin-module-is-not-working/204922 "2011-03-29T08:44:11Z")

</div>

I am trying to use chunkin module in nginx, which is I have the problem to use it. I add “chunkin on” inside server config. However, when I turn on nginx server, i enountered the error: \[emerg\]: unknown directive “c…

---

## [Upload module help](https://www.ruby-forum.com/t/upload-module-help/204847)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 10\
**Last updated:** [March 29, 2011, 6:58am UTC](https://www.ruby-forum.com/t/upload-module-help/204847 "2011-03-29T06:58:47Z")

</div>

hi, i am using nginx upload module to upload files.i am running this in ubuntu.when i upload files .its working fine .but name of the file is something different .this is not taking the upload \_set\_form\_field values.…

---

## [How to change Root URL](https://www.ruby-forum.com/t/how-to-change-root-url/205066)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 28, 2011, 11:57pm UTC](https://www.ruby-forum.com/t/how-to-change-root-url/205066 "2011-03-28T23:57:40Z")

</div>

Hi, I am new to nginx. How can I change my URL from lets say http://ip:80/sample/chap1/demo.jspto http://ip:80/\*test/\*sample/chap1/demo.jsp { pl note the path test between IP:port and sample) rgds,

---

## [Very strange behaviour - advice needed](https://www.ruby-forum.com/t/very-strange-behaviour-advice-needed/205055)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [March 28, 2011, 8:11pm UTC](https://www.ruby-forum.com/t/very-strange-behaviour-advice-needed/205055 "2011-03-28T20:11:31Z")

</div>

Hi all, I have a php system that generates some quite large (200K-800K, 4-18 page) .pdf files. It has been working fine for months, on Ubuntu/nginx 07.67 and Windows Apache/2.2.11 (Win32) PHP/5.3.0 Then a recent cha…

---

## [Error\_page](https://www.ruby-forum.com/t/error-page/205050)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [March 28, 2011, 7:56pm UTC](https://www.ruby-forum.com/t/error-page/205050 "2011-03-28T19:56:41Z")

</div>

I just noticed that the error\_page directive strips post data… I thought a patch was submitted for this years ago? Any chance of getting this patched? Us people using dynamic sites where we use internal redirects li…

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

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