# Server

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

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

---

## [Passing variables to perl modules in nginx.conf:](https://www.ruby-forum.com/t/passing-variables-to-perl-modules-in-nginx-conf/216128)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [January 26, 2012, 9:18pm UTC](https://www.ruby-forum.com/t/passing-variables-to-perl-modules-in-nginx-conf/216128 "2012-01-26T21:18:15Z")

</div>

Hello, Is it possible to pass variables to embedded perl modules via nginx.conf and if so how would that be done? For instance(approx): http { perl\_modules perl/lib; perl\_require My::super\_task.pm; } Server{ l…

---

## [Module API and srv structure initialization](https://www.ruby-forum.com/t/module-api-and-srv-structure-initialization/216101)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [January 25, 2012, 3:42pm UTC](https://www.ruby-forum.com/t/module-api-and-srv-structure-initialization/216101 "2012-01-25T15:42:33Z")

</div>

Hi guys, i’m new to this forum (already introduced myself ^^). I’m writing a nginx handler module and i need to load a file in a server directive inside the config, let’s assume it’s something like: server { … mymod…

---

## [Tengine-1.2.2](https://www.ruby-forum.com/t/tengine-1-2-2/215677)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [January 24, 2012, 7:05pm UTC](https://www.ruby-forum.com/t/tengine-1-2-2/215677 "2012-01-24T19:05:59Z")

</div>

Hi, We are pleased to announce that Tengine-1.2.2 has been released. And you can download it here: http://tengine.taobao.org/download/tengine.tar.gz (For those who don’t know Tengine, it is a distribution of Nginx, i…

---

## [Proxy\_pass to upstream with client certificate](https://www.ruby-forum.com/t/proxy-pass-to-upstream-with-client-certificate/216061)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [January 24, 2012, 12:47pm UTC](https://www.ruby-forum.com/t/proxy-pass-to-upstream-with-client-certificate/216061 "2012-01-24T12:47:28Z")

</div>

Is it possible to configure nginx to send a client certificate to upstream? I’d like the flow to be: HTTP to nginx which proxies to HTTPS://xyz/ that uses a client certificate. I don’t want the end client to use any…

---

## [Nginx Window native](https://www.ruby-forum.com/t/nginx-window-native/214687)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [January 24, 2012, 12:11pm UTC](https://www.ruby-forum.com/t/nginx-window-native/214687 "2012-01-24T12:11:31Z")

</div>

Hello, Going through nginx/Windows usage http://nginx.org/en/docs/windows.html I see that there are some important limitations: Known issues Although several workers can be run, only one of them actually does any …

---

## [Nginx serving large-ish static files on VM](https://www.ruby-forum.com/t/nginx-serving-large-ish-static-files-on-vm/216047)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [January 24, 2012, 1:20am UTC](https://www.ruby-forum.com/t/nginx-serving-large-ish-static-files-on-vm/216047 "2012-01-24T01:20:15Z")

</div>

I’m serving some 10-30mb files at peak times up to 250-300 requests per second, if I’m reading these RDD’d /status logs correctly. These are on VPS servers, which may mean some network settings aren’t available, and m…

---

## [Nginx causing high IO](https://www.ruby-forum.com/t/nginx-causing-high-io/215991)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [January 22, 2012, 10:06pm UTC](https://www.ruby-forum.com/t/nginx-causing-high-io/215991 "2012-01-22T22:06:46Z")

</div>

Hello ladies and gents, I am using nginx to serve video on our video sharing platform. We are seeing high IO from nginx which is causing extremely slow responsiveness from the servers. I have tried changing the number…

---

## [Reading from a named pipe / fifo](https://www.ruby-forum.com/t/reading-from-a-named-pipe-fifo/215972)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 9\
**Last updated:** [January 22, 2012, 9:38pm UTC](https://www.ruby-forum.com/t/reading-from-a-named-pipe-fifo/215972 "2012-01-22T21:38:57Z")

</div>

Hi, how could I configure (or change) nginx to serve the output from a named pipe / fifo (that was created with mknod or mkfifo) as if it were a regular HTML file? Let’s say I have a fifo named fifo.html that gets in…

---

## [Need to proxy pass and rewrite the url](https://www.ruby-forum.com/t/need-to-proxy-pass-and-rewrite-the-url/215952)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [January 20, 2012, 3:25pm UTC](https://www.ruby-forum.com/t/need-to-proxy-pass-and-rewrite-the-url/215952 "2012-01-20T15:25:18Z")

</div>

my conf : location / { proxy\_pass http://mydomain.com; proxy\_redirect off; proxy\_set\_header Host $host; } location ~\*/redirect { proxy\_pass http://some.domain.com/cp/$1; } http:…

---

## [What is ngx\_cycle\_t represent](https://www.ruby-forum.com/t/what-is-ngx-cycle-t-represent/215580)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 10\
**Last updated:** [January 20, 2012, 2:20pm UTC](https://www.ruby-forum.com/t/what-is-ngx-cycle-t-represent/215580 "2012-01-20T14:20:56Z")

</div>

I am new to nginx and trying to understand its internals. What does ngx\_cycle\_t represent and why does it have ? Appreciate and pointers. Posted at Nginx Forum:

---

## [Htaccess to nginx](https://www.ruby-forum.com/t/htaccess-to-nginx/215955)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [January 20, 2012, 1:14pm UTC](https://www.ruby-forum.com/t/htaccess-to-nginx/215955 "2012-01-20T13:14:39Z")

</div>

Hey guys! i have following htaccess but now i need it for nginx can some one convert it correct to nginx so that ther are no security risks? ErrorDocument 404 /404.html AddDefaultCharset utf-8 AddCharset utf-8 .htm…

---

## [How to make a named location in subrequest](https://www.ruby-forum.com/t/how-to-make-a-named-location-in-subrequest/215922)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [January 20, 2012, 9:24am UTC](https://www.ruby-forum.com/t/how-to-make-a-named-location-in-subrequest/215922 "2012-01-20T09:24:01Z")

</div>

Hi, Previously, I wrote a module to make a subrequest to backend. nginx.conf like that: location /file { nphase\_uri /dummy; nphase\_set\_uri\_var $np\_uri http://backend; } location /dummy { proxy\_pass $np\_uri; } T…

---

## [Nginx Vhost](https://www.ruby-forum.com/t/nginx-vhost/215937)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [January 20, 2012, 1:56am UTC](https://www.ruby-forum.com/t/nginx-vhost/215937 "2012-01-20T01:56:33Z")

</div>

Hello, i have installed Nginx 1.0.11 on FreeBSD 9. I have configured a Catch All Host and my Domain. But my Domain Nginx want not accept. He give only the Catch All Domain back. user www; worker\_processes 1; erro…

---

## [Proxy\_pass by the accept header?](https://www.ruby-forum.com/t/proxy-pass-by-the-accept-header/215925)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [January 19, 2012, 4:40pm UTC](https://www.ruby-forum.com/t/proxy-pass-by-the-accept-header/215925 "2012-01-19T16:40:20Z")

</div>

Hi all! I want to proxy\_pass depending on the value of the accept header. I have lots of locations and I wanted to add in a single place a validation that if accept header is 'text/html" it should proxy\_pass to some …

---

## [Regex issue](https://www.ruby-forum.com/t/regex-issue/215908)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [January 19, 2012, 2:36pm UTC](https://www.ruby-forum.com/t/regex-issue/215908 "2012-01-19T14:36:19Z")

</div>

For some reason, I am unable to take a URI like example.com/manufacturers/metlox/0?page=13 and change it to example.com/manufacturers/m It seems like the curly braces aren’t working. I’ve tried the following without …

---

## [Regex rewrite problem](https://www.ruby-forum.com/t/regex-rewrite-problem/215895)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [January 19, 2012, 2:30pm UTC](https://www.ruby-forum.com/t/regex-rewrite-problem/215895 "2012-01-19T14:30:43Z")

</div>

Hello, I am new to this forum. Glad it exists. Thanks for that. I have a production website that uses nginx 0.8.53 reverse proxy in front of apache. I actually had little problem setting that up, but this simple rege…

---

## [Static index file in Nginx+Apache](https://www.ruby-forum.com/t/static-index-file-in-nginx-apache/215909)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [January 19, 2012, 11:51am UTC](https://www.ruby-forum.com/t/static-index-file-in-nginx-apache/215909 "2012-01-19T11:51:19Z")

</div>

location / { index index.htm; proxy\_pass http://127.0.0.1:8080; proxy\_set\_header X-Real-IP $remote\_addr; proxy\_set\_header Host $http\_host; proxy\_set\_header X-Forwarded-For $proxy\_add\_x\_forwarded\_for; } loc…

---

## [Cache object list](https://www.ruby-forum.com/t/cache-object-list/215915)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [January 19, 2012, 10:38am UTC](https://www.ruby-forum.com/t/cache-object-list/215915 "2012-01-19T10:38:53Z")

</div>

Hi. How do i get Nginx’s cache object list ? – shin fukuda removed\_email\_address@domain.invalid

---

## [A question](https://www.ruby-forum.com/t/a-question/215906)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [January 19, 2012, 8:06am UTC](https://www.ruby-forum.com/t/a-question/215906 "2012-01-19T08:06:09Z")

</div>

I want to know. In source code#define NGX\_MAX\_ALLOC\_FROM\_POOL (ngx\_pagesize - 1) Why decrement? xujiecq

---

## [Re: About nginx module developing](https://www.ruby-forum.com/t/re-about-nginx-module-developing/215902)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [January 19, 2012, 4:22am UTC](https://www.ruby-forum.com/t/re-about-nginx-module-developing/215902 "2012-01-19T04:22:57Z")

</div>

And the 3 bitmap are provided through network, that is, 3 backend servers provide service to test the bits in the bitmap. So I want nginx to visit the 3 backend servers through module but not cgi-like things because …

---

## [Re: About nginx module developing](https://www.ruby-forum.com/t/re-about-nginx-module-developing/215901)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [January 19, 2012, 3:46am UTC](https://www.ruby-forum.com/t/re-about-nginx-module-developing/215901 "2012-01-19T03:46:38Z")

</div>

thanks, but I don’t think SSI can satisfy my need. Because I want the RPS to be up to the limit of nginx it self. My demand is easy and much like a http-push server: 1, I maintain 3 bitmaps 2, the clients request eve…

---

## [Reverse proxy for multiple websites](https://www.ruby-forum.com/t/reverse-proxy-for-multiple-websites/215371)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [January 19, 2012, 2:43am UTC](https://www.ruby-forum.com/t/reverse-proxy-for-multiple-websites/215371 "2012-01-19T02:43:48Z")

</div>

Hi, I’m sticking on configure a reverse proxy, my scenario looks like: Internet …| …|\_\_Reverse proxy (listen port 80) …|\_\_web1.com (listen port 8080) …|\_\_web2.net (listen port 8080) …|\_\_web-n.org (listen port 8080…

---

## [Proxy with URI and params](https://www.ruby-forum.com/t/proxy-with-uri-and-params/215811)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 7\
**Last updated:** [January 18, 2012, 6:41pm UTC](https://www.ruby-forum.com/t/proxy-with-uri-and-params/215811 "2012-01-18T18:41:20Z")

</div>

Hi, I need to make a proxy solution. But I having some problems. When the type www.example.com/delivery/a/b/c I need to make a proxy to www.proxy.com/delivery/a/b/c/?var1=A&var2=B So a did this configuration locatio…

---

## [Ningx/Django Bad Request Error](https://www.ruby-forum.com/t/ningx-django-bad-request-error/215869)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [January 18, 2012, 5:59pm UTC](https://www.ruby-forum.com/t/ningx-django-bad-request-error/215869 "2012-01-18T17:59:16Z")

</div>

Hello Nginx Group. I am new to Ngnix and installing my first Nginx/Django server. I’ve been struggling with a Bad Request 400 Error for two days now and I have nowhere else to go. Here is the problem: I have Nginx …

---

## [Redirect ALL requests to single PHP file](https://www.ruby-forum.com/t/redirect-all-requests-to-single-php-file/215885)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [January 18, 2012, 5:48pm UTC](https://www.ruby-forum.com/t/redirect-all-requests-to-single-php-file/215885 "2012-01-18T17:48:46Z")

</div>

Hi All, We’d like to redirect all requests to a single PHP file. The configuration below is what we have but I’m concerned that it would cause an “infinite” loop and possibly other problems. We’d like to redirect A…

---

## [Nginx keep using more and more memory](https://www.ruby-forum.com/t/nginx-keep-using-more-and-more-memory/215873)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 8\
**Last updated:** [January 18, 2012, 11:18am UTC](https://www.ruby-forum.com/t/nginx-keep-using-more-and-more-memory/215873 "2012-01-18T11:18:41Z")

</div>

Hi, We are using nginx to proxy to 4 back end servers. And we terminate SSL at nginx. We use nginx in a somewhat special way in that we make 1 HTTP GET and the back-end servers give a very very long (essentially neve…

---

## [Limit robots](https://www.ruby-forum.com/t/limit-robots/215713)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [January 17, 2012, 8:28pm UTC](https://www.ruby-forum.com/t/limit-robots/215713 "2012-01-17T20:28:40Z")

</div>

Hello, Is there a chance to limit robots to 1 request per second? The down below does not work: \[emerg\] “limit\_req” directive is not allowed here Thanks a lot Markus http { limit\_req\_zone $http\_user\_agent z…

---

## [Nginx-1.1.13](https://www.ruby-forum.com/t/nginx-1-1-13/215803)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [January 17, 2012, 7:48pm UTC](https://www.ruby-forum.com/t/nginx-1-1-13/215803 "2012-01-17T19:48:28Z")

</div>

Changes with nginx 1.1.13 16 Jan 2012 \*) Feature: the "TLSv1.1" and "TLSv1.2" parameters of the "ssl\_protocols" directive. \*) Bugfix: the "limit\_req" directive parameters were…

---

## [Update/Delete cache entry](https://www.ruby-forum.com/t/update-delete-cache-entry/215831)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [January 17, 2012, 3:38pm UTC](https://www.ruby-forum.com/t/update-delete-cache-entry/215831 "2012-01-17T15:38:50Z")

</div>

Hi guys, I have an entry cache with nginx : head -n10 /tmp/nginx/f/a78359efac162eed0807e0d85761441f 8?O��������(1O\]� �D� KEY: http://www.bbc.co.uk/ HTTP/1.1 200 OK Server: Apache Vary: X-Country,Accept-Enc…

---

## [Upstream with multiple request reply](https://www.ruby-forum.com/t/upstream-with-multiple-request-reply/215814)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [January 17, 2012, 11:29am UTC](https://www.ruby-forum.com/t/upstream-with-multiple-request-reply/215814 "2012-01-17T11:29:30Z")

</div>

Hi all, I’m trying to write an upstream which have to do multiple request / reply with backend, for one frontend request. Currently, I’m writing first request to backend in create\_request handler, write data into …

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

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