# Server

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

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

---

## [How to respond correctly to a POST request for a static file?](https://www.ruby-forum.com/t/how-to-respond-correctly-to-a-post-request-for-a-static-file/215668)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [January 12, 2012, 11:15pm UTC](https://www.ruby-forum.com/t/how-to-respond-correctly-to-a-post-request-for-a-static-file/215668 "2012-01-12T23:15:03Z")

</div>

hi, I have a Facebook app hosted on nginx. Faceboook fetches the data by issuing a POST request for index.html before embedding it in their canvas. My server replies with 404, instead of the expected 405. If it was 4…

---

## [Nginx for windows 64 (not the cygwin)](https://www.ruby-forum.com/t/nginx-for-windows-64-not-the-cygwin/215675)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 9\
**Last updated:** [January 12, 2012, 10:41pm UTC](https://www.ruby-forum.com/t/nginx-for-windows-64-not-the-cygwin/215675 "2012-01-12T22:41:41Z")

</div>

hi i dont find the windows 64 bits build on the download section, what i’ve found is only the cygwin version Posted at Nginx Forum:

---

## [Error log file](https://www.ruby-forum.com/t/error-log-file/215465)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [January 12, 2012, 7:45pm UTC](https://www.ruby-forum.com/t/error-log-file/215465 "2012-01-12T19:45:04Z")

</div>

Hello, Using Nginx 1.0.11, I changed the error log file in my configuration to /var/log/nginx.error.log. The new log file gets filled as it is supposed to be, but the old file /nginx-repo/logs/error.log keeps getting…

---

## [【help to configure nginx proxy】](https://www.ruby-forum.com/t/help-to-configure-nginx-proxy/215683)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [January 12, 2012, 5:48pm UTC](https://www.ruby-forum.com/t/help-to-configure-nginx-proxy/215683 "2012-01-12T17:48:35Z")

</div>

Hello: I want to config a proxy server to access https backend, but nginx return 400, I dont how to config My config is: #user nobody; worker\_processes 3; error\_log logs/error.log; …

---

## [CPU affinity fixes](https://www.ruby-forum.com/t/cpu-affinity-fixes/215679)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [January 12, 2012, 4:37pm UTC](https://www.ruby-forum.com/t/cpu-affinity-fixes/215679 "2012-01-12T16:37:23Z")

</div>

Hi, Here are two patches for the CPU affinity setting feature. Code review and testing are appreciated. Regards,

---

## [Ngx\_lua module v0.4.0 released!](https://www.ruby-forum.com/t/ngx-lua-module-v0-4-0-released/215644)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [January 11, 2012, 4:14pm UTC](https://www.ruby-forum.com/t/ngx-lua-module-v0-4-0-released/215644 "2012-01-11T16:14:38Z")

</div>

Hi, folks! After four months’ active development of our contributors, I’m happy to announce the v0.4.0 release of our ngx\_lua module. You can get the release tarball from the download page: https://github.com/chaosla…

---

## [Visual studio 2010 crash error](https://www.ruby-forum.com/t/visual-studio-2010-crash-error/215626)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [January 11, 2012, 11:23am UTC](https://www.ruby-forum.com/t/visual-studio-2010-crash-error/215626 "2012-01-11T11:23:09Z")

</div>

nginx 1.1.12 + openssl 1.0.0 + zlib 1.2.5 + pcre 8.21 visual studio 2010 building… nginx -s stop crash error… openssl 0.9.8 crash no… Posted at Nginx Forum:

---

## [PHP\_ADMIN\_VALUE and separate fcgi error\_log - are they possible?](https://www.ruby-forum.com/t/php-admin-value-and-separate-fcgi-error-log-are-they-possible/215589)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [January 10, 2012, 5:28pm UTC](https://www.ruby-forum.com/t/php-admin-value-and-separate-fcgi-error-log-are-they-possible/215589 "2012-01-10T17:28:52Z")

</div>

Hello, today I setup nginx 1.0.11 with multiple virtual hosts using Zend’s CE spawn-fcgi as a backend. All is working fine, but I can’t -propagate php’s ADMIN values to the virtualhosts (I tried to add location ~ .…

---

## [Https proxy to apache server](https://www.ruby-forum.com/t/https-proxy-to-apache-server/215608)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [January 10, 2012, 5:13pm UTC](https://www.ruby-forum.com/t/https-proxy-to-apache-server/215608 "2012-01-10T17:13:23Z")

</div>

I got an namebased vhost apache server running on 192.168.24.66 for calendar.powercraft.nl on both port 80 and 443. I need nginx to make a proxy pass for port 443 to the apache server. I don’t mind if it uses the port…

---

## [Meaning of notice "using inherited sockets"](https://www.ruby-forum.com/t/meaning-of-notice-using-inherited-sockets/215592)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [January 10, 2012, 1:38pm UTC](https://www.ruby-forum.com/t/meaning-of-notice-using-inherited-sockets/215592 "2012-01-10T13:38:44Z")

</div>

Can anyone confirm whether or not the below is cause for concern? 2012/01/09 13:21:13 \[notice\] 364#0: using inherited sockets from “/opt/nginx/ sbin/nginx” 2012/01/09 13:21:13 \[notice\] 470#0: using inherited sockets…

---

## [nGinX HTTP-Code 200 / 404](https://www.ruby-forum.com/t/nginx-http-code-200-404/215606)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [January 10, 2012, 11:34am UTC](https://www.ruby-forum.com/t/nginx-http-code-200-404/215606 "2012-01-10T11:34:59Z")

</div>

Hy, We have that problem, that a site is not reachable throught nginx with the domain name (for example www.foobar.org), even the websites are reachable without nginx directly to apache. This problem is not time spec…

---

## [Setting +input+ headers for an upstream server depending on the request's path+method](https://www.ruby-forum.com/t/setting-input-headers-for-an-upstream-server-depending-on-the-requests-path-method/215597)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [January 9, 2012, 10:47pm UTC](https://www.ruby-forum.com/t/setting-input-headers-for-an-upstream-server-depending-on-the-requests-path-method/215597 "2012-01-09T22:47:40Z")

</div>

Hello, I’m experimenting with having nginx prepare the request to my application server in such way I can avoid implementing a router there. In this example, I tried to simulate rails’ restful routes for a blog post …

---

## [Proxy\_set\_header X-Time (TIME)](https://www.ruby-forum.com/t/proxy-set-header-x-time-time/215593)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [January 9, 2012, 10:01pm UTC](https://www.ruby-forum.com/t/proxy-set-header-x-time-time/215593 "2012-01-09T22:01:15Z")

</div>

Hi, I want add Current Time or Request Time in my header. Please let me know which variable I can use in, add\_header X-Time $(TIME) proxy\_set\_header X-Time $(TIME) Thanks, Hiren Posted at Nginx Forum:

---

## [Error during configuration of nginx with html and cgi-bin](https://www.ruby-forum.com/t/error-during-configuration-of-nginx-with-html-and-cgi-bin/215578)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [January 9, 2012, 10:18am UTC](https://www.ruby-forum.com/t/error-during-configuration-of-nginx-with-html-and-cgi-bin/215578 "2012-01-09T10:18:16Z")

</div>

Hi I am configuring the nginx , I have added the following entry in nginx.conf server { listen 80; server\_name localhost; include /etc/nginx/mime.types; default\_type application/octet-stream; locati…

---

## [NginX RewriteMap : How to?](https://www.ruby-forum.com/t/nginx-rewritemap-how-to/215565)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [January 8, 2012, 10:15pm UTC](https://www.ruby-forum.com/t/nginx-rewritemap-how-to/215565 "2012-01-08T22:15:45Z")

</div>

Hi, I’m wondering how can I emulate the popular Apache’s RewriteMap feature. I tried several things, without success : Posted at Nginx Forum:

---

## [Fastcgi cache bypass empty body](https://www.ruby-forum.com/t/fastcgi-cache-bypass-empty-body/215508)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [January 8, 2012, 1:50pm UTC](https://www.ruby-forum.com/t/fastcgi-cache-bypass-empty-body/215508 "2012-01-08T13:50:05Z")

</div>

Hi All, currently we are using nginx with fastcgi\_cache with php backend. For some conditions php returns an empty body (that we can not find the cause) but sends some headers and nginx thinks it is valid. So it store…

---

## [Tomcat servlet error?](https://www.ruby-forum.com/t/tomcat-servlet-error/215552)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [January 8, 2012, 6:21am UTC](https://www.ruby-forum.com/t/tomcat-servlet-error/215552 "2012-01-08T06:21:26Z")

</div>

I have deploy the webapps of tomcat in the /usr/share/nginx/html/tomcat/webapps but when I try it , a error occur. http://ip/examples/servlets/ nginx error! The page you are looking for is not found. but all the js…

---

## [How to load a TRUSTED Client CA](https://www.ruby-forum.com/t/how-to-load-a-trusted-client-ca/215530)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [January 8, 2012, 12:11am UTC](https://www.ruby-forum.com/t/how-to-load-a-trusted-client-ca/215530 "2012-01-08T00:11:36Z")

</div>

I need to specify a CA file to “ssl\_client\_certificate” directive. This crt is generated by openssl x509 command with “-trustout” parameter, so starts with “----BEGIN TRUSTED CERTIFICATE-----”, rather than common “---…

---

## [Rewrite for subdomain](https://www.ruby-forum.com/t/rewrite-for-subdomain/215547)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [January 8, 2012, 12:01am UTC](https://www.ruby-forum.com/t/rewrite-for-subdomain/215547 "2012-01-08T00:01:41Z")

</div>

I want to set a rewrite rule for redirection of search.php?q=word to word.domain.com I used the following rule but did not work. rewrite ^(.\*).$server\_name /search.php?q=$1 permanent; Posted at Nginx Forum:

---

## [Disabling logging of absolute paths](https://www.ruby-forum.com/t/disabling-logging-of-absolute-paths/215541)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [January 7, 2012, 9:58pm UTC](https://www.ruby-forum.com/t/disabling-logging-of-absolute-paths/215541 "2012-01-07T21:58:11Z")

</div>

Is there a switch to suppress the logging of absolute paths in the log files? Only paths relative to the html directory should be logged. Reason: I don’t want disclose my file system structure when posting log excerp…

---

## [How to see nginx rps (requests per second)](https://www.ruby-forum.com/t/how-to-see-nginx-rps-requests-per-second/215472)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 7\
**Last updated:** [January 7, 2012, 7:19pm UTC](https://www.ruby-forum.com/t/how-to-see-nginx-rps-requests-per-second/215472 "2012-01-07T19:19:33Z")

</div>

Hi Guys, I have enable stub module and location /status/ in nginx.conf All I see just : Active connections: 1 server accepts handled requests 478077 478077 478271 Reading: 0 Writing: 1 Waiting: 0 How can I know wh…

---

## [Reverse proxy root folder only](https://www.ruby-forum.com/t/reverse-proxy-root-folder-only/215528)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [January 7, 2012, 11:03am UTC](https://www.ruby-forum.com/t/reverse-proxy-root-folder-only/215528 "2012-01-07T11:03:11Z")

</div>

I have an nginx serverset up and I’m looking for a way to only reverse proxy the contents of the root folder. I’m using a location regex with a list of the files in root that are allowed and then a second catch-all lo…

---

## [How to force SNI only connections, or have a fallback non-SNI server?](https://www.ruby-forum.com/t/how-to-force-sni-only-connections-or-have-a-fallback-non-sni-server/191522)

<div class="topic-metadata">

**Author:** [@Tiago\_Freire](https://www.ruby-forum.com/u/Tiago_Freire)\
**Replies:** 7\
**Last updated:** [January 6, 2012, 9:37pm UTC](https://www.ruby-forum.com/t/how-to-force-sni-only-connections-or-have-a-fallback-non-sni-server/191522 "2012-01-06T21:37:46Z")

</div>

Hi, I have heard about nginx before, and I am now considering to use it for several reasons, perfomance is one of them. I have to put several servers with EV certificates behind a single IP though, and I noticed ngin…

---

## [Why my php file in subdirectory doesn't work？](https://www.ruby-forum.com/t/why-my-php-file-in-subdirectory-doesnt-work/212281)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 19\
**Last updated:** [January 6, 2012, 3:24pm UTC](https://www.ruby-forum.com/t/why-my-php-file-in-subdirectory-doesnt-work/212281 "2012-01-06T15:24:34Z")

</div>

Hello everyone， I am working on an centos6 with nginx 1.0.6, php 5.3.6, and fpm. I found that php file in my subdirectory returns a 404,but in nginx home direcory works fine. For example , a phpinfo.php file works fi…

---

## [Plans to integrate HeadersMore module?](https://www.ruby-forum.com/t/plans-to-integrate-headersmore-module/212479)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [January 6, 2012, 2:54pm UTC](https://www.ruby-forum.com/t/plans-to-integrate-headersmore-module/212479 "2012-01-06T14:54:14Z")

</div>

Hello, Any plans to integrate the HeadersMore module (Headers More | NGINX) to standard nginx? It’s a very handy tool… especially when you need to modify headers for responses like 401. Just trying to minimize the …

---

## [Invitation to connect on LinkedIn](https://www.ruby-forum.com/t/invitation-to-connect-on-linkedin/215515)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [January 6, 2012, 1:36pm UTC](https://www.ruby-forum.com/t/invitation-to-connect-on-linkedin/215515 "2012-01-06T13:36:53Z")

</div>

LinkedIn I’d like to add you to my professional network on LinkedIn. karthik karthik raman India Confirm that you know karthik raman: – You are receiving Invitation to Connect emails. Click to unsubscribe: (c)…

---

## [Need help getting perl cgis to work](https://www.ruby-forum.com/t/need-help-getting-perl-cgis-to-work/215479)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [January 6, 2012, 3:42am UTC](https://www.ruby-forum.com/t/need-help-getting-perl-cgis-to-work/215479 "2012-01-06T03:42:15Z")

</div>

hey folks, ive been running apache for years but now trying to use nginx. I have nginx and php(with fastcgi) working fine, but whenever I try to bring up my web page that has a perl cgi on it, it just downloads the sc…

---

## [Changing worker user account causes throttling of response size?](https://www.ruby-forum.com/t/changing-worker-user-account-causes-throttling-of-response-size/215487)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [January 5, 2012, 5:36pm UTC](https://www.ruby-forum.com/t/changing-worker-user-account-causes-throttling-of-response-size/215487 "2012-01-05T17:36:49Z")

</div>

Hi all, I’m setting up Nginx on a RHEL machine. I am proxying to an ASP.NETapplication. The ASP.NET application has some nifty built-in document viewer tool, and so it often downloads relatively large files (in the …

---

## [Rewrite N|next flag in apache](https://www.ruby-forum.com/t/rewrite-n-next-flag-in-apache/215474)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [January 5, 2012, 4:23pm UTC](https://www.ruby-forum.com/t/rewrite-n-next-flag-in-apache/215474 "2012-01-05T16:23:03Z")

</div>

Hi everyone, I’m writing here because i have rewrite problems on Nginx. First of all i will explain to you what result i’m expecting. For example i have this URL : http://www.mydomain.com/api/redirect/var1/value1/var…

---

## [Optimize nginx for uploading/download huge files](https://www.ruby-forum.com/t/optimize-nginx-for-uploading-download-huge-files/215420)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [January 5, 2012, 2:05pm UTC](https://www.ruby-forum.com/t/optimize-nginx-for-uploading-download-huge-files/215420 "2012-01-05T14:05:25Z")

</div>

Hello everyone, Firstly, I’m sorry for posting the same question here and there (How to forum). It is urgent issue to me. Could you give me a tip for which directives and values I have to set for the optimization? I…

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

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