# Server

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

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

---

## [Redirect www to no-www with variable (for multiple domains)?](https://www.ruby-forum.com/t/redirect-www-to-no-www-with-variable-for-multiple-domains/245718)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 6\
**Last updated:** [July 8, 2013, 11:48pm UTC](https://www.ruby-forum.com/t/redirect-www-to-no-www-with-variable-for-multiple-domains/245718 "2013-07-08T23:48:00Z")

</div>

According to Pitfalls and Common Mistakes | NGINX this is the best solution to redirect www to no-www for one domain: server { server\_name www.domain.com; return 301 $scheme://domain.com$request\_uri; } server { se…

---

## [Perl/CGI on Nginx?](https://www.ruby-forum.com/t/perl-cgi-on-nginx/245709)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [July 8, 2013, 6:55pm UTC](https://www.ruby-forum.com/t/perl-cgi-on-nginx/245709 "2013-07-08T18:55:18Z")

</div>

Hello everyone. I’m running Nginx on OpenBSD. PHP works fine, but how can I add support to .pl and .cgi files for Nginx? Many thanks.

---

## [Spdy per location](https://www.ruby-forum.com/t/spdy-per-location/235685)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [July 8, 2013, 6:40pm UTC](https://www.ruby-forum.com/t/spdy-per-location/235685 "2013-07-08T18:40:42Z")

</div>

Hi I’m trying to set up spdy so that I can choose weather or not to use it based on the server location that’s accessed As I understand, the underlying protocol (http/https/spdy) is established first before any reque…

---

## [New requests are not updated in nginx](https://www.ruby-forum.com/t/new-requests-are-not-updated-in-nginx/235665)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [July 7, 2013, 5:32am UTC](https://www.ruby-forum.com/t/new-requests-are-not-updated-in-nginx/235665 "2013-07-07T05:32:07Z")

</div>

Hello, I have installed nginx as proxy server for our project purposes. We kept our application in our private lan and made that private url (say http://a.b.c.d:1234/appName) an entry in nginx config file (/etc/ngin…

---

## [SPDY Installed but not working?](https://www.ruby-forum.com/t/spdy-installed-but-not-working/235615)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 10\
**Last updated:** [July 5, 2013, 5:59pm UTC](https://www.ruby-forum.com/t/spdy-installed-but-not-working/235615 "2013-07-05T17:59:19Z")

</div>

We have installed Nginx on CentOS 6. This is a new install using Nginx 1.4.1 and OpenSSL 1.0.1e We then confgured our vhosts to use SPDY, however using a few different tests, it’s showing that SPDY is not enabled? T…

---

## [Congrats to nginx - now the most used webserver in the top 1000 websites](https://www.ruby-forum.com/t/congrats-to-nginx-now-the-most-used-webserver-in-the-top-1000-websites/245717)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [July 5, 2013, 3:51pm UTC](https://www.ruby-forum.com/t/congrats-to-nginx-now-the-most-used-webserver-in-the-top-1000-websites/245717 "2013-07-05T15:51:57Z")

</div>

http://w3techs.com/blog/entry/nginx\_just\_became\_the\_most\_used\_web\_server\_among\_the\_top\_1000\_websites

---

## [Tweak proxy\_next\_upstream based on HTTP method](https://www.ruby-forum.com/t/tweak-proxy-next-upstream-based-on-http-method/245706)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 3\
**Last updated:** [July 5, 2013, 3:46pm UTC](https://www.ruby-forum.com/t/tweak-proxy-next-upstream-based-on-http-method/245706 "2013-07-05T15:46:41Z")

</div>

Hi all, I was wondering if there is a way to have different proxy\_\* rules depending on the HTTP method? My use case is that I want to be a little more conservative about what requests I retry for POST requests, as th…

---

## [Possible to have a limit\_req "nodelay burst" option?](https://www.ruby-forum.com/t/possible-to-have-a-limit-req-nodelay-burst-option/228264)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 6\
**Last updated:** [July 4, 2013, 6:04pm UTC](https://www.ruby-forum.com/t/possible-to-have-a-limit-req-nodelay-burst-option/228264 "2013-07-04T18:04:49Z")

</div>

Hello, I’m using the limit\_req directive to control the rate at which my backends are hit with requests. Typically a backend will generate a page and the client will not request anything for a short while, so a rate …

---

## [Error.log file doesn't log "404 File Not Found" errors](https://www.ruby-forum.com/t/error-log-file-doesnt-log-404-file-not-found-errors/245731)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [July 4, 2013, 2:28pm UTC](https://www.ruby-forum.com/t/error-log-file-doesnt-log-404-file-not-found-errors/245731 "2013-07-04T14:28:04Z")

</div>

My error.log doesn’t show any request/log based on .php requests, i.e. when I type /test.php (file doesn’t exist), error.log doesn’t show anything regarding it. Shouldn’t nginx log this request inside error.log as 404…

---

## [Solution for bandwidth limit on Virtualhosts, Nginx](https://www.ruby-forum.com/t/solution-for-bandwidth-limit-on-virtualhosts-nginx/245693)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [July 4, 2013, 2:22pm UTC](https://www.ruby-forum.com/t/solution-for-bandwidth-limit-on-virtualhosts-nginx/245693 "2013-07-04T14:22:49Z")

</div>

Hello. I’ve written a script for having the details of bandwidth usage (100GB per Month, as an example) of hosted websites, for Nginx server. Anyone needs such solution, feel free to contact me.

---

## [Nginx upstream servers status](https://www.ruby-forum.com/t/nginx-upstream-servers-status/235605)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 10\
**Last updated:** [July 4, 2013, 7:39am UTC](https://www.ruby-forum.com/t/nginx-upstream-servers-status/235605 "2013-07-04T07:39:46Z")

</div>

Hi, I am trying to configure nginx with upstream. We have 3 machines where we run application server and proxy passing all requests from nginx to application serves. I used following configuration in nginx: upstream…

---

## [Disable access log escaping](https://www.ruby-forum.com/t/disable-access-log-escaping/245716)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [July 4, 2013, 12:33am UTC](https://www.ruby-forum.com/t/disable-access-log-escaping/245716 "2013-07-04T00:33:23Z")

</div>

Hi, I’m using a module which sets some data formated as json to a variable. I’m trying to log this variable using the access log, but the content is escaped. I’m getting something like {\\x22foo\\x22:\\x22bar\\x22} inste…

---

## [Nginx-1.5.2](https://www.ruby-forum.com/t/nginx-1-5-2/235592)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [July 3, 2013, 3:17pm UTC](https://www.ruby-forum.com/t/nginx-1-5-2/235592 "2013-07-03T15:17:46Z")

</div>

Changes with nginx 1.5.2 02 Jul 2013 \*) Feature: now several "error\_log" directives can be used. \*) Bugfix: the $r-\>header\_in() embedded perl method did not return value of t…

---

## [Cannot totally switch off caching](https://www.ruby-forum.com/t/cannot-totally-switch-off-caching/245666)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 18\
**Last updated:** [July 3, 2013, 8:53am UTC](https://www.ruby-forum.com/t/cannot-totally-switch-off-caching/245666 "2013-07-03T08:53:59Z")

</div>

Greeting! For some testing I need to switch off a nginx caching (nginx + php-fpm). Now I have a trouble - when I request a server (PHP app) first time, response generated about 10 sec (its ok), but when a request a …

---

## [What is the purpose of this "location {}" block?](https://www.ruby-forum.com/t/what-is-the-purpose-of-this-location-block/235589)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [July 2, 2013, 3:09pm UTC](https://www.ruby-forum.com/t/what-is-the-purpose-of-this-location-block/235589 "2013-07-02T15:09:08Z")

</div>

I’m using ISPConfig3 and the default nginx vhost configuration template includes the following: location ~ .php$ { try\_files /dcc5f1e779623ed233ada555c6142e42.htm @php; } location @php { try\_files $uri =404; inclu…

---

## [Beautiful lights for sale](https://www.ruby-forum.com/t/beautiful-lights-for-sale/235591)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [July 2, 2013, 8:21am UTC](https://www.ruby-forum.com/t/beautiful-lights-for-sale/235591 "2013-07-02T08:21:58Z")

</div>

One of the more uncommon Verner Panton reissues of delayed is the VerPan Nineteen seventies Spion walls or Ceiling Light, although it’s perfect for anyone looking for something unique and area age for a space. Not tha…

---

## [Adding query string to redirect?](https://www.ruby-forum.com/t/adding-query-string-to-redirect/235584)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [July 2, 2013, 12:14am UTC](https://www.ruby-forum.com/t/adding-query-string-to-redirect/235584 "2013-07-02T00:14:38Z")

</div>

we’d like to add onto the query string an identifier of the nginx server something like: return 301 https://$host$request\_uri?source=server1 ; the problem is that we can’t figure out how to make this work correctly w…

---

## [GPG error on Nginx repository - NO\_PUBKEY](https://www.ruby-forum.com/t/gpg-error-on-nginx-repository-no-pubkey/215110)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [July 1, 2013, 7:27pm UTC](https://www.ruby-forum.com/t/gpg-error-on-nginx-repository-no-pubkey/215110 "2013-07-01T19:27:08Z")

</div>

When using the public Nginx repository for Ubuntu, I keep getting these errors since a week or two back: W: GPG error: http://nginx.org lucid Release: The following signatures couldn’t be verified because the public k…

---

## [How does FastCGI work under the covers?](https://www.ruby-forum.com/t/how-does-fastcgi-work-under-the-covers/235568)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [July 1, 2013, 7:09pm UTC](https://www.ruby-forum.com/t/how-does-fastcgi-work-under-the-covers/235568 "2013-07-01T19:09:02Z")

</div>

Hello Everybody, I have a simple question about the Nginx FastCGI implementation. Let’s say that 1,000 web browsers are requesting pages from our server, and we’re using FastCGI within Nginx. While the FastCGI spec…

---

## [Rewriting pages to re-rendered snapshots](https://www.ruby-forum.com/t/rewriting-pages-to-re-rendered-snapshots/235573)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 3\
**Last updated:** [July 1, 2013, 1:43pm UTC](https://www.ruby-forum.com/t/rewriting-pages-to-re-rendered-snapshots/235573 "2013-07-01T13:43:01Z")

</div>

I have a very Javascript heavy website which is being served by nginx. It all works great, except Google is having trouble indexing me. I’ve made pre-rendered snapshots of all my pages using Phantomjs and these are s…

---

## [Mp4 atom too large](https://www.ruby-forum.com/t/mp4-atom-too-large/235547)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 5\
**Last updated:** [July 1, 2013, 12:29am UTC](https://www.ruby-forum.com/t/mp4-atom-too-large/235547 "2013-07-01T00:29:03Z")

</div>

Hi I use ngx\_http\_mp4\_module quite heavily, and very occasionally I see this error for a few files: mp4 atom too large:723640794 With the number differing… Is the number the size of the atom in bytes? If so, 7236407…

---

## [1.4.1 SPDY error FIXME: chain too big in spdy filter](https://www.ruby-forum.com/t/1-4-1-spdy-error-fixme-chain-too-big-in-spdy-filter/235062)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 6\
**Last updated:** [June 30, 2013, 7:07pm UTC](https://www.ruby-forum.com/t/1-4-1-spdy-error-fixme-chain-too-big-in-spdy-filter/235062 "2013-06-30T19:07:46Z")

</div>

Hi, Running 1.4.1 and using SPDY and SSL extensively (exclusively, actually). Seeing a ton (thousands) of errors in the error log, similar to: 2013/05/29 00:22:53 \[alert\] 25981#0: \*8781732 FIXME: chain too big in sp…

---

## [Trouble adding /pma location to all virtual hosts](https://www.ruby-forum.com/t/trouble-adding-pma-location-to-all-virtual-hosts/235501)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 12\
**Last updated:** [June 28, 2013, 8:14pm UTC](https://www.ruby-forum.com/t/trouble-adding-pma-location-to-all-virtual-hosts/235501 "2013-06-28T20:14:53Z")

</div>

Hello, I’m trying to accomplish something that feels like it should be very simple, yet I’m struggling. I’m new to nginx, and I feel a bit lost as I try to “translate” everything that I’ve done in Apache over the year…

---

## [C.A.S checking/detections](https://www.ruby-forum.com/t/c-a-s-checking-detections/245661)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [June 28, 2013, 3:53pm UTC](https://www.ruby-forum.com/t/c-a-s-checking-detections/245661 "2013-06-28T15:53:08Z")

</div>

Dear I need to force Nginx to detect if client have a valid CAS ticket and be authentified to the CAS system. This to allow or ban access to websites. Is anybody have tried to build this infrastructure ? I have trie…

---

## [Check\_nginx\_status - nagios-plugin to monitor nginx status](https://www.ruby-forum.com/t/check-nginx-status-nagios-plugin-to-monitor-nginx-status/235544)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [June 28, 2013, 3:32pm UTC](https://www.ruby-forum.com/t/check-nginx-status-nagios-plugin-to-monitor-nginx-status/235544 "2013-06-28T15:32:41Z")

</div>

check\_nginx\_status is (yet another) Nagios-Plugin to monitor nginx status and alerts on various values, based on HttpStubStatus it also creates, based on the returned values, a csv to store data docs&downloads: http…

---

## [Nginx X-Accel-Redirect stripping Content-Encoding header](https://www.ruby-forum.com/t/nginx-x-accel-redirect-stripping-content-encoding-header/245648)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [June 28, 2013, 2:30pm UTC](https://www.ruby-forum.com/t/nginx-x-accel-redirect-stripping-content-encoding-header/245648 "2013-06-28T14:30:10Z")

</div>

I have Nginx setup to allow requests to be served with the X-Accel-Redirect header. This works fine for images, but I’m trying to get it to work for Javascript files that are already gzip’ed on the disk. It appears N…

---

## [Adding expires but not show up in headers](https://www.ruby-forum.com/t/adding-expires-but-not-show-up-in-headers/235385)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 7\
**Last updated:** [June 28, 2013, 7:19am UTC](https://www.ruby-forum.com/t/adding-expires-but-not-show-up-in-headers/235385 "2013-06-28T07:19:40Z")

</div>

Hi, I added a expires as follow: location ~ ^/images/ { root /var/www expires max; } if I do a curl -I http://localhost/images/sample.jpg, I got following headers, but can not find the “Expires” in the headers, wh…

---

## [JASIG CAS support/detection](https://www.ruby-forum.com/t/jasig-cas-support-detection/235536)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 0\
**Last updated:** [June 28, 2013, 12:20am UTC](https://www.ruby-forum.com/t/jasig-cas-support-detection/235536 "2013-06-28T00:20:40Z")

</div>

Dear I need to force Nginx to detect if client have a valid CAS ticket and be authentified to the CAS system. This to allow or ban access to websites. Is anybody have tried to build this infrastructure ? I have trie…

---

## [Re: Nginx + Uwsgi Error: unknown directive "uwsgi\_pass"](https://www.ruby-forum.com/t/re-nginx-uwsgi-error-unknown-directive-uwsgi-pass/235515)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [June 26, 2013, 10:50pm UTC](https://www.ruby-forum.com/t/re-nginx-uwsgi-error-unknown-directive-uwsgi-pass/235515 "2013-06-26T22:50:57Z")

</div>

Thanks for the help! Unfortunately, changing uwsgi\_pass to wsgi\_pass did not solve the problem. Now I just get an error saying there’s an unknown directive ‘wsgi\_pass’ instead of an unknown directive ‘uwsgi\_pass’. …

---

## [Call http request from location](https://www.ruby-forum.com/t/call-http-request-from-location/235497)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [June 26, 2013, 8:54am UTC](https://www.ruby-forum.com/t/call-http-request-from-location/235497 "2013-06-26T08:54:26Z")

</div>

Hy. It possible exec curl from location or call http request with other solution? I need request special url if user start playing mp4 video. thanks

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

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