# Server

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

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

---

## [Looking for a working code ignitor nginx rewrite](https://www.ruby-forum.com/t/looking-for-a-working-code-ignitor-nginx-rewrite/173524)

<div class="topic-metadata">

**Author:** [@vmirjamali](https://www.ruby-forum.com/u/vmirjamali)\
**Replies:** 0\
**Last updated:** [August 10, 2009, 11:35pm UTC](https://www.ruby-forum.com/t/looking-for-a-working-code-ignitor-nginx-rewrite/173524 "2009-08-10T23:35:31Z")

</div>

Hi I tried launching a new site of mine the other night and it had issues with the rewrite. So I was forced to pull my site offline and swap to an older version. Basically none of my directories would load, like /foru…

---

## [Question concerning upstream backup servers](https://www.ruby-forum.com/t/question-concerning-upstream-backup-servers/173448)

<div class="topic-metadata">

**Author:** [@victori](https://www.ruby-forum.com/u/victori)\
**Replies:** 0\
**Last updated:** [August 9, 2009, 8:19am UTC](https://www.ruby-forum.com/t/question-concerning-upstream-backup-servers/173448 "2009-08-09T08:19:31Z")

</div>

How does nginx handle backup servers? For example… upstream squids { server 127.0.0.1:81; # squid 1 server 127.0.0.1:82; # squid 2 server 127.0.0.1:8001 backup; # nginx server 127.0.0.1:8089 backup; # perlbal } if…

---

## [Possible to normalize headers in nginx?](https://www.ruby-forum.com/t/possible-to-normalize-headers-in-nginx/173408)

<div class="topic-metadata">

**Author:** [@victori](https://www.ruby-forum.com/u/victori)\
**Replies:** 1\
**Last updated:** [August 8, 2009, 5:28am UTC](https://www.ruby-forum.com/t/possible-to-normalize-headers-in-nginx/173408 "2009-08-08T05:28:36Z")

</div>

I have the following set to normalize Accept-Encoding headers for squid which sits down stream. However, I am getting an issue with the following error… \[emerg\]: “proxy\_set\_header” directive is not allowed here in /o…

---

## [How to rewrite this into nginx?](https://www.ruby-forum.com/t/how-to-rewrite-this-into-nginx/173371)

<div class="topic-metadata">

**Author:** [@sovok](https://www.ruby-forum.com/u/sovok)\
**Replies:** 0\
**Last updated:** [August 7, 2009, 3:03pm UTC](https://www.ruby-forum.com/t/how-to-rewrite-this-into-nginx/173371 "2009-08-07T15:03:44Z")

</div>

Can someone show me how to rewrite this from Apache to nginx?! Thanks you .htaccess: Options +FollowSymlinks RewriteEngine On RewriteBase / RewriteCond %{REQUEST\_FILENAME} -f \[OR\] RewriteCond %{REQUEST\_FILENAME} -d …

---

## [Change rewrite for nginx](https://www.ruby-forum.com/t/change-rewrite-for-nginx/173272)

<div class="topic-metadata">

**Author:** [@bigbet](https://www.ruby-forum.com/u/bigbet)\
**Replies:** 0\
**Last updated:** [August 6, 2009, 3:05am UTC](https://www.ruby-forum.com/t/change-rewrite-for-nginx/173272 "2009-08-06T03:05:15Z")

</div>

RewriteCond %{REQUEST\_FILENAME} !-f RewriteCond %{REQUEST\_FILENAME} !-d RewriteRule . plus.php \[L\] how to change it for nginx ? help me

---

## [Keep alive connection errors in my logs](https://www.ruby-forum.com/t/keep-alive-connection-errors-in-my-logs/173188)

<div class="topic-metadata">

**Author:** [@yannimac](https://www.ruby-forum.com/u/yannimac)\
**Replies:** 0\
**Last updated:** [August 4, 2009, 5:49pm UTC](https://www.ruby-forum.com/t/keep-alive-connection-errors-in-my-logs/173188 "2009-08-04T17:49:59Z")

</div>

I am running nginx in front of my mongrel cluster and I am seeing lots of these in my error log 2009/08/04 11:45:34 \[info\] 14708#0: \*1714633 client XX.XX.XXX.XXX closed keepalive connection (104: Connection reset by p…

---

## [Upstream fail over?](https://www.ruby-forum.com/t/upstream-fail-over/170854)

<div class="topic-metadata">

**Author:** [@MortenP](https://www.ruby-forum.com/u/MortenP)\
**Replies:** 5\
**Last updated:** [July 31, 2009, 8:00pm UTC](https://www.ruby-forum.com/t/upstream-fail-over/170854 "2009-07-31T20:00:05Z")

</div>

Hi, Is it possible to have nginx proxy to upstream\_a and if that fails then default to upstream\_b? What I would like to accomplish is to have a Varnish upstream, and if that’s down, then nginx should just proxy to th…

---

## [How to put rewrite rules for multiple plone instances](https://www.ruby-forum.com/t/how-to-put-rewrite-rules-for-multiple-plone-instances/157881)

<div class="topic-metadata">

**Author:** [@Vishnu\_Kumar\_D\_R](https://www.ruby-forum.com/u/Vishnu_Kumar_D_R)\
**Replies:** 15\
**Last updated:** [July 31, 2009, 3:22pm UTC](https://www.ruby-forum.com/t/how-to-put-rewrite-rules-for-multiple-plone-instances/157881 "2009-07-31T15:22:23Z")

</div>

Hi, I am having some 10 Plone sites running on a Zope instance in port 8002. I have configured it to run behind varnish port 6081. now, my nginx configuration is server { listen 80; server\_name server03.examp…

---

## [Question with linked list with multiple next pointers](https://www.ruby-forum.com/t/question-with-linked-list-with-multiple-next-pointers/226044)

<div class="topic-metadata">

**Author:** [@risknet](https://www.ruby-forum.com/u/risknet)\
**Replies:** 0\
**Last updated:** [July 24, 2009, 7:51am UTC](https://www.ruby-forum.com/t/question-with-linked-list-with-multiple-next-pointers/226044 "2009-07-24T07:51:02Z")

</div>

Hi, I just learned some basic stuff about ruby, and I’ve been making a program about a list with different threads and adding some objects to the list with multiple pointers. I think my program is supposed to work fin…

---

## [Rewrite: fixing Metadot Kluginess](https://www.ruby-forum.com/t/rewrite-fixing-metadot-kluginess/172542)

<div class="topic-metadata">

**Author:** [@phudson1442](https://www.ruby-forum.com/u/phudson1442)\
**Replies:** 1\
**Last updated:** [July 23, 2009, 4:12am UTC](https://www.ruby-forum.com/t/rewrite-fixing-metadot-kluginess/172542 "2009-07-23T04:12:51Z")

</div>

Greetings. I’m implementing portal software called Metadot. It was orginally Perl – ported to Rails about 1 yr ago. There’s a bunch of Perl-isms and silliness that makes it somewhat dependent on Apache2 / fcgi. I’…

---

## [Can't get value params\[:model\] first request?](https://www.ruby-forum.com/t/cant-get-value-params-model-first-request/172364)

<div class="topic-metadata">

**Author:** [@samnang](https://www.ruby-forum.com/u/samnang)\
**Replies:** 0\
**Last updated:** [July 20, 2009, 9:47am UTC](https://www.ruby-forum.com/t/cant-get-value-params-model-first-request/172364 "2009-07-20T09:47:19Z")

</div>

I get nil from params\[:model\] in create action of my controller for the first request when I start my mongrel server by using mongrel\_rails start. After that for second and third time are ok. In addition, if I start m…

---

## [Dynamic reverse proxy , by mapping port](https://www.ruby-forum.com/t/dynamic-reverse-proxy-by-mapping-port/172267)

<div class="topic-metadata">

**Author:** [@v3ss](https://www.ruby-forum.com/u/v3ss)\
**Replies:** 0\
**Last updated:** [July 18, 2009, 3:48am UTC](https://www.ruby-forum.com/t/dynamic-reverse-proxy-by-mapping-port/172267 "2009-07-18T03:48:21Z")

</div>

Hi all, I am trying to make a dynamic reverse proxy which proxies the local webservers on different ports I try doing this way : #user nobody; worker\_processes 1; #pid logs/nginx.pid; events { worker\_con…

---

## [Nginx picks default index.html](https://www.ruby-forum.com/t/nginx-picks-default-index-html/172256)

<div class="topic-metadata">

**Author:** [@neoacadia08](https://www.ruby-forum.com/u/neoacadia08)\
**Replies:** 0\
**Last updated:** [July 17, 2009, 5:57pm UTC](https://www.ruby-forum.com/t/nginx-picks-default-index-html/172256 "2009-07-17T17:57:26Z")

</div>

Hi, I am new to ruby and nginx. This links has some instructions which I followed. Turns out that ngnix always picks up the index.html from /opt/nginx directory and not my application. This is the server block in m…

---

## [A few questions](https://www.ruby-forum.com/t/a-few-questions/172109)

<div class="topic-metadata">

**Author:** [@johnt519](https://www.ruby-forum.com/u/johnt519)\
**Replies:** 0\
**Last updated:** [July 14, 2009, 11:17pm UTC](https://www.ruby-forum.com/t/a-few-questions/172109 "2009-07-14T23:17:31Z")

</div>

First,for some reason virtual host which i create,i always get error 403.I tried many things,from chowing to various owners and other,until i found temporal solution-i created copy of html directory(which is created d…

---

## [Upload progress module: "track\_uploads" directive inside an "if" block](https://www.ruby-forum.com/t/upload-progress-module-track-uploads-directive-inside-an-if-block/158066)

<div class="topic-metadata">

**Author:** [@bitsmith](https://www.ruby-forum.com/u/bitsmith)\
**Replies:** 4\
**Last updated:** [July 14, 2009, 6:57am UTC](https://www.ruby-forum.com/t/upload-progress-module-track-uploads-directive-inside-an-if-block/158066 "2009-07-14T06:57:36Z")

</div>

Hi, I am using nginx as a proxy in front of a mongrel cluster running a rails application. I can’t seem to get nginx to serve static files and use the upload progress module (I can achieve one or the other, but not b…

---

## [Client-IP Rails issue](https://www.ruby-forum.com/t/client-ip-rails-issue/151179)

<div class="topic-metadata">

**Author:** [@soderic](https://www.ruby-forum.com/u/soderic)\
**Replies:** 1\
**Last updated:** [July 13, 2009, 6:03pm UTC](https://www.ruby-forum.com/t/client-ip-rails-issue/151179 "2009-07-13T18:03:33Z")

</div>

I host a rails app using nginx. Until I recently upgrade rails to 2.1.1, everything worked great. This update to rails included a feature designed to stop IP spoofing attacks. The way it does it is if the client-ip…

---

## [Serving Dynamic js files](https://www.ruby-forum.com/t/serving-dynamic-js-files/171906)

<div class="topic-metadata">

**Author:** [@qaswm](https://www.ruby-forum.com/u/qaswm)\
**Replies:** 0\
**Last updated:** [July 11, 2009, 8:03am UTC](https://www.ruby-forum.com/t/serving-dynamic-js-files/171906 "2009-07-11T08:03:58Z")

</div>

I have a controller named javascripts and in my view i have few .js.erb files. on my local machine, i can include the .js as a regular script file and it works fine. on my production machine i am not sure how to confi…

---

## [Why Mongrel doesn't cancel connection on error?](https://www.ruby-forum.com/t/why-mongrel-doesnt-cancel-connection-on-error/171761)

<div class="topic-metadata">

**Author:** [@axyd80](https://www.ruby-forum.com/u/axyd80)\
**Replies:** 0\
**Last updated:** [July 8, 2009, 7:27pm UTC](https://www.ruby-forum.com/t/why-mongrel-doesnt-cancel-connection-on-error/171761 "2009-07-08T19:27:32Z")

</div>

Why Mongrel doesn’t cancel connection on error? Example: (Mongrel using Rack) … def call env begin p :start sleep 10 ensure p :stop end end … Open browser, go to localhost:8080, and immediatelly close the bro…

---

## [Try\_files and static web site](https://www.ruby-forum.com/t/try-files-and-static-web-site/171650)

<div class="topic-metadata">

**Author:** [@jauderho](https://www.ruby-forum.com/u/jauderho)\
**Replies:** 0\
**Last updated:** [July 7, 2009, 7:33am UTC](https://www.ruby-forum.com/t/try-files-and-static-web-site/171650 "2009-07-07T07:33:30Z")

</div>

I have a site that is completely static and I figured I would use try\_files however this results in HTTP 500 errors for directories i.e. trying to get to http://foo.com/bar/ results in a 500 error. What’s wrong with t…

---

## [Can't upload files \> 10Mb](https://www.ruby-forum.com/t/cant-upload-files-10mb/137725)

<div class="topic-metadata">

**Author:** [@cliffwiggs](https://www.ruby-forum.com/u/cliffwiggs)\
**Replies:** 5\
**Last updated:** [July 6, 2009, 5:23pm UTC](https://www.ruby-forum.com/t/cant-upload-files-10mb/137725 "2009-07-06T17:23:02Z")

</div>

I’ve got an app that I upload CSV files to. So far it’s worked flawlessly until yesterday. The CSV files have gotten progressively larger and yesterday they broke 10Mb. At this point Nginx logs an error that says: …

---

## [Question about nginx, slowloris and fastcgi](https://www.ruby-forum.com/t/question-about-nginx-slowloris-and-fastcgi/171382)

<div class="topic-metadata">

**Author:** [@Michiel\_van\_Es](https://www.ruby-forum.com/u/Michiel_van_Es)\
**Replies:** 2\
**Last updated:** [July 1, 2009, 2:43pm UTC](https://www.ruby-forum.com/t/question-about-nginx-slowloris-and-fastcgi/171382 "2009-07-01T14:43:27Z")

</div>

Hi, i am new to Nginx and I am testing the latest stable Nginx as webserver with slowloris. When I test slowloris on my php enabled website I see Nginx running to 100% and get the following error: 500 Internal Serve…

---

## [More subdomain mapping (dynamic 'root'?)](https://www.ruby-forum.com/t/more-subdomain-mapping-dynamic-root/171378)

<div class="topic-metadata">

**Author:** [@miradev](https://www.ruby-forum.com/u/miradev)\
**Replies:** 0\
**Last updated:** [July 1, 2009, 12:38pm UTC](https://www.ruby-forum.com/t/more-subdomain-mapping-dynamic-root/171378 "2009-07-01T12:38:20Z")

</div>

I want to be able to map submains and urls to determined locations on disk, if they exist. The URL structure is something like: http://.admin.domain.com/ Where would letters, numbers and underscores , and is a domai…

---

## [What is the nginx equivalent of this?](https://www.ruby-forum.com/t/what-is-the-nginx-equivalent-of-this/171354)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 1\
**Last updated:** [July 1, 2009, 5:20am UTC](https://www.ruby-forum.com/t/what-is-the-nginx-equivalent-of-this/171354 "2009-07-01T05:20:18Z")

</div>

In Apache this is the example: SSLCipherSuite ALL:-ADH:+HIGH:+MEDIUM:-LOW:-SSLv2:-EXP Is this it? ssl\_ciphers ALL:-ADH:+HIGH:+MEDIUM:-LOW:-SSLv2:-EXP;

---

## [Access nginx for testing while in maintenance](https://www.ruby-forum.com/t/access-nginx-for-testing-while-in-maintenance/171341)

<div class="topic-metadata">

**Author:** [@yaxm](https://www.ruby-forum.com/u/yaxm)\
**Replies:** 1\
**Last updated:** [June 30, 2009, 9:45pm UTC](https://www.ruby-forum.com/t/access-nginx-for-testing-while-in-maintenance/171341 "2009-06-30T21:45:14Z")

</div>

I have this setup: nginx =\> haproxy =\> thin( a ruby http server ) when in maintenance mode(serving a maintenance page to end users), how can I still access the web server so that I can do some testing first? I want to…

---

## [What's the best way to stress test the performance of a nginx website?](https://www.ruby-forum.com/t/whats-the-best-way-to-stress-test-the-performance-of-a-nginx-website/171113)

<div class="topic-metadata">

**Author:** [@iberci](https://www.ruby-forum.com/u/iberci)\
**Replies:** 5\
**Last updated:** [June 30, 2009, 6:52pm UTC](https://www.ruby-forum.com/t/whats-the-best-way-to-stress-test-the-performance-of-a-nginx-website/171113 "2009-06-30T18:52:19Z")

</div>

I haven’t done stress testing in a long time… so I’m not sure what the best tools are, specifically for our nginx site thanks

---

## [Probleme with http to https redirect](https://www.ruby-forum.com/t/probleme-with-http-to-https-redirect/171315)

<div class="topic-metadata">

**Author:** [@lincore](https://www.ruby-forum.com/u/lincore)\
**Replies:** 0\
**Last updated:** [June 30, 2009, 3:32pm UTC](https://www.ruby-forum.com/t/probleme-with-http-to-https-redirect/171315 "2009-06-30T15:32:33Z")

</div>

Hello Everyone, I’ve try to use nginx as ssl front-end for tomcat with ssl, and use port 8081 for front-end and back-end, but redirect from http to https does not work in this case. Extract from nginx.conf: server { …

---

## [Keep Alive piles up](https://www.ruby-forum.com/t/keep-alive-piles-up/171033)

<div class="topic-metadata">

**Author:** [@meto](https://www.ruby-forum.com/u/meto)\
**Replies:** 40\
**Last updated:** [June 30, 2009, 1:34pm UTC](https://www.ruby-forum.com/t/keep-alive-piles-up/171033 "2009-06-30T13:34:41Z")

</div>

Since version 0.8.x I’ve noticed that my keep-alive sessions are not removed properly (see http://xgame.pl/nginx/ ). I’m guessing that it’s connected to keepalive\_requests function, since it was introduced in 0.8.x. F…

---

## [Gzip\_disable and vary header](https://www.ruby-forum.com/t/gzip-disable-and-vary-header/164556)

<div class="topic-metadata">

**Author:** [@spilgames](https://www.ruby-forum.com/u/spilgames)\
**Replies:** 3\
**Last updated:** [June 30, 2009, 9:15am UTC](https://www.ruby-forum.com/t/gzip-disable-and-vary-header/164556 "2009-06-30T09:15:37Z")

</div>

Hi, A while ago we were having some troubles with gzip and old IE6. I then found this blog entry which seemed to solve my troubles: However immediately after applying this fix to our Nginx config files I realised t…

---

## [Wordpress MU Config](https://www.ruby-forum.com/t/wordpress-mu-config/171080)

<div class="topic-metadata">

**Author:** [@Shri\_S\_DevLib.Org](https://www.ruby-forum.com/u/Shri_S_DevLib.Org)\
**Replies:** 4\
**Last updated:** [June 30, 2009, 7:40am UTC](https://www.ruby-forum.com/t/wordpress-mu-config/171080 "2009-06-30T07:40:28Z")

</div>

Hi there, Does anyone have an optimized config for Wordpress MU with subdomain support? There are a lot of conflicting configs on the wordpress forums and I could not find one on the Nginx Wiki - hence the request. T…

---

## [Kerberos authentication module for nginx](https://www.ruby-forum.com/t/kerberos-authentication-module-for-nginx/166766)

<div class="topic-metadata">

**Author:** [@matteoredaelli](https://www.ruby-forum.com/u/matteoredaelli)\
**Replies:** 13\
**Last updated:** [June 29, 2009, 6:29pm UTC](https://www.ruby-forum.com/t/kerberos-authentication-module-for-nginx/166766 "2009-06-29T18:29:59Z")

</div>

Ciao It would be very useful for intranet web applications to have a Kerberos Authentication module like the one for apache httpd (http://modauthkerb.sourceforge.net/) and the lighttpd one (http://redmine.lighttpd.ne…

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

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