# Server

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

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

---

## [Limit\_rate but for upload](https://www.ruby-forum.com/t/limit-rate-but-for-upload/214359)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [November 29, 2011, 11:20pm UTC](https://www.ruby-forum.com/t/limit-rate-but-for-upload/214359 "2011-11-29T23:20:21Z")

</div>

Hello guys, is there any way to limit upload rate (from user to server) like with limit\_rate directive for download? I’ve found that this is possible with upload\_module but I do not want to use upload\_module just for…

---

## [Nginx-1.1.9](https://www.ruby-forum.com/t/nginx-1-1-9/214319)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [November 29, 2011, 7:26pm UTC](https://www.ruby-forum.com/t/nginx-1-1-9/214319 "2011-11-29T19:26:26Z")

</div>

Changes with nginx 1.1.9 28 Nov 2011 \*) Change: now double quotes are encoded in an "echo" SSI-command output. Thanks to Zaur Abasmirzoev. \*) Feature: the "valid" paramete…

---

## [Nginx-lua and nginx upload module](https://www.ruby-forum.com/t/nginx-lua-and-nginx-upload-module/214262)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 20\
**Last updated:** [November 29, 2011, 4:51pm UTC](https://www.ruby-forum.com/t/nginx-lua-and-nginx-upload-module/214262 "2011-11-29T16:51:46Z")

</div>

Hi all, I’m hoping to write an nginx-lua script which handles file uploads from the nginx upload module. I can do this fine using an external backend and the upload\_pass directive, but the lua module has no functiona…

---

## [Nginx\_cross\_origin\_module - support cross origin resource sharing protocol in Nginx](https://www.ruby-forum.com/t/nginx-cross-origin-module-support-cross-origin-resource-sharing-protocol-in-nginx/214336)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [November 29, 2011, 9:36am UTC](https://www.ruby-forum.com/t/nginx-cross-origin-module-support-cross-origin-resource-sharing-protocol-in-nginx/214336 "2011-11-29T09:36:28Z")

</div>

Hi, folks, I’m pleased to release the nginx\_cross\_origin\_module. This module can process the cross-origin resource sharing Javascript request with this protocol (http://www.w3.org/TR/cors/). This module follows the p…

---

## [Client wrongly closed keepalive connection problem](https://www.ruby-forum.com/t/client-wrongly-closed-keepalive-connection-problem/214314)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [November 28, 2011, 7:14pm UTC](https://www.ruby-forum.com/t/client-wrongly-closed-keepalive-connection-problem/214314 "2011-11-28T19:14:46Z")

</div>

Hi all, we are some college students maintaining a linux distribution mirror. We are not experienced but now meet with this problem. There is a pxe system in our college to help every computer boot a linux system or …

---

## [Is it possible to use a remote file to store servernames? server\_name $somevariable-file?](https://www.ruby-forum.com/t/is-it-possible-to-use-a-remote-file-to-store-servernames-server-name-somevariable-file/214310)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [November 28, 2011, 1:03pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-use-a-remote-file-to-store-servernames-server-name-somevariable-file/214310 "2011-11-28T13:03:47Z")

</div>

I need to add a lot of sub-domains to a configuration file as users register on our website our script needs to add the sub-domain. Is it possible to use a variable or function in the config file so it loads a remote …

---

## [List modules compiled with nginx in ec2?](https://www.ruby-forum.com/t/list-modules-compiled-with-nginx-in-ec2/214260)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [November 28, 2011, 10:14am UTC](https://www.ruby-forum.com/t/list-modules-compiled-with-nginx-in-ec2/214260 "2011-11-28T10:14:47Z")

</div>

I setup an amazon ec2 instance that had nginx pre-compiled is there a way to see what optional modules have been configured? Thanks Posted at Nginx Forum:

---

## [Perl - awstats.pl config](https://www.ruby-forum.com/t/perl-awstats-pl-config/214298)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [November 27, 2011, 11:48pm UTC](https://www.ruby-forum.com/t/perl-awstats-pl-config/214298 "2011-11-27T23:48:39Z")

</div>

Hello, i try to implement a awstats.pl for every vhost on my nginx installation. I tried it the following: location ~ ^/awstats/ { gzip off; include /etc/nginx/fastcgi\_params; fastcgi\_pass unix:/var/run/fcgiwrap.s…

---

## [Is there a bug in ngx\_http\_upstream\_module's broken connection check code?](https://www.ruby-forum.com/t/is-there-a-bug-in-ngx-http-upstream-modules-broken-connection-check-code/208639)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [November 27, 2011, 10:15pm UTC](https://www.ruby-forum.com/t/is-there-a-bug-in-ngx-http-upstream-modules-broken-connection-check-code/208639 "2011-11-27T22:15:07Z")

</div>

In the function “ngx\_http\_upstream\_check\_broken\_connection” of ngx\_http\_upstream.c, there is a code segment like below: n = recv(c-\>fd, buf, 1, MSG\_PEEK); … else { /\* n == 0 \*/ err = 0; } Here use whether receivin…

---

## [404 error when %20 is in file name](https://www.ruby-forum.com/t/404-error-when-20-is-in-file-name/214295)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [November 27, 2011, 6:22pm UTC](https://www.ruby-forum.com/t/404-error-when-20-is-in-file-name/214295 "2011-11-27T18:22:13Z")

</div>

I’m running the latest version of nginx. When I try to serve a file with a “%20” in the name (example funny%20picture.jpg) I get a 404 error. The filename itself has the “%20” in it, not a space. But nginx refuses to …

---

## [Integrating Nginx with polarssl instead of openssl](https://www.ruby-forum.com/t/integrating-nginx-with-polarssl-instead-of-openssl/214287)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [November 27, 2011, 9:57am UTC](https://www.ruby-forum.com/t/integrating-nginx-with-polarssl-instead-of-openssl/214287 "2011-11-27T09:57:01Z")

</div>

In the domain of SSL libraries, while OpenSSL is like Apache, PolarSSL is much like Nginx: more compact and more secure. PolarSSL http://polarssl.org/ has compact modular code, small memory footprint and is being favo…

---

## [Really, truly controlling Nginx error pages](https://www.ruby-forum.com/t/really-truly-controlling-nginx-error-pages/214286)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [November 27, 2011, 7:07am UTC](https://www.ruby-forum.com/t/really-truly-controlling-nginx-error-pages/214286 "2011-11-27T07:07:44Z")

</div>

I have googled and searched through this forum. But this syntax in the config file does NOT help: # recursive\_error\_pages on; error\_page 403 404 500 502 503 504 /error.htm; It works sometimes, but often it just shows…

---

## [Positioning of nginx](https://www.ruby-forum.com/t/positioning-of-nginx/214275)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [November 27, 2011, 1:06am UTC](https://www.ruby-forum.com/t/positioning-of-nginx/214275 "2011-11-27T01:06:36Z")

</div>

We can deploy a web system like below: HAProxy \<----\>\[optinal Varnish\] \<-----\>nginx+uWSGI(communicate locally) nginx \<------\> uWSGI(or cluster) as nginx can ‘cache’ and ‘proxy’, the positioning of nginx is confusing …

---

## [Add\_header for 206?](https://www.ruby-forum.com/t/add-header-for-206/214250)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [November 27, 2011, 12:53am UTC](https://www.ruby-forum.com/t/add-header-for-206/214250 "2011-11-27T00:53:39Z")

</div>

Hi! Quote from wiki: Add\_header “Adds headers to the HTTP response when the response code is equal to 200, 204, 301, 302 or 304.” Any reason we missing 206?

---

## [Nginx 1.1.0 not working on Windows 2000 Server](https://www.ruby-forum.com/t/nginx-1-1-0-not-working-on-windows-2000-server/214265)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [November 26, 2011, 9:58pm UTC](https://www.ruby-forum.com/t/nginx-1-1-0-not-working-on-windows-2000-server/214265 "2011-11-26T21:58:38Z")

</div>

A customer of mine is running an ancient Windows 2000 Server installation, on which I have been running an old version of nginx. I want to upgrade to a more recent version, but nginx 1.1.0 is not working for me. I get…

---

## [Nginx behind load balancer](https://www.ruby-forum.com/t/nginx-behind-load-balancer/214087)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 12\
**Last updated:** [November 26, 2011, 9:45pm UTC](https://www.ruby-forum.com/t/nginx-behind-load-balancer/214087 "2011-11-26T21:45:39Z")

</div>

Hi Guys, This weekend for scalability we tried putting our nginx servers behind amazon’s elastic load balancers and came across a road block: it does not transparently pass the user IP and header information to nginx…

---

## [Data synchronization (load balancing)](https://www.ruby-forum.com/t/data-synchronization-load-balancing/214268)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [November 26, 2011, 5:00pm UTC](https://www.ruby-forum.com/t/data-synchronization-load-balancing/214268 "2011-11-26T17:00:15Z")

</div>

Hi, I have a problem: upstream backend { server 172.16.0.1:80; server 172.16.0.2:80; } server { listen 80; server\_name www.domain.com; location / { proxy\_pass http://backend; } } Now I have the model as a…

---

## [Feature request: WebSocket proxying :-)](https://www.ruby-forum.com/t/feature-request-websocket-proxying/194845)

<div class="topic-metadata">

**Author:** [@jwigal](https://www.ruby-forum.com/u/jwigal)\
**Replies:** 3\
**Last updated:** [November 26, 2011, 2:56pm UTC](https://www.ruby-forum.com/t/feature-request-websocket-proxying/194845 "2011-11-26T14:56:16Z")

</div>

Hi all… but mostly Igor, :wink: I know many others have requested HTTP/1.1-to-upstream support for all kinds of reasons. This request is perhaps slightly more focused. I would really like to put nginx in front of my …

---

## [Limit issue, i think it's a bug](https://www.ruby-forum.com/t/limit-issue-i-think-its-a-bug/179493)

<div class="topic-metadata">

**Author:** [@websun](https://www.ruby-forum.com/u/websun)\
**Replies:** 5\
**Last updated:** [November 26, 2011, 1:23pm UTC](https://www.ruby-forum.com/t/limit-issue-i-think-its-a-bug/179493 "2011-11-26T13:23:16Z")

</div>

I have: limit\_req\_zone $binary\_remote\_addr zone=one:10m rate=5r/s; limit\_req zone=one burst=5; in http zone. whatever changes I make ot that directive even if I set 100/s won’t serve more than 2 reques…

---

## [Can nginx override encoding of Tomcat back end?](https://www.ruby-forum.com/t/can-nginx-override-encoding-of-tomcat-back-end/214245)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [November 25, 2011, 4:44pm UTC](https://www.ruby-forum.com/t/can-nginx-override-encoding-of-tomcat-back-end/214245 "2011-11-25T16:44:38Z")

</div>

I have been trying for some time now to get Tomcat to serve everything with UTF-8 encoding, but some pages keep coming back with ISO-8859-1 encoding. As Tomcat is sitting behind an nginx remote proxy server, I was won…

---

## [Nginx 404 not found/503 error in subdir](https://www.ruby-forum.com/t/nginx-404-not-found-503-error-in-subdir/214242)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [November 25, 2011, 2:44pm UTC](https://www.ruby-forum.com/t/nginx-404-not-found-503-error-in-subdir/214242 "2011-11-25T14:44:45Z")

</div>

Okay, i setup a debian install with ispconfig3 ,php5-fpm and nginx, the main site, drupal is working fine, even perfect. But i also have a modded phpbb3 board, in a subdir, named ‘forum’. Now for some reason i get the…

---

## [Nginx 1.x.x segfault at e8 ip xxx sp xxx error 4 in libssl.so.1.0.0](https://www.ruby-forum.com/t/nginx-1-x-x-segfault-at-e8-ip-xxx-sp-xxx-error-4-in-libssl-so-1-0-0/214241)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [November 25, 2011, 2:12pm UTC](https://www.ruby-forum.com/t/nginx-1-x-x-segfault-at-e8-ip-xxx-sp-xxx-error-4-in-libssl-so-1-0-0/214241 "2011-11-25T14:12:57Z")

</div>

nginx -V output: nginx version: nginx/1.1.8 built by gcc 4.6.2 (Debian 4.6.2-5) TLS SNI support enabled configure arguments: --prefix=/etc/nginx –conf-path=/etc/nginx/nginx.conf –error-log-path=/var/log/nginx/error…

---

## [Fw: New extension: advanced setup of RT with Nginx](https://www.ruby-forum.com/t/fw-new-extension-advanced-setup-of-rt-with-nginx/214237)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [November 25, 2011, 1:04pm UTC](https://www.ruby-forum.com/t/fw-new-extension-advanced-setup-of-rt-with-nginx/214237 "2011-11-25T13:04:37Z")

</div>

FYI: Great news, IMO. Beginn der weitergeleiteten Nachricht: Datum: Fri, 25 Nov 2011 15:53:57 +0400 Von: Ruslan Z. removed\_email\_address@domain.invalid An: RT users removed\_email\_address@domain.invalid Betreff: \[rt…

---

## [Nginx-1.1.8](https://www.ruby-forum.com/t/nginx-1-1-8/213856)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [November 25, 2011, 11:51am UTC](https://www.ruby-forum.com/t/nginx-1-1-8/213856 "2011-11-25T11:51:39Z")

</div>

Changes with nginx 1.1.8 14 Nov 2011 \*) Change: the ngx\_http\_limit\_zone\_module was renamed to the ngx\_http\_limit\_conn\_module. \*) Change: the "limit\_zone" directive was supers…

---

## [Rewrite translation apache to nginx](https://www.ruby-forum.com/t/rewrite-translation-apache-to-nginx/214229)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [November 25, 2011, 7:18am UTC](https://www.ruby-forum.com/t/rewrite-translation-apache-to-nginx/214229 "2011-11-25T07:18:32Z")

</div>

Hello, I have always difficulty with rewrite translating apache to nginx. RewriteEngine On # # Full path to your site # RewriteBase / # Rename Photo Names …

---

## [Nginx Can't get the request port when doing proxy](https://www.ruby-forum.com/t/nginx-cant-get-the-request-port-when-doing-proxy/214201)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [November 25, 2011, 6:53am UTC](https://www.ruby-forum.com/t/nginx-cant-get-the-request-port-when-doing-proxy/214201 "2011-11-25T06:53:51Z")

</div>

such as : Client(192.168.1.101) want visit http://192.168.1.201:9000/myfile example,and need visit other ports. but client must use proxy to visit. Nginx is the proxyer! Nginx proxy running on 192.168.1.202 and liste…

---

## [Nginx Cache and WP canonical URL create infinite loop (bug ?)](https://www.ruby-forum.com/t/nginx-cache-and-wp-canonical-url-create-infinite-loop-bug/214167)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [November 24, 2011, 2:35pm UTC](https://www.ruby-forum.com/t/nginx-cache-and-wp-canonical-url-create-infinite-loop-bug/214167 "2011-11-24T14:35:32Z")

</div>

Hello everybody. Just want to report this to all people who have an NGINX that cache request in front a Wordpress installation Scenario Nginx is configured as reverse proxy in front of an Apache that run Wordpress. …

---

## [Simple rewrite (redirection)](https://www.ruby-forum.com/t/simple-rewrite-redirection/214174)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [November 24, 2011, 11:08am UTC](https://www.ruby-forum.com/t/simple-rewrite-redirection/214174 "2011-11-24T11:08:11Z")

</div>

Hi Guys, In my HTTP config section in the config file, I would like to implement a redirection based on this scenario: If the URL is not “http://sitea.com/exactmatch” then redirect to the “https” home. else go to our…

---

## [How to configure the expires header if my static file is served by resin?](https://www.ruby-forum.com/t/how-to-configure-the-expires-header-if-my-static-file-is-served-by-resin/214190)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [November 24, 2011, 6:04am UTC](https://www.ruby-forum.com/t/how-to-configure-the-expires-header-if-my-static-file-is-served-by-resin/214190 "2011-11-24T06:04:38Z")

</div>

Hello, all I use nginx as a reverse proxy and all traffic goes to resin. The css/js files are also hosted on resin. Now I want to add the expires directives to css/js, is the following configuration correct? locatio…

---

## [Nginx 0.7.67 + Apache how to forbid responses with Set-Cookie being stored](https://www.ruby-forum.com/t/nginx-0-7-67-apache-how-to-forbid-responses-with-set-cookie-being-stored/214183)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [November 24, 2011, 2:55am UTC](https://www.ruby-forum.com/t/nginx-0-7-67-apache-how-to-forbid-responses-with-set-cookie-being-stored/214183 "2011-11-24T02:55:18Z")

</div>

Hi, I am caching apache with nginx. Application is developed by several people and consists of many modules. I would like to be sure that if by any case application sets Set-Cookie in the response and sets X-Accel-Ex…

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

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