# NGINX

**URL:** https://www.ruby-forum.com/c/server/nginx/21.md?page=7

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

---

## [Nginx as transparent tcp proxy](https://www.ruby-forum.com/t/nginx-as-transparent-tcp-proxy/244540)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [April 28, 2016, 10:47pm UTC](https://www.ruby-forum.com/t/nginx-as-transparent-tcp-proxy/244540 "2016-04-28T22:47:02Z")

</div>

Hi,everyone. How i can run nginx as transparent tcp proxy. Such as haproxy transparent.

---

## [Question about tmpfs](https://www.ruby-forum.com/t/question-about-tmpfs/244535)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [April 28, 2016, 9:58pm UTC](https://www.ruby-forum.com/t/question-about-tmpfs/244535 "2016-04-28T21:58:33Z")

</div>

Hello, I have a question about tmpfs. On my raspberry pi I with only 256 MB RAM df looks like. root@pi:~# df -h Filesystem Size Used Avail Use% Mounted on /dev/root 15G 2.0G 13G 14% / devtmpfs …

---

## [Nginx logrotate : permission denied](https://www.ruby-forum.com/t/nginx-logrotate-permission-denied/244533)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [April 28, 2016, 11:41am UTC](https://www.ruby-forum.com/t/nginx-logrotate-permission-denied/244533 "2016-04-28T11:41:05Z")

</div>

Hi, I am getting below error in error.log file post logrotate : open() “/var/log/nginx/access\_abcd.log” failed (13: Permission denied) post logrotate , new files with name /var/log/nginx/access\_abcd.log are getting c…

---

## [Naxsi as a dynamic module error on nginx 1.10.0](https://www.ruby-forum.com/t/naxsi-as-a-dynamic-module-error-on-nginx-1-10-0/244526)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 7\
**Last updated:** [April 28, 2016, 9:52am UTC](https://www.ruby-forum.com/t/naxsi-as-a-dynamic-module-error-on-nginx-1-10-0/244526 "2016-04-28T09:52:26Z")

</div>

I build naxsi-0.55rc1 as a module for nginx 1.10.0 and getting the following 2 different error on centos7 and centos6 Error on Centos6 nginx: \[emerg\] dlopen() “/etc/nginx/modules/ngx\_http\_naxsi\_module.so” failed (/et…

---

## [Unknown directive "geoip\_country"](https://www.ruby-forum.com/t/unknown-directive-geoip-country/244530)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [April 28, 2016, 12:15am UTC](https://www.ruby-forum.com/t/unknown-directive-geoip-country/244530 "2016-04-28T00:15:53Z")

</div>

Hi, I just upgraded nginx on my FreeBSD 10.3 server with the latest version provided by an up2date port tree, i.e. nginx/1.10.0. This version seems to not recognize the directive geoip\_country anymore although it was…

---

## [Nginx access\_log Buffer size, service not restarting](https://www.ruby-forum.com/t/nginx-access-log-buffer-size-service-not-restarting/244525)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [April 27, 2016, 4:05pm UTC](https://www.ruby-forum.com/t/nginx-access-log-buffer-size-service-not-restarting/244525 "2016-04-27T16:05:11Z")

</div>

i am trying to increase the buffer size of access\_log i have tried different options but all giving me errors access\_log /var/log/nginx/www.xxxxx.com/access.log main buffer=1024k; access\_log /var/log/nginx/www.xxxxx.c…

---

## [Nginx-1.10.0](https://www.ruby-forum.com/t/nginx-1-10-0/244522)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [April 27, 2016, 12:02pm UTC](https://www.ruby-forum.com/t/nginx-1-10-0/244522 "2016-04-27T12:02:45Z")

</div>

Changes with nginx 1.10.0 26 Apr 2016 \*) 1.10.x stable branch. – Maxim D. http://nginx.org/

---

## [Nginx rewrite & parameter full-url and file extensions](https://www.ruby-forum.com/t/nginx-rewrite-parameter-full-url-and-file-extensions/244523)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [April 26, 2016, 6:49pm UTC](https://www.ruby-forum.com/t/nginx-rewrite-parameter-full-url-and-file-extensions/244523 "2016-04-26T18:49:24Z")

</div>

Hi, I will try to be brief. I have the following nginx rewrite url: rewrite ^/(.\*)?$ /index.php?completeURL=$1 last; I want a url like: http://mywebsite.com/http://www.otherwebsite.com/dir1/dirx/article.php&id=2&cate…

---

## [Making Tomcat accessible only through nginx reverse proxy](https://www.ruby-forum.com/t/making-tomcat-accessible-only-through-nginx-reverse-proxy/244490)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [April 26, 2016, 4:07am UTC](https://www.ruby-forum.com/t/making-tomcat-accessible-only-through-nginx-reverse-proxy/244490 "2016-04-26T04:07:54Z")

</div>

I have a Tomcat server serving a web application and I have a Nginx server running in front of it as a reverse proxy. Both the servers are on Intranet, in the same domain network. The issue I am facing is, the tomcat…

---

## [Question about reverse proxies and WAFs](https://www.ruby-forum.com/t/question-about-reverse-proxies-and-wafs/244512)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 5\
**Last updated:** [April 25, 2016, 5:51pm UTC](https://www.ruby-forum.com/t/question-about-reverse-proxies-and-wafs/244512 "2016-04-25T17:51:38Z")

</div>

Hi all, How are you? First of all excuse my english as it is not my mother tongue. I’d like to ask a rather general question which is not nginx specific: In my new job they use an Apache webserver running mod\_pr…

---

## [Setting up proxy peers like HAproxy?](https://www.ruby-forum.com/t/setting-up-proxy-peers-like-haproxy/244503)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [April 25, 2016, 10:32am UTC](https://www.ruby-forum.com/t/setting-up-proxy-peers-like-haproxy/244503 "2016-04-25T10:32:20Z")

</div>

With HAproxy, if you use multiple proxies you can synchronize their states: https://cbonte.github.io/haproxy-dconv/configuration-1.5.html#3.5 This allows, for example, if you’re load balancing based on a header value…

---

## [Configure NGINX on windows to use LDAP](https://www.ruby-forum.com/t/configure-nginx-on-windows-to-use-ldap/244511)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [April 25, 2016, 10:24am UTC](https://www.ruby-forum.com/t/configure-nginx-on-windows-to-use-ldap/244511 "2016-04-25T10:24:10Z")

</div>

Hello All I would like to know what configuration is needed to configure NGINX on windows to use LDAP. My nginx.conf looks like below but am not able to start the nginx service. I have added the 'ldap\_server ProdLDA…

---

## [Log to a file inside a location block?](https://www.ruby-forum.com/t/log-to-a-file-inside-a-location-block/244508)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [April 23, 2016, 9:35pm UTC](https://www.ruby-forum.com/t/log-to-a-file-inside-a-location-block/244508 "2016-04-23T21:35:30Z")

</div>

Hello, Is there any way to log to a file which location block is taken? I’ve had times when I’ve messed up regular expressions in location blocks and it was difficult to track down the issue. Is there any option equiv…

---

## [502 Bad Gateway errors from Nginx when trying to access Tomcat](https://www.ruby-forum.com/t/502-bad-gateway-errors-from-nginx-when-trying-to-access-tomcat/244499)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [April 23, 2016, 9:51am UTC](https://www.ruby-forum.com/t/502-bad-gateway-errors-from-nginx-when-trying-to-access-tomcat/244499 "2016-04-23T09:51:00Z")

</div>

I have JIRA and Nginx running on the same server with Nginx installed to serve as a reverse proxy. From what I learnt from various sources, in the Tomcat server.xml file, I must add an address=“127.0.0.1” attribute so …

---

## [Redirect /login to /](https://www.ruby-forum.com/t/redirect-login-to/244494)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [April 21, 2016, 6:39pm UTC](https://www.ruby-forum.com/t/redirect-login-to/244494 "2016-04-21T18:39:39Z")

</div>

I have a wordpress site in which be default while accessing wp.geo.com it goes to login page wp.geo.com/login/ . But what i need when i access wp.geo.com, in browser address bar it should display as wp.geo.com but i…

---

## [Port redirect in URL](https://www.ruby-forum.com/t/port-redirect-in-url/244496)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 8\
**Last updated:** [April 21, 2016, 5:07pm UTC](https://www.ruby-forum.com/t/port-redirect-in-url/244496 "2016-04-21T17:07:22Z")

</div>

Hello, I’m going a bit crazy here and hoping for some help. I’ve set up a new Mailman installation on FreeBSD. The system is set as follows: Web ↔ nginx SSL termination and reverse proxy ↔ nginx + fcgiwrap + Mailman …

---

## [Only .json file not load using rewrite or internal redirection cycle while internally redirecting](https://www.ruby-forum.com/t/only-json-file-not-load-using-rewrite-or-internal-redirection-cycle-while-internally-redirecting/244493)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [April 21, 2016, 3:38pm UTC](https://www.ruby-forum.com/t/only-json-file-not-load-using-rewrite-or-internal-redirection-cycle-while-internally-redirecting/244493 "2016-04-21T15:38:33Z")

</div>

Hi, In nginx conf file I have written:- location /hello { alias /var/www/html/hello/some\_path/www; try\_files $uri $uri/ /helllo/some\_path/www/index.html; } location ~ /hello/(.\*).(css|js|html|eot|svg|ttf|wof…

---

## [Nginx-1.9.15](https://www.ruby-forum.com/t/nginx-1-9-15/244485)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [April 21, 2016, 7:59am UTC](https://www.ruby-forum.com/t/nginx-1-9-15/244485 "2016-04-21T07:59:24Z")

</div>

Changes with nginx 1.9.15 19 Apr 2016 \*) Bugfix: "recv() failed" errors might occur when using HHVM as a FastCGI server. \*) Bugfix: when using HTTP/2 and the "limit\_req" or "a…

---

## [Sending nginx errors to syslog but fuser -u still shows error file open by nginx](https://www.ruby-forum.com/t/sending-nginx-errors-to-syslog-but-fuser-u-still-shows-error-file-open-by-nginx/244488)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 4\
**Last updated:** [April 21, 2016, 5:11am UTC](https://www.ruby-forum.com/t/sending-nginx-errors-to-syslog-but-fuser-u-still-shows-error-file-open-by-nginx/244488 "2016-04-21T05:11:45Z")

</div>

I’ve tried putting this directive into the nginx config file in both the main and html sections: error\_log syslog:server=127.0.0.1,facility=local5 error; The file tests fine and reloads without issue, however if I do …

---

## [Redirection problem again in new rules](https://www.ruby-forum.com/t/redirection-problem-again-in-new-rules/244461)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 9\
**Last updated:** [April 20, 2016, 12:34pm UTC](https://www.ruby-forum.com/t/redirection-problem-again-in-new-rules/244461 "2016-04-20T12:34:35Z")

</div>

Hi, there are multiple apache redirection rules that were working successfully. for example something like this Redirect 301 /aaaa/bbbbbbb /aaaaa/bbbbbb.html Now i have converted this rule in nginx like this locati…

---

## [Nginx redirection problem in odoo](https://www.ruby-forum.com/t/nginx-redirection-problem-in-odoo/244486)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [April 20, 2016, 7:06am UTC](https://www.ruby-forum.com/t/nginx-redirection-problem-in-odoo/244486 "2016-04-20T07:06:17Z")

</div>

Hi all: I’m trying to print a report with product ean13 barcodes and the barcodes are printed blank. I think my problem is an incorrect redirection problem because I can see correctly the barcodes if I browse to the …

---

## [Advise for NTLM-Auth](https://www.ruby-forum.com/t/advise-for-ntlm-auth/244480)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 8\
**Last updated:** [April 20, 2016, 2:01am UTC](https://www.ruby-forum.com/t/advise-for-ntlm-auth/244480 "2016-04-20T02:01:57Z")

</div>

Hello, currently we run web applications on nginx accessible from MS clients part of a Windows Domain. the users are requested to authenticate via Basic-Auth (via HTTPS) which nginx validate against the domain activ…

---

## [Nginx returns 503 when it gets 403 from haproxy](https://www.ruby-forum.com/t/nginx-returns-503-when-it-gets-403-from-haproxy/244462)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 4\
**Last updated:** [April 18, 2016, 7:54pm UTC](https://www.ruby-forum.com/t/nginx-returns-503-when-it-gets-403-from-haproxy/244462 "2016-04-18T19:54:58Z")

</div>

In my environment I have Nginx terminating connections, then sending them to an HAProxy upstream. We’ve noticed that whenever HAProxy emts a 403 error (Forbidden, in response to our ACL rules), NGINX reports a 503 re…

---

## [$ssl\_client\_verify not working?](https://www.ruby-forum.com/t/ssl-client-verify-not-working/244452)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 4\
**Last updated:** [April 14, 2016, 11:52pm UTC](https://www.ruby-forum.com/t/ssl-client-verify-not-working/244452 "2016-04-14T23:52:58Z")

</div>

Hi, i was wanting to return a 403 when invalid client certificate submitted, however Nginx 1.9.6 returning 400 Bad Request, The SSL Certificate Error. Seems to return 403 fine when no certificate is submitted, but an…

---

## [Unknown directive "proxy\_ssl"](https://www.ruby-forum.com/t/unknown-directive-proxy-ssl/244460)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [April 14, 2016, 8:35pm UTC](https://www.ruby-forum.com/t/unknown-directive-proxy-ssl/244460 "2016-04-14T20:35:30Z")

</div>

Hi, I’m trying to configure Nginx 1.9.7 as a proxy server. This proxy server won’t serve as SSL termination for HTTPS requests, for which the proxy\_ssl directive sounds perfect. http://nginx.org/en/docs/stream/ngx\_st…

---

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

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [April 13, 2016, 3:16pm UTC](https://www.ruby-forum.com/t/load-balancing-available/244451 "2016-04-13T15:16:00Z")

</div>

Hello, I’m not yet an Nginx user, but have a question on it’s capacbility. I’ve had a look at the http load balancer, but cannot see anything that would allow me to set the % or number of servers in an upstream backen…

---

## [Upstream member liveness](https://www.ruby-forum.com/t/upstream-member-liveness/244438)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 7\
**Last updated:** [April 13, 2016, 9:36am UTC](https://www.ruby-forum.com/t/upstream-member-liveness/244438 "2016-04-13T09:36:36Z")

</div>

What is the scope of the upstream member liveness: is it per upstream group, or per vhost ? If the question is unclear, consider I have 3 nginx - one balancer and two backends, and the following config part on the n…

---

## [Redirection 301 create "Redirection loop" while using wordpress site](https://www.ruby-forum.com/t/redirection-301-create-redirection-loop-while-using-wordpress-site/244447)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 3\
**Last updated:** [April 13, 2016, 8:54am UTC](https://www.ruby-forum.com/t/redirection-301-create-redirection-loop-while-using-wordpress-site/244447 "2016-04-13T08:54:32Z")

</div>

Dear All, I am very new to nginx and trying to learn it from very basic. i have a website and i am willing to remove the “www” before my actual domain name. the solution so far i have find out on google is very simpl…

---

## [Gzip working for 443 but not 80 in same listener?](https://www.ruby-forum.com/t/gzip-working-for-443-but-not-80-in-same-listener/244453)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [April 12, 2016, 11:32pm UTC](https://www.ruby-forum.com/t/gzip-working-for-443-but-not-80-in-same-listener/244453 "2016-04-12T23:32:35Z")

</div>

I added port 80 in my listener. HTTPS server server { listen 80; listen 443 ssl; Gzip still works on 443, but css/js are not getting gzipped in port 80. My nginx.conf has gzip on; gzip\_vary on; gzip\_min\_length …

---

## [Does "include" use the "configuration prefix" or the "path prefix"?](https://www.ruby-forum.com/t/does-include-use-the-configuration-prefix-or-the-path-prefix/244441)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 4\
**Last updated:** [April 12, 2016, 6:15pm UTC](https://www.ruby-forum.com/t/does-include-use-the-configuration-prefix-or-the-path-prefix/244441 "2016-04-12T18:15:22Z")

</div>

I’ve read the documentation and it implies the “path prefix” would be used for the “include” directive. Example: “include mime.types” However, in practice, the “configuration prefix” is always used even if the file …

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

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