# Server

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

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

---

## [Rewrite help when files do NOT have a ".php" extension](https://www.ruby-forum.com/t/rewrite-help-when-files-do-not-have-a-php-extension/207727)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 27\
**Last updated:** [June 5, 2011, 7:52am UTC](https://www.ruby-forum.com/t/rewrite-help-when-files-do-not-have-a-php-extension/207727 "2011-06-05T07:52:43Z")

</div>

Loving Nginx so far! So much faster and leaner than Apache. Apologies for this yet another Rewrite rule help after so many threads, but one of domains has a special need and I am struggling with Rewrite rules. The lo…

---

## [Getting CSV file values as nginx variable](https://www.ruby-forum.com/t/getting-csv-file-values-as-nginx-variable/207797)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [June 4, 2011, 5:25pm UTC](https://www.ruby-forum.com/t/getting-csv-file-values-as-nginx-variable/207797 "2011-06-04T17:25:58Z")

</div>

Hi, I need to get values of CSV files in my project: John Malkovich,Person,123 Mulholland Drive,… to have in config something like: csv\_path /path/to/csv/dir; csv\_key $arg\_id; uwsgi\_param USER\_NAME $csv\_1; what’s …

---

## [Updated support for unix socket in abstract namespace](https://www.ruby-forum.com/t/updated-support-for-unix-socket-in-abstract-namespace/207848)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [June 4, 2011, 8:21am UTC](https://www.ruby-forum.com/t/updated-support-for-unix-socket-in-abstract-namespace/207848 "2011-06-04T08:21:02Z")

</div>

Hi all, attached there is an updated patch for adding support for unix socket in abstract namespace. As requested by Igor, the syntax is now unix:\\0foobar instead of unix:@foobar The only relevant note is this par…

---

## [Include directive not allowed in upstream?](https://www.ruby-forum.com/t/include-directive-not-allowed-in-upstream/207819)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [June 4, 2011, 12:13am UTC](https://www.ruby-forum.com/t/include-directive-not-allowed-in-upstream/207819 "2011-06-04T00:13:35Z")

</div>

We have a number of upstream blocks for different vhosts / processes but a number of them make use of the same backend nodes so I wanted to simply out upsteam declarations by using includes. On doing so we get the fol…

---

## [Set header based on memcached request - mod\_eval](https://www.ruby-forum.com/t/set-header-based-on-memcached-request-mod-eval/207831)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [June 3, 2011, 4:56pm UTC](https://www.ruby-forum.com/t/set-header-based-on-memcached-request-mod-eval/207831 "2011-06-03T16:56:25Z")

</div>

Hi all, I try to set a HTTP header for a proxy request based on some variable I get from memcached with the eval module: location / { eval $role { set $memcached\_key $cookie\_sessionid; memcached\_pass 127.0.0.1:1121…

---

## [Nginx with PHP - windows performance](https://www.ruby-forum.com/t/nginx-with-php-windows-performance/207822)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [June 3, 2011, 1:40pm UTC](https://www.ruby-forum.com/t/nginx-with-php-windows-performance/207822 "2011-06-03T13:40:36Z")

</div>

After 2 days of testing I’m able to run nginx on Windows Vista x64 SP2 with PHP I’m using a Kevin W. 1.04 cygwin build with 2 worker processes and 5 child’s of php-cgi.exe On a hardware like Laptop with Intel Core2Du…

---

## [HttpLimitReqModule logging and not denying](https://www.ruby-forum.com/t/httplimitreqmodule-logging-and-not-denying/207803)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [June 3, 2011, 4:15am UTC](https://www.ruby-forum.com/t/httplimitreqmodule-logging-and-not-denying/207803 "2011-06-03T04:15:05Z")

</div>

Hi All, I am trying to restrict frequent requests but not block it completely. I’ve gotten HttpLimitReqModule to work but this just blocks the requests that exceed the limit. Instead I would like to be able to log it…

---

## [Resumable uploads with upload module](https://www.ruby-forum.com/t/resumable-uploads-with-upload-module/207795)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [June 2, 2011, 8:27pm UTC](https://www.ruby-forum.com/t/resumable-uploads-with-upload-module/207795 "2011-06-02T20:27:02Z")

</div>

Hi, I haven’t found a lot of information on what would seem to me a very interesting and useful feature: the upload modules upload\_resumable directive and how to implement a client that supports the protocol stated he…

---

## [Problems Proxying Offline Web Application](https://www.ruby-forum.com/t/problems-proxying-offline-web-application/207739)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [June 2, 2011, 2:44pm UTC](https://www.ruby-forum.com/t/problems-proxying-offline-web-application/207739 "2011-06-02T14:44:02Z")

</div>

Hi All, We’re in the process of prototyping some HTML5 offline apps. They work offline when running directly from the app server (webrick or unicorn in this case), but they won’t work in offline mode when proxying vi…

---

## [Delay on nginx serving from backend](https://www.ruby-forum.com/t/delay-on-nginx-serving-from-backend/207784)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [June 2, 2011, 2:34pm UTC](https://www.ruby-forum.com/t/delay-on-nginx-serving-from-backend/207784 "2011-06-02T14:34:47Z")

</div>

Dear Nginx community , I am running nginx 1.04 , ( also tried 1.0 ) , and the backend has an ejabber server serving http requests. I am experiencing delays in requests being served when i serve the request via nginx …

---

## [Re:](https://www.ruby-forum.com/t/re/207740)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [June 2, 2011, 11:34am UTC](https://www.ruby-forum.com/t/re/207740 "2011-06-02T11:34:20Z")

</div>

When running two vhosts, one of which listens on \[::\], the other on localhost, nginx will fail with this error: 2011/06/01 10:12:35 \[emerg\] 9750#0: bind() to 127.0.0.1:80 failed (98: Address already in use) My under…

---

## [Nginx 1.0.4 for Windows (32-bit and 64-bit) now available for download](https://www.ruby-forum.com/t/nginx-1-0-4-for-windows-32-bit-and-64-bit-now-available-for-download/207766)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [June 2, 2011, 4:40am UTC](https://www.ruby-forum.com/t/nginx-1-0-4-for-windows-32-bit-and-64-bit-now-available-for-download/207766 "2011-06-02T04:40:59Z")

</div>

For those interested, Cygwin based versions of Nginx 1.0.4 for Windows (both 32-bit and 64-bit) builds are available here: Blog post/announcement: Nginx 1.0.4 for Windows – Kevin Worthington (comments and feedback we…

---

## [Server hardening without "If" conditions](https://www.ruby-forum.com/t/server-hardening-without-if-conditions/207728)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [June 1, 2011, 3:25pm UTC](https://www.ruby-forum.com/t/server-hardening-without-if-conditions/207728 "2011-06-01T15:25:01Z")

</div>

Hi. I notice that nginx with just the location rules and usual directives results in mind-blowing performance. Apache Bench test shows “115,000 requests per second” can be handled. However, when I add a simple rule: i…

---

## [Getting All Documentation Under One Roof](https://www.ruby-forum.com/t/getting-all-documentation-under-one-roof/207553)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 7\
**Last updated:** [June 1, 2011, 2:47pm UTC](https://www.ruby-forum.com/t/getting-all-documentation-under-one-roof/207553 "2011-06-01T14:47:12Z")

</div>

Hi, Can I get a raise of hands who is interested in a more cohesive partnership between these two sites: nginx.org wiki.nginx.org and what thoughts you have on the best way to do it? I’m new to Nginx and this maili…

---

## [Location regexp with multiple Wordpress install](https://www.ruby-forum.com/t/location-regexp-with-multiple-wordpress-install/207723)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [June 1, 2011, 1:36pm UTC](https://www.ruby-forum.com/t/location-regexp-with-multiple-wordpress-install/207723 "2011-06-01T13:36:03Z")

</div>

Hello, I have a problem with my location rules. I would like to generate a generic location rule for each folder that contains a WordPress installation. location / { try\_files $uri $uri/ /index.html; } location /u…

---

## [NGINX + Reverse Proxy + SSL](https://www.ruby-forum.com/t/nginx-reverse-proxy-ssl/207726)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [June 1, 2011, 12:49pm UTC](https://www.ruby-forum.com/t/nginx-reverse-proxy-ssl/207726 "2011-06-01T12:49:01Z")

</div>

Hello :wink: As part of a project, I need to perform a reverse proxy to a server that runs apache https. I do not have the certificates on the destination server and I can not add them to nginx. I tried the followin…

---

## [Nginx gzip doesn't (always) respect Accept-Encoding header?](https://www.ruby-forum.com/t/nginx-gzip-doesnt-always-respect-accept-encoding-header/207697)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [June 1, 2011, 12:36pm UTC](https://www.ruby-forum.com/t/nginx-gzip-doesnt-always-respect-accept-encoding-header/207697 "2011-06-01T12:36:02Z")

</div>

Hi, I seem to be missing an obvious step to control nginx gzip based (only) on the clients Accept-Encoding header? Nginx 0.8.53. My config is: gzip on; gzip\_min\_length 900; gzip\_buffers 16 8k; how to gzip proxie…

---

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

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [June 1, 2011, 11:14am UTC](https://www.ruby-forum.com/t/rewrite/207713 "2011-06-01T11:14:59Z")

</div>

Hello, i have write my own Blog now, and the sites ended with id. Thats not good for the visitors and the search engine so i think. Is there are a way that i can write the webpage Adress like blogdetail.html?id=1 in…

---

## [Blocking by user agent if ip doesn't match](https://www.ruby-forum.com/t/blocking-by-user-agent-if-ip-doesnt-match/207690)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 15\
**Last updated:** [June 1, 2011, 10:48am UTC](https://www.ruby-forum.com/t/blocking-by-user-agent-if-ip-doesnt-match/207690 "2011-06-01T10:48:22Z")

</div>

Hello everyone. Sorry for double posting this question in How to section of the forum but I’ve noticed later there is a lot of un-replied threads there and that mailing list is more active so I am assuming I have more …

---

## [Accessing binary blob data in MySQL backend](https://www.ruby-forum.com/t/accessing-binary-blob-data-in-mysql-backend/207676)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 15\
**Last updated:** [June 1, 2011, 8:13am UTC](https://www.ruby-forum.com/t/accessing-binary-blob-data-in-mysql-backend/207676 "2011-06-01T08:13:10Z")

</div>

Hi! I am curious if is feasible to have Nginx deliver binary blob data which is currently stored in a MySQL database. I was loosely following the examples mentioned in agentzh’s blog \[1\] which work all fine for me wit…

---

## [Why worker process only use cpu0?](https://www.ruby-forum.com/t/why-worker-process-only-use-cpu0/207702)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [June 1, 2011, 2:49am UTC](https://www.ruby-forum.com/t/why-worker-process-only-use-cpu0/207702 "2011-06-01T02:49:35Z")

</div>

I have 4 core CPU’s, cpu0-cpu3, but why NginX worker process only high on cpu0 than other cpu’s ? This is my main configuration http://fpaste.org/VT7I My hardware spec’s are : Intel(R) Xeon(R) CPU X3220 M…

---

## [Stalled cache updating and upstream timeouts?](https://www.ruby-forum.com/t/stalled-cache-updating-and-upstream-timeouts/207685)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [May 31, 2011, 7:34pm UTC](https://www.ruby-forum.com/t/stalled-cache-updating-and-upstream-timeouts/207685 "2011-05-31T19:34:41Z")

</div>

Hi, I get 2 errors into nginx logs, constantly: stalled cache updating, error:0 while closing request AND upstream timed out (110: Connection timed out) while reading response header from upstream I use fastcgi as u…

---

## [Tweaking nginx workers nice values](https://www.ruby-forum.com/t/tweaking-nginx-workers-nice-values/207677)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [May 31, 2011, 4:28pm UTC](https://www.ruby-forum.com/t/tweaking-nginx-workers-nice-values/207677 "2011-05-31T16:28:09Z")

</div>

Is it possible to set the nice values for nginx worker processes, the main processs can be tweaked easily… but I’d like to tweak the worker processes too… Thanks.

---

## [Multiple server\_name entries not working](https://www.ruby-forum.com/t/multiple-server-name-entries-not-working/207659)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [May 31, 2011, 1:51pm UTC](https://www.ruby-forum.com/t/multiple-server-name-entries-not-working/207659 "2011-05-31T13:51:07Z")

</div>

Nginx 1.0.3 I have a virtual host file with a simple config: server { listen 8080; server\_name domain.com www.domain.com; root /var/www/html/dm2011/pub; access\_log /var/log/nginx/access.log main; location …

---

## [HttpImageFilterModule: Crop with nonzero origin](https://www.ruby-forum.com/t/httpimagefiltermodule-crop-with-nonzero-origin/207617)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [May 31, 2011, 9:40am UTC](https://www.ruby-forum.com/t/httpimagefiltermodule-crop-with-nonzero-origin/207617 "2011-05-31T09:40:53Z")

</div>

I’d like to use nginx’s Image Filter Modulehttp://wiki.nginx.org/HttpImageFilterModuleto dynamically generate DeepZoomhttp://msdn.microsoft.com/en-us/library/cc645050(v=vs.95).aspximages. However, I don’t see an x-po…

---

## [Formatting of nginx.conf -- any impact on performance?](https://www.ruby-forum.com/t/formatting-of-nginx-conf-any-impact-on-performance/207653)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [May 31, 2011, 4:07am UTC](https://www.ruby-forum.com/t/formatting-of-nginx-conf-any-impact-on-performance/207653 "2011-05-31T04:07:42Z")

</div>

Hi. Probably a silly question, but I have noticed that if I have a properly tabbed/spaced config file, the performance of nginx goes down. Is this a valid observation? Thanks. Posted at Nginx Forum:

---

## [Simple URI redirection / alias in Nginx…](https://www.ruby-forum.com/t/simple-uri-redirection-alias-in-nginx/207632)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [May 31, 2011, 1:03am UTC](https://www.ruby-forum.com/t/simple-uri-redirection-alias-in-nginx/207632 "2011-05-31T01:03:31Z")

</div>

Please, how can I make this simple operation: I wish that every requests for uris like: http://example.com/adm or: http://example.com/adm Goes to the wordpress login page: wordpress/wp-login.php (The wordpress ins…

---

## [Limit\_conn with zones -- safe production server value?](https://www.ruby-forum.com/t/limit-conn-with-zones-safe-production-server-value/207603)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [May 29, 2011, 6:08pm UTC](https://www.ruby-forum.com/t/limit-conn-with-zones-safe-production-server-value/207603 "2011-05-29T18:08:18Z")

</div>

Hi. I am trying to replicate the functionality of mod\_evasive on Apache, which basically says that at the same point the same IP can have only “X connections per second”. I see the example here: http://wiki.nginx.org…

---

## [Error message control when using nginx as proxy](https://www.ruby-forum.com/t/error-message-control-when-using-nginx-as-proxy/207598)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [May 29, 2011, 4:29pm UTC](https://www.ruby-forum.com/t/error-message-control-when-using-nginx-as-proxy/207598 "2011-05-29T16:29:28Z")

</div>

I have setup nginx as a front proxy, it passes php requests to Apache. When I now try to access my site through, say, “TRACE”, then naturally I see the 405 error. But this is a nginx default message. How can I make su…

---

## [Newbie questions about nginx (moving from apache)](https://www.ruby-forum.com/t/newbie-questions-about-nginx-moving-from-apache/207515)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 18\
**Last updated:** [May 29, 2011, 7:11am UTC](https://www.ruby-forum.com/t/newbie-questions-about-nginx-moving-from-apache/207515 "2011-05-29T07:11:35Z")

</div>

Hi sorry for english. i am on centos 64 bit server with cpanel and whm. i have apache 2.2.18 and there is heavy duty use of the following: mod rewrite mod geoip mod security (with rules available in 2.6.0 for google…

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

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