# Server

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

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

---

## [Write permission for www-data](https://www.ruby-forum.com/t/write-permission-for-www-data/209979)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 9\
**Last updated:** [July 27, 2011, 4:22pm UTC](https://www.ruby-forum.com/t/write-permission-for-www-data/209979 "2011-07-27T16:22:53Z")

</div>

I stored my hosts in /home. To have full functionality of my scripts I gave a write permission to www-data (my nginx user) through SSH with chown command. Although www-data has full permission to /home but I have prob…

---

## [MAC OS X Lion + Xcode + nginx-1.0.5 make error](https://www.ruby-forum.com/t/mac-os-x-lion-xcode-nginx-1-0-5-make-error/209775)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 7\
**Last updated:** [July 27, 2011, 3:58pm UTC](https://www.ruby-forum.com/t/mac-os-x-lion-xcode-nginx-1-0-5-make-error/209775 "2011-07-27T15:58:30Z")

</div>

qinjianmatoMac:nginx-1.0.5 qinjian$ make make -f objs/Makefile gcc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Wunused-function -Wunused-variable -Wunused-value -Werror -g -I src/core -I src/event -…

---

## [How to configure multiple virtual server on nginx?](https://www.ruby-forum.com/t/how-to-configure-multiple-virtual-server-on-nginx/209951)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 9\
**Last updated:** [July 27, 2011, 12:13pm UTC](https://www.ruby-forum.com/t/how-to-configure-multiple-virtual-server-on-nginx/209951 "2011-07-27T12:13:04Z")

</div>

Hi,all Pardon please,I’m not an English native speaker.So,I may make mistake in grammar. I have 4 IP address on my ubuntu server computer.For the convenience to ditinguish them ,I name them as IP-1,IP-2,IP-3 and IP-4…

---

## [Port forwarding problem](https://www.ruby-forum.com/t/port-forwarding-problem/209918)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [July 27, 2011, 12:00pm UTC](https://www.ruby-forum.com/t/port-forwarding-problem/209918 "2011-07-27T12:00:03Z")

</div>

Hi I have two machines. One is server with nginx and the other is NAT. On server I’ve got mediawiki on port 2222. I forwared port 55555 on my nat to server:2222. I have one big problem. When I try to open NAT\_IP:5555…

---

## [Multiple SSL enabled hosts causes nginx to reload slowly](https://www.ruby-forum.com/t/multiple-ssl-enabled-hosts-causes-nginx-to-reload-slowly/207133)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [July 27, 2011, 9:26am UTC](https://www.ruby-forum.com/t/multiple-ssl-enabled-hosts-causes-nginx-to-reload-slowly/207133 "2011-07-27T09:26:58Z")

</div>

Hi, I’ve set up a ssl\_certificate and ssl\_certificate\_key directives on the http level of my nginx configuration. The problem I’m facing is that starting/reloading nginx is getting slower and slower as more hosts (se…

---

## [Dynamic Redirects](https://www.ruby-forum.com/t/dynamic-redirects/186488)

<div class="topic-metadata">

**Author:** [@HarmerS\_Sean](https://www.ruby-forum.com/u/HarmerS_Sean)\
**Replies:** 8\
**Last updated:** [July 27, 2011, 6:17am UTC](https://www.ruby-forum.com/t/dynamic-redirects/186488 "2011-07-27T06:17:50Z")

</div>

NGINX Team, Is there a way to capture the User-Agent from an HTTP Header, then query a database for that User-Agent, then based on the result of the database query, transparently route the request to an appropriate s…

---

## [Forced caching](https://www.ruby-forum.com/t/forced-caching/209912)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [July 26, 2011, 4:25pm UTC](https://www.ruby-forum.com/t/forced-caching/209912 "2011-07-26T16:25:29Z")

</div>

Hi, what is the easiest way to force all request to be satisfied from the cache for lets say a minute? What I’m basically trying to do is to rate-limit the requests to the proxy upstream so that the upstream server …

---

## [Dealing with Layer 7 DDoS attacks (RUDY, Slowloris, etc)](https://www.ruby-forum.com/t/dealing-with-layer-7-ddos-attacks-rudy-slowloris-etc/209887)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [July 25, 2011, 8:15pm UTC](https://www.ruby-forum.com/t/dealing-with-layer-7-ddos-attacks-rudy-slowloris-etc/209887 "2011-07-25T20:15:47Z")

</div>

Hi guys, I am curious as to how nginx deals with DDoS attacks that attack through app layer, layer 7. I managed to find this page: http://blog.rayfoo.info/2009/10/testing-slowloris-against-nginx which claims that ngi…

---

## [General rule for rewrite](https://www.ruby-forum.com/t/general-rule-for-rewrite/209872)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [July 25, 2011, 3:08pm UTC](https://www.ruby-forum.com/t/general-rule-for-rewrite/209872 "2011-07-25T15:08:38Z")

</div>

I use this rewrite rule to create SEO friendly urls rewrite ^/search/(.\*).html /search.php?q=$1 last; I have similar rewrites too; I wonder if it is possible to write a general rule to do so for all php files? I mean…

---

## [Nginx index.php forbidden sub-directory only!](https://www.ruby-forum.com/t/nginx-index-php-forbidden-sub-directory-only/209846)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [July 24, 2011, 8:00pm UTC](https://www.ruby-forum.com/t/nginx-index-php-forbidden-sub-directory-only/209846 "2011-07-24T20:00:16Z")

</div>

Hello, 'm using nginx 1.0.4 + php-fpm + wordpress. my setup works fine. but when i try access to http://example.com/wp-admin/ it give me 403 error and I access http://example.com/wp-admin/index.php works fine, even h…

---

## [Load-balancing](https://www.ruby-forum.com/t/load-balancing/209820)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [July 24, 2011, 8:09am UTC](https://www.ruby-forum.com/t/load-balancing/209820 "2011-07-24T08:09:00Z")

</div>

Hi, I have a question about nginx configured as a load-balancer. Usually, when HTTP requests are balanced to a back-end server, the HTTP reply is sent back to the client through the load-balancer. Is this also the cas…

---

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

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [July 23, 2011, 7:06pm UTC](https://www.ruby-forum.com/t/try-files/209821 "2011-07-23T19:06:35Z")

</div>

On 23.07.2011 17:42, António P. P. Almeida wrote: location ^~ /media/ { # static expires 30d; error\_page 404 = @joomla; log\_not\_found off; } …

---

## [Testing Server without domain name](https://www.ruby-forum.com/t/testing-server-without-domain-name/209816)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [July 23, 2011, 3:55pm UTC](https://www.ruby-forum.com/t/testing-server-without-domain-name/209816 "2011-07-23T15:55:59Z")

</div>

Hi There, at the moment I’m waiting for my Domain-Name (because of some problems this will last a few days). Now I wanna test nginx only with IP-Adress. This is no Problem for Default but how about sub-Domains? Is i…

---

## [Re: Debian Squeez - install Phusion Passenger AFTER nginx-full](https://www.ruby-forum.com/t/re-debian-squeez-install-phusion-passenger-after-nginx-full/209806)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [July 23, 2011, 2:19pm UTC](https://www.ruby-forum.com/t/re-debian-squeez-install-phusion-passenger-after-nginx-full/209806 "2011-07-23T14:19:29Z")

</div>

From: Nuno Magalh?es removed\_email\_address@domain.invalid Don’t use passenger, but use Debian stable and Sid. Current versions of nginx(-full) in the repos are: squeeze (stable): 0.7.67-3 wheezy (testing): 1.0.4-1 s…

---

## [Not proxy php requests](https://www.ruby-forum.com/t/not-proxy-php-requests/209809)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [July 23, 2011, 7:00am UTC](https://www.ruby-forum.com/t/not-proxy-php-requests/209809 "2011-07-23T07:00:02Z")

</div>

Hi, I have been searching for a solution for below problem but no luck, would greatly appreciate if someone shed some lights on it. Basically I run a tomcat java app behind the nginx but keep getting php requests fro…

---

## [Reverse proxy from HTTPS to HTTP from an unknown source location](https://www.ruby-forum.com/t/reverse-proxy-from-https-to-http-from-an-unknown-source-location/209796)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [July 23, 2011, 5:33am UTC](https://www.ruby-forum.com/t/reverse-proxy-from-https-to-http-from-an-unknown-source-location/209796 "2011-07-23T05:33:30Z")

</div>

I’ve searched these forums and the internet and haven’t found anyone asking/answering this particular question. Hopefully I’m just missing something obvious in the configuration options that make this easy… I’ve got …

---

## [Debian Squeez - install Phusion Passenger AFTER nginx-full](https://www.ruby-forum.com/t/debian-squeez-install-phusion-passenger-after-nginx-full/209790)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [July 22, 2011, 11:35pm UTC](https://www.ruby-forum.com/t/debian-squeez-install-phusion-passenger-after-nginx-full/209790 "2011-07-22T23:35:13Z")

</div>

Hi There, i’ve installed nginx from the debian apt-get nginx-full. Now I need passenger, too. Is there a way getting passenger up and running without removing nginx from the current system (and without installing a s…

---

## [Help, Bad gateway 502 varnish + nginx upload file](https://www.ruby-forum.com/t/help-bad-gateway-502-varnish-nginx-upload-file/209777)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [July 22, 2011, 9:44pm UTC](https://www.ruby-forum.com/t/help-bad-gateway-502-varnish-nginx-upload-file/209777 "2011-07-22T21:44:22Z")

</div>

Hello… i’m bew in here, first i’m sorry for my bad english and wrong place for posting. y problem. I have a server which is installed varnish and nginx as proxy site and serve static pages. It run smooth, all can wor…

---

## [Nginx static file deletion](https://www.ruby-forum.com/t/nginx-static-file-deletion/209766)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [July 22, 2011, 3:44pm UTC](https://www.ruby-forum.com/t/nginx-static-file-deletion/209766 "2011-07-22T15:44:05Z")

</div>

hi. I found out recently that everytime i restart my nginx, nginx is trying to delete the static directory and everything under it. following is my static directory configuration: http{ … proxy\_cache\_path /path/to/…

---

## [Nginx 1.0.5 on redhat6.0 appear a serious bug](https://www.ruby-forum.com/t/nginx-1-0-5-on-redhat6-0-appear-a-serious-bug/209779)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [July 22, 2011, 2:49pm UTC](https://www.ruby-forum.com/t/nginx-1-0-5-on-redhat6-0-appear-a-serious-bug/209779 "2011-07-22T14:49:21Z")

</div>

Today i update nginx 1.0.0 to 1.0.5 on redhat 6.0 ,after 3 hours ,nginx don’t work,but the nginx process still exist! The follow are from /var/log/message ul 22 10:46:18 localhost xinetd\[31385\]: EXIT: nrpe status=0 pi…

---

## [Nginx/0.8.54 - 502 Bad Gateway](https://www.ruby-forum.com/t/nginx-0-8-54-502-bad-gateway/209691)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 11\
**Last updated:** [July 22, 2011, 9:25am UTC](https://www.ruby-forum.com/t/nginx-0-8-54-502-bad-gateway/209691 "2011-07-22T09:25:34Z")

</div>

Hi, I’m running nginx as a reverse proxy for a jetty. I host a Liftweb App on localhost:8080. Nginx is listening on Port 81. Here is my nginx.conf: server { listen 81; server\_name mysite.com www.mysite.com; …

---

## [Ngx\_redis2 v0.07: nginx upstream module for the full redis 2.0 protocol](https://www.ruby-forum.com/t/ngx-redis2-v0-07-nginx-upstream-module-for-the-full-redis-2-0-protocol/209769)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [July 22, 2011, 6:38am UTC](https://www.ruby-forum.com/t/ngx-redis2-v0-07-nginx-upstream-module-for-the-full-redis-2-0-protocol/209769 "2011-07-22T06:38:31Z")

</div>

Hi, folks! I’m happy to announce that ngx\_redis2 v0.07 has now been released! You can download the release tarball from its download page: https://github.com/agentzh/redis2-nginx-module/downloads This is an nginx ups…

---

## [Same regex caching](https://www.ruby-forum.com/t/same-regex-caching/209739)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [July 22, 2011, 3:24am UTC](https://www.ruby-forum.com/t/same-regex-caching/209739 "2011-07-22T03:24:32Z")

</div>

Hi, I wanted to ask if the same regex used in multiple conditions is the same cached-compiled version? Eg I need to validate the all the (sub)request params before sending it upstream: location /foo { if ($time !~…

---

## [Proxying to node.js + express.js, session doesn't persist](https://www.ruby-forum.com/t/proxying-to-node-js-express-js-session-doesnt-persist/209731)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 9\
**Last updated:** [July 22, 2011, 2:04am UTC](https://www.ruby-forum.com/t/proxying-to-node-js-express-js-session-doesnt-persist/209731 "2011-07-22T02:04:12Z")

</div>

I have Nginx set up to proxy\_pass requests to location /api to 127.0.0.1:3000, where Node.js is listening. Node.js is running a server written with Express.js. In my previous project, I used request session in Express…

---

## [Memory leak in outgoing https connections](https://www.ruby-forum.com/t/memory-leak-in-outgoing-https-connections/209745)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [July 21, 2011, 11:59pm UTC](https://www.ruby-forum.com/t/memory-leak-in-outgoing-https-connections/209745 "2011-07-21T23:59:30Z")

</div>

Hi! I believe, there is a memory leak in nginx somewhere in handling outgoing HTTPS connections. I am using it as a simple http-to-https proxy. My configuration is the following: resolver 8.8.8.8; server { listen …

---

## [Writing a module to use with http\_proxy](https://www.ruby-forum.com/t/writing-a-module-to-use-with-http-proxy/209728)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [July 21, 2011, 5:22pm UTC](https://www.ruby-forum.com/t/writing-a-module-to-use-with-http-proxy/209728 "2011-07-21T17:22:17Z")

</div>

Hi. I’m new to nginx module development and I’m going to write a module that must do everything that http\_proxy module does except it must do some checks before request is passed to the upstream. What’s the best way t…

---

## [Failover issues with sticky](https://www.ruby-forum.com/t/failover-issues-with-sticky/209727)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [July 21, 2011, 2:21pm UTC](https://www.ruby-forum.com/t/failover-issues-with-sticky/209727 "2011-07-21T14:21:12Z")

</div>

Hello, I’m using nginx solely as a load balancer, with nginx-sticky ( Google Code Archive - Long-term storage for Google Code Project Hosting.) as a way to maintain sticky sessions. There are 2 upstream servers conf…

---

## [A question of configuring proxy redirect from http to https](https://www.ruby-forum.com/t/a-question-of-configuring-proxy-redirect-from-http-to-https/209715)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [July 21, 2011, 5:12am UTC](https://www.ruby-forum.com/t/a-question-of-configuring-proxy-redirect-from-http-to-https/209715 "2011-07-21T05:12:12Z")

</div>

Here is my configuration scenario. One nginx host and several upstream servers. For the upstream server, giving a request with URL “/abc”, it will redirect to “/abc/”. The nginx config is: upstream ups { server xxx…

---

## [Aio on nfs](https://www.ruby-forum.com/t/aio-on-nfs/209663)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [July 20, 2011, 4:04pm UTC](https://www.ruby-forum.com/t/aio-on-nfs/209663 "2011-07-20T16:04:07Z")

</div>

Hello, I’m using aio on FreeBSD 8.2 with the following in my nginx.conf: http { … sendfile on; aio sendfile; tcp\_nopush on; read\_ahead 512k; output\_buffers 1 128k; … } I’m serving some…

---

## [Very poor performance for serving static files](https://www.ruby-forum.com/t/very-poor-performance-for-serving-static-files/209607)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 12\
**Last updated:** [July 20, 2011, 9:35am UTC](https://www.ruby-forum.com/t/very-poor-performance-for-serving-static-files/209607 "2011-07-20T09:35:04Z")

</div>

we are a video hosting company and storing files in mp4 format. we have another server, its litespeed and handle nearly 1gbit connection succesfully. slow but it is responsing requests at least. but this new server (n…

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

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