# Server

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

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

---

## [Expires headers for url rewrite rules](https://www.ruby-forum.com/t/expires-headers-for-url-rewrite-rules/237039)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [October 21, 2013, 12:52pm UTC](https://www.ruby-forum.com/t/expires-headers-for-url-rewrite-rules/237039 "2013-10-21T12:52:35Z")

</div>

In my config I have some url rewrite rules for images as seen below: location / { rewrite ^/custom/path/(.)/(.)-(.\*).jpg$ /media/images/products/$1/$3.jpg last; } They work just fine. I’m also trying to set Expire h…

---

## ["A" Grade SSL/TLS with Nginx and StartSSL](https://www.ruby-forum.com/t/a-grade-ssl-tls-with-nginx-and-startssl/246439)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 6\
**Last updated:** [October 20, 2013, 11:12pm UTC](https://www.ruby-forum.com/t/a-grade-ssl-tls-with-nginx-and-startssl/246439 "2013-10-20T23:12:50Z")

</div>

Hi Nginx folks, I spent some time hacking on my SSL conf recently. Nothing new, but I figured I’d share it with the group: Feel free to comment here. Cheers – Julien Vehent http://jve.linuxwall.info

---

## [Which 404 file does nginx calls?](https://www.ruby-forum.com/t/which-404-file-does-nginx-calls/237030)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [October 20, 2013, 11:12pm UTC](https://www.ruby-forum.com/t/which-404-file-does-nginx-calls/237030 "2013-10-20T23:12:15Z")

</div>

Somewhere something happened. I am not able to fix it. error\_page 404 404.html During the test, i had this line in the site.conf file. 404.html had “File not found.” Later i created a proper error page and changed t…

---

## [Any sources for Saucy Salamander? (Ubuntu 13.10)](https://www.ruby-forum.com/t/any-sources-for-saucy-salamander-ubuntu-13-10/246488)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [October 20, 2013, 4:24pm UTC](https://www.ruby-forum.com/t/any-sources-for-saucy-salamander-ubuntu-13-10/246488 "2013-10-20T16:24:24Z")

</div>

I seem to be “stuck” on the 5 month old nginx 1.4.1 on my Ubuntu 13.04. But reading the 13.10 (Saucy Salamander) Ubuntu repo notes, I see it’s STILL that version. So I found this post: http://www.devcu.com/forums/to…

---

## [Re: Quick performance deterioration when No. of clients increases](https://www.ruby-forum.com/t/re-quick-performance-deterioration-when-no-of-clients-increases/246472)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [October 19, 2013, 8:11pm UTC](https://www.ruby-forum.com/t/re-quick-performance-deterioration-when-no-of-clients-increases/246472 "2013-10-19T20:11:18Z")

</div>

This is a slight oversimplification as processes in waitio are also adding to the load average. Use of programs like top, iotop, mytop etc will give you a clearer idea of what is going on, and where your bottleneck li…

---

## [Quick performance deterioration when No. of clients increases](https://www.ruby-forum.com/t/quick-performance-deterioration-when-no-of-clients-increases/236923)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 11\
**Last updated:** [October 19, 2013, 1:56pm UTC](https://www.ruby-forum.com/t/quick-performance-deterioration-when-no-of-clients-increases/236923 "2013-10-19T13:56:47Z")

</div>

Hello, I am trying to migrate a Joomla 2.5.8 website from Apache to NGINX 1.4.2 with php-fpm 5.3.3 (and MySQL 5.5.34) on a CentOS 6.4 x86\_64 Virtual Machine (running under KMS). The goal is to achieve better peak per…

---

## [Config Mail Proxy for POP3/SMTP microsoft exchange](https://www.ruby-forum.com/t/config-mail-proxy-for-pop3-smtp-microsoft-exchange/236967)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 8\
**Last updated:** [October 19, 2013, 11:37am UTC](https://www.ruby-forum.com/t/config-mail-proxy-for-pop3-smtp-microsoft-exchange/236967 "2013-10-19T11:37:39Z")

</div>

Hi there, Is NGINX support Microsoft Exchange POP3 / SMTP ??? If yes, can anyone help me to config NGINX as reverse proxy for MS Exchange. Followed the link : IMAP Proxy Example | NGINX but I could still dont under…

---

## [Issue in configuring nginx for libwebsocket](https://www.ruby-forum.com/t/issue-in-configuring-nginx-for-libwebsocket/237021)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 1\
**Last updated:** [October 19, 2013, 4:34am UTC](https://www.ruby-forum.com/t/issue-in-configuring-nginx-for-libwebsocket/237021 "2013-10-19T04:34:00Z")

</div>

Hi All I am a newbie with nginx server. I am trying to get websocket configuration working on cent-os.(linux 2.6.32-358.18.1.el6.x86\_64). Following is my nginx config file; http { include mime.types; default…

---

## [Strange proxy\_pass problem](https://www.ruby-forum.com/t/strange-proxy-pass-problem/237012)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 1\
**Last updated:** [October 18, 2013, 6:51pm UTC](https://www.ruby-forum.com/t/strange-proxy-pass-problem/237012 "2013-10-18T18:51:00Z")

</div>

Hi, I recently upgraded a server from nginx 1.2.8 to 1.4.3 (on FreeBSD amd64). nginx is a reverse-proxy to apache, intended to serve static files directly and pass all php requests zu apache - with one exception: the …

---

## [Fastcgi\_cache + ngx\_pagespeed](https://www.ruby-forum.com/t/fastcgi-cache-ngx-pagespeed/237008)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [October 18, 2013, 6:39pm UTC](https://www.ruby-forum.com/t/fastcgi-cache-ngx-pagespeed/237008 "2013-10-18T18:39:19Z")

</div>

Hi guys, First of all, I am aware that this is not the place to get ngx\_pagespeed support. I am only coming here because I am this close to archieving the performance I need, and here is the place where I had the most…

---

## [SSL certificate not loaded](https://www.ruby-forum.com/t/ssl-certificate-not-loaded/236964)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [October 16, 2013, 4:26pm UTC](https://www.ruby-forum.com/t/ssl-certificate-not-loaded/236964 "2013-10-16T16:26:11Z")

</div>

I have a strange problem with SLL. I purchased a SSL cert and combined the intermediary files into one: cat www\_mydomain\_com.crt PositiveSSLCA2.crt AddTrustExternalCARoot.crt mydomain-budle.crt In the server conf …

---

## [Nginx Webdav & POST method](https://www.ruby-forum.com/t/nginx-webdav-post-method/236975)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 6\
**Last updated:** [October 16, 2013, 3:41pm UTC](https://www.ruby-forum.com/t/nginx-webdav-post-method/236975 "2013-10-16T15:41:12Z")

</div>

Hello, We have an appliance which trying to perform POST methods against the Nginx server. However this doesn’t seem to be supported. Could you please confirm me that ? And is there a workaround in order to allow PO…

---

## [Cookie and source IP logic in server block](https://www.ruby-forum.com/t/cookie-and-source-ip-logic-in-server-block/236961)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [October 15, 2013, 10:40pm UTC](https://www.ruby-forum.com/t/cookie-and-source-ip-logic-in-server-block/236961 "2013-10-15T22:40:12Z")

</div>

Hello, I’m trying to block certain IP ranges at my nginx server, but would like to offer the ability to bypass the block by completing a back-end CAPTCHA, which would set a cookie. Currently I set the block like so: …

---

## [Accessing binding nginx via Lua](https://www.ruby-forum.com/t/accessing-binding-nginx-via-lua/246423)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 3\
**Last updated:** [October 15, 2013, 4:38pm UTC](https://www.ruby-forum.com/t/accessing-binding-nginx-via-lua/246423 "2013-10-15T16:38:28Z")

</div>

Would it be possible (and how) to access the bindings inside nginx via Lua? for an experiment I’d like to change the listening port of a running nginx process. Posted at Nginx Forum:

---

## [Multiple DNS servers in resolver directive](https://www.ruby-forum.com/t/multiple-dns-servers-in-resolver-directive/246463)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [October 15, 2013, 8:49am UTC](https://www.ruby-forum.com/t/multiple-dns-servers-in-resolver-directive/246463 "2013-10-15T08:49:15Z")

</div>

The documentation is not clear. Can I provide two IP addresses in the resolver config directive? Example: resolver 208.67.222.222 208.67.220.220; Posted at Nginx Forum:

---

## [Limit\_req for spiders only](https://www.ruby-forum.com/t/limit-req-for-spiders-only/236955)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 4\
**Last updated:** [October 14, 2013, 4:52pm UTC](https://www.ruby-forum.com/t/limit-req-for-spiders-only/236955 "2013-10-14T16:52:56Z")

</div>

Hi, I would like to put a brake on spiders which are hammering a site with dynamic content generation. They should still get to see the content, but only not generate excessive load. I therefore constructed a map to …

---

## [Nginx configuration variable max size](https://www.ruby-forum.com/t/nginx-configuration-variable-max-size/236951)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [October 14, 2013, 2:56pm UTC](https://www.ruby-forum.com/t/nginx-configuration-variable-max-size/236951 "2013-10-14T14:56:37Z")

</div>

Hi, Is there any limit on what amount of data an nginx config variable can hold?

---

## [Modules and thread creation](https://www.ruby-forum.com/t/modules-and-thread-creation/246427)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [October 14, 2013, 3:55am UTC](https://www.ruby-forum.com/t/modules-and-thread-creation/246427 "2013-10-14T03:55:48Z")

</div>

I’ve seen an older thread saying that nginx modules shouldn’t create threads. I was wondering how valid that still is, and if there is a guide or pointers on how to deal with threads in a module. Posted at Nginx Foru…

---

## [How to disable output buffering with PHP and nginx](https://www.ruby-forum.com/t/how-to-disable-output-buffering-with-php-and-nginx/246196)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 13\
**Last updated:** [October 12, 2013, 10:39pm UTC](https://www.ruby-forum.com/t/how-to-disable-output-buffering-with-php-and-nginx/246196 "2013-10-12T22:39:44Z")

</div>

Hello, In an effort to resolve a different issue, I am trying to confirm that my stack is capable of servicing at least two simultaneous requests for a given PHP script. In an effort to confirm this, I have written a…

---

## [An official yum repo for 1.5x](https://www.ruby-forum.com/t/an-official-yum-repo-for-1-5x/246428)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [October 12, 2013, 3:24pm UTC](https://www.ruby-forum.com/t/an-official-yum-repo-for-1-5x/246428 "2013-10-12T15:24:59Z")

</div>

\[nginx\] name=nginx repo baseurl=http://nginx.org/packages/centos/6/$basearch/ gpgcheck=0 enabled=1 Is the 1.4x branch. Is it possible to get an official 1.5x repo? Thanks. Posted at Nginx Forum:

---

## [Log timeouts to access log](https://www.ruby-forum.com/t/log-timeouts-to-access-log/236925)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [October 11, 2013, 7:07pm UTC](https://www.ruby-forum.com/t/log-timeouts-to-access-log/236925 "2013-10-11T19:07:35Z")

</div>

Hi I would like to log an indication of weather a request ended because of a client timeout - in the access.log e.g. log\_format normal '$remote\_addr - $remote\_user \[$time\_local\] ’ '"$request" $status $bytes\_sent ’ ‘…

---

## [Each website with its own fastcgi\_cache\_path](https://www.ruby-forum.com/t/each-website-with-its-own-fastcgi-cache-path/236926)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [October 11, 2013, 6:51pm UTC](https://www.ruby-forum.com/t/each-website-with-its-own-fastcgi-cache-path/236926 "2013-10-11T18:51:48Z")

</div>

Hello guys, I would like to know if it is possible to have multiple fastcgi\_cache\_path / keys\_zone. If I host multiple websites and all share the same keys\_zone, it becomes a problem if I have to purge the cache. I…

---

## [Re: Quick performance deterioration when No. of clients increases](https://www.ruby-forum.com/t/re-quick-performance-deterioration-when-no-of-clients-increases/236929)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 0\
**Last updated:** [October 11, 2013, 2:35pm UTC](https://www.ruby-forum.com/t/re-quick-performance-deterioration-when-no-of-clients-increases/236929 "2013-10-11T14:35:12Z")

</div>

Hi Nick, There was a discussion recently that yielded a marked performance difference between smaller and higher levels of gzip compression. I’ll echo the concerns over CPU power and would also suggest trying gzip\_c…

---

## [Logging header values from the first upstream](https://www.ruby-forum.com/t/logging-header-values-from-the-first-upstream/236915)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [October 11, 2013, 5:33am UTC](https://www.ruby-forum.com/t/logging-header-values-from-the-first-upstream/236915 "2013-10-11T05:33:37Z")

</div>

The HttpUpstreamModule states that variable values for $upstream\_http\_$HEADER are only valid for the last upstream accessed during a request. I’d like to know if there’s a workaround. Specifically, I’m setting (and t…

---

## [How to tell Nginx not to decode URL for proxy\_pass?](https://www.ruby-forum.com/t/how-to-tell-nginx-not-to-decode-url-for-proxy-pass/236916)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 0\
**Last updated:** [October 11, 2013, 3:24am UTC](https://www.ruby-forum.com/t/how-to-tell-nginx-not-to-decode-url-for-proxy-pass/236916 "2013-10-11T03:24:24Z")

</div>

Hi, I need to pass a certain URI namespace to an upstream servers, while taking away the prefix. Consider following configuration: location ^~ /going-to-upstream/ { access\_log off; rewrite /upstream(/.\*) $1 b…

---

## [Getting forward secrecy enabled](https://www.ruby-forum.com/t/getting-forward-secrecy-enabled/236772)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 16\
**Last updated:** [October 10, 2013, 5:42pm UTC](https://www.ruby-forum.com/t/getting-forward-secrecy-enabled/236772 "2013-10-10T17:42:54Z")

</div>

On ssllabs.com I am getting the following, even though I am using all the recommend settings. http://i.imgur.com/TlsKMzP.png Here are my nginx settings: ssl\_prefer\_server\_ciphers on; ssl\_protocols SSLv3 TLSv1 TLSv1…

---

## [Unicorn as simple cgi without rails](https://www.ruby-forum.com/t/unicorn-as-simple-cgi-without-rails/236900)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [October 10, 2013, 1:43pm UTC](https://www.ruby-forum.com/t/unicorn-as-simple-cgi-without-rails/236900 "2013-10-10T13:43:14Z")

</div>

hello, i recently set up a new server upon which i installed nginx to try it out (and which i have been quite happy with since). my website is mostly static with some small cgi areas, and i like to use ruby for the c…

---

## [Problem with {} in map regex matching](https://www.ruby-forum.com/t/problem-with-in-map-regex-matching/236885)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 1\
**Last updated:** [October 9, 2013, 1:45pm UTC](https://www.ruby-forum.com/t/problem-with-in-map-regex-matching/236885 "2013-10-09T13:45:10Z")

</div>

To my surprise, apparently doing a match with {} like in: map $args $has\_tr0\_arg { default 0; ~“tr%5B0%5D%3D=\[1-9\]\[\[:digit:\]\]{3}-\[\[:digit:\]\]{2}-\[\[:digit:\]\]{2}T\[\[:digit:\]\]{2}%2F\[1-9\]\[\[:digit:\]\]{3}-\[\[:digit:\]\]{2}-\[\[:dig…

---

## [Is there a problem with my nginx.conf?](https://www.ruby-forum.com/t/is-there-a-problem-with-my-nginx-conf/193866)

<div class="topic-metadata">

**Author:** [@sastro](https://www.ruby-forum.com/u/sastro)\
**Replies:** 9\
**Last updated:** [October 9, 2013, 1:18pm UTC](https://www.ruby-forum.com/t/is-there-a-problem-with-my-nginx-conf/193866 "2013-10-09T13:18:17Z")

</div>

Hi, I’m new with nginx, so i just copy paste my nginx.conf from some resources on internet. I just want to know if there’s any mistakes or wrong configuration. Here it is user nginx; worker\_processes 1;…

---

## [Intermittent connectivity issues ngx\_mail\_pop3\_module](https://www.ruby-forum.com/t/intermittent-connectivity-issues-ngx-mail-pop3-module/246392)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [October 9, 2013, 1:10pm UTC](https://www.ruby-forum.com/t/intermittent-connectivity-issues-ngx-mail-pop3-module/246392 "2013-10-09T13:10:05Z")

</div>

Hi everyone, I’ve recently installed nginx as a POP3/IMAP proxy, fronting for a single server. Everything works most of the time. But every once in a while, nginx fails to forward incoming connections with “-ERR inter…

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

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