# Server

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

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

---

## [How to log http vs. https?](https://www.ruby-forum.com/t/how-to-log-http-vs-https/138282)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 2\
**Last updated:** [May 21, 2008, 5:30pm UTC](https://www.ruby-forum.com/t/how-to-log-http-vs-https/138282 "2008-05-21T17:30:17Z")

</div>

I would like to add information to my log to tell me whether a request was received and handled over http or if it was over https (I have nginx set up to handle ssl and non-ssl for the same server/ip/host). Right now …

---

## [Listen to all, handle some](https://www.ruby-forum.com/t/listen-to-all-handle-some/138267)

<div class="topic-metadata">

**Author:** [@BjSSSSrn\_Keil](https://www.ruby-forum.com/u/BjSSSSrn_Keil)\
**Replies:** 2\
**Last updated:** [May 21, 2008, 4:15pm UTC](https://www.ruby-forum.com/t/listen-to-all-handle-some/138267 "2008-05-21T16:15:07Z")

</div>

Hello, I am trying to change our load balancing here from a quite unflexible DNS loadbalancing to something more sophisticated. I tried pound but was absolutely not content with it. Now I am trying nginx, and even th…

---

## [POST timeouts with rails](https://www.ruby-forum.com/t/post-timeouts-with-rails/138270)

<div class="topic-metadata">

**Author:** [@igorclark](https://www.ruby-forum.com/u/igorclark)\
**Replies:** 1\
**Last updated:** [May 21, 2008, 4:07pm UTC](https://www.ruby-forum.com/t/post-timeouts-with-rails/138270 "2008-05-21T16:07:26Z")

</div>

Hi there Just trying a naïve configuration to get things started on a new app, I’m having problems. location / { rewrite ^/$ /flash/index redirect; error\_page 404 = @mongrels; } location @mongrels { p…

---

## [How to handle SSI subrequest with proxy\_store?](https://www.ruby-forum.com/t/how-to-handle-ssi-subrequest-with-proxy-store/138255)

<div class="topic-metadata">

**Author:** [@nightsailer](https://www.ruby-forum.com/u/nightsailer)\
**Replies:** 0\
**Last updated:** [May 21, 2008, 12:07pm UTC](https://www.ruby-forum.com/t/how-to-handle-ssi-subrequest-with-proxy-store/138255 "2008-05-21T12:07:51Z")

</div>

Hi everyone, I want to use proxy\_store to cache proxies shtml files, follow is my config: root /cache/$host; location / { index index.shtml; error\_page 404 = /fetch$uri; } ssi on; location /fetch { internal; p…

---

## [Nested location blocks?](https://www.ruby-forum.com/t/nested-location-blocks/138218)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 1\
**Last updated:** [May 21, 2008, 11:02am UTC](https://www.ruby-forum.com/t/nested-location-blocks/138218 "2008-05-21T11:02:29Z")

</div>

A few days ago someone mentioned here that nested location directives/blocks are supported, but are undocumented because there are some issues with it or it doesn’t work as expected in all cases, or something like tha…

---

## [Re: Override error code returned by proxy\_pass](https://www.ruby-forum.com/t/re-override-error-code-returned-by-proxy-pass/138221)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 0\
**Last updated:** [May 21, 2008, 6:00am UTC](https://www.ruby-forum.com/t/re-override-error-code-returned-by-proxy-pass/138221 "2008-05-21T06:00:10Z")

</div>

In the event that one of the upstream servers returns a 404 with an error page, I would like to detect that situation and throw it out, and return my own 404 error as directed by the nginx error\_page directive. Is thi…

---

## [Nginx IMAP proxy SSL problems in 0.6.31](https://www.ruby-forum.com/t/nginx-imap-proxy-ssl-problems-in-0-6-31/138206)

<div class="topic-metadata">

**Author:** [@coldtone](https://www.ruby-forum.com/u/coldtone)\
**Replies:** 0\
**Last updated:** [May 21, 2008, 3:03am UTC](https://www.ruby-forum.com/t/nginx-imap-proxy-ssl-problems-in-0-6-31/138206 "2008-05-21T03:03:21Z")

</div>

This is more of an FYI for anyone using nginx for IMAP proxying. We have been using 0.5.36 for ages, but decided the other day to upgrade to 0.6.31. At first everything seemed to work just fine. However I noticed tha…

---

## [Nginx as proxy server](https://www.ruby-forum.com/t/nginx-as-proxy-server/138175)

<div class="topic-metadata">

**Author:** [@Kaushal\_Shriyan](https://www.ruby-forum.com/u/Kaushal_Shriyan)\
**Replies:** 1\
**Last updated:** [May 20, 2008, 9:53pm UTC](https://www.ruby-forum.com/t/nginx-as-proxy-server/138175 "2008-05-20T21:53:27Z")

</div>

Hi Can any one here point me to step by step guide to configure a simple proxy server using nginx Thanks and Regards Kaushal

---

## [Re: How to block POST requests?](https://www.ruby-forum.com/t/re-how-to-block-post-requests/138176)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 0\
**Last updated:** [May 20, 2008, 8:58pm UTC](https://www.ruby-forum.com/t/re-how-to-block-post-requests/138176 "2008-05-20T20:58:29Z")

</div>

Thank you. Yes, that must be it! I am compiling from source and when I checked my build line I do indeed specify: --without-http\_rewrite\_module so I will remove that, recompile and try again. Thank you - great catch…

---

## [PHP processes & children](https://www.ruby-forum.com/t/php-processes-children/138147)

<div class="topic-metadata">

**Author:** [@igorclark](https://www.ruby-forum.com/u/igorclark)\
**Replies:** 2\
**Last updated:** [May 20, 2008, 8:27pm UTC](https://www.ruby-forum.com/t/php-processes-children/138147 "2008-05-20T20:27:10Z")

</div>

Hi there Not strictly an nginx question but don’t know where else to ask and I think some of you will have valuable opinions on this! nginx \<-- fastcgi --\> php Is it better to have 1 PHP master process on 1 port re-s…

---

## [Index files dont work in sub folder](https://www.ruby-forum.com/t/index-files-dont-work-in-sub-folder/138173)

<div class="topic-metadata">

**Author:** [@Pred](https://www.ruby-forum.com/u/Pred)\
**Replies:** 0\
**Last updated:** [May 20, 2008, 8:22pm UTC](https://www.ruby-forum.com/t/index-files-dont-work-in-sub-folder/138173 "2008-05-20T20:22:25Z")

</div>

Hi, my index files only work in root folder: http://rafb.net/p/4bmYpP93.html (NOPASTE) otherwise, he tries to reach www.localhost.com (?) localhost/ ← index works localhost/test ← index doesnt work Bye, Markus!

---

## [Mod\_expires in nginx](https://www.ruby-forum.com/t/mod-expires-in-nginx/138167)

<div class="topic-metadata">

**Author:** [@Alexis\_Torres\_Garni](https://www.ruby-forum.com/u/Alexis_Torres_Garni)\
**Replies:** 1\
**Last updated:** [May 20, 2008, 7:23pm UTC](https://www.ruby-forum.com/t/mod-expires-in-nginx/138167 "2008-05-20T19:23:29Z")

</div>

Hi guys, is there a module in nginx like the mod\_expires apache module? (mod\_expires - Apache HTTP Server)

---

## [Re: How to block POST requests?](https://www.ruby-forum.com/t/re-how-to-block-post-requests/138101)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 1\
**Last updated:** [May 20, 2008, 7:13pm UTC](https://www.ruby-forum.com/t/re-how-to-block-post-requests/138101 "2008-05-20T19:13:27Z")

</div>

You can also use regular expressions for a bit more flexibility. This way you can explicitly accept only the request methods you allow and return the error code of your choosing. Only allow GET and HEAD request met…

---

## [Nginx-0.7.0](https://www.ruby-forum.com/t/nginx-0-7-0/138004)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 7\
**Last updated:** [May 20, 2008, 4:35pm UTC](https://www.ruby-forum.com/t/nginx-0-7-0/138004 "2008-05-20T16:35:53Z")

</div>

Changes with nginx 0.7.0 19 May 2008 \*) Change: now the 0x00-0x1F, '"' and '\\' characters are escaped as \\xXX in an access\_log. Thanks to Maxim D.. \*) Change: now nginx al…

---

## [Re: Large number of invalid packets detected](https://www.ruby-forum.com/t/re-large-number-of-invalid-packets-detected/137935)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 4\
**Last updated:** [May 20, 2008, 4:09pm UTC](https://www.ruby-forum.com/t/re-large-number-of-invalid-packets-detected/137935 "2008-05-20T16:09:39Z")

</div>

Is it possible to deactive the iptables, due the fact that a lot of the high performance setups out there have seen that the connection tracking with iptables have really bad performance impacts? Thanks for your rep…

---

## [Nginx as proxy server](https://www.ruby-forum.com/t/nginx-as-proxy-server/138126)

<div class="topic-metadata">

**Author:** [@Kaushal\_Shriyan](https://www.ruby-forum.com/u/Kaushal_Shriyan)\
**Replies:** 3\
**Last updated:** [May 20, 2008, 3:14pm UTC](https://www.ruby-forum.com/t/nginx-as-proxy-server/138126 "2008-05-20T15:14:50Z")

</div>

Hi Is there a documentation on setting up nginx as proxy server Thanks and Regards Kaushal

---

## [God - start command exited with non-zero code = 1](https://www.ruby-forum.com/t/god-start-command-exited-with-non-zero-code-1/138067)

<div class="topic-metadata">

**Author:** [@arfon](https://www.ruby-forum.com/u/arfon)\
**Replies:** 2\
**Last updated:** [May 20, 2008, 10:41am UTC](https://www.ruby-forum.com/t/god-start-command-exited-with-non-zero-code-1/138067 "2008-05-20T10:41:02Z")

</div>

Hi, I’m trying to use god to monitor my mongrels. When they are running everything looks OK but when a mongrel process dies and god tries to restart it I get the following error: command exited with non-zero code = 1 …

---

## [Override error code returned by proxy\_pass](https://www.ruby-forum.com/t/override-error-code-returned-by-proxy-pass/138089)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 1\
**Last updated:** [May 20, 2008, 6:26am UTC](https://www.ruby-forum.com/t/override-error-code-returned-by-proxy-pass/138089 "2008-05-20T06:26:45Z")

</div>

I am using nginx as a load balancer. It passes requests to upstream servers using proxy\_pass. In the event that one of the upstream servers returns a 404 with an error page, I would like to detect that situation and t…

---

## [Nginx with a php forum, ajax function doesn't work](https://www.ruby-forum.com/t/nginx-with-a-php-forum-ajax-function-doesnt-work/138087)

<div class="topic-metadata">

**Author:** [@baalchina](https://www.ruby-forum.com/u/baalchina)\
**Replies:** 2\
**Last updated:** [May 20, 2008, 5:31am UTC](https://www.ruby-forum.com/t/nginx-with-a-php-forum-ajax-function-doesnt-work/138087 "2008-05-20T05:31:42Z")

</div>

Hello Everyone. I am using Apache Server for a web forum system(Discuz!,a php+mysql forum popular in China). Yesterday I changed Apache to Nginx, v0.63. The system runs good except one question:all functions using aj…

---

## [ANNOUNCE: nginx 0.7.0 for Windows (2000, XP, Vista)](https://www.ruby-forum.com/t/announce-nginx-0-7-0-for-windows-2000-xp-vista/138036)

<div class="topic-metadata">

**Author:** [@inspire22](https://www.ruby-forum.com/u/inspire22)\
**Replies:** 0\
**Last updated:** [May 19, 2008, 6:16pm UTC](https://www.ruby-forum.com/t/announce-nginx-0-7-0-for-windows-2000-xp-vista/138036 "2008-05-19T18:16:57Z")

</div>

nginx 0.7.0 for Windows (2000, XP, Vista) Download: http://www.kevinworthington.com/nginx/win32/ Read Me/Blog Post: http://www.kevinworthington.com/index.php/2008/05/19/nginx-070-for-windows/ Thanks, Kevin

---

## [Streaming dynamic downloads?](https://www.ruby-forum.com/t/streaming-dynamic-downloads/137908)

<div class="topic-metadata">

**Author:** [@jemminger](https://www.ruby-forum.com/u/jemminger)\
**Replies:** 8\
**Last updated:** [May 19, 2008, 5:17pm UTC](https://www.ruby-forum.com/t/streaming-dynamic-downloads/137908 "2008-05-19T17:17:02Z")

</div>

I have a php app running through fastcgi, and there’s a page where I stream out a file for the user to download: $output = dynamically\_generated\_content(); header(“Content-type: application/octet-stream”); header(“Co…

---

## [Re: Large number of invalid packets detected](https://www.ruby-forum.com/t/re-large-number-of-invalid-packets-detected/137977)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 1\
**Last updated:** [May 19, 2008, 2:40pm UTC](https://www.ruby-forum.com/t/re-large-number-of-invalid-packets-detected/137977 "2008-05-19T14:40:19Z")

</div>

Quick update: I change my nginx config from: keepalive\_timeout 30; to keepalive\_timeout 0; and the log entries have stopped almost completely. Prior to making this change I was getting somewhere between 1 - 10 en…

---

## [Posting to FastCGI in named locations](https://www.ruby-forum.com/t/posting-to-fastcgi-in-named-locations/137713)

<div class="topic-metadata">

**Author:** [@igorclark](https://www.ruby-forum.com/u/igorclark)\
**Replies:** 1\
**Last updated:** [May 19, 2008, 11:13am UTC](https://www.ruby-forum.com/t/posting-to-fastcgi-in-named-locations/137713 "2008-05-19T11:13:11Z")

</div>

Hi there Igor, I’m having real problems using PHP/FCGI, named locations and POST. I’ve been through our previous discussions, all the mailing list and the wiki and I just can’t work out what’s wrong, whether it’s a c…

---

## [Re: Large number of invalid packets detected](https://www.ruby-forum.com/t/re-large-number-of-invalid-packets-detected/137958)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 1\
**Last updated:** [May 18, 2008, 11:37pm UTC](https://www.ruby-forum.com/t/re-large-number-of-invalid-packets-detected/137958 "2008-05-18T23:37:15Z")

</div>

Futhermore here is some output from tcpdump which shows a very high rate of checksum errors in the packets: tcpdump -s1500 -vvv port 80|grep -i incorrect (I only ran this for a few seconds and here is what it output -…

---

## [Re: Large number of invalid packets detected](https://www.ruby-forum.com/t/re-large-number-of-invalid-packets-detected/137959)

<div class="topic-metadata">

**Author:** [@Brice\_F](https://www.ruby-forum.com/u/Brice_F)\
**Replies:** 0\
**Last updated:** [May 18, 2008, 11:19pm UTC](https://www.ruby-forum.com/t/re-large-number-of-invalid-packets-detected/137959 "2008-05-18T23:19:03Z")

</div>

Hi, On Sun, May 18, 2008 22:11, Rt Ibmer wrote: You didn’t show us what was important: the log that was produced. I included various samples from the different types of invalid state errors at the end of this mess…

---

## [Re: Large number of invalid packets detected](https://www.ruby-forum.com/t/re-large-number-of-invalid-packets-detected/137956)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 0\
**Last updated:** [May 18, 2008, 10:22pm UTC](https://www.ruby-forum.com/t/re-large-number-of-invalid-packets-detected/137956 "2008-05-18T22:22:02Z")

</div>

You didn’t show us what was important: the log that was produced. I included various samples from the different types of invalid state errors at the end of this message. If the rejected packet was a ACK/FIN, then i…

---

## [Some architecture questions for my mongrelian friends](https://www.ruby-forum.com/t/some-architecture-questions-for-my-mongrelian-friends/137856)

<div class="topic-metadata">

**Author:** [@sjmadsen](https://www.ruby-forum.com/u/sjmadsen)\
**Replies:** 6\
**Last updated:** [May 18, 2008, 5:15pm UTC](https://www.ruby-forum.com/t/some-architecture-questions-for-my-mongrelian-friends/137856 "2008-05-18T17:15:53Z")

</div>

Hey, I’m working on a project, and mongrel may be part of the stack, but I’ve got some more general questions and ideas I’m hoping to run by this list. The people on this list have a broader knowledgebase and more ex…

---

## [Re: Large number of invalid packets detected](https://www.ruby-forum.com/t/re-large-number-of-invalid-packets-detected/137936)

<div class="topic-metadata">

**Author:** [@Brice\_F](https://www.ruby-forum.com/u/Brice_F)\
**Replies:** 0\
**Last updated:** [May 18, 2008, 4:52pm UTC](https://www.ruby-forum.com/t/re-large-number-of-invalid-packets-detected/137936 "2008-05-18T16:52:58Z")

</div>

On Sun, May 18, 2008 09:11, Rt Ibmer wrote: Hi all - I’m using the latest version of nginx 6 and recently put iptables in place. I am seeing a significant number of matches for the following iptables rule: iptables…

---

## [Nginx\_uploadprogress\_module v0.4](https://www.ruby-forum.com/t/nginx-uploadprogress-module-v0-4/137937)

<div class="topic-metadata">

**Author:** [@Brice\_F](https://www.ruby-forum.com/u/Brice_F)\
**Replies:** 0\
**Last updated:** [May 18, 2008, 4:31pm UTC](https://www.ruby-forum.com/t/nginx-uploadprogress-module-v0-4/137937 "2008-05-18T16:31:17Z")

</div>

Hi, I’m proud to announce the availability of the version 0.4 of the nginx\_upload\_progress\_module. This version is now compatible with multiple worker\_process. As usual the module is available as an attachment to th…

---

## [Large number of invalid packets detected](https://www.ruby-forum.com/t/large-number-of-invalid-packets-detected/137920)

<div class="topic-metadata">

**Author:** [@Rt\_Ibmer](https://www.ruby-forum.com/u/Rt_Ibmer)\
**Replies:** 1\
**Last updated:** [May 18, 2008, 9:55am UTC](https://www.ruby-forum.com/t/large-number-of-invalid-packets-detected/137920 "2008-05-18T09:55:26Z")

</div>

Hi all - I’m using the latest version of nginx 6 and recently put iptables in place. I am seeing a significant number of matches for the following iptables rule: iptables -A INPUT -m state --state INVALID -j LOG --lo…

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

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