# Server

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

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

---

## [Need help with converting from Apache](https://www.ruby-forum.com/t/need-help-with-converting-from-apache/165882)

<div class="topic-metadata">

**Author:** [@dcian](https://www.ruby-forum.com/u/dcian)\
**Replies:** 2\
**Last updated:** [April 21, 2009, 3:55pm UTC](https://www.ruby-forum.com/t/need-help-with-converting-from-apache/165882 "2009-04-21T15:55:52Z")

</div>

Hi All, I have a site that uses phpcms - and the nginx setup for it is below - and it works. server { listen 80; # server\_name domain.com www.domain.com ; root /var/www/domain.com/htdocs; index index.php inde…

---

## [Please give working path example for Windows - 0.7.52](https://www.ruby-forum.com/t/please-give-working-path-example-for-windows-0-7-52/166066)

<div class="topic-metadata">

**Author:** [@Chris\_Cortese](https://www.ruby-forum.com/u/Chris_Cortese)\
**Replies:** 0\
**Last updated:** [April 21, 2009, 3:30pm UTC](https://www.ruby-forum.com/t/please-give-working-path-example-for-windows-0-7-52/166066 "2009-04-21T15:30:03Z")

</div>

Can someone please just give me one example of a Windows path in a config file that works with the new native Windows binary 0.7.52? Again, here is my config file, from which I was only getting “No input file specifie…

---

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

<div class="topic-metadata">

**Author:** [@Anton\_SScopelight](https://www.ruby-forum.com/u/Anton_SScopelight)\
**Replies:** 0\
**Last updated:** [April 21, 2009, 3:21pm UTC](https://www.ruby-forum.com/t/no-subject/166064 "2009-04-21T15:21:50Z")

</div>

unsubscribe nginx

---

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

<div class="topic-metadata">

**Author:** [@makanga\_ndambiri](https://www.ruby-forum.com/u/makanga_ndambiri)\
**Replies:** 0\
**Last updated:** [April 21, 2009, 1:52pm UTC](https://www.ruby-forum.com/t/no-subject/166059 "2009-04-21T13:52:39Z")

</div>

unsubscribe nginx Makanga Ndambiri (+254) 723 717 827

---

## [Why 'client closed prematurely connection while sending request to upstream'?](https://www.ruby-forum.com/t/why-client-closed-prematurely-connection-while-sending-request-to-upstream/166024)

<div class="topic-metadata">

**Author:** [@Yu.Cheung](https://www.ruby-forum.com/u/Yu.Cheung)\
**Replies:** 1\
**Last updated:** [April 21, 2009, 11:42am UTC](https://www.ruby-forum.com/t/why-client-closed-prematurely-connection-while-sending-request-to-upstream/166024 "2009-04-21T11:42:22Z")

</div>

Hi, All. I want to proxy twice. but there was something wrong with it. what I want to do: client send request-----\>nginx server-------\>sending(proxy\_pass) its header to the backend server 1 ----\>back to ngx server--…

---

## [Nginx 32bit vs 64bit performance](https://www.ruby-forum.com/t/nginx-32bit-vs-64bit-performance/165928)

<div class="topic-metadata">

**Author:** [@icebofh](https://www.ruby-forum.com/u/icebofh)\
**Replies:** 3\
**Last updated:** [April 21, 2009, 10:39am UTC](https://www.ruby-forum.com/t/nginx-32bit-vs-64bit-performance/165928 "2009-04-21T10:39:35Z")

</div>

Has anyone tried benchmarking the relative performance between 32bit and 64bit for nginx? Would be interesting to see some numbers. Google failed me so I figured I would ask here. –J

---

## [Confusing timeout on RSS feed via WordpressMU plugin, but not manually](https://www.ruby-forum.com/t/confusing-timeout-on-rss-feed-via-wordpressmu-plugin-but-not-manually/166049)

<div class="topic-metadata">

**Author:** [@Alec\_Resnick](https://www.ruby-forum.com/u/Alec_Resnick)\
**Replies:** 0\
**Last updated:** [April 21, 2009, 10:15am UTC](https://www.ruby-forum.com/t/confusing-timeout-on-rss-feed-via-wordpressmu-plugin-but-not-manually/166049 "2009-04-21T10:15:27Z")

</div>

I have nginx/0.6.32 running on Ubuntu 8.10 slice @ Slicehost. It’s set up to serve a WordpressMU site through fastcgi via php-cgi. My configuration file is here http://pastebin.com/m33f949f My fastcgi\_params are th…

---

## [Image Upload Problem](https://www.ruby-forum.com/t/image-upload-problem/166038)

<div class="topic-metadata">

**Author:** [@jegsjegs](https://www.ruby-forum.com/u/jegsjegs)\
**Replies:** 0\
**Last updated:** [April 21, 2009, 8:19am UTC](https://www.ruby-forum.com/t/image-upload-problem/166038 "2009-04-21T08:19:53Z")

</div>

I’m having issues with simple image uploads in Magento admin area und PHP 5.2.6 using FastCGI: 2009/04/21 07:44:33 \[notice\] 29743#0: 14130 "^(.)$" matches “/index.php/admin/catalog\_product\_gallery/upload/key/ffabc43d7…

---

## [NGINX/FCGI and Movable Type 4](https://www.ruby-forum.com/t/nginx-fcgi-and-movable-type-4/166019)

<div class="topic-metadata">

**Author:** [@reynar](https://www.ruby-forum.com/u/reynar)\
**Replies:** 0\
**Last updated:** [April 21, 2009, 3:01am UTC](https://www.ruby-forum.com/t/nginx-fcgi-and-movable-type-4/166019 "2009-04-21T03:01:36Z")

</div>

I’ve installed nginx and fcgi, and was able to run a hello world cgi script on a new server with no problem. I go to install MT 4.25 (which if you are unaware runs on cgi), and I get the same 502 Bad Gateway error I g…

---

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

<div class="topic-metadata">

**Author:** [@victori](https://www.ruby-forum.com/u/victori)\
**Replies:** 2\
**Last updated:** [April 21, 2009, 2:11am UTC](https://www.ruby-forum.com/t/nginx-bug/166005 "2009-04-21T02:11:54Z")

</div>

Ok, there has to be a bug here some where. My $request\_uri isn’t matching. I have also ran if ($request\_uri !~ “^/resources/.\*”) {} just to see if my regexp is messed up. The line isn’t being evaluated. I am pretty s…

---

## [Noob looking for PHP help](https://www.ruby-forum.com/t/noob-looking-for-php-help/165860)

<div class="topic-metadata">

**Author:** [@AMP\_Admin](https://www.ruby-forum.com/u/AMP_Admin)\
**Replies:** 19\
**Last updated:** [April 20, 2009, 3:05pm UTC](https://www.ruby-forum.com/t/noob-looking-for-php-help/165860 "2009-04-20T15:05:51Z")

</div>

i’ve been trying to wean myself off cpanel/whm and now apache for a long time. i’m down to just apache so it’s time to take the final step… i hope. i think i have a basic understanding on how to setup nginx and mysql …

---

## [Upload module 2.0.9](https://www.ruby-forum.com/t/upload-module-2-0-9/165962)

<div class="topic-metadata">

**Author:** [@Valery\_K](https://www.ruby-forum.com/u/Valery_K)\
**Replies:** 0\
**Last updated:** [April 20, 2009, 12:06pm UTC](https://www.ruby-forum.com/t/upload-module-2-0-9/165962 "2009-04-20T12:06:29Z")

</div>

Ok, nginx 0.7.52 allows me to release upload module 2.0.9. Changes so far: Change: compatibility with nginx’s API 0.7.52 and greater Fixed bug: module directives couldn’t have appeared in limit\_except block Added fea…

---

## [Unexpected value of $request\_uri in an SSI subrequest](https://www.ruby-forum.com/t/unexpected-value-of-request-uri-in-an-ssi-subrequest/165940)

<div class="topic-metadata">

**Author:** [@xgdlm](https://www.ruby-forum.com/u/xgdlm)\
**Replies:** 0\
**Last updated:** [April 20, 2009, 7:54am UTC](https://www.ruby-forum.com/t/unexpected-value-of-request-uri-in-an-ssi-subrequest/165940 "2009-04-20T07:54:31Z")

</div>

Hello all, It seems that the $request\_uri in a location used by a ssi virtual subrequest is set to the location that issue the SSI call, whereas the $uri is the value of the SSI subrequest URL. I don’t know if this i…

---

## [Set directive issues](https://www.ruby-forum.com/t/set-directive-issues/165938)

<div class="topic-metadata">

**Author:** [@victori](https://www.ruby-forum.com/u/victori)\
**Replies:** 1\
**Last updated:** [April 20, 2009, 6:54am UTC](https://www.ruby-forum.com/t/set-directive-issues/165938 "2009-04-20T06:54:59Z")

</div>

set $full\_uri “$host/$request\_uri”; if ($full\_uri ~\* “(.\*).fabulously40.com”) { set $username\_host $1; proxy\_pass http://127.0.0.1:8089/view/blog/user/$username\_host; } I am trying to set $full\_uri to both the argum…

---

## [Nginx on a box with 2 network cards](https://www.ruby-forum.com/t/nginx-on-a-box-with-2-network-cards/161162)

<div class="topic-metadata">

**Author:** [@Mohammad\_K](https://www.ruby-forum.com/u/Mohammad_K)\
**Replies:** 11\
**Last updated:** [April 20, 2009, 6:54am UTC](https://www.ruby-forum.com/t/nginx-on-a-box-with-2-network-cards/161162 "2009-04-20T06:54:18Z")

</div>

Quick question: on a box with 2 network cards, how do I make nginx use only one of those cards (e.g., eth0 and not eth1)? (sorry if you are getting this twice, the first time didn’t seem to go through)

---

## [2 nginx windows questions](https://www.ruby-forum.com/t/2-nginx-windows-questions/165850)

<div class="topic-metadata">

**Author:** [@Chris\_Cortese](https://www.ruby-forum.com/u/Chris_Cortese)\
**Replies:** 1\
**Last updated:** [April 19, 2009, 12:39am UTC](https://www.ruby-forum.com/t/2-nginx-windows-questions/165850 "2009-04-19T00:39:25Z")

</div>

Hi, I spent about a day following a link that helped me to build nginx and php-fpm with cygwin, mostly from this link: In the end, I built everything but I could not use it because I could not get PHP’s crypt to wo…

---

## [Subdomain server\_name help](https://www.ruby-forum.com/t/subdomain-server-name-help/165867)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 18, 2009, 6:44pm UTC](https://www.ruby-forum.com/t/subdomain-server-name-help/165867 "2009-04-18T18:44:43Z")

</div>

i want to send all requests with a subdomain that contains a particular string to be sent to a particular backend. for ex analyzerAA.XX.com and BBanalyzer.XX.com should be selected. what is the correct way of writing …

---

## [Re: Noob looking for PHP help](https://www.ruby-forum.com/t/re-noob-looking-for-php-help/165863)

<div class="topic-metadata">

**Author:** [@joviyach](https://www.ruby-forum.com/u/joviyach)\
**Replies:** 0\
**Last updated:** [April 18, 2009, 5:42pm UTC](https://www.ruby-forum.com/t/re-noob-looking-for-php-help/165863 "2009-04-18T17:42:00Z")

</div>

Babysit? How often is a new version of php released and who says you need to “upgrade” if your current configuration is working? MySQL comes out with new versions much more often, as does nginx. Sounds like you may be…

---

## [Centralized logging for multiple servers](https://www.ruby-forum.com/t/centralized-logging-for-multiple-servers/165360)

<div class="topic-metadata">

**Author:** [@Kingsley\_F](https://www.ruby-forum.com/u/Kingsley_F)\
**Replies:** 21\
**Last updated:** [April 18, 2009, 2:16am UTC](https://www.ruby-forum.com/t/centralized-logging-for-multiple-servers/165360 "2009-04-18T02:16:16Z")

</div>

Hi guys, Just wondering what you guys are using for centralized logging of access logs for multiple servers. I’m thinking about using the syslog patch but I was wondering if anyone was using anything they think is be…

---

## [Varnish?](https://www.ruby-forum.com/t/varnish/164209)

<div class="topic-metadata">

**Author:** [@iberci](https://www.ruby-forum.com/u/iberci)\
**Replies:** 17\
**Last updated:** [April 17, 2009, 11:08pm UTC](https://www.ruby-forum.com/t/varnish/164209 "2009-04-17T23:08:56Z")

</div>

I just came across varnish. We serve a lot of MP3 files on a regular basis. Does it make sense to have Varnish cache those and serve them out of cache? Does anyone have any experience with Varnish and Nginx install…

---

## [Passenger for Nginx](https://www.ruby-forum.com/t/passenger-for-nginx/165743)

<div class="topic-metadata">

**Author:** [@Jean-Philippe\_M](https://www.ruby-forum.com/u/Jean-Philippe_M)\
**Replies:** 2\
**Last updated:** [April 17, 2009, 7:42pm UTC](https://www.ruby-forum.com/t/passenger-for-nginx/165743 "2009-04-17T19:42:22Z")

</div>

Just for your information, in case you haven’t been flooded by the tweets and blog posts, Passenger (a.k.a mod\_rails) is available for nginx starting with passenger 2.2.0. Apparently it’s targeted for nginx 0.6.36 (…

---

## [Stop write log after have a problems for write(3)](https://www.ruby-forum.com/t/stop-write-log-after-have-a-problems-for-write-3/165802)

<div class="topic-metadata">

**Author:** [@Kirill\_ASKorinskiy](https://www.ruby-forum.com/u/Kirill_ASKorinskiy)\
**Replies:** 0\
**Last updated:** [April 17, 2009, 5:42pm UTC](https://www.ruby-forum.com/t/stop-write-log-after-have-a-problems-for-write-3/165802 "2009-04-17T17:42:02Z")

</div>

From: Kirill A. Korinskiy removed\_email\_address@domain.invalid Now we have a some issue â€” the I/O is a sync operation and we blocking every time to try write to full partition. This patch stop write a log after fir…

---

## [Re: Can nginx add Content-Type in X-Accel-Redirect?](https://www.ruby-forum.com/t/re-can-nginx-add-content-type-in-x-accel-redirect/165778)

<div class="topic-metadata">

**Author:** [@Xia\_Q](https://www.ruby-forum.com/u/Xia_Q)\
**Replies:** 1\
**Last updated:** [April 17, 2009, 3:23pm UTC](https://www.ruby-forum.com/t/re-can-nginx-add-content-type-in-x-accel-redirect/165778 "2009-04-17T15:23:28Z")

</div>

2009/4/17 ÕÅÁ¢±ù removed\_email\_address@domain.invalid: ¿´ÏÂÕâ¸öÄ£¿é¶ÔÄãÓÐÃ»ÓÐ°ïÖú¡£ Module ngx\_http\_headers\_module Sorry for no Chinese inputing method. This module can not do anything for this. Because nginx adds …

---

## [Nginx mogilefs module 1.0.1](https://www.ruby-forum.com/t/nginx-mogilefs-module-1-0-1/165683)

<div class="topic-metadata">

**Author:** [@Valery\_K](https://www.ruby-forum.com/u/Valery_K)\
**Replies:** 10\
**Last updated:** [April 17, 2009, 12:11pm UTC](https://www.ruby-forum.com/t/nginx-mogilefs-module-1-0-1/165683 "2009-04-17T12:11:36Z")

</div>

Greetings! I’ve managed to implement module for nginx which fetches files from MogileFS. Please see module’s manual page on English or my nginx modules page: http://www.grid.net.ru/nginx/mogilefs.en.html http://www.…

---

## [Can nginx automaticly add Content-Type header when there is no Can nginx add Content-Type in X-Acce](https://www.ruby-forum.com/t/can-nginx-automaticly-add-content-type-header-when-there-is-no-can-nginx-add-content-type-in-x-acce/165774)

<div class="topic-metadata">

**Author:** [@Xia\_Q](https://www.ruby-forum.com/u/Xia_Q)\
**Replies:** 1\
**Last updated:** [April 17, 2009, 10:45am UTC](https://www.ruby-forum.com/t/can-nginx-automaticly-add-content-type-header-when-there-is-no-can-nginx-add-content-type-in-x-acce/165774 "2009-04-17T10:45:59Z")

</div>

Hi, Can nginx automaticly add Content-Type header when there is no Content-Type header in backend response with X-Accel-Redirect? I am taking use of X-Accel-Redirect to do the privacy control for static files. And I …

---

## [Setting remote addr to contents of header](https://www.ruby-forum.com/t/setting-remote-addr-to-contents-of-header/165642)

<div class="topic-metadata">

**Author:** [@dangermoose](https://www.ruby-forum.com/u/dangermoose)\
**Replies:** 5\
**Last updated:** [April 16, 2009, 10:30am UTC](https://www.ruby-forum.com/t/setting-remote-addr-to-contents-of-header/165642 "2009-04-16T10:30:04Z")

</div>

I’m running nginx beyind a L7 proxy (haproxy), I have haproxy setting the X-Forwarded-For header and I’m using this to log the real IP of the client and pass it to other processes that I’m proxying with nginx (mongrel…

---

## [Stat() failed](https://www.ruby-forum.com/t/stat-failed/165661)

<div class="topic-metadata">

**Author:** [@mrouleau](https://www.ruby-forum.com/u/mrouleau)\
**Replies:** 0\
**Last updated:** [April 16, 2009, 6:11am UTC](https://www.ruby-forum.com/t/stat-failed/165661 "2009-04-16T06:11:47Z")

</div>

Hi, when I flood my server with ApacheBench, with a concurrency of 1000 I expect most of my queries to be backlogged since I have raised backlog to 8192 by setting nginx listen backlog to that value and also raising …

---

## [Unsubscribe nginx](https://www.ruby-forum.com/t/unsubscribe-nginx/196940)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 16, 2009, 4:17am UTC](https://www.ruby-forum.com/t/unsubscribe-nginx/196940 "2009-04-16T04:17:50Z")

</div>

unsubscribe nginx

---

## [Rewrite configuration in web space (like .htaccess)](https://www.ruby-forum.com/t/rewrite-configuration-in-web-space-like-htaccess/165633)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [April 16, 2009, 12:51am UTC](https://www.ruby-forum.com/t/rewrite-configuration-in-web-space-like-htaccess/165633 "2009-04-16T00:51:04Z")

</div>

Hi, is there a way to let users without access to nginx configuration set rewrite rules? Something like .htaccess in apache with AllowOverride option, without need to reload server configuration. Thanks, Martin

---

## [How to block an IP](https://www.ruby-forum.com/t/how-to-block-an-ip/165625)

<div class="topic-metadata">

**Author:** [@sovok](https://www.ruby-forum.com/u/sovok)\
**Replies:** 2\
**Last updated:** [April 15, 2009, 9:25pm UTC](https://www.ruby-forum.com/t/how-to-block-an-ip/165625 "2009-04-15T21:25:07Z")

</div>

Blocking an Ip address should be done like this?! Allow from all Deny from 59.56.109.34 Thanks!

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

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