# Server

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

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

---

## [Cheap SharePoint -\> Wordpress fail-over help request](https://www.ruby-forum.com/t/cheap-sharepoint-wordpress-fail-over-help-request/212697)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [October 11, 2011, 3:26pm UTC](https://www.ruby-forum.com/t/cheap-sharepoint-wordpress-fail-over-help-request/212697 "2011-10-11T15:26:14Z")

</div>

We have nginx setup as a reverse proxy and on one of the backend servers we have a Sharepoint website that we want to failover to a Wordpress website hosted on another server if there’s a problem with Sharepoint websi…

---

## [Please help me](https://www.ruby-forum.com/t/please-help-me/211601)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 7\
**Last updated:** [October 11, 2011, 2:21pm UTC](https://www.ruby-forum.com/t/please-help-me/211601 "2011-10-11T14:21:12Z")

</div>

Hi guys, I’m new to nginx. Just knew how to use it few months ago. I got a QuickSSL SSL, but I would like to install it only on mybb admin folder only (http://myforum.com/admin will rewrite to https://myforum.com/adm…

---

## [Rewrites](https://www.ruby-forum.com/t/rewrites/212673)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [October 10, 2011, 10:18pm UTC](https://www.ruby-forum.com/t/rewrites/212673 "2011-10-10T22:18:22Z")

</div>

Hi, i need to translate this htaccess to nginx: RewriteCond %{QUERY\_STRING} !^/?url RewriteCond %{QUERY\_STRING} !^/?auto RewriteRule ^(.\*)$ /?url=$1 \[L\] is this the right solution? if ($args !~ “^/?url”){ set $rul…

---

## [Content-length Missing when response proxy\_pass a special backend](https://www.ruby-forum.com/t/content-length-missing-when-response-proxy-pass-a-special-backend/212650)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [October 10, 2011, 6:04am UTC](https://www.ruby-forum.com/t/content-length-missing-when-response-proxy-pass-a-special-backend/212650 "2011-10-10T06:04:19Z")

</div>

I have 2 backends in my applications.There are pure backend response example: First backend: kwfs yangqingchang@yqc:~$ curl -X GET -I http://192.168.1.118:8080/kwfs/AAChTwAAADcAAwAc HTTP/1.1 200 OK Server: QWS/1.0 …

---

## [Benchmarks](https://www.ruby-forum.com/t/benchmarks/212628)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [October 9, 2011, 8:44am UTC](https://www.ruby-forum.com/t/benchmarks/212628 "2011-10-09T08:44:39Z")

</div>

Hi, Some more benchmarks of Nginx compared to Apache, Cherokee, Lighttpd and G-WAN. Non keep-alive so far. If you have any pointers about how to improve further, please let me know. Regards, Fredrik

---

## [Nginx/push module problem - ideas please](https://www.ruby-forum.com/t/nginx-push-module-problem-ideas-please/212632)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [October 8, 2011, 5:52pm UTC](https://www.ruby-forum.com/t/nginx-push-module-problem-ideas-please/212632 "2011-10-08T17:52:15Z")

</div>

Hi All, This problem has been bugging me for weeks, and driving me up the wall. I cannot seen to get to the bottom of it. The application is a chat room, for chat between a coach and a client. Both have similar code.…

---

## [Does the long polling module work with nginx 1.0.6?](https://www.ruby-forum.com/t/does-the-long-polling-module-work-with-nginx-1-0-6/212244)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 15\
**Last updated:** [October 8, 2011, 7:55am UTC](https://www.ruby-forum.com/t/does-the-long-polling-module-work-with-nginx-1-0-6/212244 "2011-10-08T07:55:02Z")

</div>

Hi, I am using nginx with the long polling module. When 0.7 something was new, I compiled nginx with the long polling module and wrote my application. It ran under Ubuntu for 18 months or so, without problem. Durin…

---

## [Nginx not starting because of bad/missing path to access\_log](https://www.ruby-forum.com/t/nginx-not-starting-because-of-bad-missing-path-to-access-log/212598)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [October 7, 2011, 10:42pm UTC](https://www.ruby-forum.com/t/nginx-not-starting-because-of-bad-missing-path-to-access-log/212598 "2011-10-07T22:42:47Z")

</div>

Hi, Just want to point this case where nginx won’t start and eventually suggest a feature to avoid this situation. nginx vhost is configured with the following directive: access\_log /domhome/some-random-domain.c…

---

## [Nginx - hotlinking](https://www.ruby-forum.com/t/nginx-hotlinking/212595)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [October 7, 2011, 7:36pm UTC](https://www.ruby-forum.com/t/nginx-hotlinking/212595 "2011-10-07T19:36:03Z")

</div>

Hi Igor S., Could you please help how to stop badguys from hotlinking my images. I try a lot of code and nothing happens I don’t know which file to edit I use this code in sudo nano /usr/local/nginx/sites-availabl…

---

## [Nginx setting up \>25.000 concurrent connections per second](https://www.ruby-forum.com/t/nginx-setting-up-25-000-concurrent-connections-per-second/212575)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 14\
**Last updated:** [October 7, 2011, 12:45pm UTC](https://www.ruby-forum.com/t/nginx-setting-up-25-000-concurrent-connections-per-second/212575 "2011-10-07T12:45:45Z")

</div>

Hi, I a preparing a new web environment with high requirements: 100.000 concurrents connections per second (sometimes). Every server will execute a php script through php5-fpm. I am testing where are the limits of ng…

---

## [FRiCKLE Labs & yo.se pres. ngx\_cache\_purge](https://www.ruby-forum.com/t/frickle-labs-yo-se-pres-ngx-cache-purge/181369)

<div class="topic-metadata">

**Author:** [@piotrs](https://www.ruby-forum.com/u/piotrs)\
**Replies:** 26\
**Last updated:** [October 7, 2011, 7:29am UTC](https://www.ruby-forum.com/t/frickle-labs-yo-se-pres-ngx-cache-purge/181369 "2011-10-07T07:29:19Z")

</div>

Hello, ngx\_cache\_purge is a module which adds ability to purge content from FastCGI and proxy caches. This is rewrite of well-tested cache\_purge patch (kindly funded by yo.se), so hopefully this short introduction i…

---

## [Ngx\_openresty 1.0.6.22 released](https://www.ruby-forum.com/t/ngx-openresty-1-0-6-22-released/212588)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [October 7, 2011, 7:18am UTC](https://www.ruby-forum.com/t/ngx-openresty-1-0-6-22-released/212588 "2011-10-07T07:18:14Z")

</div>

Hi, folks! I’m happy to announce that the stable release of ngx\_openresty, 1.0.6.22, has just been released: OpenResty® - Open source Here goes the complete change log for this release, as compared to the last sta…

---

## [Ngx\_cache\_purge 1.4](https://www.ruby-forum.com/t/ngx-cache-purge-1-4/212587)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [October 7, 2011, 6:21am UTC](https://www.ruby-forum.com/t/ngx-cache-purge-1-4/212587 "2011-10-07T06:21:36Z")

</div>

Version 1.4 is now available at: http://labs.frickle.com/nginx\_ngx\_cache\_purge/ GitHub repository is available at: http://github.com/FRiCKLE/ngx\_cache\_purge/ Changes: 2011-10-05 VERSION 1.4 \* Add AIO support. R…

---

## [Nginx sticky module compile error](https://www.ruby-forum.com/t/nginx-sticky-module-compile-error/208360)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 12\
**Last updated:** [October 6, 2011, 10:38pm UTC](https://www.ruby-forum.com/t/nginx-sticky-module-compile-error/208360 "2011-10-06T22:38:15Z")

</div>

Hello, we have problems compiling the nginx-sticky module (downloaded from Google Code Archive - Long-term storage for Google Code Project Hosting.) in nginx version 1.0.3 and 1.0.4. Here is the output of the “make” c…

---

## [Does "set\_real\_ip\_from" support IPv4 only?](https://www.ruby-forum.com/t/does-set-real-ip-from-support-ipv4-only/212570)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [October 6, 2011, 6:14pm UTC](https://www.ruby-forum.com/t/does-set-real-ip-from-support-ipv4-only/212570 "2011-10-06T18:14:09Z")

</div>

Hi, I’m confused, I get this error by entering an IPv6 address in the set\_real\_ip\_from directive: nginx: \[emerg\] “set\_real\_ip\_from” supports IPv4 only in /usr/local/nginx/conf/nginx.conf:65 But according to the chan…

---

## [Nginx does not Cache Google Adsense and Some other widgets - help](https://www.ruby-forum.com/t/nginx-does-not-cache-google-adsense-and-some-other-widgets-help/212506)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [October 6, 2011, 4:10pm UTC](https://www.ruby-forum.com/t/nginx-does-not-cache-google-adsense-and-some-other-widgets-help/212506 "2011-10-06T16:10:25Z")

</div>

Nginx 1.0.x I have set up my cache like this: proxy\_cache\_key $host$uri$is\_args$args; proxy\_cache\_methods POST; proxy\_cache STATIC; proxy\_cache\_valid 200 1d; proxy\_cache\_use\_stale error timeout in…

---

## [Nginx-1.1.5](https://www.ruby-forum.com/t/nginx-1-1-5/212518)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [October 6, 2011, 2:17pm UTC](https://www.ruby-forum.com/t/nginx-1-1-5/212518 "2011-10-06T14:17:36Z")

</div>

Changes with nginx 1.1.5 05 Oct 2011 \*) Feature: the "uwsgi\_buffering" and "scgi\_buffering" directives. Thanks to Peter Smit. \*) Bugfix: non-cacheable responses might be cach…

---

## [Ruby p290p; nginx 1.0.;8 unicorn url redirect](https://www.ruby-forum.com/t/ruby-p290p-nginx-1-0-8-unicorn-url-redirect/212559)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [October 6, 2011, 8:42am UTC](https://www.ruby-forum.com/t/ruby-p290p-nginx-1-0-8-unicorn-url-redirect/212559 "2011-10-06T08:42:39Z")

</div>

Hi, Sorry to bother you, I find this odd problem. When using ruby p180 + nginx 1.0.8 + unicorn, the url redirection works perfectly but with ruby p290, the page always redirects to the first entry on our vhost file. …

---

## [Too many redirects](https://www.ruby-forum.com/t/too-many-redirects/212558)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [October 6, 2011, 8:35am UTC](https://www.ruby-forum.com/t/too-many-redirects/212558 "2011-10-06T08:35:15Z")

</div>

I’m following the wiki’s guidelines with: server { server\_name mike.example.com; rewrite ^ http://www.example.com$request\_uri? permanent; } I’m getting a “this page has too many redirects error”. So I tried: locat…

---

## [Windows NGINX 1.0.8 Crash when using -s stop or -s quit](https://www.ruby-forum.com/t/windows-nginx-1-0-8-crash-when-using-s-stop-or-s-quit/212524)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [October 5, 2011, 8:19pm UTC](https://www.ruby-forum.com/t/windows-nginx-1-0-8-crash-when-using-s-stop-or-s-quit/212524 "2011-10-05T20:19:48Z")

</div>

I sent this message to the mailing list but I haven’t seen it show up anywhere. I apologize if somehow this becomes a duplicate. Windows 7 64-bit NGINX 1.0.8 (32-bit) I run nginx with 1 worker process. When I do ng…

---

## [Passing variables via passenger\_set\_cgi\_param](https://www.ruby-forum.com/t/passing-variables-via-passenger-set-cgi-param/212507)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [October 5, 2011, 5:50pm UTC](https://www.ruby-forum.com/t/passing-variables-via-passenger-set-cgi-param/212507 "2011-10-05T17:50:50Z")

</div>

Hi, My nginx location configuration looks like this location ~\* ^/z/(\\d+)$ { set $mID $1; set $tag\_type 'z'; access\_log /opt/nginx/logs/bright\_tag.log bright\_tag\_log; if ($arg\_ui…

---

## [Upload module parameters issue](https://www.ruby-forum.com/t/upload-module-parameters-issue/212467)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [October 4, 2011, 7:06pm UTC](https://www.ruby-forum.com/t/upload-module-parameters-issue/212467 "2011-10-04T19:06:59Z")

</div>

Thanks very much, that really helped! On Mon Oct 3 19:04:22 UTC 2011, Andrew H. wrote: Hi there, upload\_set\_form\_field “${upload\_field\_name}\_name” $upload\_file\_name;\> \> upload\_set\_form\_field “${upload\_field\_name}\_…

---

## [$https variable?](https://www.ruby-forum.com/t/https-variable/212172)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [October 4, 2011, 1:00pm UTC](https://www.ruby-forum.com/t/https-variable/212172 "2011-10-04T13:00:27Z")

</div>

It would be great if there was an $https variable that was “on” or “off” (or “”) so you could do something like this: fastcgi\_param HTTPS $https; Because currently telling PHP https is enabled is much harder, especi…

---

## [How to install nginx-1.0.8 and config to play streaming and mp4](https://www.ruby-forum.com/t/how-to-install-nginx-1-0-8-and-config-to-play-streaming-and-mp4/212482)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [October 4, 2011, 12:20pm UTC](https://www.ruby-forum.com/t/how-to-install-nginx-1-0-8-and-config-to-play-streaming-and-mp4/212482 "2011-10-04T12:20:14Z")

</div>

How to install nginx-1.0.8 and config to play streaming and mp4 i try to compile but i can not play mp4 in jw player Thank

---

## [Does Nginx honor DNS TTLs for proxy upstreams?](https://www.ruby-forum.com/t/does-nginx-honor-dns-ttls-for-proxy-upstreams/212221)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 11\
**Last updated:** [October 4, 2011, 10:13am UTC](https://www.ruby-forum.com/t/does-nginx-honor-dns-ttls-for-proxy-upstreams/212221 "2011-10-04T10:13:33Z")

</div>

I have a short question on Nginx’s proxy module. In our setup we reverse proxy specific requests to the server of an external partner via proxy\_pass. Over the weekend the partner updated DNS but Nginx wasn’t catching …

---

## [Problem with GZIP](https://www.ruby-forum.com/t/problem-with-gzip/212320)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 7\
**Last updated:** [October 3, 2011, 4:05pm UTC](https://www.ruby-forum.com/t/problem-with-gzip/212320 "2011-10-03T16:05:03Z")

</div>

I have ubuntu server 10.04, nginx 1.1.4(compiled) and my gzip support is not working. This is my configuration: nginx: nginx version: nginx/1.1.4 nginx: built by gcc 4.4.3 (Ubuntu 4.4.3-4ubuntu5) nginx: TLS SNI suppo…

---

## [Number of upstream definitions, and a suggestion](https://www.ruby-forum.com/t/number-of-upstream-definitions-and-a-suggestion/212435)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [October 3, 2011, 12:12am UTC](https://www.ruby-forum.com/t/number-of-upstream-definitions-and-a-suggestion/212435 "2011-10-03T00:12:38Z")

</div>

I currently have maybe a couple hundred upstream definitions but am likely to grow to thousands. Are there any practical or theoretical limits to the number of upstream definitions that can exist in one nginx instanc…

---

## [Retrying proxy connect timeouts but not read timeouts](https://www.ruby-forum.com/t/retrying-proxy-connect-timeouts-but-not-read-timeouts/212434)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [October 3, 2011, 12:08am UTC](https://www.ruby-forum.com/t/retrying-proxy-connect-timeouts-but-not-read-timeouts/212434 "2011-10-03T00:08:18Z")

</div>

I’ve got a proxy + upstream setup with three defined upstream servers. I would like nginx to retry requests when there is an error or when there is a connection timeout (but not a read timeout). However, it appears t…

---

## [Nginx-1.0.8](https://www.ruby-forum.com/t/nginx-1-0-8/212371)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [October 2, 2011, 5:12pm UTC](https://www.ruby-forum.com/t/nginx-1-0-8/212371 "2011-10-02T17:12:05Z")

</div>

Changes with nginx 1.0.8 01 Oct 2011 \*) Bugfix: nginx could not be built --with-http\_mp4\_module and without –with-debug option. – Igor S.

---

## [Best way to burst static file cache](https://www.ruby-forum.com/t/best-way-to-burst-static-file-cache/212224)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [October 2, 2011, 3:16pm UTC](https://www.ruby-forum.com/t/best-way-to-burst-static-file-cache/212224 "2011-10-02T15:16:33Z")

</div>

Hi Loving nginx, thanks Igor! I’m caching static files in a very traditional way, I hope: location ~\* .(js|css|png|jpg|jpeg|gif|ico)$ { #expires max; expires 30m; access\_log off; log\_not\_found on; …

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

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