# Server

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

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

---

## [Nginx .htaccess problem](https://www.ruby-forum.com/t/nginx-htaccess-problem/202555)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [February 2, 2011, 10:45am UTC](https://www.ruby-forum.com/t/nginx-htaccess-problem/202555 "2011-02-02T10:45:32Z")

</div>

Uploaded with ImageShack.us hi i just try to running my website on nginx i am really impressed the speed i have search engine script and working apache well i just made 81 port for nginx for testing purpose i found …

---

## [Install passenger with nginx already installed](https://www.ruby-forum.com/t/install-passenger-with-nginx-already-installed/202599)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [February 2, 2011, 8:54am UTC](https://www.ruby-forum.com/t/install-passenger-with-nginx-already-installed/202599 "2011-02-02T08:54:13Z")

</div>

How do I install passenger if I already have nginx installed and running?

---

## [Redirect /olddir to /newdir](https://www.ruby-forum.com/t/redirect-olddir-to-newdir/202548)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [February 1, 2011, 10:50pm UTC](https://www.ruby-forum.com/t/redirect-olddir-to-newdir/202548 "2011-02-01T22:50:40Z")

</div>

Hi all, I need your suggestions to create a rewrite rule in nginx that will redirect the user from an old dir to the new one: http://domain.com/olddir/some/dir/ to http://domain.com/newdir/some/dir/ location /newdir…

---

## [Mongrel service](https://www.ruby-forum.com/t/mongrel-service/195390)

<div class="topic-metadata">

**Author:** [@Gerhard\_Koekemoer](https://www.ruby-forum.com/u/Gerhard_Koekemoer)\
**Replies:** 12\
**Last updated:** [February 1, 2011, 9:35pm UTC](https://www.ruby-forum.com/t/mongrel-service/195390 "2011-02-01T21:35:41Z")

</div>

Hi all Environment: Windows 7 64 bit Ruby 1.9.2.p0 Rails 3 I am getting the following error when I run the following command mongrel\_rails service::install -N MyTestApp\_4001 -p 4001 -e production: “Msvcrt-ruby18.d…

---

## [Setting cache parameters via if directives](https://www.ruby-forum.com/t/setting-cache-parameters-via-if-directives/202397)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 7\
**Last updated:** [February 1, 2011, 4:47pm UTC](https://www.ruby-forum.com/t/setting-cache-parameters-via-if-directives/202397 "2011-02-01T16:47:40Z")

</div>

Hello, We have a particular application (gitweb) that performs a particular, extraordinarily slow function when the home page is loaded. As the number of repositories has increased, this has grown to take several min…

---

## [Strange prepending of 0 to response](https://www.ruby-forum.com/t/strange-prepending-of-0-to-response/202551)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [February 1, 2011, 11:52am UTC](https://www.ruby-forum.com/t/strange-prepending-of-0-to-response/202551 "2011-02-01T11:52:27Z")

</div>

Hi All, Sorry that my first posting here is a support request/bug report, but I’ve gotta start somewhere! So - basically, we’re seeing responses occasionally (not always - in fact, quite infrequently) coming back wit…

---

## [Rewriting request to www.domain.com to domain.com](https://www.ruby-forum.com/t/rewriting-request-to-www-domain-com-to-domain-com/202502)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [February 1, 2011, 3:42am UTC](https://www.ruby-forum.com/t/rewriting-request-to-www-domain-com-to-domain-com/202502 "2011-02-01T03:42:37Z")

</div>

Hello, I am having a hard time getting the following type of domain rewrite to work. This is what I have so far: server { listen 80; charset off; server\_name www.foobar.com; access\_log …

---

## [Please convert this .htaccess to NGINX rewrite](https://www.ruby-forum.com/t/please-convert-this-htaccess-to-nginx-rewrite/201104)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [January 31, 2011, 5:20pm UTC](https://www.ruby-forum.com/t/please-convert-this-htaccess-to-nginx-rewrite/201104 "2011-01-31T17:20:45Z")

</div>

could somebody convert this .htaccess to NGINX rewrite,?? i need it stop my forum from automatic bot poster… RewriteEngine on RewriteCond %{HTTP\_USER\_AGENT} ^.(6a1pre). \[NC\] RewriteRule ^(.\*)$ - \[F,L\] if u could hel…

---

## [Bandwidth usage per file](https://www.ruby-forum.com/t/bandwidth-usage-per-file/202482)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [January 31, 2011, 1:50am UTC](https://www.ruby-forum.com/t/bandwidth-usage-per-file/202482 "2011-01-31T01:50:37Z")

</div>

I need to know the exact bandwidth used to server each file, Does Nginx support this feature? Posted at Nginx Forum:

---

## [Nginx, spawn-fcgi and php on freebsd - adding '/' incorrectly](https://www.ruby-forum.com/t/nginx-spawn-fcgi-and-php-on-freebsd-adding-incorrectly/202462)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [January 31, 2011, 12:09am UTC](https://www.ruby-forum.com/t/nginx-spawn-fcgi-and-php-on-freebsd-adding-incorrectly/202462 "2011-01-31T00:09:20Z")

</div>

hello, i have nginx setup, but i have a weird problem and i am unsure whether it is to do with the application or something i messed up on the nginx.conf file: server { listen 87.98.133.231:80; ser…

---

## [Error parsing wp-app.php (Wordpress) on Nginx](https://www.ruby-forum.com/t/error-parsing-wp-app-php-wordpress-on-nginx/202483)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [January 30, 2011, 7:00pm UTC](https://www.ruby-forum.com/t/error-parsing-wp-app-php-wordpress-on-nginx/202483 "2011-01-30T19:00:25Z")

</div>

I moved my website from apache to nginx and everything seems to be working as expected except (Well, I’ve only seen that error) when I try to create posts through the Atom publishing protocol which can be accesed via h…

---

## [Redis output without $COUNT](https://www.ruby-forum.com/t/redis-output-without-count/202473)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [January 30, 2011, 9:09am UTC](https://www.ruby-forum.com/t/redis-output-without-count/202473 "2011-01-30T09:09:01Z")

</div>

Hello, i play around with the redis2 addon, works perfekt :slight\_smile: But if i query a value i get one line with “$” and Count of the result. Is there a option to get only the value without the first line? Thanks …

---

## [uWSGI 0.9.6.7](https://www.ruby-forum.com/t/uwsgi-0-9-6-7/202470)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [January 30, 2011, 7:25am UTC](https://www.ruby-forum.com/t/uwsgi-0-9-6-7/202470 "2011-01-30T07:25:09Z")

</div>

Hi all, another maintainance release of the uWSGI server is available. All the async-users are encouraged to upgrade as the performance of the new async stack are stellar. 0.9.6.7 \[20110130\] a huge amount of async …

---

## [Vhost support](https://www.ruby-forum.com/t/vhost-support/202446)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 7\
**Last updated:** [January 29, 2011, 7:16pm UTC](https://www.ruby-forum.com/t/vhost-support/202446 "2011-01-29T19:16:09Z")

</div>

So there doesn’t seem to be any interest in some kind of vhost\_alias module so I’d like to try and write one but I need a little help with the nginx codebase. server { listen 80; server\_name \_; location / { root /…

---

## [Using 'set' values in 'location'?](https://www.ruby-forum.com/t/using-set-values-in-location/202435)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [January 28, 2011, 11:12pm UTC](https://www.ruby-forum.com/t/using-set-values-in-location/202435 "2011-01-28T23:12:42Z")

</div>

I’m still working on getting nginx installed but I want to get a head start on the configuration. I have a couple questions regarding ‘set’: Can I use variables I create with ‘set’ in ‘location’ as regular strings? …

---

## [Remove Cookies from headers](https://www.ruby-forum.com/t/remove-cookies-from-headers/202366)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [January 28, 2011, 6:10am UTC](https://www.ruby-forum.com/t/remove-cookies-from-headers/202366 "2011-01-28T06:10:21Z")

</div>

Hello, Is there a way to remove cookies sent from the backend? In varnish we have “unset req.http.cookie” (when receiving the request before sending to the backend) or “unset beresp.http.set-cookie” (when sending the…

---

## [Keep-alive connection cause download hangs in Nginx after 0.7.67](https://www.ruby-forum.com/t/keep-alive-connection-cause-download-hangs-in-nginx-after-0-7-67/202362)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [January 27, 2011, 8:41pm UTC](https://www.ruby-forum.com/t/keep-alive-connection-cause-download-hangs-in-nginx-after-0-7-67/202362 "2011-01-27T20:41:11Z")

</div>

Hello, I am running into this download hanging issue. We are using nginx as a download server with SSL and secure download module enabled. When using nginx-0.7.67, it works well. But when we try to upgrade to nginx-0.…

---

## [FastCGI backend issue](https://www.ruby-forum.com/t/fastcgi-backend-issue/202252)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 7\
**Last updated:** [January 27, 2011, 6:26pm UTC](https://www.ruby-forum.com/t/fastcgi-backend-issue/202252 "2011-01-27T18:26:06Z")

</div>

I’ve got a self-written FastCGI backend. It works with Lighttpd, but not with Nginx. Nginx connects to the backend, sends the request, receives the response, but then appears to wait on something else. The backend wri…

---

## [Theme Background Wordpress Error / Blank](https://www.ruby-forum.com/t/theme-background-wordpress-error-blank/202355)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [January 27, 2011, 3:36pm UTC](https://www.ruby-forum.com/t/theme-background-wordpress-error-blank/202355 "2011-01-27T15:36:32Z")

</div>

I am sorry to bother you. But I have absolutely no idea what was happening on my blog http://profilartis.net. There, the theme is not going well. Why can not I change the theme of these blogs? When changing themes al…

---

## [Rewrite scheme for url redirect](https://www.ruby-forum.com/t/rewrite-scheme-for-url-redirect/202323)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [January 27, 2011, 3:18pm UTC](https://www.ruby-forum.com/t/rewrite-scheme-for-url-redirect/202323 "2011-01-27T15:18:54Z")

</div>

I’m going crazy with this since I can’t get it working in any way… I have a subdomain on a server, let’s call it images.site1.com, dedicated to serve images. Due to some bandwidth limitation i got a more capable serve…

---

## [Header with underscore](https://www.ruby-forum.com/t/header-with-underscore/202352)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [January 27, 2011, 11:16am UTC](https://www.ruby-forum.com/t/header-with-underscore/202352 "2011-01-27T11:16:42Z")

</div>

Hi all, when proxy from nginx, if the headers contains underscore it won’t be passed: $ curl -s http://proxy01.ced:8888/check\_headers.php --header “Host: myhost” --header “X\_UP\_CALLING\_LINE\_ID: daniele” | grep daniel…

---

## [What is the optimized configuration for FLV stream](https://www.ruby-forum.com/t/what-is-the-optimized-configuration-for-flv-stream/202342)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [January 27, 2011, 5:46am UTC](https://www.ruby-forum.com/t/what-is-the-optimized-configuration-for-flv-stream/202342 "2011-01-27T05:46:19Z")

</div>

Hi, I’m configing a http(pseudo)-stream server for flv media files. As a newcomer to Nginx, I’m wondering what is the special configuration should I care about on performance/throughput etc. The following is my curre…

---

## [Nginx reverse proxy issue](https://www.ruby-forum.com/t/nginx-reverse-proxy-issue/202299)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [January 26, 2011, 5:35pm UTC](https://www.ruby-forum.com/t/nginx-reverse-proxy-issue/202299 "2011-01-26T17:35:21Z")

</div>

Hello all, For the last few days Ive been trying Nginx as a reverse proxy in front of an IIS webserver with an ASP.NET webapp. From the Nginx configuration: location / { proxy\_pass http://theproxiedserver/somepath; } …

---

## [Add new cookie into headers\_in](https://www.ruby-forum.com/t/add-new-cookie-into-headers-in/202212)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 7\
**Last updated:** [January 26, 2011, 5:55am UTC](https://www.ruby-forum.com/t/add-new-cookie-into-headers-in/202212 "2011-01-26T05:55:13Z")

</div>

Hello, I have a filter module in rewrite phase. The module tests if a cookie is in the request. If not the module generates one (if cookie is found the module modifies it) and then send it back to the client via head…

---

## [How to display ubuntu releases page the same in apache and nginx?](https://www.ruby-forum.com/t/how-to-display-ubuntu-releases-page-the-same-in-apache-and-nginx/202285)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [January 26, 2011, 3:02am UTC](https://www.ruby-forum.com/t/how-to-display-ubuntu-releases-page-the-same-in-apache-and-nginx/202285 "2011-01-26T03:02:19Z")

</div>

If you go to http://br.releases.ubuntu.com/ you’ll see the usual Ubuntu releases page. It consists of a header, a footer and the directory index. If you go to http://br.releases.ubuntu.com:8080 you’ll see the same di…

---

## [Setting server name = hostname explicitly](https://www.ruby-forum.com/t/setting-server-name-hostname-explicitly/201911)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [January 25, 2011, 5:56pm UTC](https://www.ruby-forum.com/t/setting-server-name-hostname-explicitly/201911 "2011-01-25T17:56:13Z")

</div>

Hi everyone, If Igor’s reading, I just want to say that NGINX is amazing and we love it. Thank you! Apologies if this has already been answered elsewhere, but I spent a lot of time looking and couldn’t find a solutio…

---

## [Ngx\_headers\_more v0.14: minor optimizations and fixes](https://www.ruby-forum.com/t/ngx-headers-more-v0-14-minor-optimizations-and-fixes/202243)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [January 25, 2011, 6:15am UTC](https://www.ruby-forum.com/t/ngx-headers-more-v0-14-minor-optimizations-and-fixes/202243 "2011-01-25T06:15:28Z")

</div>

Hi, there I’m happy to announce the v0.14 release of our ngx\_headers\_more module which features some minor optimizations and bug fixes. You can download the tarball from the download page below: http://github.com/age…

---

## [Nginx + Perl](https://www.ruby-forum.com/t/nginx-perl/202197)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 9\
**Last updated:** [January 24, 2011, 1:39pm UTC](https://www.ruby-forum.com/t/nginx-perl/202197 "2011-01-24T13:39:05Z")

</div>

Hi Nginx perfectly execute Perl scripts with the extensions \*.cgi or \*.pl (www.abc.com/bin/test\_perl\_script.cgi) via fastcgi. But I should execute Perl scripts without the extension. For example: www.abc.com/bin/test…

---

## [Fastcgi\_buffers and fastcgi\_buffer\_size Q?](https://www.ruby-forum.com/t/fastcgi-buffers-and-fastcgi-buffer-size-q/202189)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [January 24, 2011, 10:45am UTC](https://www.ruby-forum.com/t/fastcgi-buffers-and-fastcgi-buffer-size-q/202189 "2011-01-24T10:45:55Z")

</div>

Hi Guys, after long googling and trying to find the right setup for nginx and fastcgi we came to three settings: fastcgi\_buffers, fastcgi\_buffer\_size and fastcgi\_read\_timeout; According to HttpFcgiModule manual the…

---

## [Encode url](https://www.ruby-forum.com/t/encode-url/199685)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 2\
**Last updated:** [January 24, 2011, 10:08am UTC](https://www.ruby-forum.com/t/encode-url/199685 "2011-01-24T10:08:50Z")

</div>

Hi, I’m writing my first nginx module. The module at some point uses the “Location” header to redirect to user to a landing page. The redirected url has many arguments which could potentially contain spaces, slashes …

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

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