# Server

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

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

---

## [Error\_page](https://www.ruby-forum.com/t/error-page/188451)

<div class="topic-metadata">

**Author:** [@Glen\_L](https://www.ruby-forum.com/u/Glen_L)\
**Replies:** 7\
**Last updated:** [May 12, 2010, 9:31am UTC](https://www.ruby-forum.com/t/error-page/188451 "2010-05-12T09:31:55Z")

</div>

Dear millis, I have set like this error\_page 403 /error-page/403.html; however when I open http://mydomain.com/error-page/ is still giving me forbidden msg default by nginx. This’s shown on my error log 2010/0…

---

## [Rewrite rule for subrequest](https://www.ruby-forum.com/t/rewrite-rule-for-subrequest/188439)

<div class="topic-metadata">

**Author:** [@peterjanovsky](https://www.ruby-forum.com/u/peterjanovsky)\
**Replies:** 2\
**Last updated:** [May 12, 2010, 3:41am UTC](https://www.ruby-forum.com/t/rewrite-rule-for-subrequest/188439 "2010-05-12T03:41:57Z")

</div>

when implementing a rewrite rule for a subrequest which is the proper way to tackle the issue write the rewrite rule in the main location (location /), the location where the subrequests are generated write the rewri…

---

## [Issue with reverse proxy and Cacti](https://www.ruby-forum.com/t/issue-with-reverse-proxy-and-cacti/188418)

<div class="topic-metadata">

**Author:** [@Scott\_Behrens](https://www.ruby-forum.com/u/Scott_Behrens)\
**Replies:** 0\
**Last updated:** [May 11, 2010, 6:00pm UTC](https://www.ruby-forum.com/t/issue-with-reverse-proxy-and-cacti/188418 "2010-05-11T18:00:05Z")

</div>

Hello, I don’t have any issues proxying basic web pages with images, but when I try to proxy Cacti, the images are blank. The form/html/code is fine, but I can’t seem to get any image to load. Any help would be app…

---

## [Help : How to configure mongrel\_cluster + PHP with nginx](https://www.ruby-forum.com/t/help-how-to-configure-mongrel-cluster-php-with-nginx/188407)

<div class="topic-metadata">

**Author:** [@karthi\_r](https://www.ruby-forum.com/u/karthi_r)\
**Replies:** 2\
**Last updated:** [May 11, 2010, 3:05pm UTC](https://www.ruby-forum.com/t/help-how-to-configure-mongrel-cluster-php-with-nginx/188407 "2010-05-11T15:05:37Z")

</div>

Hi Nginx team, We are running Ruby on Rails application (Mongrel\_cluster) with nginx, we tried to install PHP application in same server but the proxy\_pass not redirected. How to configure mongrel\_cluster…

---

## [Proxy to a .Net webservice](https://www.ruby-forum.com/t/proxy-to-a-net-webservice/188332)

<div class="topic-metadata">

**Author:** [@SSSSSSSSSSSSS\_SS](https://www.ruby-forum.com/u/SSSSSSSSSSSSS_SS)\
**Replies:** 4\
**Last updated:** [May 11, 2010, 12:24pm UTC](https://www.ruby-forum.com/t/proxy-to-a-net-webservice/188332 "2010-05-11T12:24:02Z")

</div>

Hi, Company is testing nginx with a .net SOAP web service. The nginx and web service runs on two different ports. The problem is the web service returns the response with links that point to the web service’s own TCP …

---

## [Caching OSM tiles](https://www.ruby-forum.com/t/caching-osm-tiles/188392)

<div class="topic-metadata">

**Author:** [@cedjo](https://www.ruby-forum.com/u/cedjo)\
**Replies:** 2\
**Last updated:** [May 11, 2010, 12:21pm UTC](https://www.ruby-forum.com/t/caching-osm-tiles/188392 "2010-05-11T12:21:07Z")

</div>

Hello! I’m currently developping a really tiny app using OpenLayers\[1\] and OpenStreetMap\[2\]. As I was testing it, I saw that sometimes tiles don’t come. I guess this is caused by server load at OSM. So I was thinking…

---

## [Rate Limiting with 'Timeouts' for Abusers](https://www.ruby-forum.com/t/rate-limiting-with-timeouts-for-abusers/188397)

<div class="topic-metadata">

**Author:** [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Replies:** 2\
**Last updated:** [May 11, 2010, 12:00pm UTC](https://www.ruby-forum.com/t/rate-limiting-with-timeouts-for-abusers/188397 "2010-05-11T12:00:02Z")

</div>

Greetings! I’m using Nginx for a new project, and am already very impressed by the rate limiting features. Thank you! However, there is one stakeholder who is insistent that abusers (defined as those that are exceed…

---

## [Ngx\_echo v0.29: major core refactoring and more robust sequential subrequests](https://www.ruby-forum.com/t/ngx-echo-v0-29-major-core-refactoring-and-more-robust-sequential-subrequests/188073)

<div class="topic-metadata">

**Author:** [@agentzh](https://www.ruby-forum.com/u/agentzh)\
**Replies:** 10\
**Last updated:** [May 11, 2010, 5:10am UTC](https://www.ruby-forum.com/t/ngx-echo-v0-29-major-core-refactoring-and-more-robust-sequential-subrequests/188073 "2010-05-11T05:10:15Z")

</div>

Hi, list! I’m happy to announce the v0.29 release of the ngx\_echo module: http://github.com/agentzh/echo-nginx-module/tarball/v0.29 As mentioned in some other threads on the nginx mailing list, I’ve completed the big…

---

## [Proxy\_pass error: host not found in upstream](https://www.ruby-forum.com/t/proxy-pass-error-host-not-found-in-upstream/188331)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [May 10, 2010, 3:37pm UTC](https://www.ruby-forum.com/t/proxy-pass-error-host-not-found-in-upstream/188331 "2010-05-10T15:37:03Z")

</div>

config file: server { listen \[::\]:80; server\_name svn.php.net; location /{ proxy\_pass http://svn.php.net; } } server { listen \[::\]:80; server\_name upload.wikipedia.org; location /{ proxy\_pass http://upload.wi…

---

## [Tricky Caching reverse Proxy - different User agents to be watched](https://www.ruby-forum.com/t/tricky-caching-reverse-proxy-different-user-agents-to-be-watched/188206)

<div class="topic-metadata">

**Author:** [@musa](https://www.ruby-forum.com/u/musa)\
**Replies:** 3\
**Last updated:** [May 10, 2010, 3:11pm UTC](https://www.ruby-forum.com/t/tricky-caching-reverse-proxy-different-user-agents-to-be-watched/188206 "2010-05-10T15:11:17Z")

</div>

Hello all i hope somebody can help. didnt find any usefull post nor webside which could help. short backend story: there is a web application which generates sites, different sites for different clients (ipod, nokia …

---

## [Redirect https:// to https://www produce untrusted connection](https://www.ruby-forum.com/t/redirect-https-to-https-www-produce-untrusted-connection/188301)

<div class="topic-metadata">

**Author:** [@pablo\_platt](https://www.ruby-forum.com/u/pablo_platt)\
**Replies:** 3\
**Last updated:** [May 10, 2010, 1:12pm UTC](https://www.ruby-forum.com/t/redirect-https-to-https-www-produce-untrusted-connection/188301 "2010-05-10T13:12:24Z")

</div>

Hi, I’m running a website with nginx as a proxy and for static files. I’m using the ubuntu lucid nginx package - version 0.7.65 http://example.com redirect to http://www.example.com - works https://www.example.com - …

---

## [Can I proxy\_pass to a variable?](https://www.ruby-forum.com/t/can-i-proxy-pass-to-a-variable/188314)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [May 10, 2010, 11:01am UTC](https://www.ruby-forum.com/t/can-i-proxy-pass-to-a-variable/188314 "2010-05-10T11:01:18Z")

</div>

config: server { listen \[::\]:80 default; server\_name \_ ; server\_name\_in\_redirect off; resolver 74.207.241.5; access\_log off; auth\_basic "Private proxy"; auth\_basic\_user\_file /etc/nginx/auth\_basic…

---

## [Subrequest concatenation](https://www.ruby-forum.com/t/subrequest-concatenation/188214)

<div class="topic-metadata">

**Author:** [@peterjanovsky](https://www.ruby-forum.com/u/peterjanovsky)\
**Replies:** 2\
**Last updated:** [May 10, 2010, 5:41am UTC](https://www.ruby-forum.com/t/subrequest-concatenation/188214 "2010-05-10T05:41:43Z")

</div>

if someone would shed light on how subrequests are concatenated to the parent request and send to the client it’d be much appreciated. currently i have been able to issue a subrequest and have verified both the parent…

---

## [FastCGI vs Proxy requests](https://www.ruby-forum.com/t/fastcgi-vs-proxy-requests/188310)

<div class="topic-metadata">

**Author:** [@Kyrra](https://www.ruby-forum.com/u/Kyrra)\
**Replies:** 1\
**Last updated:** [May 10, 2010, 5:15am UTC](https://www.ruby-forum.com/t/fastcgi-vs-proxy-requests/188310 "2010-05-10T05:15:56Z")

</div>

I’m doing some playing around and I’m looking to implement a comet-type server behind Nginx. I’m wonder what would be a better interface to to connect my code with Nginx, using proxy to pass the request through or to…

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/188292)

<div class="topic-metadata">

**Author:** [@Elena\_Z](https://www.ruby-forum.com/u/Elena_Z)\
**Replies:** 0\
**Last updated:** [May 9, 2010, 4:40pm UTC](https://www.ruby-forum.com/t/no-subject/188292 "2010-05-09T16:40:56Z")

</div>

Hello Nginx - Mailinglist Members, i try to optimize my nginx configuration. Currently i use memcache as frontend cache, but i would try to convert my current memcache-cache to a disc cache on ssd. My goal is setting…

---

## [Set expire headers for a list of URI](https://www.ruby-forum.com/t/set-expire-headers-for-a-list-of-uri/188256)

<div class="topic-metadata">

**Author:** [@leonardocg](https://www.ruby-forum.com/u/leonardocg)\
**Replies:** 0\
**Last updated:** [May 8, 2010, 4:00pm UTC](https://www.ruby-forum.com/t/set-expire-headers-for-a-list-of-uri/188256 "2010-05-08T16:00:45Z")

</div>

Hi. What’s the best way to tell nginx to set expire headers to list of uri? Like: www.domain.com/bigscript.js www.domain.com/weirdfolder/bigstyle.css www.domain.com/yetanotherfolder/bigjpeg.jpg … I search the foru…

---

## [Config help needed to create long-polling location](https://www.ruby-forum.com/t/config-help-needed-to-create-long-polling-location/188210)

<div class="topic-metadata">

**Author:** [@dcian](https://www.ruby-forum.com/u/dcian)\
**Replies:** 1\
**Last updated:** [May 8, 2010, 3:41pm UTC](https://www.ruby-forum.com/t/config-help-needed-to-create-long-polling-location/188210 "2010-05-08T15:41:26Z")

</div>

Hi All, I’m trying to use the long polling module. I got it compiled, installed and running:- ian@titan:~$ nginx -V nginx version: nginx/0.7.65 built by gcc 4.3.3 (Ubuntu 4.3.3-5ubuntu4) configure arguments: --with…

---

## [Nginx SSL conf to access phpMyAdmin](https://www.ruby-forum.com/t/nginx-ssl-conf-to-access-phpmyadmin/188202)

<div class="topic-metadata">

**Author:** [@ideanet](https://www.ruby-forum.com/u/ideanet)\
**Replies:** 8\
**Last updated:** [May 8, 2010, 1:15pm UTC](https://www.ruby-forum.com/t/nginx-ssl-conf-to-access-phpmyadmin/188202 "2010-05-08T13:15:45Z")

</div>

Hi, I have some trouble to configure correctly the access to phpMyAdmin via SSL. problem: when i call the URL https://mydomain.com/phpmyadmin/ I don’t have access. problem: If I call the URL https://mydomain.com/php…

---

## [Nginx custom error\_page](https://www.ruby-forum.com/t/nginx-custom-error-page/188240)

<div class="topic-metadata">

**Author:** [@kleinchris](https://www.ruby-forum.com/u/kleinchris)\
**Replies:** 3\
**Last updated:** [May 8, 2010, 10:55am UTC](https://www.ruby-forum.com/t/nginx-custom-error-page/188240 "2010-05-08T10:55:52Z")

</div>

Hello, I wanted to set a custom error\_page by setting up: if (!-e $request\_filename) { rewrite ^/de/(.\*)$ /de/vbseo.php last; } if (!-e means if the requestes file don’t exists right?! nginx server 0.8.32 Here is m…

---

## [GbPlugin](https://www.ruby-forum.com/t/gbplugin/188212)

<div class="topic-metadata">

**Author:** [@WSandrew\_L](https://www.ruby-forum.com/u/WSandrew_L)\
**Replies:** 1\
**Last updated:** [May 7, 2010, 7:59pm UTC](https://www.ruby-forum.com/t/gbplugin/188212 "2010-05-07T19:59:47Z")

</div>

This user agent is able to create a bad request for image assets that is bypassing nginx. We are seeing these odd requests in our Rails application (via Passenger) but they should either be 400s or serve valid images.…

---

## [Question about install support for python and php together](https://www.ruby-forum.com/t/question-about-install-support-for-python-and-php-together/188121)

<div class="topic-metadata">

**Author:** [@sagasw](https://www.ruby-forum.com/u/sagasw)\
**Replies:** 2\
**Last updated:** [May 7, 2010, 10:29am UTC](https://www.ruby-forum.com/t/question-about-install-support-for-python-and-php-together/188121 "2010-05-07T10:29:02Z")

</div>

I get a vps host and install php already with spawn-fcgi. And you could see my steps here: Now I want to add support python (web.py) in this host, http://webpy.org/cookbook/fastcgi-nginx and try the steps in web.py,…

---

## [How to cache the directory index, but not the content of it](https://www.ruby-forum.com/t/how-to-cache-the-directory-index-but-not-the-content-of-it/188169)

<div class="topic-metadata">

**Author:** [@mihaimustea](https://www.ruby-forum.com/u/mihaimustea)\
**Replies:** 1\
**Last updated:** [May 6, 2010, 9:20pm UTC](https://www.ruby-forum.com/t/how-to-cache-the-directory-index-but-not-the-content-of-it/188169 "2010-05-06T21:20:05Z")

</div>

Hello, I hope I won’t ask a Mickey M. question, but I searched on the web and found nothing. Here is what I need to cache. Below is a summary of the tree of the website that I’m trying to cache: /shop - i want to cac…

---

## [Rewrite \*.\*.com Host to \*.com](https://www.ruby-forum.com/t/rewrite-com-host-to-com/188168)

<div class="topic-metadata">

**Author:** [@pablo\_platt](https://www.ruby-forum.com/u/pablo_platt)\
**Replies:** 1\
**Last updated:** [May 6, 2010, 9:11pm UTC](https://www.ruby-forum.com/t/rewrite-com-host-to-com/188168 "2010-05-06T21:11:18Z")

</div>

Hi I’m using nginx is a proxy for a long polling application. Old browsers have low limits on number of concurrent http requests so I’m using arbitrary subdomains for each vhost. Is it possible to set the Host heade…

---

## [Limiting number of connections to upstream servers](https://www.ruby-forum.com/t/limiting-number-of-connections-to-upstream-servers/187677)

<div class="topic-metadata">

**Author:** [@brama](https://www.ruby-forum.com/u/brama)\
**Replies:** 6\
**Last updated:** [May 6, 2010, 8:27pm UTC](https://www.ruby-forum.com/t/limiting-number-of-connections-to-upstream-servers/187677 "2010-05-06T20:27:58Z")

</div>

Hello, Currently we use nginx 0.7 in combination with multiple fastcgi backends that process requests dynamically without caching. We’d like to prevent a DOS attack by limiting the number of connections handled simul…

---

## [Default Server Block](https://www.ruby-forum.com/t/default-server-block/188165)

<div class="topic-metadata">

**Author:** [@WSandrew\_L](https://www.ruby-forum.com/u/WSandrew_L)\
**Replies:** 1\
**Last updated:** [May 6, 2010, 7:27pm UTC](https://www.ruby-forum.com/t/default-server-block/188165 "2010-05-06T19:27:05Z")

</div>

The wiki says: “If the directive has the default parameter, then the enclosing server {…} block will be the default server for the address:port pair. This is useful for name-based virtual hosting where you wish to spe…

---

## [Rewrite url seo](https://www.ruby-forum.com/t/rewrite-url-seo/188075)

<div class="topic-metadata">

**Author:** [@jlstar](https://www.ruby-forum.com/u/jlstar)\
**Replies:** 2\
**Last updated:** [May 6, 2010, 7:10pm UTC](https://www.ruby-forum.com/t/rewrite-url-seo/188075 "2010-05-06T19:10:41Z")

</div>

I want to improve my urls for seo I’m with rails attachment\_fu I want change this url /attachments/000/234/my\_great\_image.jpg like that : /my\_keywords\_seo/images/my\_great\_image.jpg I tried it location ~\* ^/attachm…

---

## [POST to tomcat fails if more than app. 300KB are uploaded](https://www.ruby-forum.com/t/post-to-tomcat-fails-if-more-than-app-300kb-are-uploaded/188146)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [May 6, 2010, 3:35pm UTC](https://www.ruby-forum.com/t/post-to-tomcat-fails-if-more-than-app-300kb-are-uploaded/188146 "2010-05-06T15:35:13Z")

</div>

Hi All My nginx 0.8.35 runs in front of tomcat 6.0.26. Caching is enabled and all buffers have default size. Everything worked fine for months until I implemented a new servlet waiting for POST requests transmitting X…

---

## [Get first field from an nginx variable](https://www.ruby-forum.com/t/get-first-field-from-an-nginx-variable/188142)

<div class="topic-metadata">

**Author:** [@danmezzetti](https://www.ruby-forum.com/u/danmezzetti)\
**Replies:** 0\
**Last updated:** [May 6, 2010, 3:04pm UTC](https://www.ruby-forum.com/t/get-first-field-from-an-nginx-variable/188142 "2010-05-06T15:04:10Z")

</div>

Hi All, i’ve a variable on nginx with more fields, from phpinfo i can see its values are: $HTTP\_X\_FORWARDED\_FOR=192.168.1.3, 10.47.0.5, 94.47.0.6, 10.123.65.181 Is it possible to get only the first fields ? Thanks i…

---

## [Rewrite help](https://www.ruby-forum.com/t/rewrite-help/139001)

<div class="topic-metadata">

**Author:** [@jemminger](https://www.ruby-forum.com/u/jemminger)\
**Replies:** 6\
**Last updated:** [May 6, 2010, 10:55am UTC](https://www.ruby-forum.com/t/rewrite-help/139001 "2010-05-06T10:55:24Z")

</div>

How can I rewrite all: /subscribe?foo=bar into /subscribe/?foo=bar (note the trailing slash) I’ve tried variations on this with no luck: location / { root /var/www/docs/site.com/secure; index index.html index.…

---

## [CookieTracking, CookieName](https://www.ruby-forum.com/t/cookietracking-cookiename/188128)

<div class="topic-metadata">

**Author:** [@cat](https://www.ruby-forum.com/u/cat)\
**Replies:** 0\
**Last updated:** [May 6, 2010, 10:12am UTC](https://www.ruby-forum.com/t/cookietracking-cookiename/188128 "2010-05-06T10:12:04Z")

</div>

Hello Are there any alternatives for apache’s “CookieTracking” and “CookieName”? Posted at Nginx Forum:

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

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