# Server

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

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

---

## [Confused by documentation for /alias/](https://www.ruby-forum.com/t/confused-by-documentation-for-alias/210527)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [August 10, 2011, 12:44pm UTC](https://www.ruby-forum.com/t/confused-by-documentation-for-alias/210527 "2011-08-10T12:44:07Z")

</div>

Hi From: http://wiki.nginx.org/HttpCoreModule BEGIN For example: location ~ ^/download/(.\*)$ { alias /home/website/files/$1; } The request “/download/book.pdf” will return the file “/home/website/files/book.pdf”.…

---

## [Map module not working with new 1.1.0](https://www.ruby-forum.com/t/map-module-not-working-with-new-1-1-0/210512)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [August 10, 2011, 3:02am UTC](https://www.ruby-forum.com/t/map-module-not-working-with-new-1-1-0/210512 "2011-08-10T03:02:35Z")

</div>

Hi Guys, Has anyone experienced any issues with the map module using the new 1.1.0 compile of nginx? I am mapping user agents and under 1.0.5 everything worked great, with the new version the exact same config doesn…

---

## [Unofficial, automatically updated Github mirror of the SVN repository](https://www.ruby-forum.com/t/unofficial-automatically-updated-github-mirror-of-the-svn-repository/210486)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [August 9, 2011, 6:36pm UTC](https://www.ruby-forum.com/t/unofficial-automatically-updated-github-mirror-of-the-svn-repository/210486 "2011-08-09T18:36:30Z")

</div>

We’ve launched an unofficial, automatically updated Github mirror of the Nginx SVN repository. This mirror is automatically updated twice a day. I’ve written more about this at http://blog.phusion.nl/2011/08/09/launch…

---

## [NetBSD + nginx-0.8.53 + accept filters - not working](https://www.ruby-forum.com/t/netbsd-nginx-0-8-53-accept-filters-not-working/210475)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 7\
**Last updated:** [August 9, 2011, 4:23pm UTC](https://www.ruby-forum.com/t/netbsd-nginx-0-8-53-accept-filters-not-working/210475 "2011-08-09T16:23:20Z")

</div>

Hello, Giving nginx a spin on NetBSD, I noticed: accept filters “accept\_filter=httpready” are not supported on this platform, ignored in /usr/pkg/etc/nginx/nginx.conf:40 But NetBSD does support them: accf\_http (9) -…

---

## [Minify and Gzip](https://www.ruby-forum.com/t/minify-and-gzip/210481)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [August 9, 2011, 4:03pm UTC](https://www.ruby-forum.com/t/minify-and-gzip/210481 "2011-08-09T16:03:32Z")

</div>

Hello, I just wanted to share a perl script I made for nginx. Its aim is to: minify CSS (and by a simple modification JS) deflate it keep it as a local file It’s based on the nice http://wiki.nginx.org/NginxEmbeddedP…

---

## [Ngx\_openresty 1.0.4.2 released](https://www.ruby-forum.com/t/ngx-openresty-1-0-4-2-released/210470)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [August 9, 2011, 9:47am UTC](https://www.ruby-forum.com/t/ngx-openresty-1-0-4-2-released/210470 "2011-08-09T09:47:28Z")

</div>

Hi, folks! I’m happy to announce that ngx\_openresty 1.0.4.2 has been released: OpenResty® - Open source This release features the ability to be built and run on FreeBSD 8.2 and Solaris 11, even with LuaJIT enabled. O…

---

## [Nginx logging conundrum](https://www.ruby-forum.com/t/nginx-logging-conundrum/210462)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [August 9, 2011, 8:05am UTC](https://www.ruby-forum.com/t/nginx-logging-conundrum/210462 "2011-08-09T08:05:24Z")

</div>

I need some enlightenment from some savants here. My issue is I can’t seem to get logging to work besides logging to /var/log/messages. I originally installed the non-devel port on freebsd 8.2, which actually logged …

---

## [Ngx\_lua v0.1.5: ability to capture multiple parallel subrequests](https://www.ruby-forum.com/t/ngx-lua-v0-1-5-ability-to-capture-multiple-parallel-subrequests/202944)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 18\
**Last updated:** [August 9, 2011, 6:03am UTC](https://www.ruby-forum.com/t/ngx-lua-v0-1-5-ability-to-capture-multiple-parallel-subrequests/202944 "2011-08-09T06:03:50Z")

</div>

Hi, folks! I’m pleased to announce that ngx\_lua v0.1.5 is now released. You can download the release tarball from the download page: https://github.com/chaoslawful/lua-nginx-module/downloads This version of the ngx\_l…

---

## [Map\_hash\_\*\_size](https://www.ruby-forum.com/t/map-hash-size/210433)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [August 8, 2011, 4:40pm UTC](https://www.ruby-forum.com/t/map-hash-size/210433 "2011-08-08T16:40:32Z")

</div>

I’m getting the error like this: nginx: \[emerg\] could not build the map\_hash, you should increase either map\_hash\_max\_size: 2048 or map\_hash\_bucket\_size: 64 I solved it by setting large values to those two variables, …

---

## [Segfault in nginx 1.0.5](https://www.ruby-forum.com/t/segfault-in-nginx-1-0-5/210421)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 7\
**Last updated:** [August 8, 2011, 11:12am UTC](https://www.ruby-forum.com/t/segfault-in-nginx-1-0-5/210421 "2011-08-08T11:12:55Z")

</div>

Hi guys, I’m seeing a small segfault in 1.0.5 It is strage there is something triggering it as it happens at the same time every night. It isn’t triggered by crontab as I have nothing that runs at that time. I’m run…

---

## [Allow access to only a specific user from a htpasswd file](https://www.ruby-forum.com/t/allow-access-to-only-a-specific-user-from-a-htpasswd-file/210422)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [August 8, 2011, 6:01am UTC](https://www.ruby-forum.com/t/allow-access-to-only-a-specific-user-from-a-htpasswd-file/210422 "2011-08-08T06:01:46Z")

</div>

Hi, I have a password file that contains several users, but for one particular page on my site, I want only one specific user from that file to be allowed access. Apache has a “Require user” directive for this, and I…

---

## [Not able to use activesync with an iphone](https://www.ruby-forum.com/t/not-able-to-use-activesync-with-an-iphone/205917)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [August 8, 2011, 5:54am UTC](https://www.ruby-forum.com/t/not-able-to-use-activesync-with-an-iphone/205917 "2011-08-08T05:54:21Z")

</div>

Hi everybody, I just install Nginx on a Debian server into a DMZ to publish Exchange (2K3 Std) services on the internet. It works with Android systems but it doesn’t work with iphone. I get the error message : “imposs…

---

## [Location based access log](https://www.ruby-forum.com/t/location-based-access-log/210368)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [August 7, 2011, 1:12pm UTC](https://www.ruby-forum.com/t/location-based-access-log/210368 "2011-08-07T13:12:44Z")

</div>

Hi all. I’m trying to log request to a specific directory to an alternate access\_log. The docs suggest the access\_log can be specified in the http, server, or location level. eg: server { access\_log /var/log/ngi…

---

## [Nginx with websockets and http 1.1](https://www.ruby-forum.com/t/nginx-with-websockets-and-http-1-1/210379)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [August 6, 2011, 10:46am UTC](https://www.ruby-forum.com/t/nginx-with-websockets-and-http-1-1/210379 "2011-08-06T10:46:26Z")

</div>

Dear list members, I aim to use nginx as ssl offloader position. However, I have read some writings about websockets support is not available at nginx proxy module. Also it says it is not possible for nginx proxy modu…

---

## [Existe una opción seria para nginx + comet para poner en un servidor de producción?](https://www.ruby-forum.com/t/existe-una-opcion-seria-para-nginx-comet-para-poner-en-un-servidor-de-produccion/210362)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [August 5, 2011, 6:06pm UTC](https://www.ruby-forum.com/t/existe-una-opcion-seria-para-nginx-comet-para-poner-en-un-servidor-de-produccion/210362 "2011-08-05T18:06:01Z")

</div>

Existe una opción seria para nginx + comet para poner en un servidor de producción? Hola a todos, escribo desde Colombia, alguien sabe si existe una manera de hacer Comet con Nginx a parte de http://pushmodule.slact.n…

---

## [Return 404 from map module default value](https://www.ruby-forum.com/t/return-404-from-map-module-default-value/210354)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [August 5, 2011, 5:44pm UTC](https://www.ruby-forum.com/t/return-404-from-map-module-default-value/210354 "2011-08-05T17:44:23Z")

</div>

I’m using map module to redirect URLs which have been removed (but indexed by search engine). But how can I fall back to http 404 response for urls not present in my redirect list? I’ve tried following, but I got 200…

---

## [D](https://www.ruby-forum.com/t/d/210332)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [August 5, 2011, 3:09pm UTC](https://www.ruby-forum.com/t/d/210332 "2011-08-05T15:09:42Z")

</div>

Hi, Is there any way I can 301 redirect a lot of (\>10k) old urls to new urls in nginx conf? Writing 10k lines of rewrite rules seems to be not efficient as those rules will get checked for every single request. I’m …

---

## [Question on 301 redirect](https://www.ruby-forum.com/t/question-on-301-redirect/210333)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [August 5, 2011, 10:54am UTC](https://www.ruby-forum.com/t/question-on-301-redirect/210333 "2011-08-05T10:54:23Z")

</div>

Hi, Is there any way I can 301 redirect a lot of (\>10k) old urls to new urls in nginx conf? Writing 10k lines of rewrite rules seems to be not efficient as those rules will get checked for every single request. I’m …

---

## [Nginx reverse proxy: with/without client cert on different path/location (same host/FQDN)](https://www.ruby-forum.com/t/nginx-reverse-proxy-with-without-client-cert-on-different-path-location-same-host-fqdn/210338)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [August 5, 2011, 9:56am UTC](https://www.ruby-forum.com/t/nginx-reverse-proxy-with-without-client-cert-on-different-path-location-same-host-fqdn/210338 "2011-08-05T09:56:17Z")

</div>

Hello nginx list, running version 0.8.54-4 9 (ubuntu 11.04) Tried to configure nginx as reverse proxy for a wish to have client cert authention on a specific url-path, but i failed. The wish is to have: https://host…

---

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

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 17\
**Last updated:** [August 4, 2011, 11:12pm UTC](https://www.ruby-forum.com/t/nginx-company/209598 "2011-08-04T23:12:59Z")

</div>

I have got news for you about nginx. Recently it became very clear for me that because of increasing popularity of nginx and the volume of work required to develop the code and doing support, I really need to put it …

---

## [Log Parsing - Near Real Time](https://www.ruby-forum.com/t/log-parsing-near-real-time/210162)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 14\
**Last updated:** [August 4, 2011, 9:17pm UTC](https://www.ruby-forum.com/t/log-parsing-near-real-time/210162 "2011-08-04T21:17:58Z")

</div>

I’m looking for a near real-time script to parse log files and insert interesting data into a db. Does anyone know of an existing script to do this? John

---

## [Bug in supporting Quality zero (negate) parameter in Accept-Encoding](https://www.ruby-forum.com/t/bug-in-supporting-quality-zero-negate-parameter-in-accept-encoding/210074)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 9\
**Last updated:** [August 4, 2011, 5:06pm UTC](https://www.ruby-forum.com/t/bug-in-supporting-quality-zero-negate-parameter-in-accept-encoding/210074 "2011-08-04T17:06:13Z")

</div>

Spent the last day chasing down a corner case with Nginx and Level3 CDN. It turns out that some requests that they send have the following Accept-Encoding header. “Accept-Encoding: compress, gzip;q=0” Based on this …

---

## [Nginx tries to allocate a huge number of memory and fails](https://www.ruby-forum.com/t/nginx-tries-to-allocate-a-huge-number-of-memory-and-fails/210281)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [August 4, 2011, 8:47am UTC](https://www.ruby-forum.com/t/nginx-tries-to-allocate-a-huge-number-of-memory-and-fails/210281 "2011-08-04T08:47:50Z")

</div>

hi i’m having a strange case where nginx is trying to allocate some really huge amount of memory. we created a new vhost on nginx to provide an internal interface to flush the apc cache of php. in most of the cases i…

---

## [Fail to complie nginx with google-perftools](https://www.ruby-forum.com/t/fail-to-complie-nginx-with-google-perftools/210278)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [August 4, 2011, 6:00am UTC](https://www.ruby-forum.com/t/fail-to-complie-nginx-with-google-perftools/210278 "2011-08-04T06:00:44Z")

</div>

I compile nginx with google-perftools 1.8.1 ./configure --with-cc-opt=-ltcmalloc make It fail in 1.0.2 ~ 1.1.0 : objs/src/core/ngx\_shmtx.o: In function ngx\_shmtx\_unlock': /root/nginx-1.1.0/src/core/ngx\_shmtx.c:170: …

---

## [Joomla/Magento Login](https://www.ruby-forum.com/t/joomla-magento-login/210282)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [August 4, 2011, 5:50am UTC](https://www.ruby-forum.com/t/joomla-magento-login/210282 "2011-08-04T05:50:54Z")

</div>

Hi, Installed nginx on sites mysite.in (joomla) mysite.in/mall(magento) Nginx is ok need help with login urls etc In main site user logins if he goes then to homepage still shows that he is not logged in in frontend …

---

## [502 errors, upstream sent too big header](https://www.ruby-forum.com/t/502-errors-upstream-sent-too-big-header/205347)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 11\
**Last updated:** [August 4, 2011, 4:02am UTC](https://www.ruby-forum.com/t/502-errors-upstream-sent-too-big-header/205347 "2011-08-04T04:02:22Z")

</div>

We seem to be getting sporadic 502 errors, mostly when users are logging in. We run a Mediawiki based website, are running nginx 0.9.5, php-fpm 5.3.5. The error: 2011/04/04 10:41:34 \[error\] 30517#0: \*2143711 upstrea…

---

## [Nginx 0.8.55 && 1.1.0 core dump if switch from http to https with HUP](https://www.ruby-forum.com/t/nginx-0-8-55-1-1-0-core-dump-if-switch-from-http-to-https-with-hup/210199)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [August 3, 2011, 5:47pm UTC](https://www.ruby-forum.com/t/nginx-0-8-55-1-1-0-core-dump-if-switch-from-http-to-https-with-hup/210199 "2011-08-03T17:47:09Z")

</div>

Hi, Nginx crash if switch http to https, steps to reproduce are : setup a normal config of http start nginx edit config file and add: ssl on; ssl\_certificate /path/to/root.cert; ssl\_certificate\_key /path/…

---

## [Nginx + fastCGI = 502 bad gateway](https://www.ruby-forum.com/t/nginx-fastcgi-502-bad-gateway/210255)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [August 3, 2011, 4:57pm UTC](https://www.ruby-forum.com/t/nginx-fastcgi-502-bad-gateway/210255 "2011-08-03T16:57:02Z")

</div>

Greetings I’m trying to setup Nagios web interface to work with Nginx, but I’m showed a 502 Bad Gateway just after login. This is the nginx log (10.82.1.158 is the server and 10.82.1.106 is the client): ==\> /var/log…

---

## [Load balancing Oracle Forms 11g Backends - Very slow performance!](https://www.ruby-forum.com/t/load-balancing-oracle-forms-11g-backends-very-slow-performance/210258)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [August 3, 2011, 4:29pm UTC](https://www.ruby-forum.com/t/load-balancing-oracle-forms-11g-backends-very-slow-performance/210258 "2011-08-03T16:29:14Z")

</div>

Hi, i have succeeded in setting up nginx (currently 1.1.0) for load balancing 2 backends running the Oracle forms 11g application. Additionally, i’ve set up nginx with the jvmRoute module to have session stickyness …

---

## [Nginx Memcached 20000 bytes limit](https://www.ruby-forum.com/t/nginx-memcached-20000-bytes-limit/210259)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [August 3, 2011, 4:26pm UTC](https://www.ruby-forum.com/t/nginx-memcached-20000-bytes-limit/210259 "2011-08-03T16:26:08Z")

</div>

Hi i encountered the following issue with nginx 1.0.0-1 from dotdeb on debian squeeze linked to memcache servers : Datas stored in memcache and greater then 20000 bytes are corrupted when retrieved by nginx with mem…

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

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