# Server

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

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

---

## [Multiple wordpress installs on same ip](https://www.ruby-forum.com/t/multiple-wordpress-installs-on-same-ip/193467)

<div class="topic-metadata">

**Author:** [@flash](https://www.ruby-forum.com/u/flash)\
**Replies:** 1\
**Last updated:** [August 18, 2010, 8:15am UTC](https://www.ruby-forum.com/t/multiple-wordpress-installs-on-same-ip/193467 "2010-08-18T08:15:57Z")

</div>

I’m having some difficulty with a wordpress behavior that I have not been able to figure out. When I try to split off the second install I get into a wordpress issue where it sends me to the signup page instead of all…

---

## [Is there any way to use a nginx variable inside a perl set?](https://www.ruby-forum.com/t/is-there-any-way-to-use-a-nginx-variable-inside-a-perl-set/193447)

<div class="topic-metadata">

**Author:** [@evms](https://www.ruby-forum.com/u/evms)\
**Replies:** 1\
**Last updated:** [August 18, 2010, 2:17am UTC](https://www.ruby-forum.com/t/is-there-any-way-to-use-a-nginx-variable-inside-a-perl-set/193447 "2010-08-18T02:17:10Z")

</div>

Let’s imagine that I do this http { set $a 2; perl\_set $x sub { return $a++; } } I don’t think I can do this. Is there away around this to provide that functionality? Posted at Nginx Forum:

---

## [Big files truncated](https://www.ruby-forum.com/t/big-files-truncated/193425)

<div class="topic-metadata">

**Author:** [@axel](https://www.ruby-forum.com/u/axel)\
**Replies:** 2\
**Last updated:** [August 17, 2010, 7:27pm UTC](https://www.ruby-forum.com/t/big-files-truncated/193425 "2010-08-17T19:27:15Z")

</div>

Hi guys, I get still the same issue on nginx 0.7.67. Medium and big files are sometimes (I don’t know when or why) truncated. I have a server configuration for static.mydomain.tld that is doing nothing else than send…

---

## [Problem with Substitutions NginxHttpSubsModule](https://www.ruby-forum.com/t/problem-with-substitutions-nginxhttpsubsmodule/193100)

<div class="topic-metadata">

**Author:** [@Martronic\_SA](https://www.ruby-forum.com/u/Martronic_SA)\
**Replies:** 11\
**Last updated:** [August 17, 2010, 5:35pm UTC](https://www.ruby-forum.com/t/problem-with-substitutions-nginxhttpsubsmodule/193100 "2010-08-17T17:35:24Z")

</div>

I m’ having problems with Substitutions NginxHttpSubsModule, Everything seems to be well installed, but it doesn’t substitute anything in the html pages. Here is my config file: upstream hoplanet { ip\_hash; serve…

---

## [Try\_files behaviour details](https://www.ruby-forum.com/t/try-files-behaviour-details/193385)

<div class="topic-metadata">

**Author:** [@Ensiferous](https://www.ruby-forum.com/u/Ensiferous)\
**Replies:** 3\
**Last updated:** [August 17, 2010, 1:13am UTC](https://www.ruby-forum.com/t/try-files-behaviour-details/193385 "2010-08-17T01:13:32Z")

</div>

Hey, I have a question about how try\_files works in some cases. The standard case seems to be server { server\_name foo; location / { try\_files $uri index.html; } } Here nginx tries $uri and then finally index.ht…

---

## [Non standard mime types are not recognized by gzip\_types?](https://www.ruby-forum.com/t/non-standard-mime-types-are-not-recognized-by-gzip-types/193387)

<div class="topic-metadata">

**Author:** [@lololo](https://www.ruby-forum.com/u/lololo)\
**Replies:** 1\
**Last updated:** [August 17, 2010, 12:50am UTC](https://www.ruby-forum.com/t/non-standard-mime-types-are-not-recognized-by-gzip-types/193387 "2010-08-17T00:50:42Z")

</div>

Hi. nginx/0.7.66 on Debian Stable We have an application that sends the content type: Content-Type: application/vnd.companyname.product;version=1.0 We have nginx as a proxy to these application servers. We would lik…

---

## [Deny requests of any file without authentication](https://www.ruby-forum.com/t/deny-requests-of-any-file-without-authentication/193393)

<div class="topic-metadata">

**Author:** [@caio](https://www.ruby-forum.com/u/caio)\
**Replies:** 0\
**Last updated:** [August 17, 2010, 12:28am UTC](https://www.ruby-forum.com/t/deny-requests-of-any-file-without-authentication/193393 "2010-08-17T00:28:27Z")

</div>

I’ve asked this question before without success. So I come here begging for help because I’m going crazy spending nights without a god damn answer =( I really don’t know what to do, I tried some things but it’s a big…

---

## [Fcgi permissions according to script owner](https://www.ruby-forum.com/t/fcgi-permissions-according-to-script-owner/193352)

<div class="topic-metadata">

**Author:** [@vfcforums](https://www.ruby-forum.com/u/vfcforums)\
**Replies:** 6\
**Last updated:** [August 16, 2010, 9:32pm UTC](https://www.ruby-forum.com/t/fcgi-permissions-according-to-script-owner/193352 "2010-08-16T21:32:49Z")

</div>

Does the fastcgi permissions in nginx work like those in Apache, in which it runs with permissions of the script owner? From what I see it runs with the permissions of the web user. Can it be changed to run with onl…

---

## [Questions about perl\_set](https://www.ruby-forum.com/t/questions-about-perl-set/193374)

<div class="topic-metadata">

**Author:** [@evms](https://www.ruby-forum.com/u/evms)\
**Replies:** 1\
**Last updated:** [August 16, 2010, 8:02pm UTC](https://www.ruby-forum.com/t/questions-about-perl-set/193374 "2010-08-16T20:02:38Z")

</div>

Is there any way possible I can use perl\_set within a Location directive? perl\_set $test\_transformation 'sub { my $r = shift; $result = list\_rewrite::handler($r, "/test.asp"); re…

---

## [Sensible Performance/Growth Strategies?](https://www.ruby-forum.com/t/sensible-performance-growth-strategies/192739)

<div class="topic-metadata">

**Author:** [@Raina\_G](https://www.ruby-forum.com/u/Raina_G)\
**Replies:** 20\
**Last updated:** [August 16, 2010, 6:44pm UTC](https://www.ruby-forum.com/t/sensible-performance-growth-strategies/192739 "2010-08-16T18:44:11Z")

</div>

I’m looking for advice on how to get the most out of my servers, and am looking for information on the advantages/disadvantages of various strategies. Right now, I have a production (ve) from Media Temple with 1GB and…

---

## [Other headers disappear after adding Set-Cookie header](https://www.ruby-forum.com/t/other-headers-disappear-after-adding-set-cookie-header/193353)

<div class="topic-metadata">

**Author:** [@Unimatrix02](https://www.ruby-forum.com/u/Unimatrix02)\
**Replies:** 4\
**Last updated:** [August 16, 2010, 4:30pm UTC](https://www.ruby-forum.com/t/other-headers-disappear-after-adding-set-cookie-header/193353 "2010-08-16T16:30:39Z")

</div>

Hi, I have the following problem. In a configuration with several locations, I am using add\_header Set-Cookie “name=value; domain=xyz.com; path=/”; and some other headers, like add\_header X-Info “Some information” W…

---

## [PHP $\_REQUEST Array is empty](https://www.ruby-forum.com/t/php-request-array-is-empty/193351)

<div class="topic-metadata">

**Author:** [@vfcforums](https://www.ruby-forum.com/u/vfcforums)\
**Replies:** 0\
**Last updated:** [August 16, 2010, 1:58pm UTC](https://www.ruby-forum.com/t/php-request-array-is-empty/193351 "2010-08-16T13:58:25Z")

</div>

Hi guys (new to the list), I installed nginx on Ubuntu Hardy and immediately realized that the PHP scripts were getting empty request arrays, ie whether GET or POST nothing was coming through, even the $\_REQUEST arra…

---

## [Why my server (nginx+php(fastcgi) )can't execute cgi?](https://www.ruby-forum.com/t/why-my-server-nginx-php-fastcgi-cant-execute-cgi/193301)

<div class="topic-metadata">

**Author:** [@zhxd](https://www.ruby-forum.com/u/zhxd)\
**Replies:** 8\
**Last updated:** [August 16, 2010, 9:41am UTC](https://www.ruby-forum.com/t/why-my-server-nginx-php-fastcgi-cant-execute-cgi/193301 "2010-08-16T09:41:27Z")

</div>

Hi,all! I sourcecode compile nginx php(with php-fpm)on CentOS. It can execute PHP,now. I ceate a website by cgi,but it can’t execute CGI. When I visit the cgi url,it show the cgi file download window. There show my …

---

## [Proxy/caching with Apache and index.html files](https://www.ruby-forum.com/t/proxy-caching-with-apache-and-index-html-files/193063)

<div class="topic-metadata">

**Author:** [@MattWard](https://www.ruby-forum.com/u/MattWard)\
**Replies:** 5\
**Last updated:** [August 15, 2010, 9:53pm UTC](https://www.ruby-forum.com/t/proxy-caching-with-apache-and-index-html-files/193063 "2010-08-15T21:53:16Z")

</div>

Hi all, I’ve got an nginx frontend/apache backend setup with nginx using proxy\_pass to pass requests for location / to my Apache server on localhost:8080. I’ve got a location setup to catch css/js/images/html etc. an…

---

## [How to match these urls?](https://www.ruby-forum.com/t/how-to-match-these-urls/193252)

<div class="topic-metadata">

**Author:** [@kevin](https://www.ruby-forum.com/u/kevin)\
**Replies:** 12\
**Last updated:** [August 15, 2010, 7:31pm UTC](https://www.ruby-forum.com/t/how-to-match-these-urls/193252 "2010-08-15T19:31:38Z")

</div>

requests like these are hitting my server, and i want to catch these requests, and return ‘not found’ from nginx. i dont want it to hit my fastcgi backend. \[13/Aug/2010:19:39:26 -0700\] “POST /%5C%22http:%5C/%5C/ pho…

---

## [Running nginx upload progress module in a cluster?](https://www.ruby-forum.com/t/running-nginx-upload-progress-module-in-a-cluster/193241)

<div class="topic-metadata">

**Author:** [@sthorpe](https://www.ruby-forum.com/u/sthorpe)\
**Replies:** 2\
**Last updated:** [August 15, 2010, 5:08pm UTC](https://www.ruby-forum.com/t/running-nginx-upload-progress-module-in-a-cluster/193241 "2010-08-15T17:08:13Z")

</div>

Hi, I’m experimenting with the nginx upload progress module for a system I’m building. At some point, I expect I’ll need a cluster of “upload” nodes (currently planning to use the upload and upload progress modules) …

---

## [Nginx v0.7.67 and php-fpm 5.3.3 SEO "pretty URL's" Problem](https://www.ruby-forum.com/t/nginx-v0-7-67-and-php-fpm-5-3-3-seo-pretty-urls-problem/192713)

<div class="topic-metadata">

**Author:** [@Per\_Hansson](https://www.ruby-forum.com/u/Per_Hansson)\
**Replies:** 2\
**Last updated:** [August 15, 2010, 1:01am UTC](https://www.ruby-forum.com/t/nginx-v0-7-67-and-php-fpm-5-3-3-seo-pretty-urls-problem/192713 "2010-08-15T01:01:58Z")

</div>

Hi, I’m having a problem with nginx after upgrading php-fpm from PHP version 5.3.2 \> 5.3.3 (internal php-fpm version 0.6.0 \> 0.6.5) After doing the upgrade a “pretty URL’s” fastcgi\_pass I use no longer works, now php-…

---

## [Wonderful one-liners in configuration](https://www.ruby-forum.com/t/wonderful-one-liners-in-configuration/166853)

<div class="topic-metadata">

**Author:** [@sbwoodside](https://www.ruby-forum.com/u/sbwoodside)\
**Replies:** 6\
**Last updated:** [August 14, 2010, 2:25am UTC](https://www.ruby-forum.com/t/wonderful-one-liners-in-configuration/166853 "2010-08-14T02:25:19Z")

</div>

I just love nginx, just adopted it today, and wanted to show my appreciation by sharing something I really like but haven’t seen in any of the configuration examples: collapsing multiple-line config blocks into one li…

---

## [Security addons?](https://www.ruby-forum.com/t/security-addons/193248)

<div class="topic-metadata">

**Author:** [@Xan](https://www.ruby-forum.com/u/Xan)\
**Replies:** 0\
**Last updated:** [August 14, 2010, 12:53am UTC](https://www.ruby-forum.com/t/security-addons/193248 "2010-08-14T00:53:25Z")

</div>

Hi, I plan to migrate from apache and hiawatha to nginx and thttpd serving cgi. But before I want to know if nginx has similar security addons as apache and hiawatha: mod\_security \[http://en.wikipedia.org/wiki/Mod\_S…

---

## [Nginx Debian vulnerabilities](https://www.ruby-forum.com/t/nginx-debian-vulnerabilities/193192)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 6\
**Last updated:** [August 13, 2010, 11:30pm UTC](https://www.ruby-forum.com/t/nginx-debian-vulnerabilities/193192 "2010-08-13T23:30:19Z")

</div>

Are the vulnerabilities listed at nginx security advisories fixed in the recent debian lenny packet? nginx -v nginx version: nginx/0.6.32 I’ve installed nginx through apt-get install nginx, am I vunerable to any o…

---

## [$http\_host and $host not behaving as described](https://www.ruby-forum.com/t/http-host-and-host-not-behaving-as-described/193199)

<div class="topic-metadata">

**Author:** [@Yang\_Z](https://www.ruby-forum.com/u/Yang_Z)\
**Replies:** 0\
**Last updated:** [August 13, 2010, 12:41am UTC](https://www.ruby-forum.com/t/http-host-and-host-not-behaving-as-described/193199 "2010-08-13T00:41:36Z")

</div>

From Module ngx\_http\_core\_module “”" $host This variable is equal to line Host in the header of request or name of the server processing the request if the Host header is not available. This variable may have a d…

---

## [Bug with fastcgi\_cache\_bypass](https://www.ruby-forum.com/t/bug-with-fastcgi-cache-bypass/193195)

<div class="topic-metadata">

**Author:** [@Matthieu\_T](https://www.ruby-forum.com/u/Matthieu_T)\
**Replies:** 1\
**Last updated:** [August 12, 2010, 10:12pm UTC](https://www.ruby-forum.com/t/bug-with-fastcgi-cache-bypass/193195 "2010-08-12T22:12:20Z")

</div>

Hi, I kept seeing “upstream sent unsupported FastCGI protocol version” in my error logs, and they went away when I turned fastcgi\_cache off. It turned out that the files holding the cache were corrupted, starting at …

---

## [Re: Nginx Debian vulnerabilities](https://www.ruby-forum.com/t/re-nginx-debian-vulnerabilities/193194)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [August 12, 2010, 8:35pm UTC](https://www.ruby-forum.com/t/re-nginx-debian-vulnerabilities/193194 "2010-08-12T20:35:06Z")

</div>

That’s a fairly old package and likely is still vulnerable. Igor or another developer would be best to say whether the Debian team integrates patches into their packages. (Igor is on vacation) However, personally, I w…

---

## [Limit\_conn - block offending ips](https://www.ruby-forum.com/t/limit-conn-block-offending-ips/193182)

<div class="topic-metadata">

**Author:** [@piramida](https://www.ruby-forum.com/u/piramida)\
**Replies:** 0\
**Last updated:** [August 12, 2010, 5:16pm UTC](https://www.ruby-forum.com/t/limit-conn-block-offending-ips/193182 "2010-08-12T17:16:39Z")

</div>

Hi forum and thanks Igor for the most amazing software; now I have spent some time looking for a way to make use of the limit\_conn directive to block offending ip addresses, but can’t seem to figure out a way to do so…

---

## [Proxy a URL received via GET-parameter](https://www.ruby-forum.com/t/proxy-a-url-received-via-get-parameter/193163)

<div class="topic-metadata">

**Author:** [@hendrik](https://www.ruby-forum.com/u/hendrik)\
**Replies:** 0\
**Last updated:** [August 12, 2010, 10:24am UTC](https://www.ruby-forum.com/t/proxy-a-url-received-via-get-parameter/193163 "2010-08-12T10:24:29Z")

</div>

Hi guys! I want nginx to serve (proxy) a URL, that i would deliver as a GET-parameter. For example a request could look like this: /img?url=http%3A%2F%2Fwww.example.com%2Ffavicon.ico and nginx now should try to fetch…

---

## [Accept percents in urls](https://www.ruby-forum.com/t/accept-percents-in-urls/193138)

<div class="topic-metadata">

**Author:** [@Matthieu\_T](https://www.ruby-forum.com/u/Matthieu_T)\
**Replies:** 0\
**Last updated:** [August 12, 2010, 2:15am UTC](https://www.ruby-forum.com/t/accept-percents-in-urls/193138 "2010-08-12T02:15:10Z")

</div>

Hi all, I need to be able to accept single percents ‘%’ in urls, even if they’re not part of a valid encoded url. I know it’s probably not ok in the rfc, but some of the websites we proxy do that, and I have no contr…

---

## [Read get variable](https://www.ruby-forum.com/t/read-get-variable/193127)

<div class="topic-metadata">

**Author:** [@Bdfy](https://www.ruby-forum.com/u/Bdfy)\
**Replies:** 1\
**Last updated:** [August 11, 2010, 9:12pm UTC](https://www.ruby-forum.com/t/read-get-variable/193127 "2010-08-11T21:12:29Z")

</div>

I want to write a simple nginx module. I need to read the variable from the GET request ( for example “?name=test” ). How to do it more “nice” ? Posted at Nginx Forum:

---

## [Old file content being served?](https://www.ruby-forum.com/t/old-file-content-being-served/193130)

<div class="topic-metadata">

**Author:** [@iberci](https://www.ruby-forum.com/u/iberci)\
**Replies:** 0\
**Last updated:** [August 11, 2010, 8:19pm UTC](https://www.ruby-forum.com/t/old-file-content-being-served/193130 "2010-08-11T20:19:48Z")

</div>

Hi, We have a small static CSV file which has been updated on the local nginx server. However, when the file is loaded, it is showing the old content. I’m trying to figure out how to clear the cache and came across t…

---

## [Magento setup](https://www.ruby-forum.com/t/magento-setup/193023)

<div class="topic-metadata">

**Author:** [@pablo\_platt](https://www.ruby-forum.com/u/pablo_platt)\
**Replies:** 4\
**Last updated:** [August 11, 2010, 5:37am UTC](https://www.ruby-forum.com/t/magento-setup/193023 "2010-08-11T05:37:34Z")

</div>

Hi, Anyone can share a working magento setup? I’ve read that nginx outperforms apache but couldn’t find a clear instructions how to setup on ubuntu: nginx + config file fcgi + spawn-fcgi + upstart script php-fpm T…

---

## [Sent more than one cookie](https://www.ruby-forum.com/t/sent-more-than-one-cookie/193071)

<div class="topic-metadata">

**Author:** [@Tomas\_Zulberti](https://www.ruby-forum.com/u/Tomas_Zulberti)\
**Replies:** 1\
**Last updated:** [August 11, 2010, 3:37am UTC](https://www.ruby-forum.com/t/sent-more-than-one-cookie/193071 "2010-08-11T03:37:36Z")

</div>

Hi. I have a problem with the cookie logging. I am using: sent\_http\_set\_cookie to log the sent cookies. When I run: curl -i http://MY\_SERVER HTTP/1.1 302 Moved Temporarily Server: nginx/0.7.65 Date: Tue, 10 Aug 201…

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

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