# Server

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

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

---

## [Content-Type with charset](https://www.ruby-forum.com/t/content-type-with-charset/198076)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 3\
**Last updated:** [October 26, 2010, 6:36pm UTC](https://www.ruby-forum.com/t/content-type-with-charset/198076 "2010-10-26T18:36:39Z")

</div>

Hello, I have a case where the origin server behind nginx returns this header: Content-Type: application/javascript; charset: UTF-8 Which seems to be valid according for HTTP/1.0 \[1\] and HTTP/1.1 \[2\] rfcs. I have gz…

---

## [Static File Cache](https://www.ruby-forum.com/t/static-file-cache/198056)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 2\
**Last updated:** [October 26, 2010, 5:44pm UTC](https://www.ruby-forum.com/t/static-file-cache/198056 "2010-10-26T17:44:28Z")

</div>

Hi, I have currently installed nginx version 0.6.39. I have been trying to find more information regarding static file caching. Is file caching not available for the version of nginx I have? I am using nginx to serve…

---

## [Access forbidden by rule - remove from error log](https://www.ruby-forum.com/t/access-forbidden-by-rule-remove-from-error-log/198109)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 0\
**Last updated:** [October 26, 2010, 3:44pm UTC](https://www.ruby-forum.com/t/access-forbidden-by-rule-remove-from-error-log/198109 "2010-10-26T15:44:39Z")

</div>

We have a rule set up to deny access by ip addresses to a sub domain. The error log correctly shows “… access forbidden by rule …” whenever someone tries to access to sub domain. Is there a way to turn this particul…

---

## [Temporary Redirect 307](https://www.ruby-forum.com/t/temporary-redirect-307/198026)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 2\
**Last updated:** [October 26, 2010, 4:56am UTC](https://www.ruby-forum.com/t/temporary-redirect-307/198026 "2010-10-26T04:56:31Z")

</div>

Hi, I cannot find anywhere an answer to the following rather simple question . How can i make a temporary (307) redirect using nginx. For example i want to have this: set $optika PUBLICIP; if ($host != $optika) { r…

---

## [HTTP/1.1 backend](https://www.ruby-forum.com/t/http-1-1-backend/198025)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 4\
**Last updated:** [October 26, 2010, 4:52am UTC](https://www.ruby-forum.com/t/http-1-1-backend/198025 "2010-10-26T04:52:05Z")

</div>

Has anyone here had any luck using a 2 layer proxy system to provide keep-alive support to nignx’s backend. My goal is to setup a system like this: User -\> Nginx -\> SoftwareX -\> Backend (Different Country) -\> Software…

---

## [Expires headers and cache control](https://www.ruby-forum.com/t/expires-headers-and-cache-control/198055)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 1\
**Last updated:** [October 25, 2010, 8:38pm UTC](https://www.ruby-forum.com/t/expires-headers-and-cache-control/198055 "2010-10-25T20:38:53Z")

</div>

Hi All, I’m trying to understand expires headers and cache control better, maybe someone can help? our configuration file has: location ~\* \\.(jpg|jpeg|gif|png|ico|css|js)$ { error\_page 404 = /404.ph…

---

## [POST to static URL and CLOSE\_WAIT](https://www.ruby-forum.com/t/post-to-static-url-and-close-wait/198034)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 2\
**Last updated:** [October 25, 2010, 5:50pm UTC](https://www.ruby-forum.com/t/post-to-static-url-and-close-wait/198034 "2010-10-25T17:50:10Z")

</div>

Hi, we are using the following in our configuration to handle HTTP POST to static files: … Allow POST to static URLs error\_page 405 = $uri; … This works, but during load, we start to see a lot of connections in CL…

---

## [How to upgrade nginx to the newest version?](https://www.ruby-forum.com/t/how-to-upgrade-nginx-to-the-newest-version/198038)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 2\
**Last updated:** [October 25, 2010, 5:16pm UTC](https://www.ruby-forum.com/t/how-to-upgrade-nginx-to-the-newest-version/198038 "2010-10-25T17:16:08Z")

</div>

Hi all, I’m using debian and used ‘apt-get install nginx’ installed nginx 0.7.6.3 And I want to upgrade it to version 0.8.53. Use ‘apt-get install nginx’ I don’t need to compile nginx, and the conf file is in /etc/…

---

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

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 0\
**Last updated:** [October 25, 2010, 1:00pm UTC](https://www.ruby-forum.com/t/rewrite-problems/198036 "2010-10-25T13:00:07Z")

</div>

Hi all, What’s the difference between below two conf? Nginx can start normally with both conf, but rewrite only works fine with the first conf. server { listen 80; ## listen for ipv4 listen \[::\]:80 default ipv…

---

## [Upload progress with multiple files?](https://www.ruby-forum.com/t/upload-progress-with-multiple-files/198015)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 1\
**Last updated:** [October 25, 2010, 11:35am UTC](https://www.ruby-forum.com/t/upload-progress-with-multiple-files/198015 "2010-10-25T11:35:09Z")

</div>

Hi, While looking at the Upload Progress module: NGINX Upload Progress Module | NGINX I am seeing the example use 1 file input. If at all, how are multiple file fields dealt with? I assume the tracker would combine…

---

## [Please help me with follow rewrite rule](https://www.ruby-forum.com/t/please-help-me-with-follow-rewrite-rule/196092)

<div class="topic-metadata">

**Author:** [@digginchina](https://www.ruby-forum.com/u/digginchina)\
**Replies:** 5\
**Last updated:** [October 25, 2010, 9:12am UTC](https://www.ruby-forum.com/t/please-help-me-with-follow-rewrite-rule/196092 "2010-10-25T09:12:45Z")

</div>

here is the structure: /images/thumbnails/ /watermark i use follow rewrite rule to add a watermark on my pictures. rewrite ^/images/(.\*).jpg /wm/wm.php?$request\_filename; i found it will rewrite with images/.jpg and…

---

## [Valid\_referers problem](https://www.ruby-forum.com/t/valid-referers-problem/197975)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 3\
**Last updated:** [October 24, 2010, 8:50pm UTC](https://www.ruby-forum.com/t/valid-referers-problem/197975 "2010-10-24T20:50:38Z")

</div>

I am using valid\_referers to detect image hotlinking. Invalid referers are forwarded to the homepage, however, I have since changed the address for images from images.hollywoodgrind.com:9000 to www.hollywoodgrind.com. …

---

## [Rewrite question - "(css/js).php" to "(.css/.js)"](https://www.ruby-forum.com/t/rewrite-question-css-js-php-to-css-js/197991)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 2\
**Last updated:** [October 24, 2010, 6:00pm UTC](https://www.ruby-forum.com/t/rewrite-question-css-js-php-to-css-js/197991 "2010-10-24T18:00:08Z")

</div>

Hi, I want to speed up my WordPress-Blog and so I want to cache “css.php”, “js.php” files to “.css”, “.js” for example I want to rewrite … this → http://suckup.de/wp-content/plugins/wp-special-textboxes/css/wp-specia…

---

## [Rewrite question - "(css/js).php" to "(.css/.js)"](https://www.ruby-forum.com/t/rewrite-question-css-js-php-to-css-js/197986)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 0\
**Last updated:** [October 24, 2010, 2:36am UTC](https://www.ruby-forum.com/t/rewrite-question-css-js-php-to-css-js/197986 "2010-10-24T02:36:11Z")

</div>

Hi, I want to speed up my WordPress Blog … so I want to rewrite “js/css.php” to “.js/.css” files. I tested this rewrite rules … ## Optimierung - "(css/js).php" to "(css/js)" location /wp-content/plugins/wp-spec…

---

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

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 2\
**Last updated:** [October 23, 2010, 9:51pm UTC](https://www.ruby-forum.com/t/rewrite-rule-problem/197951 "2010-10-23T21:51:01Z")

</div>

I am trying to write a rewrite rule to forward: http://images.hollywoodgrind.com:9000/images/2008/7/vanessa-hudgens-and-zac-efron-vacation-part-2-1.jpg to the new URL: http://www.hollywoodgrind.com/images/2008/7/vanes…

---

## [How to Compiling nginx-upload-progress-module](https://www.ruby-forum.com/t/how-to-compiling-nginx-upload-progress-module/197952)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 1\
**Last updated:** [October 23, 2010, 2:02pm UTC](https://www.ruby-forum.com/t/how-to-compiling-nginx-upload-progress-module/197952 "2010-10-23T14:02:10Z")

</div>

I not sure how to compile nginx-upload-progress-module, This is my step for ubuntu 10.04 in linode server. i create a temp folder to dump all the source there. cd temp wget http://nginx.org/download/nginx-0.8.53.tar.…

---

## [Form http post upload problem / only 50 files possible?](https://www.ruby-forum.com/t/form-http-post-upload-problem-only-50-files-possible/197958)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 0\
**Last updated:** [October 23, 2010, 12:50pm UTC](https://www.ruby-forum.com/t/form-http-post-upload-problem-only-50-files-possible/197958 "2010-10-23T12:50:10Z")

</div>

Hi, Did you have problems with more than 50 files upload at one form? If somebody knows this problem or can point me to http limitation it would be very helpfull form me. It is first time when i have to upload 150 sm…

---

## [2 variables inside if()?](https://www.ruby-forum.com/t/2-variables-inside-if/197926)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 4\
**Last updated:** [October 23, 2010, 6:56am UTC](https://www.ruby-forum.com/t/2-variables-inside-if/197926 "2010-10-23T06:56:54Z")

</div>

Hello, I’m trying to compare 2 variables, like so (I’ve made sure the variables match): if ($arg\_hash !~ $sha1) { ... } However in error.log it says: \*1 "$sha1" does not match "a78c3ecd2e349d1f1050fa555842a60b585489…

---

## [What is the best way to use python?](https://www.ruby-forum.com/t/what-is-the-best-way-to-use-python/197928)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 1\
**Last updated:** [October 22, 2010, 9:41pm UTC](https://www.ruby-forum.com/t/what-is-the-best-way-to-use-python/197928 "2010-10-22T21:41:17Z")

</div>

Hallo, what is the best way to use nginx with python? I use python 2.6, nginx 0.8.53 and bluebream. Per FastCGI, WSGI or proxy\_pass? What are the advantages and disadvantages for each way? Varix Posted at Nginx For…

---

## [Nginx proxying to Apache: what about mod\_rewrite?](https://www.ruby-forum.com/t/nginx-proxying-to-apache-what-about-mod-rewrite/176453)

<div class="topic-metadata">

**Author:** [@illarra](https://www.ruby-forum.com/u/illarra)\
**Replies:** 9\
**Last updated:** [October 22, 2010, 5:42pm UTC](https://www.ruby-forum.com/t/nginx-proxying-to-apache-what-about-mod-rewrite/176453 "2010-10-22T17:42:35Z")

</div>

Hi! I have a website running on a Nginx + Apache configuration. Nginx serves the static content (in a different domain) and proxies directly to Apache, where all the PHP is executed. The problem is that my app uses m…

---

## [Problem related to Caching in mongrel](https://www.ruby-forum.com/t/problem-related-to-caching-in-mongrel/197908)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 2\
**Last updated:** [October 22, 2010, 4:16pm UTC](https://www.ruby-forum.com/t/problem-related-to-caching-in-mongrel/197908 "2010-10-22T16:16:54Z")

</div>

My production server has 6 mongrels running. I hosted a CMS (content management system) on the server. As a admin of the website, I delete few tabs in the site. But the Public version(for the non-loggedin) version of …

---

## [Adrian Janeczek zaprosił/-a Cię do założenia konta e-mailowego w Google](https://www.ruby-forum.com/t/adrian-janeczek-zaprosil-a-cie-do-zalozenia-konta-e-mailowego-w-google/197919)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 0\
**Last updated:** [October 22, 2010, 3:56pm UTC](https://www.ruby-forum.com/t/adrian-janeczek-zaprosil-a-cie-do-zalozenia-konta-e-mailowego-w-google/197919 "2010-10-22T15:56:04Z")

</div>

Uywam poczty Gmail. Moe te chcesz sprbowa? Przesyam Ci zaproszenie do utworzenia konta. Masz zaproszenie do Gmaila! Uytkownik Adrian Janeczek zaprosi Ci do zaoenia konta Gmail. Gmail to darmowa usuga pocztowa firmy G…

---

## [vBulletin caching proxy](https://www.ruby-forum.com/t/vbulletin-caching-proxy/197835)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 3\
**Last updated:** [October 22, 2010, 12:59pm UTC](https://www.ruby-forum.com/t/vbulletin-caching-proxy/197835 "2010-10-22T12:59:24Z")

</div>

Hi, I’m trying to build similar configuration to this one (http://www.vbulletin.com/forum/entry.php?2440-vB4Mance-Part-5-Expert-Level-Boosting-vBulletin-Performance-with-Advanced-Caching) but using nginx. Aparently th…

---

## [Nginx doesn't handle different URL encodings well](https://www.ruby-forum.com/t/nginx-doesnt-handle-different-url-encodings-well/197840)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 11\
**Last updated:** [October 22, 2010, 11:31am UTC](https://www.ruby-forum.com/t/nginx-doesnt-handle-different-url-encodings-well/197840 "2010-10-22T11:31:15Z")

</div>

Hello Igor, hello all, Congratulations for your fantastic and neatly programmed web server. It’s a pleasure to use it. I have a problem with nginx not serving files with accentuated characters when the sumbitted URL …

---

## [GEOIP context problem](https://www.ruby-forum.com/t/geoip-context-problem/194149)

<div class="topic-metadata">

**Author:** [@syle](https://www.ruby-forum.com/u/syle)\
**Replies:** 10\
**Last updated:** [October 21, 2010, 11:51pm UTC](https://www.ruby-forum.com/t/geoip-context-problem/194149 "2010-10-21T23:51:32Z")

</div>

There is a problem with current 0.8.x release of GEOIP although I assume it has always not worked, where these variables: fastcgi\_param GEOIP\_CITY\_COUNTRY\_CODE $geoip\_city\_country\_code; fastcgi\_param GEOIP\_CITY\_COUNTR…

---

## [Stalled cache updating](https://www.ruby-forum.com/t/stalled-cache-updating/197871)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 0\
**Last updated:** [October 21, 2010, 6:33pm UTC](https://www.ruby-forum.com/t/stalled-cache-updating/197871 "2010-10-21T18:33:51Z")

</div>

Hi List, I’m getting this error in my logs every few minutes. Oct 21 16:25:21 serv01 nginx: 2010/10/21 16:25:21 \[alert\] 22203#0: \*28358 stalled cache updating, error:0 while closing request, client: x.x.x.x, server:…

---

## [How to iterating all server context in init\_module function](https://www.ruby-forum.com/t/how-to-iterating-all-server-context-in-init-module-function/197870)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 0\
**Last updated:** [October 21, 2010, 6:27pm UTC](https://www.ruby-forum.com/t/how-to-iterating-all-server-context-in-init-module-function/197870 "2010-10-21T18:27:27Z")

</div>

I need a clue for my problem when building my first module: in nginx.conf i set something like this: http { server { listen 80; server\_name serverA; UploadStoragePath /temp/A; #blah etc… } server { listen 80; …

---

## [Unable to use multiple IPs with SSL (0.7.64)](https://www.ruby-forum.com/t/unable-to-use-multiple-ips-with-ssl-0-7-64/197797)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 17\
**Last updated:** [October 21, 2010, 1:54pm UTC](https://www.ruby-forum.com/t/unable-to-use-multiple-ips-with-ssl-0-7-64/197797 "2010-10-21T13:54:34Z")

</div>

I have an nginx (v0.7.64) configuration that requires a number of virtual hosts each with their own SSL. I have assigned different IP addresses to each vhost. All IP addresses are available on port 443 (i.e. they are …

---

## [Nginx as reverse proxy with "mod secdownload" feature - possible?](https://www.ruby-forum.com/t/nginx-as-reverse-proxy-with-mod-secdownload-feature-possible/197731)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 4\
**Last updated:** [October 21, 2010, 1:33pm UTC](https://www.ruby-forum.com/t/nginx-as-reverse-proxy-with-mod-secdownload-feature-possible/197731 "2010-10-21T13:33:47Z")

</div>

Hi, currently i’m searching for some easy way to setup some kind of content cache. nginx is one of my favorites for this, because it seems to be the most powerfull and performant proxys out there. The idea: cache0…

---

## [Nginx Vs Apache in Dynamic Page](https://www.ruby-forum.com/t/nginx-vs-apache-in-dynamic-page/197650)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 6\
**Last updated:** [October 21, 2010, 11:23am UTC](https://www.ruby-forum.com/t/nginx-vs-apache-in-dynamic-page/197650 "2010-10-21T11:23:05Z")

</div>

The website is now running Nginx + PHP-fpm. But I’ve heard, that Nginx (for static files) with Apache as a backend, will be faster. Because apache can nicely handle dynamic page. Is that true?

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

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