# Server

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

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

---

## [Rewriting a url with a ? in it not working](https://www.ruby-forum.com/t/rewriting-a-url-with-a-in-it-not-working/180494)

<div class="topic-metadata">

**Author:** [@jimxms](https://www.ruby-forum.com/u/jimxms)\
**Replies:** 4\
**Last updated:** [December 20, 2009, 2:55pm UTC](https://www.ruby-forum.com/t/rewriting-a-url-with-a-in-it-not-working/180494 "2009-12-20T14:55:48Z")

</div>

Hi All, I’ve just recently moved over to nginx, so please excuse my stupidity if this is a really easy one to solve. I have the following URL: www.domain.net/content.php?/section/content\_title/1 which I am trying to…

---

## [Rewrite domain.com/index.php?show/name/title -\> domain.com/show/name/title](https://www.ruby-forum.com/t/rewrite-domain-com-index-php-show-name-title-domain-com-show-name-title/180471)

<div class="topic-metadata">

**Author:** [@gregbugaj](https://www.ruby-forum.com/u/gregbugaj)\
**Replies:** 2\
**Last updated:** [December 20, 2009, 12:06pm UTC](https://www.ruby-forum.com/t/rewrite-domain-com-index-php-show-name-title-domain-com-show-name-title/180471 "2009-12-20T12:06:05Z")

</div>

Hello I have a little problem with my rewrite and I need assist. It’s my config: server { listen 80; server\_name .domain.com; root /home/resources/domain/db; index …

---

## [Nginx-0.8.30](https://www.ruby-forum.com/t/nginx-0-8-30/180452)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 5\
**Last updated:** [December 20, 2009, 8:23am UTC](https://www.ruby-forum.com/t/nginx-0-8-30/180452 "2009-12-20T08:23:42Z")

</div>

Changes with nginx 0.8.30 15 Dec 2009 \*) Change: now the default buffer size of the "large\_client\_header\_buffers" directive is 8K. Thanks to Andrew Cholakian. \*) Feature: t…

---

## [If-clause garbles variable content](https://www.ruby-forum.com/t/if-clause-garbles-variable-content/180483)

<div class="topic-metadata">

**Author:** [@marius](https://www.ruby-forum.com/u/marius)\
**Replies:** 2\
**Last updated:** [December 20, 2009, 7:25am UTC](https://www.ruby-forum.com/t/if-clause-garbles-variable-content/180483 "2009-12-20T07:25:10Z")

</div>

I’d like to use a map in order to prevent various spiders from indexing documents, but I’m running into strange issues, which I can’t explain (nginx 0.7.62 or 0.7.64): root /tmp/test; map $lookup $test\_blacklist { d…

---

## [Server\_name "";](https://www.ruby-forum.com/t/server-name/180469)

<div class="topic-metadata">

**Author:** [@allins](https://www.ruby-forum.com/u/allins)\
**Replies:** 17\
**Last updated:** [December 20, 2009, 6:07am UTC](https://www.ruby-forum.com/t/server-name/180469 "2009-12-20T06:07:19Z")

</div>

we are running 0.7.64 have this as a server: server { Â Â Â server\_name “”; Â Â Â location / Â Â Â { Â Â Â Â Â Â Â return 404; Â Â Â } } when we try to startup we get: Â \[emerg\]: the first server name mus…

---

## [Small feature request for memcached module](https://www.ruby-forum.com/t/small-feature-request-for-memcached-module/180462)

<div class="topic-metadata">

**Author:** [@jay\_edwards](https://www.ruby-forum.com/u/jay_edwards)\
**Replies:** 6\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/small-feature-request-for-memcached-module/180462 "2009-12-19T15:25:44Z")

</div>

I would really like to be able to to : “set $memcached\_key\_sha1 $request\_uri;” And the then module should lookup using the hashed key instead of “$memcached\_key”. I guess this would be a minute hack for anyone that h…

---

## [Server Name Issue](https://www.ruby-forum.com/t/server-name-issue/180421)

<div class="topic-metadata">

**Author:** [@rahulbenegal](https://www.ruby-forum.com/u/rahulbenegal)\
**Replies:** 9\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/server-name-issue/180421 "2009-12-19T15:25:43Z")

</div>

Hi All, I have created a virtual host where I want to handle unlimited top-level domains. Domains are registered elsewhere and I am using “A record” pointing to my nginx server’s dedciated IP at respective domains …

---

## [PEM passphrase](https://www.ruby-forum.com/t/pem-passphrase/180468)

<div class="topic-metadata">

**Author:** [@filebackup](https://www.ruby-forum.com/u/filebackup)\
**Replies:** 1\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/pem-passphrase/180468 "2009-12-19T15:25:43Z")

</div>

Hi. I config my web server with ssl encrypt, when I start Nginx, I noticed nginx will ask me for PEM passphrase, How can I config nginx that can let it automatically enter the passphrase? Regards. filebackup Posted…

---

## [Can one not buffer uploads when proxying?](https://www.ruby-forum.com/t/can-one-not-buffer-uploads-when-proxying/180467)

<div class="topic-metadata">

**Author:** [@Dusty\_Doris](https://www.ruby-forum.com/u/Dusty_Doris)\
**Replies:** 1\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/can-one-not-buffer-uploads-when-proxying/180467 "2009-12-19T15:25:43Z")

</div>

Is it possible to not buffer uploads when proxying? Instead “stream” the upload to the upstream server? Thanks

---

## [Can nginx use with IM server?](https://www.ruby-forum.com/t/can-nginx-use-with-im-server/180453)

<div class="topic-metadata">

**Author:** [@Danny\_Trinh](https://www.ruby-forum.com/u/Danny_Trinh)\
**Replies:** 1\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/can-nginx-use-with-im-server/180453 "2009-12-19T15:25:42Z")

</div>

Hello group, I’m using nginx as reverse proxy for many web sites. Now I want to use nginx as reverse proxy for IM servers also. I just have some questions: Can nginx use for IM system as reverse proxy? If yes, does a…

---

## [Newbie config not working](https://www.ruby-forum.com/t/newbie-config-not-working/180465)

<div class="topic-metadata">

**Author:** [@mystique](https://www.ruby-forum.com/u/mystique)\
**Replies:** 3\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/newbie-config-not-working/180465 "2009-12-19T15:25:42Z")

</div>

hey all, nginx from freebsd ports 0.7.64 i386 Below is my config. I am trying to move from a lighttpd server and try out nginx. Below is my actual config. Everything is installed from ports. and php is being run b…

---

## [If set variable unfamiliar language](https://www.ruby-forum.com/t/if-set-variable-unfamiliar-language/180460)

<div class="topic-metadata">

**Author:** [@nerdgrind](https://www.ruby-forum.com/u/nerdgrind)\
**Replies:** 4\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/if-set-variable-unfamiliar-language/180460 "2009-12-19T15:25:42Z")

</div>

I’ve seen code for virtual domains in the nginx.conf to handle setups with WP Super Cache using an if condition that appears to assign a variable value with “set” as shown in the example below. Could someone provide m…

---

## [Feature request: a variant of -g which allow overriding global directive](https://www.ruby-forum.com/t/feature-request-a-variant-of-g-which-allow-overriding-global-directive/180464)

<div class="topic-metadata">

**Author:** [@Edho\_P\_Arief](https://www.ruby-forum.com/u/Edho_P_Arief)\
**Replies:** 0\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/feature-request-a-variant-of-g-which-allow-overriding-global-directive/180464 "2009-12-19T15:25:42Z")

</div>

Such thing might be useful for init script maker and co. Basically, instead of giving error such as ~/apps/nginx/sbin/nginx -g ‘worker\_processes 8;’ \[emerg\]: “worker\_processes” directive is duplicate in /home/me/app…

---

## [Fastcgi server variables vs. apache](https://www.ruby-forum.com/t/fastcgi-server-variables-vs-apache/164885)

<div class="topic-metadata">

**Author:** [@androo](https://www.ruby-forum.com/u/androo)\
**Replies:** 7\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/fastcgi-server-variables-vs-apache/164885 "2009-12-19T15:25:41Z")

</div>

First of all, thank you for Nginx. It is a breath of fresh air after Apache. And though it has taken some getting used to, I’ve discovered that I like the config file syntax better in Nginx. Second, there are three se…

---

## [Location = precedence breakage](https://www.ruby-forum.com/t/location-precedence-breakage/180456)

<div class="topic-metadata">

**Author:** [@kyleb](https://www.ruby-forum.com/u/kyleb)\
**Replies:** 5\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/location-precedence-breakage/180456 "2009-12-19T15:25:41Z")

</div>

This worked consistently in 0.7.6x (and according to the docs, it should work): location = /base { } location ^~ /base { } On testing 0.8.30, accessing http://my.server/base works, but http://my.server/base/plus/l…

---

## [New nginx.org site](https://www.ruby-forum.com/t/new-nginx-org-site/180446)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 1\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/new-nginx-org-site/180446 "2009-12-19T15:25:40Z")

</div>

The new http://nginx.org site was launched. – Igor S. http://sysoev.ru/en/

---

## [Nginx in high concurrency setups](https://www.ruby-forum.com/t/nginx-in-high-concurrency-setups/180447)

<div class="topic-metadata">

**Author:** [@Dennis\_J](https://www.ruby-forum.com/u/Dennis_J)\
**Replies:** 4\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/nginx-in-high-concurrency-setups/180447 "2009-12-19T15:25:40Z")

</div>

Hi, I’m currently experimenting how many concurrent connections nginx can handle. The problem I’m running into is that for each request I send to the server I get a connection in TIME\_WAIT state. If I do this using …

---

## [set-Cookie with ProxyPassReverseCookieDomain feature](https://www.ruby-forum.com/t/set-cookie-with-proxypassreversecookiedomain-feature/180450)

<div class="topic-metadata">

**Author:** [@dtdtdt](https://www.ruby-forum.com/u/dtdtdt)\
**Replies:** 0\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/set-cookie-with-proxypassreversecookiedomain-feature/180450 "2009-12-19T15:25:40Z")

</div>

Hi, I’m thinking of using nginx as reverse proxy server to an original server which use cookie for user-authentication. Since the original server provide set-cookie header with specific domain, domain-setting parame…

---

## [Logfiles group ownership](https://www.ruby-forum.com/t/logfiles-group-ownership/180451)

<div class="topic-metadata">

**Author:** [@robtinsley](https://www.ruby-forum.com/u/robtinsley)\
**Replies:** 1\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/logfiles-group-ownership/180451 "2009-12-19T15:25:40Z")

</div>

I am running nginx-0.7.64 and my nginx.conf includes “user nginx nginx;” If I rotate logfiles and send SIGUSR1, new logfiles are created owned by user=nginx group=root (rather than group=nginx as I had expected). I lo…

---

## [Multiplexing FastCGI module](https://www.ruby-forum.com/t/multiplexing-fastcgi-module/180443)

<div class="topic-metadata">

**Author:** [@Rasmus\_Andersson](https://www.ruby-forum.com/u/Rasmus_Andersson)\
**Replies:** 4\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/multiplexing-fastcgi-module/180443 "2009-12-19T15:25:40Z")

</div>

Hi. I’ve written a multiplexing (concurrent requests through a single backend) version of the 0.8 fastcgi module along with a FastCGI server reference implementation: Please let me know what you think and if you’re…

---

## [Error with php (fcgi) on ubuntu hardy](https://www.ruby-forum.com/t/error-with-php-fcgi-on-ubuntu-hardy/180454)

<div class="topic-metadata">

**Author:** [@gremu](https://www.ruby-forum.com/u/gremu)\
**Replies:** 0\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/error-with-php-fcgi-on-ubuntu-hardy/180454 "2009-12-19T15:25:40Z")

</div>

Hi I tried to setup an ubuntu server with nginx that is serving php sites with php fcgi. I set up my config files like this: server { listen 80; server\_name XXXXX; access\_log /var/log/nginx/localhost.access…

---

## [GeoIP module: lat/lon?](https://www.ruby-forum.com/t/geoip-module-lat-lon/180449)

<div class="topic-metadata">

**Author:** [@phillipoertel](https://www.ruby-forum.com/u/phillipoertel)\
**Replies:** 0\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/geoip-module-lat-lon/180449 "2009-12-19T15:25:40Z")

</div>

Would it be possible to reveal the lat/lon information from the .dat file(s) as nginx variables? Most items are currently available (country code/name, region, city, etc) but often a lat/lon is more useful, and since …

---

## [Equivalent to "dirname"](https://www.ruby-forum.com/t/equivalent-to-dirname/180448)

<div class="topic-metadata">

**Author:** [@Pior\_B](https://www.ruby-forum.com/u/Pior_B)\
**Replies:** 3\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/equivalent-to-dirname/180448 "2009-12-19T15:25:39Z")

</div>

Hello, I would like to check if the directory of a non existant file exist. /mydir/poipoi/foobar doesn’t exist (easy to test) /mydir/poipoi/ \<-- I need to check that Basically it would take a “dirname” func…

---

## [Request: Omit library man pages and extraneous data by default](https://www.ruby-forum.com/t/request-omit-library-man-pages-and-extraneous-data-by-default/180445)

<div class="topic-metadata">

**Author:** [@kyleb](https://www.ruby-forum.com/u/kyleb)\
**Replies:** 2\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/request-omit-library-man-pages-and-extraneous-data-by-default/180445 "2009-12-19T15:25:39Z")

</div>

Given the unreliability of using system libraries, nginx really does do it right by building its own PCRE, OpenSSL, and zlib. However, lots of extraneous stuff gets built for these items (such as manpages). This dra…

---

## [About sub\_filter. why not officially support more than one substitution rules per location?](https://www.ruby-forum.com/t/about-sub-filter-why-not-officially-support-more-than-one-substitution-rules-per-location/180440)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/about-sub-filter-why-not-officially-support-more-than-one-substitution-rules-per-location/180440 "2009-12-19T15:25:39Z")

</div>

It’s just strange to me. Since nginx wlready support one, why not support another? I have stack two layers of proxy\_pass to get it done. Every inconvenience.

---

## [SSL, multiple server blocks, same domain?](https://www.ruby-forum.com/t/ssl-multiple-server-blocks-same-domain/180439)

<div class="topic-metadata">

**Author:** [@phillipoertel](https://www.ruby-forum.com/u/phillipoertel)\
**Replies:** 5\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/ssl-multiple-server-blocks-same-domain/180439 "2009-12-19T15:25:39Z")

</div>

If one has a wildcard SSL certificate (\*.mydomain.org), is it possible to use that with many server blocks on the same server? For instance, if one has both a www. (http) and secure. (https) and wants to serve images …

---

## [openSUSE flood\_block module](https://www.ruby-forum.com/t/opensuse-flood-block-module/180444)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 0\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/opensuse-flood-block-module/180444 "2009-12-19T15:25:39Z")

</div>

The nginx package in openSUSE contains the thrid-party flood\_block module, which built by default and can not be turned off in the configuration. The module is the real bottleneck: for every request it connect to loc…

---

## [Dummy proxy backends](https://www.ruby-forum.com/t/dummy-proxy-backends/180139)

<div class="topic-metadata">

**Author:** [@harish\_sri](https://www.ruby-forum.com/u/harish_sri)\
**Replies:** 3\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/dummy-proxy-backends/180139 "2009-12-19T15:25:39Z")

</div>

Hi all, I’m not sure if this is possible. What i want is something like this: Send all requests to both Backend A and Backend B. But discard responses received from Backend B. Only send responses received from Backen…

---

## [Pcre\_compile() failed: unrecognized character after (?\<](https://www.ruby-forum.com/t/pcre-compile-failed-unrecognized-character-after/180436)

<div class="topic-metadata">

**Author:** [@phillipoertel](https://www.ruby-forum.com/u/phillipoertel)\
**Replies:** 4\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/pcre-compile-failed-unrecognized-character-after/180436 "2009-12-19T15:25:38Z")

</div>

server { server\_name ~^test.(?.+)$; location / { root /sites/$domain; } } nginx -t \[emerg\]: pcre\_compile() failed: unrecognized character after (?\< in “^test.(?.+)$” at “domain\>.+)$” in /etc/nginx/vhosts/tes…

---

## [Server\_name \_](https://www.ruby-forum.com/t/server-name/180084)

<div class="topic-metadata">

**Author:** [@Marcos\_N](https://www.ruby-forum.com/u/Marcos_N)\
**Replies:** 2\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/server-name/180084 "2009-12-19T15:25:38Z")

</div>

server\_name \_; just works when its the first server\_name defined. Is that true or I am doing something wrong? Marcos N. +55 44 9918-8488

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

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