# Server

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

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

---

## [How to log virtual server name](https://www.ruby-forum.com/t/how-to-log-virtual-server-name/217283)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 8\
**Last updated:** [August 7, 2013, 9:53pm UTC](https://www.ruby-forum.com/t/how-to-log-virtual-server-name/217283 "2013-08-07T21:53:10Z")

</div>

Hi All, We have a virtual hosting setup where multiple domains are delegated to the same server IP address, and Nginx acts as a caching proxy server in front of the web server. I am encountering 2 issues: Canno…

---

## [Ngx\_openresty devel version 1.4.1.3 released](https://www.ruby-forum.com/t/ngx-openresty-devel-version-1-4-1-3-released/236123)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [August 7, 2013, 5:44am UTC](https://www.ruby-forum.com/t/ngx-openresty-devel-version-1-4-1-3-released/236123 "2013-08-07T05:44:38Z")

</div>

Hello folks! I am happy to announce that the new development version of ngx\_openresty, 1.4.1.3, is now released: http://openresty.org/#Download Special thanks go to all our contributors and users for helping make th…

---

## [Writev function not implemented](https://www.ruby-forum.com/t/writev-function-not-implemented/236096)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 14\
**Last updated:** [August 7, 2013, 5:44am UTC](https://www.ruby-forum.com/t/writev-function-not-implemented/236096 "2013-08-07T05:44:03Z")

</div>

Hello, I have compiled nginx on ubuntu 12.04 but I’m seeing a really strange error when I try and POST a file through nginx. I get a line in my logs that says: 2013/08/02 17:01:11 \[crit\] 26#0: \*7 writev() “/var/lib/…

---

## [Obtaining req/s or connections/sec sent to a backend-server?](https://www.ruby-forum.com/t/obtaining-req-s-or-connections-sec-sent-to-a-backend-server/236119)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 1\
**Last updated:** [August 7, 2013, 3:06am UTC](https://www.ruby-forum.com/t/obtaining-req-s-or-connections-sec-sent-to-a-backend-server/236119 "2013-08-07T03:06:16Z")

</div>

Hello Nginx I understand that nginx when uses as a reverse proxy does not allow me to poll for stats regarding the amount of connections/requests sent to backend servers. Id like to know if there is creative way I can…

---

## [Fwd: Adding a header to the status page output](https://www.ruby-forum.com/t/fwd-adding-a-header-to-the-status-page-output/245935)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [August 7, 2013, 12:32am UTC](https://www.ruby-forum.com/t/fwd-adding-a-header-to-the-status-page-output/245935 "2013-08-07T00:32:02Z")

</div>

Hello ! Iam wondering if there is any way to add a custom header/footer to the output of the STATUS page? location /status { stub\_status on; } I tried a couple of thigns but for some reason apparently it got ignore…

---

## [Avice for my vhost configuration](https://www.ruby-forum.com/t/avice-for-my-vhost-configuration/236102)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 3\
**Last updated:** [August 6, 2013, 9:41pm UTC](https://www.ruby-forum.com/t/avice-for-my-vhost-configuration/236102 "2013-08-06T21:41:29Z")

</div>

Hello, I plan to configure my nginx server with a couple of vhosts. For each of them I want: to use php deny access begining by a dot not logging access to favicon So my configuration would look like that server { …

---

## [Allow access on a sublocation](https://www.ruby-forum.com/t/allow-access-on-a-sublocation/236116)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 7\
**Last updated:** [August 6, 2013, 5:23pm UTC](https://www.ruby-forum.com/t/allow-access-on-a-sublocation/236116 "2013-08-06T17:23:14Z")

</div>

Hi, this configuration does not work as expected : server { satisfy any; auth\_basic “DING DING SONG”; auth\_basic\_user\_file /etc/apache2/htpasswd; allow from CIDR; allow from CIDR; allow from CIDR; allow from CID…

---

## [Setting the status code](https://www.ruby-forum.com/t/setting-the-status-code/236108)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 4\
**Last updated:** [August 6, 2013, 1:03pm UTC](https://www.ruby-forum.com/t/setting-the-status-code/236108 "2013-08-06T13:03:15Z")

</div>

Hi, I’m wondering how I can set a status code and still deliver a custom web page? Specifically I want to use a status code of 403 Forbidden but depending on the exact reason I want to display different custom error …

---

## [HTTP/1.1 404 Not Found but status says 100% file transferred](https://www.ruby-forum.com/t/http-1-1-404-not-found-but-status-says-100-file-transferred/236114)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 0\
**Last updated:** [August 6, 2013, 12:01pm UTC](https://www.ruby-forum.com/t/http-1-1-404-not-found-but-status-says-100-file-transferred/236114 "2013-08-06T12:01:54Z")

</div>

Hi, I am trying to do a PUT via CURL and below is a glimpse of the request: \[root@flex-c1 ~\]# curl -o /dev/null -w “Connect:%{time\_connect}\\nTransfer Start:%{time\_starttransfer}\\nTotal Time:%{time\_total}\\n” -X PUT …

---

## [Nginx and WordPress in a subdirectory](https://www.ruby-forum.com/t/nginx-and-wordpress-in-a-subdirectory/236109)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [August 6, 2013, 8:29am UTC](https://www.ruby-forum.com/t/nginx-and-wordpress-in-a-subdirectory/236109 "2013-08-06T08:29:16Z")

</div>

Hello - I’ve got nginx as a front-end to Apache and am trying to serve a single WordPress site from a location on my site. Right now I would like to test the location, but it will eventually be served as /advertise.…

---

## [Nginx on Windows returns 504 Gateway Timeout when attempting to POST form using cURL via PHP](https://www.ruby-forum.com/t/nginx-on-windows-returns-504-gateway-timeout-when-attempting-to-post-form-using-curl-via-php/236106)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [August 6, 2013, 12:33am UTC](https://www.ruby-forum.com/t/nginx-on-windows-returns-504-gateway-timeout-when-attempting-to-post-form-using-curl-via-php/236106 "2013-08-06T00:33:24Z")

</div>

Hello, I have a fairly simple PHP script that I have used in the past, under Apache, to “simulate an HTTP form POST”. For some reason, when I attempt to do the same under nginx, the browser hangs until some timeout i…

---

## [PHP Fatal error](https://www.ruby-forum.com/t/php-fatal-error/245919)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [August 5, 2013, 6:40pm UTC](https://www.ruby-forum.com/t/php-fatal-error/245919 "2013-08-05T18:40:29Z")

</div>

Hello! I’m having, in a PHP form, when I’m submiting one email, the next error in error.log: 2013/08/03 21:39:22 \[error\] 19544#0: \*11 FastCGI sent in stderr: "PHP message: PHP Warning: require\_once(TEMPLATEPATH/fun…

---

## [Error building nginx 1.5.3 on Cygwin](https://www.ruby-forum.com/t/error-building-nginx-1-5-3-on-cygwin/245973)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 4\
**Last updated:** [August 5, 2013, 2:32pm UTC](https://www.ruby-forum.com/t/error-building-nginx-1-5-3-on-cygwin/245973 "2013-08-05T14:32:09Z")

</div>

Hello, I’m trying to build nginx 1.5.3 on Cygwin using Windows 7. I see the following output during “make”: cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -D FD\_ SETSIZE=2048 -I src/core …

---

## [Conditional balancing](https://www.ruby-forum.com/t/conditional-balancing/245962)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 3\
**Last updated:** [August 5, 2013, 7:05am UTC](https://www.ruby-forum.com/t/conditional-balancing/245962 "2013-08-05T07:05:20Z")

</div>

I am developing a webmail service where the user’s inbox and all related session variables will be loaded to one of many application servers which will be behind the balancer (running nginx). So, I need nginx to dire…

---

## [Why will nginx's map directive eat all ram?](https://www.ruby-forum.com/t/why-will-nginxs-map-directive-eat-all-ram/245941)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 8\
**Last updated:** [August 5, 2013, 5:17am UTC](https://www.ruby-forum.com/t/why-will-nginxs-map-directive-eat-all-ram/245941 "2013-08-05T05:17:52Z")

</div>

recently I try to use map directive to make my nginx.conf DRY. like below map $pid $public\_root { default public; } and in one of server directive I put below root $public\_root; I try to ab test with retrieve a stat…

---

## [Cannot build variables\_hash](https://www.ruby-forum.com/t/cannot-build-variables-hash/245848)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 9\
**Last updated:** [August 5, 2013, 4:14am UTC](https://www.ruby-forum.com/t/cannot-build-variables-hash/245848 "2013-08-05T04:14:11Z")

</div>

Upgraded from 1.2.9 to 1.4.1 and now started getting: \[emerg\] could not build the variables\_hash, you should increase either variables\_hash\_max\_size: 512 or variables\_hash\_bucket\_size: 64 Same configuration and even d…

---

## [Problem with subdomain in localhost](https://www.ruby-forum.com/t/problem-with-subdomain-in-localhost/236088)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [August 4, 2013, 10:37pm UTC](https://www.ruby-forum.com/t/problem-with-subdomain-in-localhost/236088 "2013-08-04T22:37:31Z")

</div>

Hello! I am trying to create subdomains in my localhost. I want for instance 2 domains, fil.localhost and test.localhost that point to 2 different locations. Although I have managed to accomplish that there is a probl…

---

## [Hide raw regular expression from $\_SERVER](https://www.ruby-forum.com/t/hide-raw-regular-expression-from-server/236074)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 5\
**Last updated:** [August 4, 2013, 11:40am UTC](https://www.ruby-forum.com/t/hide-raw-regular-expression-from-server/236074 "2013-08-04T11:40:15Z")

</div>

I am using a regular expression in a server\_name: server\_name ~^(?!web2\\.)(?\<account\>.+)\\.mydomain\\.com$; In PHP, or any language for that matter, if I: echo $\_SERVER\['server\_name'\]; //~^(?!web2\\.)(?.+)\\.…

---

## [Nginx-1.5.3](https://www.ruby-forum.com/t/nginx-1-5-3/236011)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [August 3, 2013, 6:55pm UTC](https://www.ruby-forum.com/t/nginx-1-5-3/236011 "2013-08-03T18:55:26Z")

</div>

Changes with nginx 1.5.3 30 Jul 2013 \*) Change in internal API: now u-\>length defaults to -1 if working with backends in unbuffered mode. \*) Change: now after receiving an in…

---

## [Except Homepage no page opening](https://www.ruby-forum.com/t/except-homepage-no-page-opening/245968)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [August 3, 2013, 1:28am UTC](https://www.ruby-forum.com/t/except-homepage-no-page-opening/245968 "2013-08-03T01:28:50Z")

</div>

Hi Can you please see my site www.techofweb.com I just migrated from another server None page except homepage is opening Please if somebody can reply uregently Thanks’ Atul Posted at Nginx Forum:

---

## [Set default nginx-conf in sites-enabled?](https://www.ruby-forum.com/t/set-default-nginx-conf-in-sites-enabled/236060)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [August 2, 2013, 2:55pm UTC](https://www.ruby-forum.com/t/set-default-nginx-conf-in-sites-enabled/236060 "2013-08-02T14:55:59Z")

</div>

I’ve several config-files in sites-enabled, all working fine. However, if a domain (foobar2.com) not is mentioned in a config, NGINX takes the conf-file of foobar1.com. How can i overrule this and make some sort of c…

---

## [Caching: Expires takes precedence over max-age](https://www.ruby-forum.com/t/caching-expires-takes-precedence-over-max-age/236039)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 1\
**Last updated:** [August 2, 2013, 2:01pm UTC](https://www.ruby-forum.com/t/caching-expires-takes-precedence-over-max-age/236039 "2013-08-02T14:01:03Z")

</div>

Hello, I have a trouble with nginx caching pages it shouldn’t cache. I have uwsgi\_cache enabled: uwsgi\_cache\_path /tmp/cache levels=1:2 keys\_zone=django:1m; location /test { uwsgi\_pass unix:/tmp/uwsgi.sock; uwsgi\_c…

---

## [Nginx, solaris, eventport](https://www.ruby-forum.com/t/nginx-solaris-eventport/235625)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 4\
**Last updated:** [August 1, 2013, 4:48pm UTC](https://www.ruby-forum.com/t/nginx-solaris-eventport/235625 "2013-08-01T16:48:31Z")

</div>

Hi. I’m using nginx on Solaris for years. For years I’ve been experiencing errors when eventport is on (with /dev/poll everything is fine, but I’m kinda perfectionist and I want to use native solaris features). I rea…

---

## [502 in Nginx as a reverse proxy whithout cache](https://www.ruby-forum.com/t/502-in-nginx-as-a-reverse-proxy-whithout-cache/236042)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [August 1, 2013, 12:53pm UTC](https://www.ruby-forum.com/t/502-in-nginx-as-a-reverse-proxy-whithout-cache/236042 "2013-08-01T12:53:38Z")

</div>

Hi, Currently, we use Nginx as a reverse proxy without cache. Last monday we’ve rolled out a new version of PHP application which has appeared a several 502 errors. First of all, i’ve applied the workaround explain…

---

## [Still 400 response code, but so weird this time](https://www.ruby-forum.com/t/still-400-response-code-but-so-weird-this-time/236038)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 6\
**Last updated:** [August 1, 2013, 12:13pm UTC](https://www.ruby-forum.com/t/still-400-response-code-but-so-weird-this-time/236038 "2013-08-01T12:13:18Z")

</div>

In access\_log file, huge numbers of log entries like this: 115.85.238.34 1764839163 - 0.242 \[01/Aug/2013:11:02:01 +0800\] “foo.bar.com” “-” 400 0 “-” “-” “-” log\_format defined in http conf block: ‘$remote\_addr $conn…

---

## [Max file size which can be transferred](https://www.ruby-forum.com/t/max-file-size-which-can-be-transferred/245918)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 4\
**Last updated:** [August 1, 2013, 12:12pm UTC](https://www.ruby-forum.com/t/max-file-size-which-can-be-transferred/245918 "2013-08-01T12:12:08Z")

</div>

Hi, I wanted to know whats the maximum file size which i can transfer using a simple CURL PUT/GET command. I ask this because when i try to send a file which is \>64KB, i get a HTTP/1.1 100 Continue message: File i …

---

## [Max connections for WebSocket SSL termination](https://www.ruby-forum.com/t/max-connections-for-websocket-ssl-termination/236040)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [August 1, 2013, 9:54am UTC](https://www.ruby-forum.com/t/max-connections-for-websocket-ssl-termination/236040 "2013-08-01T09:54:14Z")

</div>

Hey guys, I have been using nginx in my personal life for a couple of years, recently dropping totally apache and I must admit that this software rocks. Congrats to all the devs for the fantastic job in the new-even…

---

## [Rewrite difficulty](https://www.ruby-forum.com/t/rewrite-difficulty/228608)

<div class="topic-metadata">

**Author:** [@tseveendorj](https://www.ruby-forum.com/u/tseveendorj)\
**Replies:** 2\
**Last updated:** [August 1, 2013, 9:11am UTC](https://www.ruby-forum.com/t/rewrite-difficulty/228608 "2013-08-01T09:11:34Z")

</div>

Hello, I have difficulty to convert apache like rewrite to nginx. This is my config file of virtualhost on nginx. server { listen 80; server\_name 192.168.1.2; - Pastebin.com My installed php script should have followi…

---

## [External authentication using a custom script](https://www.ruby-forum.com/t/external-authentication-using-a-custom-script/220633)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 7\
**Last updated:** [August 1, 2013, 4:11am UTC](https://www.ruby-forum.com/t/external-authentication-using-a-custom-script/220633 "2013-08-01T04:11:55Z")

</div>

I would like to authenticate HTTP and HTTPS clients using an external script through Nginx. All the authentication scripts are already made and I will modify them in any way necessary to work with Nginx. The scripts…

---

## [File upload issue with Nginx (Reverse proxy+SSL negotiation) and Tomcat](https://www.ruby-forum.com/t/file-upload-issue-with-nginx-reverse-proxy-ssl-negotiation-and-tomcat/236019)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [July 31, 2013, 11:55pm UTC](https://www.ruby-forum.com/t/file-upload-issue-with-nginx-reverse-proxy-ssl-negotiation-and-tomcat/236019 "2013-07-31T23:55:07Z")

</div>

Configuration: ========== Nginx as reverse proxy + SSL negotiation Apache Tomcat. nginx version: nginx/1.5.2 built by gcc 4.1.2 20080704 (Red Hat 4.1.2-54) TLS SNI support disabled configure arguments: --wit…

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

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