# Server

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

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

---

## [Nginx location for not exists php files](https://www.ruby-forum.com/t/nginx-location-for-not-exists-php-files/230352)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 1\
**Last updated:** [June 12, 2014, 8:51pm UTC](https://www.ruby-forum.com/t/nginx-location-for-not-exists-php-files/230352 "2014-06-12T20:51:03Z")

</div>

I have config(minimal): server { listen test.local:80; server\_name test.local; server\_name\_in\_redirect off; location / { root /data/www/test/public; try\_files $uri $uri/ /index.php?route=$uri&$args; index ind…

---

## [Proxy\_redirect vs. relative URLs from upstream](https://www.ruby-forum.com/t/proxy-redirect-vs-relative-urls-from-upstream/230350)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 0\
**Last updated:** [June 12, 2014, 2:14pm UTC](https://www.ruby-forum.com/t/proxy-redirect-vs-relative-urls-from-upstream/230350 "2014-06-12T14:14:49Z")

</div>

Hi, I’m trying to create a sinle proxying configuration as following: location = /proxy { resolver 8.8.8.8; proxy\_pass $args; proxy\_set\_header X-Forwarded-For $proxy\_add\_x\_forwarded\_for; proxy\_set\_header X-Real-IP …

---

## [Rewrite rules from Apache again](https://www.ruby-forum.com/t/rewrite-rules-from-apache-again/230320)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 4\
**Last updated:** [June 12, 2014, 12:08pm UTC](https://www.ruby-forum.com/t/rewrite-rules-from-apache-again/230320 "2014-06-12T12:08:59Z")

</div>

I’m still trying to move everything from apache to nginx. I’ve successfully translated some rules from the .htaccess: RewriteRule ^(.)\_k(.).htm$ pagina.php?k=$2 works pretty weff if turned into: rewrite ^/(.)\_k(.).ht…

---

## [Proxy\_pass to different upstreams based on a cookie in the http request header](https://www.ruby-forum.com/t/proxy-pass-to-different-upstreams-based-on-a-cookie-in-the-http-request-header/230333)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 2\
**Last updated:** [June 12, 2014, 9:01am UTC](https://www.ruby-forum.com/t/proxy-pass-to-different-upstreams-based-on-a-cookie-in-the-http-request-header/230333 "2014-06-12T09:01:29Z")

</div>

Hello, Am wondering if there is a way to proxy (i.e proxy\_pass inside location directive) to different set of upstreams based on whether a particular cookie is present or not in a http request header. Thanks -Kunal

---

## [Life of objects allocated using the request pool?](https://www.ruby-forum.com/t/life-of-objects-allocated-using-the-request-pool/230331)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 1\
**Last updated:** [June 12, 2014, 12:07am UTC](https://www.ruby-forum.com/t/life-of-objects-allocated-using-the-request-pool/230331 "2014-06-12T00:07:39Z")

</div>

What is the life of objects allocated using the request pool? If I allocate memory from the r-\>pool in a request handler, what would be the life of the object? Will the objects be freed if the request is over of will…

---

## [Location uri wildcard](https://www.ruby-forum.com/t/location-uri-wildcard/230319)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 7\
**Last updated:** [June 11, 2014, 7:11pm UTC](https://www.ruby-forum.com/t/location-uri-wildcard/230319 "2014-06-11T19:11:01Z")

</div>

I recently converted my website from asp.net and have the following links out there that I would like to permanent redirect to my new url, but I seem to not be able to create this. My goal is to create one rewrite o…

---

## [Nginx gunzip memcached data , xss\_callback failed](https://www.ruby-forum.com/t/nginx-gunzip-memcached-data-xss-callback-failed/230329)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 0\
**Last updated:** [June 11, 2014, 5:13am UTC](https://www.ruby-forum.com/t/nginx-gunzip-memcached-data-xss-callback-failed/230329 "2014-06-11T05:13:37Z")

</div>

Hi, I use nginx to read mecached data and write to memcached by java XmemcachedClient . Xmemcached compress data that larger than 256kB before write . So nginx i use ngx\_gunzip\_module and memcached\_gzip\_flag to unzi…

---

## [Unable to complete secure transaction](https://www.ruby-forum.com/t/unable-to-complete-secure-transaction/230318)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 2\
**Last updated:** [June 10, 2014, 7:34pm UTC](https://www.ruby-forum.com/t/unable-to-complete-secure-transaction/230318 "2014-06-10T19:34:51Z")

</div>

Hello, I am using the following nginx.conf nginx.conf · GitHub and have an EV Multi-Domain certificate from COMODO for my company. This works on Chrome and Firefox, but I am having difficulties on Safari and Opera. …

---

## [Input body filer](https://www.ruby-forum.com/t/input-body-filer/230310)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 1\
**Last updated:** [June 10, 2014, 4:55pm UTC](https://www.ruby-forum.com/t/input-body-filer/230310 "2014-06-10T16:55:58Z")

</div>

Now I want to do some security testing for input body, but I find nginx doesn’t have the detection mechanism for input body. anyone who can tell me why? Thanks! Posted at Nginx Forum:

---

## [Switching to nginx: php and rewrite rules from apache](https://www.ruby-forum.com/t/switching-to-nginx-php-and-rewrite-rules-from-apache/230264)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 4\
**Last updated:** [June 10, 2014, 3:39pm UTC](https://www.ruby-forum.com/t/switching-to-nginx-php-and-rewrite-rules-from-apache/230264 "2014-06-10T15:39:10Z")

</div>

Hello list, I’m moving a bunch of sites from Apache to nginx 1.5.13 :). Everything went fine for the static ones and for the sites under wp or joomla. I have one site in php developped by the customer that seemed ok …

---

## [Proxy\_Pass to another vhost on same machine](https://www.ruby-forum.com/t/proxy-pass-to-another-vhost-on-same-machine/230303)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 1\
**Last updated:** [June 10, 2014, 2:03pm UTC](https://www.ruby-forum.com/t/proxy-pass-to-another-vhost-on-same-machine/230303 "2014-06-10T14:03:59Z")

</div>

Hello, I am attempting to use ca.mydomain.com with client certificate auth as a springboard for other sites on the same server. I am using client certs with my iphone (and other browsers) to skip the password auth an…

---

## [How to get response headers from internal-requests?](https://www.ruby-forum.com/t/how-to-get-response-headers-from-internal-requests/230305)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 1\
**Last updated:** [June 10, 2014, 3:30am UTC](https://www.ruby-forum.com/t/how-to-get-response-headers-from-internal-requests/230305 "2014-06-10T03:30:36Z")

</div>

Hi all, Is there a way to get the response headers from internal-requests? p.s. I am using ngx.location.capture(uri) for the internal requests. Thanks in advance.

---

## [Default host is being ignored?](https://www.ruby-forum.com/t/default-host-is-being-ignored/230287)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 1\
**Last updated:** [June 9, 2014, 5:01pm UTC](https://www.ruby-forum.com/t/default-host-is-being-ignored/230287 "2014-06-09T17:01:14Z")

</div>

I created a default conf file: server { listen 80 default; listen 443 default; server\_name “”; return 444; } and linked it in sites-enabled. The other server is declared with: server { listen 80; listen 443 ss…

---

## [Http\_geo\_module invalid option during compile!](https://www.ruby-forum.com/t/http-geo-module-invalid-option-during-compile/230292)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 2\
**Last updated:** [June 9, 2014, 9:47am UTC](https://www.ruby-forum.com/t/http-geo-module-invalid-option-during-compile/230292 "2014-06-09T09:47:48Z")

</div>

Does nginx Geo module work on nginx ? I am getting the following error during compiling nginx-1.4.7 with it : ./configure --with-http\_mp4\_module --with-http\_flv\_module –with-http\_geoip\_module --with-http\_geo\_module …

---

## [ANN: HTTP 1.1 is now RFC 7230 to RFC 7235](https://www.ruby-forum.com/t/ann-http-1-1-is-now-rfc-7230-to-rfc-7235/230276)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 0\
**Last updated:** [June 8, 2014, 1:35am UTC](https://www.ruby-forum.com/t/ann-http-1-1-is-now-rfc-7230-to-rfc-7235/230276 "2014-06-08T01:35:24Z")

</div>

Dear Readers. Today I haven seen the following post on the curl-lib mailing list which I want to share. http://curl.haxx.se/mail/lib-2014-06/0073.html Zite Finally, RFC 2616 is deprecated and HTTP 1.1 is now offical…

---

## [OpenResty 1.7.0.1 released](https://www.ruby-forum.com/t/openresty-1-7-0-1-released/230274)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 0\
**Last updated:** [June 8, 2014, 1:18am UTC](https://www.ruby-forum.com/t/openresty-1-7-0-1-released/230274 "2014-06-08T01:18:19Z")

</div>

Hi folks! I am happy to announce the new formal release, 1.7.0.1, of the OpenResty bundle: http://openresty.org/#Download Special thanks go to all our contributors for making this happen! Below is the complete chang…

---

## [Arch linux , swf dir and forbidden error](https://www.ruby-forum.com/t/arch-linux-swf-dir-and-forbidden-error/230256)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 3\
**Last updated:** [June 8, 2014, 12:18am UTC](https://www.ruby-forum.com/t/arch-linux-swf-dir-and-forbidden-error/230256 "2014-06-08T00:18:15Z")

</div>

I use arch linux and install nginx from arch repo , every thing is OK, I want use nginx for use play flash game and swf game , i download many swf files and make swf directory in /usr/share/nginx/html and put all sw…

---

## [Website with login button, redirect to intranet?](https://www.ruby-forum.com/t/website-with-login-button-redirect-to-intranet/230262)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 2\
**Last updated:** [June 7, 2014, 4:54pm UTC](https://www.ruby-forum.com/t/website-with-login-button-redirect-to-intranet/230262 "2014-06-07T16:54:38Z")

</div>

Hi everyone, I would like to check whether this is possible with nginx (on ubuntu 12.04 LTS 64 bits). I have a website www.mywebpage.com.my this is just another website. There is a login button. When someone click…

---

## [DNS resolution of backends](https://www.ruby-forum.com/t/dns-resolution-of-backends/230233)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 4\
**Last updated:** [June 6, 2014, 11:16pm UTC](https://www.ruby-forum.com/t/dns-resolution-of-backends/230233 "2014-06-06T23:16:43Z")

</div>

Hi guys We run a reverse proxy to Amazon S3 service. Sometime Amazon change their IPs and some of them may become unresponsive and render reservse proxy unusuable. Is there options to force nginx to re-resolve IPs of…

---

## [NGINX Error when uploading images](https://www.ruby-forum.com/t/nginx-error-when-uploading-images/230255)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 2\
**Last updated:** [June 6, 2014, 5:56pm UTC](https://www.ruby-forum.com/t/nginx-error-when-uploading-images/230255 "2014-06-06T17:56:45Z")

</div>

Hi all, We have a handful of users in the UK that are getting the error (screenshot attached) We narrowed it down to the ISP/Router Virgin BT ISP or Home Hub 2.0. If they use another ISP or even tether to an iPhone…

---

## [Nginx channel](https://www.ruby-forum.com/t/nginx-channel/230252)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 4\
**Last updated:** [June 6, 2014, 2:34pm UTC](https://www.ruby-forum.com/t/nginx-channel/230252 "2014-06-06T14:34:03Z")

</div>

Would be great where channels are used, I am talking about ngx\_channel? Posted at Nginx Forum:

---

## [The http output chain is empty bug (nginx lua module)](https://www.ruby-forum.com/t/the-http-output-chain-is-empty-bug-nginx-lua-module/230248)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 2\
**Last updated:** [June 6, 2014, 12:37pm UTC](https://www.ruby-forum.com/t/the-http-output-chain-is-empty-bug-nginx-lua-module/230248 "2014-06-06T12:37:56Z")

</div>

nginx \>= 1.5.7 nginx-lua-module \>= 0.9.8 (possibly older version) CentOS 6 ./sbin/nginx -V nginx version: nginx/1.5.7 built by gcc 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) configure arguments: --add-module=…/lua-ngin…

---

## [Deny all + Custom Error page](https://www.ruby-forum.com/t/deny-all-custom-error-page/230246)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 2\
**Last updated:** [June 6, 2014, 11:24am UTC](https://www.ruby-forum.com/t/deny-all-custom-error-page/230246 "2014-06-06T11:24:52Z")

</div>

Hello, I try to block wildcard sub domains as follows: block wildcard server { server\_name ~^(.\*).example.com$ ; root /usr/share/nginx/www; error\_page 403 /index.html; allow 127.0.0.1; deny all; access\_log off; …

---

## [Dynamic config options from ENV](https://www.ruby-forum.com/t/dynamic-config-options-from-env/230236)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 3\
**Last updated:** [June 5, 2014, 8:35pm UTC](https://www.ruby-forum.com/t/dynamic-config-options-from-env/230236 "2014-06-05T20:35:07Z")

</div>

Hi everybody, is it possible to set a nginx config variable from an ENV variable? I tried several thing, but none of them worked. The most promising was specifying “env MY\_VAR;” at the top of the nginx.conf and then…

---

## [Windows nginx 1.7.2.2 RedKnight](https://www.ruby-forum.com/t/windows-nginx-1-7-2-2-redknight/230240)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 0\
**Last updated:** [June 5, 2014, 8:33pm UTC](https://www.ruby-forum.com/t/windows-nginx-1-7-2-2-redknight/230240 "2014-06-05T20:33:56Z")

</div>

20:13 5-6-2014 nginx 1.7.2.2 RedKnight Based on nginx 1.7.2 (5-6-2014) with; Openssl-1.0.1h (CVE-2014-0224, CVE-2014-0221, CVE-2014-0195, CVE-2014-0198, CVE-2010-5298, CVE-2014-3470) New nginx Windows icon Source cha…

---

## [Asynchronous file processing](https://www.ruby-forum.com/t/asynchronous-file-processing/230237)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 0\
**Last updated:** [June 5, 2014, 6:23pm UTC](https://www.ruby-forum.com/t/asynchronous-file-processing/230237 "2014-06-05T18:23:41Z")

</div>

Hi all, I’m working on a native nginx module in which I want to read an input file and perform some manipulations on its data. Since the files I’m reading are big and accessed over NFS, I want to use asynchronous I/…

---

## [Google Analytics event generation by using Nginx logs](https://www.ruby-forum.com/t/google-analytics-event-generation-by-using-nginx-logs/230230)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 0\
**Last updated:** [June 5, 2014, 3:36pm UTC](https://www.ruby-forum.com/t/google-analytics-event-generation-by-using-nginx-logs/230230 "2014-06-05T15:36:42Z")

</div>

Hi This is my first posting here, so HI to everyone :slight\_smile: I would like to generate Google Analytics events for documents/videos served directly by Nginx. Currently the user of our system can either get the …

---

## [Nginx Segmentation fault](https://www.ruby-forum.com/t/nginx-segmentation-fault/230201)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 7\
**Last updated:** [June 5, 2014, 10:08am UTC](https://www.ruby-forum.com/t/nginx-segmentation-fault/230201 "2014-06-05T10:08:53Z")

</div>

I needed to use modsecurity so I compiled nginx and modsecurity. Modsecurity was compiled with options: ./configure –enable-standalone-module nginx with: ./configure –add-module=…/modsecurity-2.8.0/nginx/modsecurity/ …

---

## [Redirect to custom landing pages based on http referer](https://www.ruby-forum.com/t/redirect-to-custom-landing-pages-based-on-http-referer/230222)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 1\
**Last updated:** [June 5, 2014, 9:36am UTC](https://www.ruby-forum.com/t/redirect-to-custom-landing-pages-based-on-http-referer/230222 "2014-06-05T09:36:27Z")

</div>

Is it possible using nginx to essentially look at the http referer header, and if its set to a specific value, and the page is index.html or /, redirect to a custom landing page. For example: Psuedo code if($page =…

---

## [Nginx 1.7.0: location @php](https://www.ruby-forum.com/t/nginx-1-7-0-location-php/229984)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 12\
**Last updated:** [June 5, 2014, 5:37am UTC](https://www.ruby-forum.com/t/nginx-1-7-0-location-php/229984 "2014-06-05T05:37:09Z")

</div>

Hi all, I’m trying to understand why the use of this configuration code does not work: location ^~ /setup { auth\_basic “Restricted Access”; auth\_basic\_user\_file htpasswd; try\_files …

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

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