# Server

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

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

---

## [Apache to nginx rewrite rule](https://www.ruby-forum.com/t/apache-to-nginx-rewrite-rule/201068)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [December 29, 2010, 9:16pm UTC](https://www.ruby-forum.com/t/apache-to-nginx-rewrite-rule/201068 "2010-12-29T21:16:59Z")

</div>

Looking to do something like this: RewriteRule ^youtube/(.\*)$ http://www.youtube.com/$1 \[L\] This the configuration I’m thinking of? location /youtube/ { rewrite ^(.\*)$ http://www.youtube.com$1 }

---

## [How to redirect all SSL traffic?](https://www.ruby-forum.com/t/how-to-redirect-all-ssl-traffic/178619)

<div class="topic-metadata">

**Author:** [@Glen\_L](https://www.ruby-forum.com/u/Glen_L)\
**Replies:** 17\
**Last updated:** [December 29, 2010, 7:24am UTC](https://www.ruby-forum.com/t/how-to-redirect-all-ssl-traffic/178619 "2010-12-29T07:24:34Z")

</div>

I have a SSL set up on www.mydomain.com How can I redirect traffic on mydomain.com to https://www.mydomain.com? I’ve tried the following server { listen 443 default; server\_name \_; rewrite ^/(.\*) https://w…

---

## [Url rewriting problem](https://www.ruby-forum.com/t/url-rewriting-problem/201032)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [December 28, 2010, 7:12pm UTC](https://www.ruby-forum.com/t/url-rewriting-problem/201032 "2010-12-28T19:12:10Z")

</div>

Hi, I’m new to nginx, and I need to use many scripts which use apache2 rewrite rules. One of my script use two htaccess: find /var/www/vhosts/mysite.com/httpdocs/ -name .htaccess ./manager/install/.htaccess ./manager…

---

## [Prefixing URL's](https://www.ruby-forum.com/t/prefixing-urls/201014)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [December 28, 2010, 3:05pm UTC](https://www.ruby-forum.com/t/prefixing-urls/201014 "2010-12-28T15:05:45Z")

</div>

I have an app that uses relative URLs ie: /media/assets/css/style.css in my server config I have location /app { #config stuff here. } When I go to “/app” from a browser the urls are not prefixed with “/app” they…

---

## [Underscores\_in\_headers not functioning when using default option for listen directive](https://www.ruby-forum.com/t/underscores-in-headers-not-functioning-when-using-default-option-for-listen-directive/200983)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 3\
**Last updated:** [December 27, 2010, 4:19pm UTC](https://www.ruby-forum.com/t/underscores-in-headers-not-functioning-when-using-default-option-for-listen-directive/200983 "2010-12-27T16:19:24Z")

</div>

Hi, We are using nginx 0.7.68 and we encountered a small problem with the underscores\_in\_headers directive. Use case, 2 servers section : server { listen 80 default; server\_name \*.domain.com; … } server { liste…

---

## [How to configure without extension on nginx](https://www.ruby-forum.com/t/how-to-configure-without-extension-on-nginx/200941)

<div class="topic-metadata">

**Author:** [@nikuSESS](https://www.ruby-forum.com/u/nikuSESS)\
**Replies:** 4\
**Last updated:** [December 27, 2010, 3:07pm UTC](https://www.ruby-forum.com/t/how-to-configure-without-extension-on-nginx/200941 "2010-12-27T15:07:51Z")

</div>

Hi, I want to set http://abc.com/test can be viewed, not downloaded. how to configure mime.type.conf or nginx.conf file. Thank you! Posted at Nginx Forum:

---

## [Fair Module](https://www.ruby-forum.com/t/fair-module/200972)

<div class="topic-metadata">

**Author:** [@nikuSESS](https://www.ruby-forum.com/u/nikuSESS)\
**Replies:** 1\
**Last updated:** [December 27, 2010, 10:09am UTC](https://www.ruby-forum.com/t/fair-module/200972 "2010-12-27T10:09:16Z")

</div>

Hello, Is there a possibility to check if the HttpUpstreamFairModule is installed right on our Nginx setup? When we make a new setup to test the fair module it doesnt load balance. We are using the fair module in c…

---

## [Nginx\_http\_push\_module production ready?](https://www.ruby-forum.com/t/nginx-http-push-module-production-ready/200962)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 1\
**Last updated:** [December 26, 2010, 5:42pm UTC](https://www.ruby-forum.com/t/nginx-http-push-module-production-ready/200962 "2010-12-26T17:42:06Z")

</div>

We read about this wonderful module that turns our Nginx server into a comet server as well - http://pushmodule.slact.net/, was just wondering if other people have tried it in production, is it production ready? Any r…

---

## [Https rewrite for subdirectory only](https://www.ruby-forum.com/t/https-rewrite-for-subdirectory-only/200955)

<div class="topic-metadata">

**Author:** [@nikuSESS](https://www.ruby-forum.com/u/nikuSESS)\
**Replies:** 5\
**Last updated:** [December 26, 2010, 3:01pm UTC](https://www.ruby-forum.com/t/https-rewrite-for-subdirectory-only/200955 "2010-12-26T15:01:02Z")

</div>

Hi, I’m a noob. How to rewrite http to https in /admin location only ? I put something like this in nginx.conf : location /admin { rewrite ^(.\*) https://$server\_name$1 permanent; } But I always get error mes…

---

## [Nginx Warn Log](https://www.ruby-forum.com/t/nginx-warn-log/200928)

<div class="topic-metadata">

**Author:** [@nikuSESS](https://www.ruby-forum.com/u/nikuSESS)\
**Replies:** 3\
**Last updated:** [December 25, 2010, 5:31pm UTC](https://www.ruby-forum.com/t/nginx-warn-log/200928 "2010-12-25T17:31:30Z")

</div>

Hi; I’m Installing (reverse proxy) Nginx on CentOS, running CPanel / WHM. I get the following error for a continuous domain. This domain name is parked. Log 2010/12/24 02:06:36 \[warn\] 31794#0: \*6387 an upstream resp…

---

## [HttpSecureLinkModule Q?](https://www.ruby-forum.com/t/httpsecurelinkmodule-q/200732)

<div class="topic-metadata">

**Author:** [@nikuSESS](https://www.ruby-forum.com/u/nikuSESS)\
**Replies:** 14\
**Last updated:** [December 25, 2010, 9:07am UTC](https://www.ruby-forum.com/t/httpsecurelinkmodule-q/200732 "2010-12-25T09:07:23Z")

</div>

Hi guys, I’m trying to configure secure link modulаr together with flv streaming module but without success. Can anyone give me an example with this basic setup. location ~ .flv { root /store; flv; } t…

---

## [Issue with proxy\_cache\_key after rewrite](https://www.ruby-forum.com/t/issue-with-proxy-cache-key-after-rewrite/200919)

<div class="topic-metadata">

**Author:** [@nikuSESS](https://www.ruby-forum.com/u/nikuSESS)\
**Replies:** 4\
**Last updated:** [December 25, 2010, 4:49am UTC](https://www.ruby-forum.com/t/issue-with-proxy-cache-key-after-rewrite/200919 "2010-12-25T04:49:28Z")

</div>

Hi, i’ve run a few tests with the nginx proxy module. I would like to have my content cached with the “$scheme$host$request\_uri” key, like suggested on the wiki page\[1\]. So i’ve added the following: proxy\_cache\_key …

---

## [Kind of unrelated; But maybe someone knows](https://www.ruby-forum.com/t/kind-of-unrelated-but-maybe-someone-knows/200835)

<div class="topic-metadata">

**Author:** [@nikuSESS](https://www.ruby-forum.com/u/nikuSESS)\
**Replies:** 3\
**Last updated:** [December 24, 2010, 8:51am UTC](https://www.ruby-forum.com/t/kind-of-unrelated-but-maybe-someone-knows/200835 "2010-12-24T08:51:48Z")

</div>

I was wondering why some sites have What is the “?432532432” or whatever used for? Is it a versioning thing. I see it on many of the bigger sites. Thanks for any info.

---

## [Question mark in folder name](https://www.ruby-forum.com/t/question-mark-in-folder-name/200845)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 5\
**Last updated:** [December 23, 2010, 1:58pm UTC](https://www.ruby-forum.com/t/question-mark-in-folder-name/200845 "2010-12-23T13:58:02Z")

</div>

Hello, I’ve noticed a strange issue using nginx 0.8.54 where a question mark in the folder name will cause 404 errors regardless of it existing or not. If I manually replace the ? with the encoded %3F it will work fin…

---

## [Problem with compressing content](https://www.ruby-forum.com/t/problem-with-compressing-content/200858)

<div class="topic-metadata">

**Author:** [@nikuSESS](https://www.ruby-forum.com/u/nikuSESS)\
**Replies:** 1\
**Last updated:** [December 23, 2010, 12:09pm UTC](https://www.ruby-forum.com/t/problem-with-compressing-content/200858 "2010-12-23T12:09:16Z")

</div>

My nginx conf: gzip on; gzip\_http\_version 1.0; #if I leave this line out, i am not passing GIDZipTest, but firefox is getting gzip if connected outside my company LAN gzip\_vary on; gzip\_comp\_level 1; gzip\_proxie…

---

## [What's the meaning ctx-\>srv conf = cscfp-\>ctx-\>srv conf](https://www.ruby-forum.com/t/whats-the-meaning-ctx-srv-conf-cscfp-ctx-srv-conf/200838)

<div class="topic-metadata">

**Author:** [@nikuSESS](https://www.ruby-forum.com/u/nikuSESS)\
**Replies:** 6\
**Last updated:** [December 23, 2010, 9:47am UTC](https://www.ruby-forum.com/t/whats-the-meaning-ctx-srv-conf-cscfp-ctx-srv-conf/200838 "2010-12-23T09:47:22Z")

</div>

hi~~, now I’m reading the code of nginx-0.9.1. I readed the code “ctx-\>srv\_conf = cscfp\[s\]-\>ctx-\>srv\_conf” at line 593 in the ngx\_http.c . but I really don’t understand it’s meaning. Who can tell me why do this? I…

---

## [FRiCKLE pres. ngx\_postgres](https://www.ruby-forum.com/t/frickle-pres-ngx-postgres/188109)

<div class="topic-metadata">

**Author:** [@piotrs](https://www.ruby-forum.com/u/piotrs)\
**Replies:** 13\
**Last updated:** [December 23, 2010, 4:29am UTC](https://www.ruby-forum.com/t/frickle-pres-ngx-postgres/188109 "2010-12-23T04:29:31Z")

</div>

Hello guys, I’m pleased to announce that ngx\_postgres is finally publicly available! Website and distfiles are available at: http://labs.frickle.com/nginx\_ngx\_postgres/ GitHub repository is available at: Best regar…

---

## [URI rewrite with port number](https://www.ruby-forum.com/t/uri-rewrite-with-port-number/200688)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 6\
**Last updated:** [December 22, 2010, 7:08pm UTC](https://www.ruby-forum.com/t/uri-rewrite-with-port-number/200688 "2010-12-22T19:08:50Z")

</div>

Hi, I’m trying to rewrite ‘www.somedomain.com:8080’ to ‘somedomain.com:8080’ but when I use the below, it doesn’t work. Any ideas? :slight\_smile: if ($host != “somedomain.com:8080” ) { rewrite ^/(.\*)$ “http://somed…

---

## [Tuning nginx on EC2](https://www.ruby-forum.com/t/tuning-nginx-on-ec2/200426)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 6\
**Last updated:** [December 22, 2010, 5:34pm UTC](https://www.ruby-forum.com/t/tuning-nginx-on-ec2/200426 "2010-12-22T17:34:07Z")

</div>

Hi, I’ve been doing some benchmarks with nginx on EC2 and have run into a bit of a wall. I’m trying to establish a baseline from which to compare my application against. For this I’m using the simplest possible nginx…

---

## [Segfault - nginx 0.7.68](https://www.ruby-forum.com/t/segfault-nginx-0-7-68/200720)

<div class="topic-metadata">

**Author:** [@nikuSESS](https://www.ruby-forum.com/u/nikuSESS)\
**Replies:** 2\
**Last updated:** [December 22, 2010, 4:41pm UTC](https://www.ruby-forum.com/t/segfault-nginx-0-7-68/200720 "2010-12-22T16:41:27Z")

</div>

We’re running nginx 0.7.68 w/ the s3-proxy patch applied, and we’re seeing reproducible segfaults when we hit (or miss) certain files: Nicholas-Tangs-MacBook-Air:~ ntang$ curl http://\[server\]/path/to/test.txt curl: …

---

## [How to find out which files are most accessed via nginx](https://www.ruby-forum.com/t/how-to-find-out-which-files-are-most-accessed-via-nginx/200814)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 0\
**Last updated:** [December 22, 2010, 4:33pm UTC](https://www.ruby-forum.com/t/how-to-find-out-which-files-are-most-accessed-via-nginx/200814 "2010-12-22T16:33:18Z")

</div>

Hello, I\`m trying to find out, which files are mostly accessed on nginx, i have found nginx-catap that adds an extended status module but there is no patch for the latest dev version of nginx which we use currently. h…

---

## [PUTs without "Content-Length" header line are rejected with a 411](https://www.ruby-forum.com/t/puts-without-content-length-header-line-are-rejected-with-a-411/186461)

<div class="topic-metadata">

**Author:** [@John\_Griffin](https://www.ruby-forum.com/u/John_Griffin)\
**Replies:** 1\
**Last updated:** [December 22, 2010, 2:51pm UTC](https://www.ruby-forum.com/t/puts-without-content-length-header-line-are-rejected-with-a-411/186461 "2010-12-22T14:51:37Z")

</div>

Hey I am using nginx to proxy couchdb. Performing the following returns a 411 Length Required: curl -X PUT https://testing.com/abc --insecure --user john Whereas passing a length of 0 in works fine: curl -X PUT htt…

---

## [Proxy cache make system load and I/O high](https://www.ruby-forum.com/t/proxy-cache-make-system-load-and-i-o-high/200806)

<div class="topic-metadata">

**Author:** [@nikuSESS](https://www.ruby-forum.com/u/nikuSESS)\
**Replies:** 1\
**Last updated:** [December 22, 2010, 2:22pm UTC](https://www.ruby-forum.com/t/proxy-cache-make-system-load-and-i-o-high/200806 "2010-12-22T14:22:43Z")

</div>

Hi, all: This really exhaust me. I had an nginx server with “proxy cache” on, the num of cache files is almost 500K, and the files size are all near 50K. But now with just not up to 200 connections, the “load avera…

---

## [Server signature](https://www.ruby-forum.com/t/server-signature/200777)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 5\
**Last updated:** [December 22, 2010, 9:37am UTC](https://www.ruby-forum.com/t/server-signature/200777 "2010-12-22T09:37:50Z")

</div>

Hi all, We are working on a project for a customer. For political reasons, the customer will refuse to have any non-IIS web servers. Since we deliver the service as SaaS, the customer can only see the OS fingerprint…

---

## [Can nginx strip cookies?](https://www.ruby-forum.com/t/can-nginx-strip-cookies/200760)

<div class="topic-metadata">

**Author:** [@nikuSESS](https://www.ruby-forum.com/u/nikuSESS)\
**Replies:** 1\
**Last updated:** [December 21, 2010, 3:43pm UTC](https://www.ruby-forum.com/t/can-nginx-strip-cookies/200760 "2010-12-21T15:43:30Z")

</div>

How can I strip some requests from cookie headers?

---

## [Caching Problem](https://www.ruby-forum.com/t/caching-problem/200756)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 2\
**Last updated:** [December 21, 2010, 1:26pm UTC](https://www.ruby-forum.com/t/caching-problem/200756 "2010-12-21T13:26:20Z")

</div>

Hello, i got a clustered setup, where the content is beeing served from a nfs share. thats why i want to cache the static components via nginx, but unfortanly i didnt get it to work. Heres my Config: Global Configur…

---

## [Rewrite rules for port 80 and 443;](https://www.ruby-forum.com/t/rewrite-rules-for-port-80-and-443/200740)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 1\
**Last updated:** [December 21, 2010, 2:31am UTC](https://www.ruby-forum.com/t/rewrite-rules-for-port-80-and-443/200740 "2010-12-21T02:31:36Z")

</div>

How am I able to use the same rewrite rule for both port 80 and 443? It seems like nginx complains if you try to run multiple sites on port 443 with one cert? The rewrite rule simple add www. to the domain should a pe…

---

## [Mailman with nginx and thttpd](https://www.ruby-forum.com/t/mailman-with-nginx-and-thttpd/198075)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 15\
**Last updated:** [December 20, 2010, 9:59pm UTC](https://www.ruby-forum.com/t/mailman-with-nginx-and-thttpd/198075 "2010-12-20T21:59:20Z")

</div>

Greetings. I’m getting 404 errors after installing the Mailman mailing list manager on a server running nginx and thttpd, and could use some help in understanding why. This is on “Mailserver”, an excellent OpenBSD-bas…

---

## [Gzip + backend (thin + rails) not working](https://www.ruby-forum.com/t/gzip-backend-thin-rails-not-working/200717)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 0\
**Last updated:** [December 20, 2010, 4:53pm UTC](https://www.ruby-forum.com/t/gzip-backend-thin-rails-not-working/200717 "2010-12-20T16:53:21Z")

</div>

nginx mailing list removed\_email\_address@domain.invalid http://nginx.org/mailman/listinfo/nginx

---

## [Amazon S3 authentication patch](https://www.ruby-forum.com/t/amazon-s3-authentication-patch/182880)

<div class="topic-metadata">

**Author:** [@Vicente\_A](https://www.ruby-forum.com/u/Vicente_A)\
**Replies:** 5\
**Last updated:** [December 20, 2010, 3:59pm UTC](https://www.ruby-forum.com/t/amazon-s3-authentication-patch/182880 "2010-12-20T15:59:18Z")

</div>

Hi I’ve modified the proxy module to be able to authenticate with Amazon S3. It also supports the secure download patch by removing the trailing ticket (MD5/timestamp) from the URL. The rationale behind this is: we’r…

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

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