# Server

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

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

---

## [CentOS 6.6, SELinux breaks Nginx 1.6.0](https://www.ruby-forum.com/t/centos-6-6-selinux-breaks-nginx-1-6-0/232835)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 11\
**Last updated:** [November 2, 2014, 7:36pm UTC](https://www.ruby-forum.com/t/centos-6-6-selinux-breaks-nginx-1-6-0/232835 "2014-11-02T19:36:55Z")

</div>

We have been successfully running Nginx installed from the official Nginx CentOS repositories for ages. Last night I upgraded two of my Nginx 1.6.0 servers from CentOS 6.5 to CentOS 6.6 and SELinux immediately broke …

---

## [Proxied request header names in SPDY are always lowercase](https://www.ruby-forum.com/t/proxied-request-header-names-in-spdy-are-always-lowercase/232873)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [November 1, 2014, 4:27pm UTC](https://www.ruby-forum.com/t/proxied-request-header-names-in-spdy-are-always-lowercase/232873 "2014-11-01T16:27:48Z")

</div>

Hello! I have a question about the behavior of proxing SPDY to HTTP with nginx. First, there is a configuration like the following. upstream app { server 127.0.0.1:80; keepalive 32; } server { listen 443 …

---

## [Hotlinking protection and try\_files problem](https://www.ruby-forum.com/t/hotlinking-protection-and-try-files-problem/234845)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 0\
**Last updated:** [November 1, 2014, 4:37am UTC](https://www.ruby-forum.com/t/hotlinking-protection-and-try-files-problem/234845 "2014-11-01T04:37:51Z")

</div>

Hi, I’m having some trouble getting hotlinking protection working with nginx and xenforo forum software. Currently I have; server { listen 80; … location / { try\_files $uri $uri/ /index.php?$uri&$args; } locati…

---

## [Invalidate a certain key in my cache](https://www.ruby-forum.com/t/invalidate-a-certain-key-in-my-cache/232851)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [October 31, 2014, 10:57pm UTC](https://www.ruby-forum.com/t/invalidate-a-certain-key-in-my-cache/232851 "2014-10-31T22:57:21Z")

</div>

I have nginx setup as a caching proxy, which caches redirect responses from backend servers. I want a way to invalidate a certain redirect/key from my cache. i usually go into my caching dir and grep/remove it. thoug…

---

## [How to disable access\_log to images but log 404s](https://www.ruby-forum.com/t/how-to-disable-access-log-to-images-but-log-404s/232836)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [October 30, 2014, 7:16pm UTC](https://www.ruby-forum.com/t/how-to-disable-access-log-to-images-but-log-404s/232836 "2014-10-30T19:16:29Z")

</div>

hi, I am suppressing the access\_log for images and other files in the /res/ directory: location ^~ /res/ { error\_page 404 /res/images/100candles-logo-square.png; expires 14d; access\_log off; } bu…

---

## [Nginx keep crashes when it is used in uwsgi](https://www.ruby-forum.com/t/nginx-keep-crashes-when-it-is-used-in-uwsgi/232833)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 5\
**Last updated:** [October 30, 2014, 3:54pm UTC](https://www.ruby-forum.com/t/nginx-keep-crashes-when-it-is-used-in-uwsgi/232833 "2014-10-30T15:54:51Z")

</div>

In my setup, i have nginx proxy in different machine, nginx server and uwsgi service. Once Nginx server receives the request from the proxy, it invokes the uwsgi call to using uwsgi socket, uwsgi module replies the …

---

## [Nginx-1.7.7](https://www.ruby-forum.com/t/nginx-1-7-7/232792)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [October 30, 2014, 12:24pm UTC](https://www.ruby-forum.com/t/nginx-1-7-7/232792 "2014-10-30T12:24:46Z")

</div>

Changes with nginx 1.7.7 28 Oct 2014 \*) Change: now nginx takes into account the "Vary" header line in a backend response while caching. \*) Feature: the "proxy\_force\_ranges",…

---

## [Can't disable logging of static resources like images](https://www.ruby-forum.com/t/cant-disable-logging-of-static-resources-like-images/232821)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [October 30, 2014, 12:52am UTC](https://www.ruby-forum.com/t/cant-disable-logging-of-static-resources-like-images/232821 "2014-10-30T00:52:40Z")

</div>

does the order of access\_log directives matter? I can’t disable the logging of static resources. I have the main config file which contains the access\_log directive at line #74 and includes a config file for each si…

---

## [GeoIP blocking behind AWS ELB + proxy protocol](https://www.ruby-forum.com/t/geoip-blocking-behind-aws-elb-proxy-protocol/232820)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [October 30, 2014, 12:05am UTC](https://www.ruby-forum.com/t/geoip-blocking-behind-aws-elb-proxy-protocol/232820 "2014-10-30T00:05:34Z")

</div>

Hi - I have nginx servers behind an AWS ELB. Because web sockets are leveraged, the ELB is configured as TCP load balancing with the proxy protocol option set. The true IP address of the client is extracted as variab…

---

## [Nginx on Windows Server 2008 with SSL](https://www.ruby-forum.com/t/nginx-on-windows-server-2008-with-ssl/232813)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [October 29, 2014, 11:53pm UTC](https://www.ruby-forum.com/t/nginx-on-windows-server-2008-with-ssl/232813 "2014-10-29T23:53:03Z")

</div>

Hello everyone! I’m new here on the forum, sorry if I wrote something down incorrectly. I am trying to run Nginx on Windows Server 2008 with SSL Certificate but always throws an error in the log file and it will not …

---

## [Upstream sent invalid status "-1 Copy failed" while reading response header from upstream](https://www.ruby-forum.com/t/upstream-sent-invalid-status-1-copy-failed-while-reading-response-header-from-upstream/232748)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 12\
**Last updated:** [October 29, 2014, 4:40pm UTC](https://www.ruby-forum.com/t/upstream-sent-invalid-status-1-copy-failed-while-reading-response-header-from-upstream/232748 "2014-10-29T16:40:27Z")

</div>

I have a joomla website and when I am trying to update a larger extension I get bad gateway (502) error. I am able to update all small (normal) extensions. I am getting this error in nginx error log: “upstream sent …

---

## [Windows nginx 1.7.7.2 Gryphon](https://www.ruby-forum.com/t/windows-nginx-1-7-7-2-gryphon/232554)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 10\
**Last updated:** [October 29, 2014, 4:01pm UTC](https://www.ruby-forum.com/t/windows-nginx-1-7-7-2-gryphon/232554 "2014-10-29T16:01:40Z")

</div>

22:55 15-10-2014 nginx 1.7.7.2 Gryphon Tell me a story and I’ll tell you my history. The Mock Turtle and the Gryphon are here to stay. What! Never heard of uglifying! If you don’t know what to uglify is, you are a s…

---

## [Nginx Load Balancing Two Squid Forward Proxyies](https://www.ruby-forum.com/t/nginx-load-balancing-two-squid-forward-proxyies/232811)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [October 29, 2014, 3:27pm UTC](https://www.ruby-forum.com/t/nginx-load-balancing-two-squid-forward-proxyies/232811 "2014-10-29T15:27:01Z")

</div>

Hi everyone, I’m trying to get nginx to work as a load balancer for 2 squid forward proxies. I’m running nginx 1.6.2 on a Centos 7 64bit machine. Here’s my config: Nginx.conf: user nginx; worker\_processes 1; err…

---

## [Rotating Access Logs with $date\_local](https://www.ruby-forum.com/t/rotating-access-logs-with-date-local/232794)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 6\
**Last updated:** [October 28, 2014, 8:06pm UTC](https://www.ruby-forum.com/t/rotating-access-logs-with-date-local/232794 "2014-10-28T20:06:23Z")

</div>

How can I format the $date\_local string? I want it to be date only, like 20141028, and then use it in the filename for access log. Is that possible? and if not, why? seems like a simple solution to a problem that m…

---

## [Denying illegal host headers blocks bots sometimes](https://www.ruby-forum.com/t/denying-illegal-host-headers-blocks-bots-sometimes/232789)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [October 28, 2014, 2:11pm UTC](https://www.ruby-forum.com/t/denying-illegal-host-headers-blocks-bots-sometimes/232789 "2014-10-28T14:11:16Z")

</div>

Hi, I’ve set my conf to deny illegal host headers, as per below option. However, I’ve noticed that bots from Google, Bing, Baidu, etc, when trying to fetch /robots.txt, often get blocked by nginx as it just terminate…

---

## [Can't locate nginx.pm in @INC](https://www.ruby-forum.com/t/cant-locate-nginx-pm-in-inc/232738)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [October 27, 2014, 7:43pm UTC](https://www.ruby-forum.com/t/cant-locate-nginx-pm-in-inc/232738 "2014-10-27T19:43:32Z")

</div>

When I try to start nginx with embedded perl I get the error “Can’t locate nginx.pm in @INC” @INC includes the folder I specified using --with-perl\_modules\_path, but doesn’t include the arch-name subfolder (i386-linu…

---

## [Intercepting proxy\_pass response](https://www.ruby-forum.com/t/intercepting-proxy-pass-response/232772)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [October 27, 2014, 6:59pm UTC](https://www.ruby-forum.com/t/intercepting-proxy-pass-response/232772 "2014-10-27T18:59:23Z")

</div>

Hi - I have somewhat of a unique requirement. If the http response from a proxied(proxy\_pass) request is 302, I want to clear a cookie and redirect to a specific url. Is is possible to intercept the 302 from the a…

---

## [Request big JS file very slow if enable gzip on](https://www.ruby-forum.com/t/request-big-js-file-very-slow-if-enable-gzip-on/232763)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 7\
**Last updated:** [October 27, 2014, 5:07am UTC](https://www.ruby-forum.com/t/request-big-js-file-very-slow-if-enable-gzip-on/232763 "2014-10-27T05:07:07Z")

</div>

Sorry about everyone, i posted in another forum but not got any response, really really hope can got your all help about the issue which already confuse me many days. I installed nginx-1.6.2-1.el6.ngx.x86\_64 with yum…

---

## [How to cache phpsessid?](https://www.ruby-forum.com/t/how-to-cache-phpsessid/232751)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [October 26, 2014, 11:07am UTC](https://www.ruby-forum.com/t/how-to-cache-phpsessid/232751 "2014-10-26T11:07:52Z")

</div>

How to cache phpsessid? Please, prompt me how to cache pages with phpsessid? Website set many different cookies. I can manage the page cache by them. However site send phpsessid for all user, even for user who not si…

---

## [Nginx serving Large static files on windows](https://www.ruby-forum.com/t/nginx-serving-large-static-files-on-windows/232742)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 12\
**Last updated:** [October 25, 2014, 7:51pm UTC](https://www.ruby-forum.com/t/nginx-serving-large-static-files-on-windows/232742 "2014-10-25T19:51:35Z")

</div>

directio 2G; So i allow uploads of 2Gigs and i do streaming and with files being streamed that are 2gigs in size you can imagine things could of been loading a bit slow. Now itpp2012 mentioned to me in another area…

---

## [Nginx Jasig CAS Integration](https://www.ruby-forum.com/t/nginx-jasig-cas-integration/237173)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [October 25, 2014, 7:32pm UTC](https://www.ruby-forum.com/t/nginx-jasig-cas-integration/237173 "2014-10-25T19:32:32Z")

</div>

How do we use CAS login screen to authenticate Nginx. We have deployed front end using EXT JS in Nginx server and Nginx server is using reverse proxy to get the data from JBOSS server (spring MVC rest services). We …

---

## [Can a map + regex be used to generate variables for YYYY-MM-DD-HH?](https://www.ruby-forum.com/t/can-a-map-regex-be-used-to-generate-variables-for-yyyy-mm-dd-hh/232702)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 6\
**Last updated:** [October 24, 2014, 8:12pm UTC](https://www.ruby-forum.com/t/can-a-map-regex-be-used-to-generate-variables-for-yyyy-mm-dd-hh/232702 "2014-10-24T20:12:39Z")

</div>

can a map + regex be used to generate variables for YYYY-MM-DD-HH? I cant use ‘if’ in the location i am trying this. – I know i can do: if ($time\_iso8601 ~ “^(\\d{4})-(\\d{2})-(\\d{2})”) { set $year $1; set $month $2…

---

## [Nginx and TLSv1](https://www.ruby-forum.com/t/nginx-and-tlsv1/232737)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [October 24, 2014, 7:04pm UTC](https://www.ruby-forum.com/t/nginx-and-tlsv1/232737 "2014-10-24T19:04:50Z")

</div>

I have abut 10 nginx servers, versions 1.0.15 and 0.8.55. I am patching for the poodle, so: ssl\_protocols TLSv1 TLSv1.1 TLSv1.2; is accept by nginx 1.0.15 but not 0.8.55 I would prefer to use just TLSv1 on 0.8.55 if …

---

## [Map within a map](https://www.ruby-forum.com/t/map-within-a-map/232725)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [October 23, 2014, 11:48pm UTC](https://www.ruby-forum.com/t/map-within-a-map/232725 "2014-10-23T23:48:41Z")

</div>

Can I use multiple maps with a single map ? For example; map $ngxvar1 $myvar1 { default 0; ~\*string 1; } map $ngxvar2 $myvar2 { default 0; ~\*string 1; } map $ngxvar3 $myvar3 { default 0; ~\*string 1; $myvar1 …

---

## [Re: nginx imap proxy - timeouts](https://www.ruby-forum.com/t/re-nginx-imap-proxy-timeouts/232710)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [October 23, 2014, 4:27pm UTC](https://www.ruby-forum.com/t/re-nginx-imap-proxy-timeouts/232710 "2014-10-23T16:27:46Z")

</div>

Hi Dominic, net.ipv4.ip\_local\_port\_range = 32768 61000 stack (see notes in \[1\]) and 2000 concurrent LDAP Perl request you’ll Regards Dominic \[1\] Linux Network Tuning for 2013 – Nate Wiger vs Software \[2\] http…

---

## [Mozilla SSL Config Generator](https://www.ruby-forum.com/t/mozilla-ssl-config-generator/232712)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [October 23, 2014, 2:25pm UTC](https://www.ruby-forum.com/t/mozilla-ssl-config-generator/232712 "2014-10-23T14:25:45Z")

</div>

nice! Redirecting to ssl-config.mozilla.org... did not tested all profiles, but intermediates gives A+ on ssllabs, supports every browser expect winxp/ie6 and has all the goodies enabled $ ./testssl.sh example.com #…

---

## [Nginx imap proxy - timeouts](https://www.ruby-forum.com/t/nginx-imap-proxy-timeouts/232706)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [October 23, 2014, 10:33am UTC](https://www.ruby-forum.com/t/nginx-imap-proxy-timeouts/232706 "2014-10-23T10:33:04Z")

</div>

nginx mailing list removed\_email\_address@domain.invalid http://mailman.nginx.org/mailman/listinfo/nginx

---

## [Delete or restart cookies - issue with chrome](https://www.ruby-forum.com/t/delete-or-restart-cookies-issue-with-chrome/232699)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [October 23, 2014, 9:23am UTC](https://www.ruby-forum.com/t/delete-or-restart-cookies-issue-with-chrome/232699 "2014-10-23T09:23:26Z")

</div>

Hi guys. We have an issue with chrome. Some day, some one make a redirect loop with own production nginx server. We fixed that but some users store the redirect loop on the cookies, and report that can’t show the we…

---

## [Nginx Security Hardening and Rules](https://www.ruby-forum.com/t/nginx-security-hardening-and-rules/232624)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 18\
**Last updated:** [October 21, 2014, 8:02pm UTC](https://www.ruby-forum.com/t/nginx-security-hardening-and-rules/232624 "2014-10-21T20:02:25Z")

</div>

So since i searched the Nginx Forum i can’t find anyone who has posted a topic for Nginx security rules or examples so i will be the first to share my examples regardless of how bad of a idea some people may think tha…

---

## [Nginx core dump issue](https://www.ruby-forum.com/t/nginx-core-dump-issue/232666)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [October 21, 2014, 7:31pm UTC](https://www.ruby-forum.com/t/nginx-core-dump-issue/232666 "2014-10-21T19:31:27Z")

</div>

Hi expert, I am running into nginx core dump issue and I need expert’s help. Thank you so much! We are running nginx 1.6.0 + mod\_security on RHEL 6.4. We are using the two ports with https. ■core dump GNU gdb (GDB)…

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

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