# Server

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

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

---

## [Tweak fastcgi\_buffer](https://www.ruby-forum.com/t/tweak-fastcgi-buffer/242751)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [July 29, 2015, 11:59pm UTC](https://www.ruby-forum.com/t/tweak-fastcgi-buffer/242751 "2015-07-29T23:59:14Z")

</div>

Hello, I need to tweak fastcgi\_buffer to 1m on a website that has heavy requests to avoid buffer. If I use a distro with 4096 pagesize, is it better to do 256x 4k or 4x 256k? \[root@web ~\]# getconf PAGESIZE 4096 \[…

---

## [Default access\_log buffering](https://www.ruby-forum.com/t/default-access-log-buffering/242806)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [July 29, 2015, 9:58pm UTC](https://www.ruby-forum.com/t/default-access-log-buffering/242806 "2015-07-29T21:58:53Z")

</div>

I was reading an article on performance on the Nginx site: Tuning NGINX for Performance - NGINX One thing mentioned was enabling buffering on the access\_log. However, the directive reference (Module ngx\_http\_log\_mod…

---

## [Upstart conf for managing nginx](https://www.ruby-forum.com/t/upstart-conf-for-managing-nginx/242779)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [July 29, 2015, 6:37pm UTC](https://www.ruby-forum.com/t/upstart-conf-for-managing-nginx/242779 "2015-07-29T18:37:21Z")

</div>

Hello, I wrote a small upstart script to stop/start nginx through upstart. This is how it looks description “nginx http daemon” start on (filesystem and net-device-up IFACE=lo) stop on runlevel \[!2345\] expect deam…

---

## [403 errors with standard browser, pages work with GUI browser](https://www.ruby-forum.com/t/403-errors-with-standard-browser-pages-work-with-gui-browser/242804)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [July 29, 2015, 5:23pm UTC](https://www.ruby-forum.com/t/403-errors-with-standard-browser-pages-work-with-gui-browser/242804 "2015-07-29T17:23:45Z")

</div>

Hi, I’ve run across several websites where I get a 403 error when I connect to them with my standard webbrowser (lynx), yet the very same URIs work with the GUI browser fallback (Firef\*x). Example link: http://blog.…

---

## [Log files as non root user](https://www.ruby-forum.com/t/log-files-as-non-root-user/242796)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [July 29, 2015, 3:53pm UTC](https://www.ruby-forum.com/t/log-files-as-non-root-user/242796 "2015-07-29T15:53:48Z")

</div>

Hello Everyone, I am trying to configure ngnix where logs and pid file are written to a custom path and owned as non root. When even I start ngnix these files are created and owned as root. In ngnix.conf I defined as…

---

## [Using dynamic access\_log, automatically create parent directory](https://www.ruby-forum.com/t/using-dynamic-access-log-automatically-create-parent-directory/242788)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [July 29, 2015, 12:46am UTC](https://www.ruby-forum.com/t/using-dynamic-access-log-automatically-create-parent-directory/242788 "2015-07-29T00:46:00Z")

</div>

We use a dynamic value for access logs: access\_log /var/log/nginx/domains/$host/access.log main; However, if the $host directory does not exist in /var/log/nginx/domains nginx fails with an error creating the access l…

---

## [GeoIP data in access\_log Nginx](https://www.ruby-forum.com/t/geoip-data-in-access-log-nginx/242792)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [July 28, 2015, 2:43pm UTC](https://www.ruby-forum.com/t/geoip-data-in-access-log-nginx/242792 "2015-07-28T14:43:10Z")

</div>

Hello World, I would like to know if is possible to put GeoIP data (country for exemple) in my log access (nginx) I enabled the GeoIP module in my nginx (configure) and i would like to use the “$geoip\_country\_name”…

---

## [How to run nginx unit tests?](https://www.ruby-forum.com/t/how-to-run-nginx-unit-tests/242745)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [July 27, 2015, 9:30pm UTC](https://www.ruby-forum.com/t/how-to-run-nginx-unit-tests/242745 "2015-07-27T21:30:59Z")

</div>

Hello … I just built and installed nginx on my Linux system. Are there any unit/smoke/regression tests available to test the install? Thanks for your help. Posted at Nginx Forum:

---

## [Nginx response with persistence session and backend server failure](https://www.ruby-forum.com/t/nginx-response-with-persistence-session-and-backend-server-failure/242790)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [July 27, 2015, 8:03pm UTC](https://www.ruby-forum.com/t/nginx-response-with-persistence-session-and-backend-server-failure/242790 "2015-07-27T20:03:21Z")

</div>

Hello all, I was reading Nginx documentation http://nginx.org/en/docs/http/ngx\_http\_upstream\_module.html?&\_ga=1.189051176.2090890265.1437394769#sticky\_cookie on persistence session using cookie and below is from docu…

---

## [Is SSL and Compression never secure in nginx?](https://www.ruby-forum.com/t/is-ssl-and-compression-never-secure-in-nginx/242794)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 3\
**Last updated:** [July 27, 2015, 7:36pm UTC](https://www.ruby-forum.com/t/is-ssl-and-compression-never-secure-in-nginx/242794 "2015-07-27T19:36:28Z")

</div>

Hi, I am working in a project where a password-protected extranet application is behind an nginx proxy using ssl. Now I asked the admin to enable server-side http-compression because we tend to have rather lengthy j…

---

## [Alias regex use causing core dump as of nginx 1.7.1](https://www.ruby-forum.com/t/alias-regex-use-causing-core-dump-as-of-nginx-1-7-1/242786)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [July 27, 2015, 1:27pm UTC](https://www.ruby-forum.com/t/alias-regex-use-causing-core-dump-as-of-nginx-1-7-1/242786 "2015-07-27T13:27:17Z")

</div>

Hi, after upgrading from the v1.6.3 to v1.8.0 stable branch an alias I used for Roundcubemail no longer works. I traced the issue back to a probable change made in nginx v1.7.1: “Bugfix: the “alias” directive used in…

---

## [Optimzing hard drive IO for proxy\_pass](https://www.ruby-forum.com/t/optimzing-hard-drive-io-for-proxy-pass/242789)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [July 26, 2015, 5:32pm UTC](https://www.ruby-forum.com/t/optimzing-hard-drive-io-for-proxy-pass/242789 "2015-07-26T17:32:07Z")

</div>

I have server A with a large HDD at IDC 1 (TB hdd) I have server B with cheap bandwidth at IDC 2 (very small virtual server 20 GB hdd) I send all image requests to server B, and it caches from A. My problem is that …

---

## [Fetching a string by parsing URL](https://www.ruby-forum.com/t/fetching-a-string-by-parsing-url/242726)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 9\
**Last updated:** [July 25, 2015, 12:54am UTC](https://www.ruby-forum.com/t/fetching-a-string-by-parsing-url/242726 "2015-07-25T00:54:24Z")

</div>

I have a web server sitting behind Nginx. If there is an error, then I want to fetch some information from the url and pass it on to a static file as parameters. I have configured Nginx to fetch the query parameters …

---

## [Proxy\_pass redirection](https://www.ruby-forum.com/t/proxy-pass-redirection/242730)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 5\
**Last updated:** [July 25, 2015, 12:45am UTC](https://www.ruby-forum.com/t/proxy-pass-redirection/242730 "2015-07-25T00:45:38Z")

</div>

Hi, I’m new to Nginx and we are using for reverse proxy. I’m able to configured Nginx and it’s working but I’ve challenge in configuring it for Dynamic proxy\_pass. I’ve tried to use wild characters in proxy\_pass it’s…

---

## [Nginx writing to Cephfs](https://www.ruby-forum.com/t/nginx-writing-to-cephfs/242741)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 7\
**Last updated:** [July 24, 2015, 7:29pm UTC](https://www.ruby-forum.com/t/nginx-writing-to-cephfs/242741 "2015-07-24T19:29:01Z")

</div>

Hello, I’m having an issue with nginx writing to cephfs. Often I’m getting: writev() “/home/ceph/temp/44/94/1/0000119444” failed (4: Interrupted system call) while reading upstream looking with strace, this happens: …

---

## [Optimzing hard drive IO for proxy\_pass](https://www.ruby-forum.com/t/optimzing-hard-drive-io-for-proxy-pass/242775)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [July 24, 2015, 6:54pm UTC](https://www.ruby-forum.com/t/optimzing-hard-drive-io-for-proxy-pass/242775 "2015-07-24T18:54:33Z")

</div>

I have server A with a large HDD at IDC 1 (TB hdd) I have server B with cheap bandwidth at IDC 2 (very small virtual server 20 GB hdd) I send all image requests to server B, and it caches from A. My problem is that …

---

## [Keepalive\_timeout timeout causes high TTFB](https://www.ruby-forum.com/t/keepalive-timeout-timeout-causes-high-ttfb/242778)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [July 24, 2015, 4:30pm UTC](https://www.ruby-forum.com/t/keepalive-timeout-timeout-causes-high-ttfb/242778 "2015-07-24T16:30:52Z")

</div>

I am trying to further optimize SSL but if i enable keepalive\_timeout i get high TTFB as shown in the report below When i disable keepalive\_timeout , TTFB is fixed but nginx recommand keepalive\_timeout : http://n…

---

## [Nginx 1.8 proxying to Netty - timeout from upstream](https://www.ruby-forum.com/t/nginx-1-8-proxying-to-netty-timeout-from-upstream/242720)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [July 23, 2015, 5:46pm UTC](https://www.ruby-forum.com/t/nginx-1-8-proxying-to-netty-timeout-from-upstream/242720 "2015-07-23T17:46:49Z")

</div>

I have setup Nginx proxy to a Netty server. I am seeing a timeout from upstream, i.e. Netty. The consequence of this timeout is that the JSON payload response is truncated (as seen on browser developer tools) 2015/07…

---

## [Doubt about killapache attack on nginx server](https://www.ruby-forum.com/t/doubt-about-killapache-attack-on-nginx-server/242752)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [July 22, 2015, 8:16pm UTC](https://www.ruby-forum.com/t/doubt-about-killapache-attack-on-nginx-server/242752 "2015-07-22T20:16:48Z")

</div>

Hi, I am running nginx 1.0.11 standalone. Recently someone told me that my server is vulnerable to apache killer attack because when he run the following script, it shows “host seems vuln”. I searched on this forum a…

---

## [Problem with nginx + uwsgi](https://www.ruby-forum.com/t/problem-with-nginx-uwsgi/242761)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [July 20, 2015, 5:08pm UTC](https://www.ruby-forum.com/t/problem-with-nginx-uwsgi/242761 "2015-07-20T17:08:08Z")

</div>

Hi everybody, I’m having a problem with my nginx and uwsgi. I don’t really know what I’m doing wrong. Here is the configuration of nginx: server { listen 80; location /api/v1 { uws…

---

## [Conditional access log formatting?](https://www.ruby-forum.com/t/conditional-access-log-formatting/242757)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [July 20, 2015, 2:49pm UTC](https://www.ruby-forum.com/t/conditional-access-log-formatting/242757 "2015-07-20T14:49:07Z")

</div>

Hi, I’m using haproxy infront of some NGINX instances, but only for some instances which are being loadbalanced by haproxy, there are other instances which go straight through. I realise I need to change the logging …

---

## [Subdomain configuration problem](https://www.ruby-forum.com/t/subdomain-configuration-problem/242754)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [July 20, 2015, 2:14pm UTC](https://www.ruby-forum.com/t/subdomain-configuration-problem/242754 "2015-07-20T14:14:04Z")

</div>

Hi, I’m beginner in nginx, and i have searched google and mailing list but no luck. my nginx.conf: http{ server{ listen 80; server\_name example.com www.example.com; location / { proxy\_pass http://127.0.0.1:aaaa…

---

## [Subdomain configuration problem](https://www.ruby-forum.com/t/subdomain-configuration-problem/242712)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [July 19, 2015, 6:03pm UTC](https://www.ruby-forum.com/t/subdomain-configuration-problem/242712 "2015-07-19T18:03:08Z")

</div>

Hi, I’m beginner in nginx, and i have searched google and mailing list but no luck. my nginx.conf: http{ server{ listen 80; server\_name example.com www.example.com; location / { proxy\_pass http://127.0.0.1:aaaa…

---

## [Browser downloading html files](https://www.ruby-forum.com/t/browser-downloading-html-files/242711)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [July 18, 2015, 6:30pm UTC](https://www.ruby-forum.com/t/browser-downloading-html-files/242711 "2015-07-18T18:30:06Z")

</div>

Hi, Haven’t used nginx in few years and trying to get it into production. i’m having what will probably be a silly misconfiguration to most. I’m running nginx nginx-1.8.0-1.el7.ngx.x86\_64 CentOS 7 with PHP-fpm Wh…

---

## [Browser downloading html files](https://www.ruby-forum.com/t/browser-downloading-html-files/242770)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [July 18, 2015, 6:30pm UTC](https://www.ruby-forum.com/t/browser-downloading-html-files/242770 "2015-07-18T18:30:06Z")

</div>

Hi, Haven’t used nginx in few years and trying to get it into production. i’m having what will probably be a silly misconfiguration to most. I’m running nginx nginx-1.8.0-1.el7.ngx.x86\_64 CentOS 7 with PHP-fpm Wh…

---

## [Nginx-access-plus v0.1.0 released!](https://www.ruby-forum.com/t/nginx-access-plus-v0-1-0-released/242767)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [July 18, 2015, 2:32pm UTC](https://www.ruby-forum.com/t/nginx-access-plus-v0-1-0-released/242767 "2015-07-18T14:32:21Z")

</div>

Nginx-Access-Plus is a Nginx module allows limiting access to certain http request methods and client addresses. e.g. location / { allow\_method all get|head; allow\_method 192.168.1.0/24 post|delete; deny\_method a…

---

## [Nginx-access-plus v0.1.0 released!](https://www.ruby-forum.com/t/nginx-access-plus-v0-1-0-released/242710)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [July 18, 2015, 2:15pm UTC](https://www.ruby-forum.com/t/nginx-access-plus-v0-1-0-released/242710 "2015-07-18T14:15:59Z")

</div>

Nginx-Access-Plus is a Nginx module allows limiting access to certain http request methods and client addresses. e.g. location / { allow\_method all get|head; allow\_method 192.168.1.0/24 post|delete; deny\_method a…

---

## [Conditional access log formatting?](https://www.ruby-forum.com/t/conditional-access-log-formatting/242709)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [July 18, 2015, 12:38pm UTC](https://www.ruby-forum.com/t/conditional-access-log-formatting/242709 "2015-07-18T12:38:26Z")

</div>

Hi, I’m using haproxy infront of some NGINX instances, but only for some instances which are being loadbalanced by haproxy, there are other instances which go straight through. I realise I need to change the logging …

---

## [How to support file upload in Nginx 1.8](https://www.ruby-forum.com/t/how-to-support-file-upload-in-nginx-1-8/242124)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [July 17, 2015, 11:50pm UTC](https://www.ruby-forum.com/t/how-to-support-file-upload-in-nginx-1-8/242124 "2015-07-17T23:50:10Z")

</div>

Hi I am using Nginx 1.8 version, and Is it default support file upload, I found there is clientbodyinfileonly in Nginx, so is it official method to support file upload\>? Thanks~ – Rejoice,I Desire!

---

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

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [July 17, 2015, 6:21pm UTC](https://www.ruby-forum.com/t/try-files-setup/242642 "2015-07-17T18:21:53Z")

</div>

Hello, I’m quite new to the advanced nginx configuration so I will need your help. :slight\_smile: I’m currently working on a nginx + php5-fpm (chrooted) + wordpress setup. My basic setup works fine but I wanted to i…

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

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