# Server

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

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

---

## [Partial Requests (206) on Reverse Proxy Cache](https://www.ruby-forum.com/t/partial-requests-206-on-reverse-proxy-cache/198908)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 4\
**Last updated:** [November 12, 2010, 1:10am UTC](https://www.ruby-forum.com/t/partial-requests-206-on-reverse-proxy-cache/198908 "2010-11-12T01:10:49Z")

</div>

Hi, we use an nginx reverse proxy cache to serve media file downloads. An issue we currently have is that for the first uncached requests to the proxy, nginx is unable to respond to partial-requests and returns HTTP …

---

## [Proxy\_cache not writing to proxy\_cache\_path](https://www.ruby-forum.com/t/proxy-cache-not-writing-to-proxy-cache-path/198984)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 2\
**Last updated:** [November 12, 2010, 12:06am UTC](https://www.ruby-forum.com/t/proxy-cache-not-writing-to-proxy-cache-path/198984 "2010-11-12T00:06:06Z")

</div>

I’ve got a config file like: http { proxy\_cache\_path /var/www/nginx/cache levels=1:2 keys\_zone=tmpcache:100m; server { location ~ .js$ { proxy\_cache tmpcache; proxy\_cache\_key $uri$is\_args$args; proxy\_p…

---

## [Documentation typo](https://www.ruby-forum.com/t/documentation-typo/198902)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 5\
**Last updated:** [November 11, 2010, 6:29am UTC](https://www.ruby-forum.com/t/documentation-typo/198902 "2010-11-11T06:29:45Z")

</div>

On page http://nginx.org/en/docs/http/configuring\_https\_servers.html It clearly should say “Since OpenSSL 0.9.8j this option…” or perhaps “…supports SNI since 0.8.9f version…”. As is it’s logically inconsistent. Se…

---

## [Configuring nginx with g++](https://www.ruby-forum.com/t/configuring-nginx-with-g/198940)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 5\
**Last updated:** [November 11, 2010, 5:12am UTC](https://www.ruby-forum.com/t/configuring-nginx-with-g/198940 "2010-11-11T05:12:33Z")

</div>

Hello, Q1) I have been trying to compile nginx using the C++ compiler as follows: $ ./configure --with-cc=g++ --add-module=/path/to/module –prefix=/some/prefix (Also, tried “CC=g++ ./configure …”). Both these comma…

---

## [Monitor cache size](https://www.ruby-forum.com/t/monitor-cache-size/198923)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 1\
**Last updated:** [November 10, 2010, 11:16pm UTC](https://www.ruby-forum.com/t/monitor-cache-size/198923 "2010-11-10T23:16:32Z")

</div>

Hello. Is there a way to monitor nginx cache size with tools like cacti ? Thanks – Simone

---

## [Bug in NginxHttpFcgiModule's fastcgi\_split\_path\_info function?](https://www.ruby-forum.com/t/bug-in-nginxhttpfcgimodules-fastcgi-split-path-info-function/198900)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 1\
**Last updated:** [November 10, 2010, 5:47pm UTC](https://www.ruby-forum.com/t/bug-in-nginxhttpfcgimodules-fastcgi-split-path-info-function/198900 "2010-11-10T17:47:52Z")

</div>

While using Ubuntu 10.10+Nginx 0.8.53+gnosek’s fcgiwrap to serve a Mailman mailing list server http://www.gnu.org/software/mailman/index.html, that was installed as stated in http://wiki.nginx.org/Mailman, I keep gett…

---

## [50% of Failed requests with load balance](https://www.ruby-forum.com/t/50-of-failed-requests-with-load-balance/198913)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 1\
**Last updated:** [November 10, 2010, 4:49pm UTC](https://www.ruby-forum.com/t/50-of-failed-requests-with-load-balance/198913 "2010-11-10T16:49:59Z")

</div>

I’m trying to use nginx for load balancing in my server. Actually I have 2 servers in the same network with Apache listening the port 8080 (http://IP:8080/ it’s works!). In one of them i install nginx to send 50% of …

---

## [Tricky 301 redirect](https://www.ruby-forum.com/t/tricky-301-redirect/198718)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 1\
**Last updated:** [November 10, 2010, 3:59pm UTC](https://www.ruby-forum.com/t/tricky-301-redirect/198718 "2010-11-10T15:59:04Z")

</div>

Hi I’ll like to make a 301 redirect like this: http://www.my\_domain.com/activate/?ac=xyz (xyz is random 36 alphanumeric code) TO https://another\_domain/blah\_blah/signup/?ac=test Please help :slight\_smile: Thanks …

---

## [Nginx 0.8.53/0.7.67 unable to return 304](https://www.ruby-forum.com/t/nginx-0-8-53-0-7-67-unable-to-return-304/198876)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 4\
**Last updated:** [November 10, 2010, 3:42pm UTC](https://www.ruby-forum.com/t/nginx-0-8-53-0-7-67-unable-to-return-304/198876 "2010-11-10T15:42:42Z")

</div>

Hi all, need help with nginx configuration, I had configured a very simple static file caching or direct from disk, but nginx did not return 304 when if-modified-since header is in the request. if-modified-since exa…

---

## [Nginx proxying luwak (http 1.1 to backend needed)](https://www.ruby-forum.com/t/nginx-proxying-luwak-http-1-1-to-backend-needed/198912)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 0\
**Last updated:** [November 10, 2010, 3:06pm UTC](https://www.ruby-forum.com/t/nginx-proxying-luwak-http-1-1-to-backend-needed/198912 "2010-11-10T15:06:53Z")

</div>

I wrote a mail to the list a few days ago where I was having trouble proxying to luwak but not to riak (see http://riak.basho.com - it’s a database among other things). The problem with luwak and nginx is that luwak …

---

## [Nginx Proxy Cache and Tomcat](https://www.ruby-forum.com/t/nginx-proxy-cache-and-tomcat/198872)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 3\
**Last updated:** [November 10, 2010, 3:03pm UTC](https://www.ruby-forum.com/t/nginx-proxy-cache-and-tomcat/198872 "2010-11-10T15:03:44Z")

</div>

Hello, We need a little bit of help to understand what’s wrong with our config. We try to setup a reverse proxy cache using Nginx but somthing seems to be wrong with our configuration. Behind the Nginx there is a to…

---

## [How to disable valid\_referers?](https://www.ruby-forum.com/t/how-to-disable-valid-referers/198910)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 5\
**Last updated:** [November 10, 2010, 2:46pm UTC](https://www.ruby-forum.com/t/how-to-disable-valid-referers/198910 "2010-11-10T14:46:45Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi guys, Say if I have many files under / (document root), all of them need hotlink protection, except one. I set valid\_referers for location / as default, how could I s…

---

## [Nginx - SMTP no authentication](https://www.ruby-forum.com/t/nginx-smtp-no-authentication/198903)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 1\
**Last updated:** [November 10, 2010, 1:53pm UTC](https://www.ruby-forum.com/t/nginx-smtp-no-authentication/198903 "2010-11-10T13:53:18Z")

</div>

Hello I have an nginx proxy smtp and on backend an criticalpath servers. I want to configure nginx to do : auth if if my client is configured to do auth no auth if my client doesn’t do this I want to redirect the cl…

---

## [Re: Documentation typo](https://www.ruby-forum.com/t/re-documentation-typo/198905)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 0\
**Last updated:** [November 10, 2010, 1:26pm UTC](https://www.ruby-forum.com/t/re-documentation-typo/198905 "2010-11-10T13:26:50Z")

</div>

Hello! On Wed, Nov 10, 2010 at 06:33:57AM -0500, Merlin Meyer-Mitchell wrote: OpenSSL library with which the nginx binary has been built as well as the library to which it is being dynamically linked at run time. Op…

---

## [Gridfs on a sub-domain with nginx-gridfs module](https://www.ruby-forum.com/t/gridfs-on-a-sub-domain-with-nginx-gridfs-module/198901)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 0\
**Last updated:** [November 10, 2010, 12:26pm UTC](https://www.ruby-forum.com/t/gridfs-on-a-sub-domain-with-nginx-gridfs-module/198901 "2010-11-10T12:26:30Z")

</div>

Hi, I want to use the Nginx-Gridfs module to server some static files, images to be precise, from GridFS. The examples in the ReadMe show how to set up paths for GridFS but I was unable to find a way to map a subdom…

---

## [Te agregué como amigo en Facebook](https://www.ruby-forum.com/t/te-agregue-como-amigo-en-facebook/198848)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 0\
**Last updated:** [November 9, 2010, 7:01am UTC](https://www.ruby-forum.com/t/te-agregue-como-amigo-en-facebook/198848 "2010-11-09T07:01:06Z")

</div>

Hola, Nginx: He creado un perfil en Facebook donde puedo publicar mis fotos, vídeos y eventos, y quiero agregarte a mis amigos para que puedas verlo. Para ello, necesitas registrarte en Facebook y, después, podrás cre…

---

## [Nginx suddenly causing site.com to go to cgi-sys](https://www.ruby-forum.com/t/nginx-suddenly-causing-site-com-to-go-to-cgi-sys/198846)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 0\
**Last updated:** [November 9, 2010, 6:27am UTC](https://www.ruby-forum.com/t/nginx-suddenly-causing-site-com-to-go-to-cgi-sys/198846 "2010-11-09T06:27:07Z")

</div>

Hi we have a site installed nginx when issues started coming up installed 24 hours back … Static content and html served from nginx cache and rest from apache. Issue started coming few hours back where on opeing site.…

---

## [Nginx 0.7.67-3 on debian squeeze won't start](https://www.ruby-forum.com/t/nginx-0-7-67-3-on-debian-squeeze-wont-start/198835)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 1\
**Last updated:** [November 9, 2010, 2:46am UTC](https://www.ruby-forum.com/t/nginx-0-7-67-3-on-debian-squeeze-wont-start/198835 "2010-11-09T02:46:56Z")

</div>

Just posted this on the nginx-en google group but wasn’t sure the best place to post so i’m dup’ng here: Not sure if this is nginx’s problem or debian’s. I’ve never used nginx before so I’m pretty new to the whole th…

---

## [How to run multiple nginx master processes](https://www.ruby-forum.com/t/how-to-run-multiple-nginx-master-processes/198809)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 1\
**Last updated:** [November 8, 2010, 3:01pm UTC](https://www.ruby-forum.com/t/how-to-run-multiple-nginx-master-processes/198809 "2010-11-08T15:01:35Z")

</div>

I want to run multiple nginx master processes at boot time, based on this script Ubuntu Upstart | NGINX. There are some variables at the top and I’d like to know if changing those variables will make it successful. …

---

## [Http / mjpeg](https://www.ruby-forum.com/t/http-mjpeg/198817)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 0\
**Last updated:** [November 8, 2010, 1:54pm UTC](https://www.ruby-forum.com/t/http-mjpeg/198817 "2010-11-08T13:54:20Z")

</div>

Hello: I have a live HTTP/MJPEG stream. Could you tell me how to serve this to all requesting clients using NGINX (preferably without VLC server). Can NGINX already do this? If so, how (configuration, or module, e…

---

## [Upstream for load balance](https://www.ruby-forum.com/t/upstream-for-load-balance/198807)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 1\
**Last updated:** [November 8, 2010, 12:38pm UTC](https://www.ruby-forum.com/t/upstream-for-load-balance/198807 "2010-11-08T12:38:52Z")

</div>

hi all, I use nginx for load balance with the following configuration. ------------------------- configuration ------------------------- … … upstream backend\_pool { server 192.168.1.2:8899; server 192.168.1.3:8898; …

---

## [Block certain extensions preferably across virtual hosts](https://www.ruby-forum.com/t/block-certain-extensions-preferably-across-virtual-hosts/198801)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 1\
**Last updated:** [November 8, 2010, 12:20pm UTC](https://www.ruby-forum.com/t/block-certain-extensions-preferably-across-virtual-hosts/198801 "2010-11-08T12:20:39Z")

</div>

I have been working on converting from apache to nginx and I have a rule RewriteRule .(asp|aspx|php|jsp)$ - \[F,L\] to block all of those. What would be the best way to convert that to nginx and is there a way to do it…

---

## [Proxy to backend responding with transfer-encoding chunked results in wrong content type](https://www.ruby-forum.com/t/proxy-to-backend-responding-with-transfer-encoding-chunked-results-in-wrong-content-type/198784)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 0\
**Last updated:** [November 7, 2010, 9:38pm UTC](https://www.ruby-forum.com/t/proxy-to-backend-responding-with-transfer-encoding-chunked-results-in-wrong-content-type/198784 "2010-11-07T21:38:07Z")

</div>

I’m currently proxying riak (http://riak.basho.com) using nginx with great success. Now, however, I also need to proxy to luwak (for large files support in riak). The luwak interface responds with transfer-encoding: …

---

## [Nginx and Zend Framework](https://www.ruby-forum.com/t/nginx-and-zend-framework/198777)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 0\
**Last updated:** [November 7, 2010, 6:42pm UTC](https://www.ruby-forum.com/t/nginx-and-zend-framework/198777 "2010-11-07T18:42:29Z")

</div>

Hello, I trying configure Nginx with Zend Framework, but when a error or exception takes place its only show a page saying that site is not avaible and does not processes Zend Framework error controller. Any one know…

---

## [Trouble with ssl\_verify\_client option](https://www.ruby-forum.com/t/trouble-with-ssl-verify-client-option/198664)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 5\
**Last updated:** [November 7, 2010, 12:55pm UTC](https://www.ruby-forum.com/t/trouble-with-ssl-verify-client-option/198664 "2010-11-07T12:55:56Z")

</div>

Hello mailinglist, Somehow I can’t get the ssl\_verify\_client option to work properly for me. As it more and more looks like this might be a bug, I thought I’d report. I’m using 0.8.53, but upgraded from 0.7.67 because…

---

## [Configuration for running fastcgi as different users](https://www.ruby-forum.com/t/configuration-for-running-fastcgi-as-different-users/198723)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 3\
**Last updated:** [November 6, 2010, 3:54am UTC](https://www.ruby-forum.com/t/configuration-for-running-fastcgi-as-different-users/198723 "2010-11-06T03:54:45Z")

</div>

When I look at the nginx examples involving php-fastcgi or spawn-fcgi running in /etc/init.d I get the impression that they are for the main nginx process running as the www-data user. The CGI process linked to a por…

---

## [How to add nginx to /etc/init.d list](https://www.ruby-forum.com/t/how-to-add-nginx-to-etc-init-d-list/198714)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 2\
**Last updated:** [November 6, 2010, 12:25am UTC](https://www.ruby-forum.com/t/how-to-add-nginx-to-etc-init-d-list/198714 "2010-11-06T00:25:07Z")

</div>

I compiled nginx from source and I am launching it with /usr/local/nginx/bin/nginx. How is the source compilation added to the /etc/init.d list? – Frank C. ======================= http://devblog.brahmancreations.co…

---

## [Host -\> jail -\> host - BAD GATEWAY](https://www.ruby-forum.com/t/host-jail-host-bad-gateway/198708)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 7\
**Last updated:** [November 5, 2010, 10:41pm UTC](https://www.ruby-forum.com/t/host-jail-host-bad-gateway/198708 "2010-11-05T22:41:04Z")

</div>

Im using FreeBSD and jails. I have my postfix on host, and main http server in jail. When I set in jail (192.168.1.2): server { \<------\>listen 80; \<------\>server\_name www.poczta.a.org poczta.a.org; \<------\>access\_l…

---

## [Rewrite with $request\_uri auto appends args](https://www.ruby-forum.com/t/rewrite-with-request-uri-auto-appends-args/198698)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 2\
**Last updated:** [November 5, 2010, 6:50pm UTC](https://www.ruby-forum.com/t/rewrite-with-request-uri-auto-appends-args/198698 "2010-11-05T18:50:32Z")

</div>

I’ve been using the following code to redirect non-www to www-refixed domains: server { server\_name example.com; rewrite ^ http://www.example.com$request\_uri permanent; } However, I just realized that when ther…

---

## [Re: DDoS protection module suggestion](https://www.ruby-forum.com/t/re-ddos-protection-module-suggestion/198537)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 20\
**Last updated:** [November 5, 2010, 6:04pm UTC](https://www.ruby-forum.com/t/re-ddos-protection-module-suggestion/198537 "2010-11-05T18:04:05Z")

</div>

Hey, Why not utilize net filters/iptables for this? Setup a redirect to say localhost:81n then create a script to capture uri on each request, then use the information as u like… “Ddos mitigation based on client beha…

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

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