# Server

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

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

---

## [Server with 400 sites, all visitor have same IP (my server IP)](https://www.ruby-forum.com/t/server-with-400-sites-all-visitor-have-same-ip-my-server-ip/217695)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [March 8, 2012, 10:31pm UTC](https://www.ruby-forum.com/t/server-with-400-sites-all-visitor-have-same-ip-my-server-ip/217695 "2012-03-08T22:31:16Z")

</div>

hi support, I have pig problem here I tried to install nginx admin manytimes but NO Luck all my websites (400 website), all visitors in that websites have my dedicated IP address that make all members have login pr…

---

## [Translation from apache2 to nginx](https://www.ruby-forum.com/t/translation-from-apache2-to-nginx/217693)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [March 8, 2012, 9:53pm UTC](https://www.ruby-forum.com/t/translation-from-apache2-to-nginx/217693 "2012-03-08T21:53:45Z")

</div>

Hi forumers, I don’t know how to translate the following .htaccess to nginx rules (from bluebox): # Turn on URL rewriting RewriteEngine On # Installation directory ###RewriteBase /kohana/ # If the request is…

---

## [Possible bug in value of $server\_name variable](https://www.ruby-forum.com/t/possible-bug-in-value-of-server-name-variable/217689)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 8, 2012, 7:41pm UTC](https://www.ruby-forum.com/t/possible-bug-in-value-of-server-name-variable/217689 "2012-03-08T19:41:45Z")

</div>

I have “server\_name .domain.tld" in my config file and tried to get the correct virtual host the user connected to with the help of a php script but “$\_SERVER\[‘SERVER\_NAME’\]” returned ".domain.tld” instead of “somethi…

---

## [Nginx slow connect](https://www.ruby-forum.com/t/nginx-slow-connect/217677)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [March 8, 2012, 12:53pm UTC](https://www.ruby-forum.com/t/nginx-slow-connect/217677 "2012-03-08T12:53:13Z")

</div>

Im trying to diagnose a connection issue with nginx on debian. there is an delay of anything from 2-10 seconds on the connection, im using curl to test: curl -o /dev/null -w “Connect: %{time\_connect} TTFB: %{time\_sta…

---

## [Regarding setting ENV variable](https://www.ruby-forum.com/t/regarding-setting-env-variable/217653)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [March 8, 2012, 12:47pm UTC](https://www.ruby-forum.com/t/regarding-setting-env-variable/217653 "2012-03-08T12:47:34Z")

</div>

Hi Friends I want to set a env variable on nginx with perl whenever i am accessing site with https only. can anyone help how i can do this. I looked at post env variable in nginx.conf file it didnt help me.Is there a…

---

## [Ipv6 support for proxy\_pass](https://www.ruby-forum.com/t/ipv6-support-for-proxy-pass/217663)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 8, 2012, 11:15am UTC](https://www.ruby-forum.com/t/ipv6-support-for-proxy-pass/217663 "2012-03-08T11:15:17Z")

</div>

Hi, Attached is a simple patch to proxy\_pass to an IPv6 upstream. It currently works only with a variable. proxy\_pass ::1; wont’ work for instance. but this will : set $addr “\[::1\]:8080”; proxy\_pass http://$addr; Y…

---

## [Can anyone \*really\* explain opcode caching with PHP?](https://www.ruby-forum.com/t/can-anyone-really-explain-opcode-caching-with-php/217637)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 7\
**Last updated:** [March 8, 2012, 8:16am UTC](https://www.ruby-forum.com/t/can-anyone-really-explain-opcode-caching-with-php/217637 "2012-03-08T08:16:11Z")

</div>

Hi folks Thinking of abandoning mod\_php for the wonderful world of nginx, but googling the issue of opcode caching with fastcgi is proving surprisingly confusing: there’s a lot of conflicting information out there. M…

---

## [How to use srcache\_store while proxy\_pass use to connect backend](https://www.ruby-forum.com/t/how-to-use-srcache-store-while-proxy-pass-use-to-connect-backend/217578)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [March 8, 2012, 7:32am UTC](https://www.ruby-forum.com/t/how-to-use-srcache-store-while-proxy-pass-use-to-connect-backend/217578 "2012-03-08T07:32:07Z")

</div>

Hi, I can’t store data while I’m using proxy\_pass to connect to the backend if we can’t find data on the memcached. srcache\_fetch probes the memcached but since no data, it connect to the backend and get the correct …

---

## [Quick Bounty for Nginx/Python Configuration File](https://www.ruby-forum.com/t/quick-bounty-for-nginx-python-configuration-file/217660)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [March 7, 2012, 11:35pm UTC](https://www.ruby-forum.com/t/quick-bounty-for-nginx-python-configuration-file/217660 "2012-03-07T23:35:50Z")

</div>

Hey all! This just popped up on our system, seems like an easy fifty bucks for someone from 'round these parts! Hope this is useful to somebody… Thanks!

---

## [Big amount of RAM used when building 1.1.16](https://www.ruby-forum.com/t/big-amount-of-ram-used-when-building-1-1-16/217650)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [March 7, 2012, 7:14pm UTC](https://www.ruby-forum.com/t/big-amount-of-ram-used-when-building-1-1-16/217650 "2012-03-07T19:14:27Z")

</div>

Hi. With the last release (1.1.16), I remarked the build process is taking a lot of RAM, ranging from 1800MB to 3500-4000MB. Thanks my main build machine has 16GB of RAM, but my mips and mipsel build machines (QEMU V…

---

## [Multiple Upstream Servers Result in Error 310 (net::ERR\_TOO\_MANY\_REDIRECTS)](https://www.ruby-forum.com/t/multiple-upstream-servers-result-in-error-310-net-err-too-many-redirects/217624)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 10\
**Last updated:** [March 7, 2012, 1:20pm UTC](https://www.ruby-forum.com/t/multiple-upstream-servers-result-in-error-310-net-err-too-many-redirects/217624 "2012-03-07T13:20:45Z")

</div>

I have an Nginx reverse-proxy sitting in front of two JBoss servers. If I attempt to add the second JBoss server to the upstream directive, I receive an Error 310 (net::ERR\_TOO\_MANY\_REDIRECTS) from Chrome, IE just dis…

---

## [Using error\_page to a named location - possible?](https://www.ruby-forum.com/t/using-error-page-to-a-named-location-possible/217612)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 9\
**Last updated:** [March 7, 2012, 12:40pm UTC](https://www.ruby-forum.com/t/using-error-page-to-a-named-location-possible/217612 "2012-03-07T12:40:16Z")

</div>

Hi, as part of a larger problem I have a captive portal which grabs all incoming URLs and after evaluating a bunch of logic redirects the caller somewhere else. I use proxy\_pass to pass the request to my cgi code. Ho…

---

## [How many args in $args?](https://www.ruby-forum.com/t/how-many-args-in-args/217644)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [March 7, 2012, 11:31am UTC](https://www.ruby-forum.com/t/how-many-args-in-args/217644 "2012-03-07T11:31:40Z")

</div>

Is there some means of determining how many query parameters are being passed, by looking $args, say? There’s a kind of DOS attack which can bring down Java based webapps which do binding of request parameters to prop…

---

## [How to sponsor a feature request?](https://www.ruby-forum.com/t/how-to-sponsor-a-feature-request/217629)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [March 7, 2012, 10:42am UTC](https://www.ruby-forum.com/t/how-to-sponsor-a-feature-request/217629 "2012-03-07T10:42:53Z")

</div>

Hi, I have some interest in being able to use WebDAV in nginx with enough conformance to be able to use it for file sharing (I think this mainly means support for PROPFIND and OPTIONS ?) Is it affordable to either “en…

---

## [Newbie Question: Sharing proxy\_pass config between locations](https://www.ruby-forum.com/t/newbie-question-sharing-proxy-pass-config-between-locations/217627)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [March 7, 2012, 10:04am UTC](https://www.ruby-forum.com/t/newbie-question-sharing-proxy-pass-config-between-locations/217627 "2012-03-07T10:04:16Z")

</div>

Hi, I have a basic configuration that points to a back-end server with proxy\_pass and bunch of proxy\_set\_header call entries. And, I have multiple locations entries that keep doing the same thing, e.g. location /…

---

## [FastCGI and pipelining](https://www.ruby-forum.com/t/fastcgi-and-pipelining/217611)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [March 6, 2012, 11:38pm UTC](https://www.ruby-forum.com/t/fastcgi-and-pipelining/217611 "2012-03-06T23:38:28Z")

</div>

Hi all, I’m recently start using NGINX in combination with my FastCGI service, it work quite good and effective. I decided to use pipeline as it works effectively utilizing one connection. According to NGINX logs pi…

---

## [Multiple caching solutions for anonymous and logged in users with SSI on](https://www.ruby-forum.com/t/multiple-caching-solutions-for-anonymous-and-logged-in-users-with-ssi-on/217545)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 9\
**Last updated:** [March 6, 2012, 6:54pm UTC](https://www.ruby-forum.com/t/multiple-caching-solutions-for-anonymous-and-logged-in-users-with-ssi-on/217545 "2012-03-06T18:54:30Z")

</div>

Hi all, I currently have a good caching solution for non-logged in users as shown below location / { proxy\_pass http://localhost:82; proxy\_set\_header Host $host; proxy\_set\_header X-Real-IP …

---

## [Openresty + socket + ssl question](https://www.ruby-forum.com/t/openresty-socket-ssl-question/217570)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [March 6, 2012, 1:42pm UTC](https://www.ruby-forum.com/t/openresty-socket-ssl-question/217570 "2012-03-06T13:42:17Z")

</div>

Hello! This question is for agentzh, one of OpenResty authors. i need some help or proper direction to look futher, please help… I\`m using openresty 1.0.11.19 (nginx+lua, great mix btw) and wish to make calls to ssl-…

---

## [How to debug the trunk code on windows?](https://www.ruby-forum.com/t/how-to-debug-the-trunk-code-on-windows/217600)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 6, 2012, 1:39pm UTC](https://www.ruby-forum.com/t/how-to-debug-the-trunk-code-on-windows/217600 "2012-03-06T13:39:48Z")

</div>

how to debug the trunk code on windows?

---

## [Re: Multiple caching solutions for anonymous and logged in users with SSI on](https://www.ruby-forum.com/t/re-multiple-caching-solutions-for-anonymous-and-logged-in-users-with-ssi-on/217601)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [March 6, 2012, 1:12pm UTC](https://www.ruby-forum.com/t/re-multiple-caching-solutions-for-anonymous-and-logged-in-users-with-ssi-on/217601 "2012-03-06T13:12:34Z")

</div>

Bird brain me :slight\_smile: What does this mean? ~SESS\[\[:alnum:\]\]+=(?\<session\_id\>\[\[:graph:\]\]+) $session\_id; It means to grab the sub-token on the right-hand side of the session token. Using POSIX character classe…

---

## [Client keep alive support under HTTP/1.0](https://www.ruby-forum.com/t/client-keep-alive-support-under-http-1-0/217491)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [March 6, 2012, 11:39am UTC](https://www.ruby-forum.com/t/client-keep-alive-support-under-http-1-0/217491 "2012-03-06T11:39:58Z")

</div>

Hi, We’re working on a server-to-server integration effort, using nginx as our front end. The guys on the other side are using ab (ApacheBench) to perform initial testing. ApacheBench includes a switch to turn on k…

---

## [Alias or Symlink help?](https://www.ruby-forum.com/t/alias-or-symlink-help/217592)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [March 6, 2012, 5:14am UTC](https://www.ruby-forum.com/t/alias-or-symlink-help/217592 "2012-03-06T05:14:49Z")

</div>

I want to create a link so /video will pull from somewhere other then the document root. I would just move this over, but this have dynamic files of multiple gb that I need to load, so its easier to leave them there. …

---

## [Nginx-1.0.13](https://www.ruby-forum.com/t/nginx-1-0-13/217573)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 6, 2012, 3:12am UTC](https://www.ruby-forum.com/t/nginx-1-0-13/217573 "2012-03-06T03:12:31Z")

</div>

Changes with nginx 1.0.13 05 Mar 2012 \*) Feature: the "return" and "error\_page" directives can now be used to return 307 redirections. \*) Bugfix: a segmentation fault might oc…

---

## [Proxy + rewrite](https://www.ruby-forum.com/t/proxy-rewrite/217591)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 6, 2012, 12:30am UTC](https://www.ruby-forum.com/t/proxy-rewrite/217591 "2012-03-06T00:30:09Z")

</div>

Hi all, I’m new with NGINX. What I want to do is a front reverse proxy server that rewrites URL. I actually can make it working with one site, but not with many sites. On my real server: https://srvabc:1234/mypath/ …

---

## [Nginx: directive "rewrite" is not terminated by "; " in /usr/local/nginx/conf/nginx.conf:67](https://www.ruby-forum.com/t/nginx-directive-rewrite-is-not-terminated-by-in-usr-local-nginx-conf-nginx-conf-67/217575)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 5, 2012, 5:27pm UTC](https://www.ruby-forum.com/t/nginx-directive-rewrite-is-not-terminated-by-in-usr-local-nginx-conf-nginx-conf-67/217575 "2012-03-05T17:27:23Z")

</div>

63 rewrite ^/rss(/(news)+)?(/(digest)+)?(/(short|long)+)?/?$ /gymrss.php?channels&$2&$4&$6 last; 64 rewrite ^/(news|maps)/?(page(\[0-9\]+).html)?$ /map.php?$1&start=$3 last; 66 rewrite ^/(news|maps)/(\[a-z0-9\_-\]+)(/(\[a…

---

## [Bug in limit\_req](https://www.ruby-forum.com/t/bug-in-limit-req/217572)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [March 5, 2012, 5:01pm UTC](https://www.ruby-forum.com/t/bug-in-limit-req/217572 "2012-03-05T17:01:10Z")

</div>

Hello, limit\_req does not work with Nginx 1.1.16 - if used on different levels. for a in seq 300; do wget -O /dev/null http://localhost:8081/; done Exepected result: 503, result is always “502 bad gateway”. Down bel…

---

## [Transfer-encoding chunked hex markers appearing in output?](https://www.ruby-forum.com/t/transfer-encoding-chunked-hex-markers-appearing-in-output/217558)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [March 5, 2012, 7:38am UTC](https://www.ruby-forum.com/t/transfer-encoding-chunked-hex-markers-appearing-in-output/217558 "2012-03-05T07:38:53Z")

</div>

I’ve written a very simple script which acts as a specific proxy for XML feeds, reading from a source URL and passing the content straight through. It’s trivial and it’s working fine when run as a standalone HTTP serv…

---

## [SEO Friendly Urls](https://www.ruby-forum.com/t/seo-friendly-urls/217524)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 24\
**Last updated:** [March 5, 2012, 3:57am UTC](https://www.ruby-forum.com/t/seo-friendly-urls/217524 "2012-03-05T03:57:33Z")

</div>

I’m attempting to use Nginx to server a CodeIgniter Script. Code Igniter uses SEO Friendly scripts (AKA, only uses / instead of ?) This works fine when I try and use it on Apache. Trying to setup my own VPS with Code …

---

## [How can add trailing slash if I have two or more subdirectories?](https://www.ruby-forum.com/t/how-can-add-trailing-slash-if-i-have-two-or-more-subdirectories/217553)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [March 5, 2012, 3:46am UTC](https://www.ruby-forum.com/t/how-can-add-trailing-slash-if-i-have-two-or-more-subdirectories/217553 "2012-03-05T03:46:26Z")

</div>

Problem to add trailing slash if I have two or more subdirectories rewrite ^/(\[^.\]\*\[^/\])$ $1/ permanent; //this is working example if I have one directory http://example.com/foo/ (with trailing slash, conventionally …

---

## [No Input File Specified](https://www.ruby-forum.com/t/no-input-file-specified/217556)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [March 5, 2012, 3:35am UTC](https://www.ruby-forum.com/t/no-input-file-specified/217556 "2012-03-05T03:35:19Z")

</div>

Hi, I’m fairly new to Nginx (an Apache convert) and have run into an issue where my site works, but one particular POST function fails with “No Input File Specified.” The POST is a port of an old IPBv2 script to subm…

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

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