# Server

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

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

---

## [Nginx rewrite rule for favicon.ico files](https://www.ruby-forum.com/t/nginx-rewrite-rule-for-favicon-ico-files/222518)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 16\
**Last updated:** [August 31, 2012, 4:57pm UTC](https://www.ruby-forum.com/t/nginx-rewrite-rule-for-favicon-ico-files/222518 "2012-08-31T16:57:48Z")

</div>

Nginx rewrite rules for favicon.ico for multiple subdomains. In nginx /etc/sites-avaliable/vhost\_config\_file, I have the following rewrite rules for serving multiple subdomains with their favicon.ico files: if ($host…

---

## [Memc\_pass and upstream](https://www.ruby-forum.com/t/memc-pass-and-upstream/222523)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [August 31, 2012, 1:58pm UTC](https://www.ruby-forum.com/t/memc-pass-and-upstream/222523 "2012-08-31T13:58:21Z")

</div>

After debugging 6 hours… I’m pretty tired of trying the same things over and over. I’m trying to recover some data from multiple memcached servers, I’ve configure an upstream and using the memc module. Some how I’m …

---

## [Client-ip mail proxy](https://www.ruby-forum.com/t/client-ip-mail-proxy/222517)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [August 31, 2012, 1:42pm UTC](https://www.ruby-forum.com/t/client-ip-mail-proxy/222517 "2012-08-31T13:42:34Z")

</div>

hi, i’ve setup pop3/imap4 proxy using nginx recently, everything work great, unless i cannot obtain client ip address, i’m using external auth\_http server run on apache/php. How do i forward client ip from nginx to a…

---

## [Reverse proxy is caching php pages?](https://www.ruby-forum.com/t/reverse-proxy-is-caching-php-pages/222522)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [August 31, 2012, 1:33pm UTC](https://www.ruby-forum.com/t/reverse-proxy-is-caching-php-pages/222522 "2012-08-31T13:33:13Z")

</div>

I setup a reverse proxy on my forum and everything is working okay. (I think?). http { … proxy\_cache\_path /usr/local/nginx/cache levels=1:2 keys\_zone=STATIC:10m inactive=24h max\_size=1g; … } server …

---

## [Where assign values to rrp-\>peers-\>last\_cached?](https://www.ruby-forum.com/t/where-assign-values-to-rrp-peers-last-cached/222515)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [August 31, 2012, 10:57am UTC](https://www.ruby-forum.com/t/where-assign-values-to-rrp-peers-last-cached/222515 "2012-08-31T10:57:45Z")

</div>

Assignment to the variable rrp-\>peers-\>last\_cached cannot be found in anywhere in total nginx-1.3.5 source code, if the variable’s default value is zero, this conditional will never be true: ngx\_int\_t ngx\_http\_upstr…

---

## [$host includes port for reverse proxy](https://www.ruby-forum.com/t/host-includes-port-for-reverse-proxy/220954)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [August 31, 2012, 6:36am UTC](https://www.ruby-forum.com/t/host-includes-port-for-reverse-proxy/220954 "2012-08-31T06:36:32Z")

</div>

I am trying to run a data server behind nginx by using a reverse proxy. My problem is that the host name received by my application contains the port of the proxied server not the port of the initial request i.e. a re…

---

## [Nginx and uploads](https://www.ruby-forum.com/t/nginx-and-uploads/222424)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 6\
**Last updated:** [August 30, 2012, 9:13pm UTC](https://www.ruby-forum.com/t/nginx-and-uploads/222424 "2012-08-30T21:13:22Z")

</div>

Hello, I am trying to upload files to Nginx and process them via itself. I have compiled it with nginx\_upload\_module-2.2.0. My config is the following: server { listen 80; server\_name example.com; client\_ma…

---

## [Nginx worker process hang,cpu load very high](https://www.ruby-forum.com/t/nginx-worker-process-hang-cpu-load-very-high/222419)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 6\
**Last updated:** [August 30, 2012, 3:02pm UTC](https://www.ruby-forum.com/t/nginx-worker-process-hang-cpu-load-very-high/222419 "2012-08-30T15:02:57Z")

</div>

Hi, I have faced a trouble with nginx runs as a http revers proxy server,if you download a big file(like mp3,rar file),that nginx worker process will take lots of cpu, that process will hang, and wait a few minutes …

---

## [Command line prefix (-p) parameter parsing](https://www.ruby-forum.com/t/command-line-prefix-p-parameter-parsing/222494)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [August 30, 2012, 12:01pm UTC](https://www.ruby-forum.com/t/command-line-prefix-p-parameter-parsing/222494 "2012-08-30T12:01:05Z")

</div>

Hi, I found that giving prefix as command line parameter and the prefix does not start with ‘/’ you append a ‘/’ to prefix (version: 1.2.3): $ /usr/sbin/nginx -p prefix -c nginx.conf nginx: \[emerg\] open() “prefix/ng…

---

## [Help](https://www.ruby-forum.com/t/help/222479)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [August 30, 2012, 9:33am UTC](https://www.ruby-forum.com/t/help/222479 "2012-08-30T09:33:47Z")

</div>

Hello my name is such Yair am currently working on a project in my school I am student my project is to migrate to Apache in nginx but I have a problem with the rules used in their safety nginx why I come to ask for …

---

## [Http\_chunked\_filter\_module not present in modules page?](https://www.ruby-forum.com/t/http-chunked-filter-module-not-present-in-modules-page/222441)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [August 29, 2012, 8:38pm UTC](https://www.ruby-forum.com/t/http-chunked-filter-module-not-present-in-modules-page/222441 "2012-08-29T20:38:33Z")

</div>

Hey people, quick question, Why the http\_chunked\_filter\_module\[1\] is not present in the modules page\[2\]? Thanks \[1\] http://lxr.evanmiller.org/http/source/http/modules/ngx\_http\_chunked\_filter\_module.c \[2\] nginx docu…

---

## [Adding $request\_path Variable](https://www.ruby-forum.com/t/adding-request-path-variable/220690)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [August 29, 2012, 3:39pm UTC](https://www.ruby-forum.com/t/adding-request-path-variable/220690 "2012-08-29T15:39:48Z")

</div>

It would be very nice if someone would add the following variable to Nginx: $request\_path Right now, we have $request\_uri which includes the query string of the original request. We also have the $uri which is the p…

---

## [Lowercase URLs](https://www.ruby-forum.com/t/lowercase-urls/222426)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [August 29, 2012, 2:45pm UTC](https://www.ruby-forum.com/t/lowercase-urls/222426 "2012-08-29T14:45:59Z")

</div>

Hi, I would like to know how to convert the URLs to lowercase. When somebody hits an URL ( irrespective of the case ), it should be converted to lowercase in the address bar. Posted at Nginx Forum:

---

## [Special headers and X-Accel-Redirect](https://www.ruby-forum.com/t/special-headers-and-x-accel-redirect/207924)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [August 29, 2012, 1:44am UTC](https://www.ruby-forum.com/t/special-headers-and-x-accel-redirect/207924 "2012-08-29T01:44:03Z")

</div>

Hi guys, I have small problem with file download using X-Accel-Redirect. I am using Nginx as proxy before some REST API application, some of the requests are for big files which are located at other host - so I am us…

---

## [Renaming server response in 1.3.x not same as 1.2.x?](https://www.ruby-forum.com/t/renaming-server-response-in-1-3-x-not-same-as-1-2-x/222456)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [August 29, 2012, 1:33am UTC](https://www.ruby-forum.com/t/renaming-server-response-in-1-3-x-not-same-as-1-2-x/222456 "2012-08-29T01:33:32Z")

</div>

In nginx 1.2 & 1.3 you can modify the source to change the name: src/http/ngx\_http\_header\_filter\_module.c (lines 48 and 49): static char ngx\_http\_server\_string\[\] = “Server: Not Nginx” CRLF; static char ngx\_http\_server…

---

## [Issue with multiple location blocks to handle two webapps](https://www.ruby-forum.com/t/issue-with-multiple-location-blocks-to-handle-two-webapps/222417)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [August 28, 2012, 11:44pm UTC](https://www.ruby-forum.com/t/issue-with-multiple-location-blocks-to-handle-two-webapps/222417 "2012-08-28T23:44:06Z")

</div>

Hi All, My webapp is a combination of two apps running on one server. the community app (smaller one) is located under community directory and the all urls starting with community should be handled by it e.g. exampl…

---

## [Issue with SNI/SSL and default\_server](https://www.ruby-forum.com/t/issue-with-sni-ssl-and-default-server/222354)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 7\
**Last updated:** [August 28, 2012, 6:54pm UTC](https://www.ruby-forum.com/t/issue-with-sni-ssl-and-default-server/222354 "2012-08-28T18:54:36Z")

</div>

Heya, I have a server with two domains using SSL on one IP via SNI. So far so good, but the problem is that one of the site is marked as default\_server to catch all (then I do a redirect to the proper domain, I left …

---

## [Odd 500 Internal Server Error with a Wordpress file (NGINX & PHP-FPM)](https://www.ruby-forum.com/t/odd-500-internal-server-error-with-a-wordpress-file-nginx-php-fpm/221916)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [August 28, 2012, 2:59pm UTC](https://www.ruby-forum.com/t/odd-500-internal-server-error-with-a-wordpress-file-nginx-php-fpm/221916 "2012-08-28T14:59:31Z")

</div>

Hey folks. I’d appreciate some help with this bit of wierdness: Fresh install of wordpress downloaded yesterday, running on nginx with a fastcgi\_pass to php-fpm. The install went flawlessly, and most everything seems …

---

## [Ngix - Vanish Not Working](https://www.ruby-forum.com/t/ngix-vanish-not-working/222422)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [August 28, 2012, 12:12pm UTC](https://www.ruby-forum.com/t/ngix-vanish-not-working/222422 "2012-08-28T12:12:25Z")

</div>

Hi, I have installed ‘Varnish’ cache along with Nginx; also configuration has been changed accordingly. But now i cannot access pages (could not cnnect to the host); Is there any settings that I have missed; please …

---

## [Mediawiki redirect issue when nginx is behind varnish and listen to not 80](https://www.ruby-forum.com/t/mediawiki-redirect-issue-when-nginx-is-behind-varnish-and-listen-to-not-80/222425)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [August 28, 2012, 12:11pm UTC](https://www.ruby-forum.com/t/mediawiki-redirect-issue-when-nginx-is-behind-varnish-and-listen-to-not-80/222425 "2012-08-28T12:11:14Z")

</div>

Hi I hava migrated a mediawiki site to nginx server.Nginx listen to port 81 and is behind Varnish listen to 80.Varnish and Nginx on same server.Seems like the configuration used for the Nginx wiki have a redirect is…

---

## [jQuery-File-upload and nginx](https://www.ruby-forum.com/t/jquery-file-upload-and-nginx/222412)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [August 27, 2012, 11:42pm UTC](https://www.ruby-forum.com/t/jquery-file-upload-and-nginx/222412 "2012-08-27T23:42:52Z")

</div>

I have a problem setting up jQuery-File-Upload plugin and nginx. I’ve downloaded and installed nginx 1.2.3, and upload module 2.2.0 from source, here’s my config file (names have been changed to protect the innocent): …

---

## [APC with Nginx](https://www.ruby-forum.com/t/apc-with-nginx/222381)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [August 27, 2012, 3:08pm UTC](https://www.ruby-forum.com/t/apc-with-nginx/222381 "2012-08-27T15:08:55Z")

</div>

Hi, I have installed APC in my server (CentOS) using ‘pecl install apc’; also nginx is there. How can configure APC for nginx? Please help. Posted at Nginx Forum:

---

## [Htaccess](https://www.ruby-forum.com/t/htaccess/222360)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [August 27, 2012, 2:05pm UTC](https://www.ruby-forum.com/t/htaccess/222360 "2012-08-27T14:05:53Z")

</div>

Hi, I am pasting part of my .htacess file used in Apache; please help me to convert this to nginx configuraiton settings: … ############################################ enable rewrites Options +FollowSymLinks Rew…

---

## [Nginx-1.3.5](https://www.ruby-forum.com/t/nginx-1-3-5/222373)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [August 27, 2012, 2:05pm UTC](https://www.ruby-forum.com/t/nginx-1-3-5/222373 "2012-08-27T14:05:11Z")

</div>

Changes with nginx 1.3.5 21 Aug 2012 \*) Change: the ngx\_http\_mp4\_module module no longer skips tracks in formats other than H.264 and AAC. \*) Bugfix: a segmentation fault mig…

---

## [SPDY slower than normal HTTPS](https://www.ruby-forum.com/t/spdy-slower-than-normal-https/222395)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [August 27, 2012, 2:05pm UTC](https://www.ruby-forum.com/t/spdy-slower-than-normal-https/222395 "2012-08-27T14:05:11Z")

</div>

Hello, Anyone else noticing that not only is nginx 1.3.5 slower than 1.2.3 but that SPDY is making it even slower than non-SPDY HTTPS? On a page refresh I’m seeing 428ms for a large forum page via non-SPDY HTTPS an…

---

## [Too many 400 bad request](https://www.ruby-forum.com/t/too-many-400-bad-request/222367)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [August 27, 2012, 2:05pm UTC](https://www.ruby-forum.com/t/too-many-400-bad-request/222367 "2012-08-27T14:05:10Z")

</div>

Hi everyone, I’ve deployed a server for rsync public mirror,and I use nginx as web server to display some html for visitors. Now the problem is, too many 400 errors. I paste “only a small amount of them” below: ===…

---

## [Index directive not taking effect in case of alias](https://www.ruby-forum.com/t/index-directive-not-taking-effect-in-case-of-alias/222382)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [August 27, 2012, 2:05pm UTC](https://www.ruby-forum.com/t/index-directive-not-taking-effect-in-case-of-alias/222382 "2012-08-27T14:05:08Z")

</div>

I would like the pnp4nagios app to be accessed as: http://server/pnp4nagios/. With this URL it gives a 403 Forbidden error. It works when I give: http://server/pnp4nagios/index.php. What might be wrong? Here is the …

---

## [How to only enable TLS1.1 or TLS1.2 only](https://www.ruby-forum.com/t/how-to-only-enable-tls1-1-or-tls1-2-only/222281)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [August 27, 2012, 2:04pm UTC](https://www.ruby-forum.com/t/how-to-only-enable-tls1-1-or-tls1-2-only/222281 "2012-08-27T14:04:30Z")

</div>

Hi all, I want to only use TLS1.1 or above with the nginx. I searched on the Internet but there is only information about how to enable ssl/tls with the nginx. I can write "ssl\_protocols SSLv3 SSLv2 TLSv…

---

## [Proxy pass confusion](https://www.ruby-forum.com/t/proxy-pass-confusion/222344)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [August 27, 2012, 2:02pm UTC](https://www.ruby-forum.com/t/proxy-pass-confusion/222344 "2012-08-27T14:02:03Z")

</div>

Here is my server setup: Amazon load balancer (loadbalancer.aws.com) → nginx servers in reverse-proxy/caching mode → back end PHP servers If I visit the nginx server directly in my browser, everything works perfectly…

---

## [Can proxy use resolver to forward traffic to https sites?](https://www.ruby-forum.com/t/can-proxy-use-resolver-to-forward-traffic-to-https-sites/222396)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [August 27, 2012, 2:01pm UTC](https://www.ruby-forum.com/t/can-proxy-use-resolver-to-forward-traffic-to-https-sites/222396 "2012-08-27T14:01:51Z")

</div>

When it happens to be http traffic it works. if you look at the line directive lines, proxy\_pass http://$http\_host$uri$is\_args$args; // Doesnt work proxy\_pass http://$http\_host$uri$is\_args$args; // Works server { …

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

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