# Server

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

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

---

## [Moving .htaccess config to nginx](https://www.ruby-forum.com/t/moving-htaccess-config-to-nginx/219901)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [May 22, 2012, 12:13pm UTC](https://www.ruby-forum.com/t/moving-htaccess-config-to-nginx/219901 "2012-05-22T12:13:18Z")

</div>

Hi, I have to test nginx for my company which is currently using apache webservers with .htaccess files. I nearly managed to get all the config from apache to nginx, but I am having problems with the .htaccess files. …

---

## [Nginx reverse proxy performance problems](https://www.ruby-forum.com/t/nginx-reverse-proxy-performance-problems/219889)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 6\
**Last updated:** [May 22, 2012, 10:14am UTC](https://www.ruby-forum.com/t/nginx-reverse-proxy-performance-problems/219889 "2012-05-22T10:14:40Z")

</div>

nginx version: nginx/1.2.0 built by gcc 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu3) TLS SNI support enabled configure arguments: --add-module=/tmp/chunkin --with-http\_ssl\_module –with-http\_sub\_module --with-http\_gzip\_static…

---

## [Add\_header doesn't work when 50x](https://www.ruby-forum.com/t/add-header-doesnt-work-when-50x/219894)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 0\
**Last updated:** [May 21, 2012, 8:37am UTC](https://www.ruby-forum.com/t/add-header-doesnt-work-when-50x/219894 "2012-05-21T08:37:23Z")

</div>

Hi everybody, I manage a server farm with more than 30+ servers using nginx. Sometimes I forgot to start php-fpm, that is I got 502 BAD GATEWAY. I have “add\_header Host $hostname;” in my nginx.conf. But this only ena…

---

## [Ssl\_client\_certificate set to a certificate chain?](https://www.ruby-forum.com/t/ssl-client-certificate-set-to-a-certificate-chain/219890)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [May 21, 2012, 4:32am UTC](https://www.ruby-forum.com/t/ssl-client-certificate-set-to-a-certificate-chain/219890 "2012-05-21T04:32:17Z")

</div>

Hi, I fall into this situation: one root CA issued two intermediate CAs, one for merchants and another for payment gateways. I set ssl\_client\_certificate to intermediate CA of payment gateways, client cannot verify i…

---

## [No basic auth from outside network](https://www.ruby-forum.com/t/no-basic-auth-from-outside-network/219886)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [May 21, 2012, 3:31am UTC](https://www.ruby-forum.com/t/no-basic-auth-from-outside-network/219886 "2012-05-21T03:31:10Z")

</div>

Hi - first post here… I’ve built an nginx server with SSL and basic auth. Basic auth works great from within my network but when I try to come in from outside (via port forwarding on my router) my http pages work fine…

---

## [Nginx on windows keeps hanging](https://www.ruby-forum.com/t/nginx-on-windows-keeps-hanging/219850)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 7\
**Last updated:** [May 20, 2012, 1:21pm UTC](https://www.ruby-forum.com/t/nginx-on-windows-keeps-hanging/219850 "2012-05-20T13:21:31Z")

</div>

Hello, I run my websites using linux, but for my current situation, I test my sites on my windows 7 64bit. I have setup nginx with php and mysql and everything works fine. But depending on how many requests get done i…

---

## [AJAX Uploader with Nginx, Not Catching Files](https://www.ruby-forum.com/t/ajax-uploader-with-nginx-not-catching-files/219874)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [May 20, 2012, 1:40am UTC](https://www.ruby-forum.com/t/ajax-uploader-with-nginx-not-catching-files/219874 "2012-05-20T01:40:23Z")

</div>

Has anyone set up nginx to work with an AJAX uploader like this one before? http://valums.com/ajax-upload/ Passing the upload through to my Tornado server works fine, but I want nginx to handle the file before it gets…

---

## [500 Error when using proxy\_cookie\_domain](https://www.ruby-forum.com/t/500-error-when-using-proxy-cookie-domain/219862)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 5\
**Last updated:** [May 18, 2012, 10:38pm UTC](https://www.ruby-forum.com/t/500-error-when-using-proxy-cookie-domain/219862 "2012-05-18T22:38:27Z")

</div>

Hello, I’m using Nginx as a reverse proxy and I’m seeing 500 errors anytime the proxy\_cookie\_domain option feature is used. I’m trying to change the domain in the “Set-Cookie” header. The response header shows the re…

---

## [Best way to handle preprod server\_names](https://www.ruby-forum.com/t/best-way-to-handle-preprod-server-names/219791)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [May 18, 2012, 9:25am UTC](https://www.ruby-forum.com/t/best-way-to-handle-preprod-server-names/219791 "2012-05-18T09:25:23Z")

</div>

Hi, I’m going to migrate a lots of vhosts from Squid+Apache2 to NginX, step by step. First step is to migrate just NginX and few static vhosts. Actually there is ~600 domains x 5 vhosts + equivalent for preprod. So I …

---

## [Nginx log setting with date format](https://www.ruby-forum.com/t/nginx-log-setting-with-date-format/219812)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [May 18, 2012, 2:21am UTC](https://www.ruby-forum.com/t/nginx-log-setting-with-date-format/219812 "2012-05-18T02:21:22Z")

</div>

Hello Experts, We are using nginx1.1.2.How do i set logging (access & error logs )level with date format and logs need to rolling with size specific not daily basis. Can anyone help on this? Thanks, svanga Posted …

---

## [502 Bad Gateway](https://www.ruby-forum.com/t/502-bad-gateway/218255)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [May 18, 2012, 1:34am UTC](https://www.ruby-forum.com/t/502-bad-gateway/218255 "2012-05-18T01:34:28Z")

</div>

Hi all, I have a simple setup with Nginx in front Apache, under debian wheezy (nginx for static content, apache for php) Since the last Nginx update (1.1.17-2 via apt-get), every night after daily crons i have a 502 …

---

## [Proxy\_pass with trailing slash issue](https://www.ruby-forum.com/t/proxy-pass-with-trailing-slash-issue/219834)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 2\
**Last updated:** [May 17, 2012, 9:41pm UTC](https://www.ruby-forum.com/t/proxy-pass-with-trailing-slash-issue/219834 "2012-05-17T21:41:59Z")

</div>

I’m using nginx (0.7.65) as a reverse proxy in front of a bunch of Tomcat instances. A couple of years ago, following Igor’s suggestions on the mailing list, I made a minor change to the configuration to deal with a p…

---

## [Logs analyzer](https://www.ruby-forum.com/t/logs-analyzer/219831)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 4\
**Last updated:** [May 17, 2012, 8:48pm UTC](https://www.ruby-forum.com/t/logs-analyzer/219831 "2012-05-17T20:48:02Z")

</div>

Hi, other question he he. Need to analyze the nginx logs, wath tool (open and for Linux) recommend? (if is web based and make graphics better) – El Tio ~ Programador, hacker y filósofo web: http://blog.exodica.com.…

---

## [Set FastCGI param if exists header](https://www.ruby-forum.com/t/set-fastcgi-param-if-exists-header/219830)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 1\
**Last updated:** [May 17, 2012, 7:32pm UTC](https://www.ruby-forum.com/t/set-fastcgi-param-if-exists-header/219830 "2012-05-17T19:32:20Z")

</div>

Hi guys. I have a one frontend server with nginx, and 5 backends with PHP-FPM, I do a FastCGI pass and all works. Now, I need add other fronted, balanced by hardware base balancer. My problem is, i need track the re…

---

## [Nginx problem with upload files](https://www.ruby-forum.com/t/nginx-problem-with-upload-files/219813)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 0\
**Last updated:** [May 17, 2012, 4:30am UTC](https://www.ruby-forum.com/t/nginx-problem-with-upload-files/219813 "2012-05-17T04:30:56Z")

</div>

hi, dear all: I am a newbie to nginx. Firstly thanks for your attentions. I have one problem about nginx: I install nginx on machine A, and install other tools on machine B & C… When uploading(PUT) one file to B or …

---

## [Nginx Reverse Proxy to LAMP server phpmyadmin access](https://www.ruby-forum.com/t/nginx-reverse-proxy-to-lamp-server-phpmyadmin-access/219794)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 1\
**Last updated:** [May 16, 2012, 2:33pm UTC](https://www.ruby-forum.com/t/nginx-reverse-proxy-to-lamp-server-phpmyadmin-access/219794 "2012-05-16T14:33:42Z")

</div>

Hi all. I have been looking for this answer but I have not been able to do so. I have a server with Nginx as a reverse proxy and want it to redirect my http://domain.com/phpmyadmin to a different LAMP server which hos…

---

## [Ngx\_openresty devel version 1.0.15.5 released](https://www.ruby-forum.com/t/ngx-openresty-devel-version-1-0-15-5-released/219796)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 0\
**Last updated:** [May 16, 2012, 12:52pm UTC](https://www.ruby-forum.com/t/ngx-openresty-devel-version-1-0-15-5-released/219796 "2012-05-16T12:52:50Z")

</div>

Hi, folks! After three days’ active development, I’m happy to announce the new development release of ngx\_openresty, 1.0.15.5: OpenResty® - Open source Below is the change log for this release: upgraded LuaJIT to …

---

## [Nginx-1.3.0](https://www.ruby-forum.com/t/nginx-1-3-0/219761)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 3\
**Last updated:** [May 16, 2012, 10:21am UTC](https://www.ruby-forum.com/t/nginx-1-3-0/219761 "2012-05-16T10:21:53Z")

</div>

Changes with nginx 1.3.0 15 May 2012 \*) Feature: the "debug\_connection" directive now supports IPv6 addresses and the “unix:” parameter. \*) Feature: the "set\_real\_ip\_from" di…

---

## [Need to identify blocked requests vs other requests](https://www.ruby-forum.com/t/need-to-identify-blocked-requests-vs-other-requests/219776)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 1\
**Last updated:** [May 16, 2012, 10:08am UTC](https://www.ruby-forum.com/t/need-to-identify-blocked-requests-vs-other-requests/219776 "2012-05-16T10:08:14Z")

</div>

Hello there, As limit\_req returns 503 as well other 503 (service unavailable) native errors I need a way to differentiate them in the access log. One easy way would be to be able to set the status limit\_req returns, …

---

## [Truncated output for css with nginx 1.2](https://www.ruby-forum.com/t/truncated-output-for-css-with-nginx-1-2/219773)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [May 16, 2012, 10:05am UTC](https://www.ruby-forum.com/t/truncated-output-for-css-with-nginx-1-2/219773 "2012-05-16T10:05:08Z")

</div>

This is on centos and nginx 1.2. I have a jetty server in the back and it is https all the way thru. Intermittently the browser hangs trying to read a css that the app is using. This file is about 30076 bytes and inte…

---

## [SOS! Why Nginx DID NOT flush buffer to client?](https://www.ruby-forum.com/t/sos-why-nginx-did-not-flush-buffer-to-client/183160)

<div class="topic-metadata">

**Author:** [@21andy](https://www.ruby-forum.com/u/21andy)\
**Replies:** 6\
**Last updated:** [May 16, 2012, 8:58am UTC](https://www.ruby-forum.com/t/sos-why-nginx-did-not-flush-buffer-to-client/183160 "2012-05-16T08:58:23Z")

</div>

I want to the php file output 1 line per second. see my code first: \<?php ob\_implicit\_flush(true); for ($i = 0; $i \< 5; $i++) { echo "test $i"; sleep(1); } ?\> OR \<?php ob\_end\_clean(); …

---

## [Http upstream keepalives](https://www.ruby-forum.com/t/http-upstream-keepalives/219744)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [May 15, 2012, 11:29pm UTC](https://www.ruby-forum.com/t/http-upstream-keepalives/219744 "2012-05-15T23:29:27Z")

</div>

Hi, I’m reading here: http://nginx.org/en/docs/http/ngx\_http\_upstream\_module.html#keepalive so I’ve tried: server { keepalive\_timeout 70; error\_log /var/log/nginx/test-error.log; listen 80; server\_name www.dave…

---

## [Script for Nagios](https://www.ruby-forum.com/t/script-for-nagios/219769)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [May 15, 2012, 11:28pm UTC](https://www.ruby-forum.com/t/script-for-nagios/219769 "2012-05-15T23:28:50Z")

</div>

Hi guys, I sant because this is my first email to the list. I’m a web developer from Argentina, and use nginx ago one year. In my job, are installing a Negios monitor, and i need a nginx script for check connections …

---

## [Caching not working](https://www.ruby-forum.com/t/caching-not-working/219749)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 2\
**Last updated:** [May 15, 2012, 8:09pm UTC](https://www.ruby-forum.com/t/caching-not-working/219749 "2012-05-15T20:09:01Z")

</div>

Hello, I’m running nginx 1.0.15. I have the following in my http block: proxy\_cache\_path /var/tmp/nginx/proxy/cache/quickgit levels=1:2 keys\_zone=quickgit:200m; proxy\_temp\_path /var/tmp/nginx/proxy/temp; and in my s…

---

## [Proxy\_cache only if custom header is set by upstream](https://www.ruby-forum.com/t/proxy-cache-only-if-custom-header-is-set-by-upstream/219763)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [May 15, 2012, 6:25pm UTC](https://www.ruby-forum.com/t/proxy-cache-only-if-custom-header-is-set-by-upstream/219763 "2012-05-15T18:25:43Z")

</div>

Hi, i know how to prevent caching if custom headers are set by upstream with proxy\_cache\_bypass and proxy\_no\_cache. This time i’d like to do the opposite, i want the response to be cached only if a custom header is p…

---

## [If-Modified-Since](https://www.ruby-forum.com/t/if-modified-since/219753)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 3\
**Last updated:** [May 15, 2012, 4:07pm UTC](https://www.ruby-forum.com/t/if-modified-since/219753 "2012-05-15T16:07:50Z")

</div>

Hi, I’m obviously losing it somehow. What am I missing here, it must be something obvious that is going to make me look stupid, but I still don’t see it. I just can’t get If-Modified-Since to work? Linux poc 3.3.4-2-…

---

## [Disable default error\_log?](https://www.ruby-forum.com/t/disable-default-error-log/219650)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 4\
**Last updated:** [May 15, 2012, 1:52pm UTC](https://www.ruby-forum.com/t/disable-default-error-log/219650 "2012-05-15T13:52:50Z")

</div>

Hi, It seems something in nginx has changed: I can no longer run it in isolation as a user. Even if I disable or move all log files to a place the user has control over, nginx will still try to open “/var/log/nginx/e…

---

## [Serving big files at constant rates](https://www.ruby-forum.com/t/serving-big-files-at-constant-rates/219725)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 3\
**Last updated:** [May 15, 2012, 12:37pm UTC](https://www.ruby-forum.com/t/serving-big-files-at-constant-rates/219725 "2012-05-15T12:37:38Z")

</div>

Hi, A recent thread kept my attention recently: I don’t have such a big trouble, but I don’t see how to solve it. My server usually serves small files suchas classical web pages. On a particular location, though, I …

---

## [Nginx Gzip file download not working](https://www.ruby-forum.com/t/nginx-gzip-file-download-not-working/219714)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [May 15, 2012, 12:21am UTC](https://www.ruby-forum.com/t/nginx-gzip-file-download-not-working/219714 "2012-05-15T00:21:45Z")

</div>

Hi All, When i try to download a file using “curl -H “Accept-Encoding: gzip” http://abc.com/xx.epub” ,almost 99% file downloads and then it hangs and end up with this message “curl: (18) transfer closed with 2693 byte…

---

## [Rewrite URL's Glype](https://www.ruby-forum.com/t/rewrite-urls-glype/218532)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [May 14, 2012, 6:00pm UTC](https://www.ruby-forum.com/t/rewrite-urls-glype/218532 "2012-05-14T18:00:45Z")

</div>

Hi all, I’ve a Glype proxy and I want to rewrite the URL’s. All URLs on the page are automatically converted to: http://proxy.com/browse.php?u=URL HERE Example: If I go to /browse on The Pirate Bay on my proxy I want…

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

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