# Server

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

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

---

## [Proper usage of proxy\_store, proxy\_cache\_path](https://www.ruby-forum.com/t/proper-usage-of-proxy-store-proxy-cache-path/193761)

<div class="topic-metadata">

**Author:** [@Dan\_Trainor](https://www.ruby-forum.com/u/Dan_Trainor)\
**Replies:** 0\
**Last updated:** [August 24, 2010, 1:11am UTC](https://www.ruby-forum.com/t/proper-usage-of-proxy-store-proxy-cache-path/193761 "2010-08-24T01:11:53Z")

</div>

Hello - I was doing some experimenting and came across proxy\_store as part of Nginx’s HTTP Proxy Module I was able to implement it in my testing environment, and it operated exactly as I expected it to. It was nice …

---

## [Using server\_name variable in error\_log filename](https://www.ruby-forum.com/t/using-server-name-variable-in-error-log-filename/193744)

<div class="topic-metadata">

**Author:** [@Ondrej\_Jombik](https://www.ruby-forum.com/u/Ondrej_Jombik)\
**Replies:** 0\
**Last updated:** [August 23, 2010, 9:29pm UTC](https://www.ruby-forum.com/t/using-server-name-variable-in-error-log-filename/193744 "2010-08-23T21:29:58Z")

</div>

This is good way how to make separate error logging per-server section However we have many shared configuration files in conf.d/ and we have one especially dedicated to logging. Is there any variable containing ser…

---

## [Problem with NginxHttpRefererModule](https://www.ruby-forum.com/t/problem-with-nginxhttpreferermodule/193698)

<div class="topic-metadata">

**Author:** [@antituhan](https://www.ruby-forum.com/u/antituhan)\
**Replies:** 2\
**Last updated:** [August 23, 2010, 8:46am UTC](https://www.ruby-forum.com/t/problem-with-nginxhttpreferermodule/193698 "2010-08-23T08:46:27Z")

</div>

Hi, My server using nginx/0.8.49, and I try to using NginxHttpRefererModule. This is my configuration : location / { root /var/www/iKocok/; index index.html index.htm index.php; valid\_referers server\_na…

---

## [Set generated PHP output to Memcached server by Nginx transparently](https://www.ruby-forum.com/t/set-generated-php-output-to-memcached-server-by-nginx-transparently/193413)

<div class="topic-metadata">

**Author:** [@jkuang](https://www.ruby-forum.com/u/jkuang)\
**Replies:** 2\
**Last updated:** [August 22, 2010, 9:21pm UTC](https://www.ruby-forum.com/t/set-generated-php-output-to-memcached-server-by-nginx-transparently/193413 "2010-08-22T21:21:38Z")

</div>

Hi, I have set up for NginxHttpMemcachedModule and it works great reading output that I have set to Memcached server through my OWN PHP code. But that means I have to modify my PHP code to make it happens and sometime…

---

## [Anyone streaming video with http streaming?](https://www.ruby-forum.com/t/anyone-streaming-video-with-http-streaming/193703)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 0\
**Last updated:** [August 22, 2010, 9:01pm UTC](https://www.ruby-forum.com/t/anyone-streaming-video-with-http-streaming/193703 "2010-08-22T21:01:02Z")

</div>

Hi, Does anyone use Nginx to stream video using http streaming, i.e: an mpegts video source segmented in fragments tied up with an m3u8 file? I’m experiencing some issues.

---

## [Help converting Apache HTACCESS directives to nginx?](https://www.ruby-forum.com/t/help-converting-apache-htaccess-directives-to-nginx/192954)

<div class="topic-metadata">

**Author:** [@christek](https://www.ruby-forum.com/u/christek)\
**Replies:** 2\
**Last updated:** [August 22, 2010, 8:07pm UTC](https://www.ruby-forum.com/t/help-converting-apache-htaccess-directives-to-nginx/192954 "2010-08-22T20:07:53Z")

</div>

Hi, I’m brand new to nginx and I am trying to convert the app I wrote over from Apache as I need the ability to serve a lot of clients at once without a lot of overhead! I’m getting the hang of setting up nginx and Fa…

---

## [Vacation](https://www.ruby-forum.com/t/vacation/193019)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 2\
**Last updated:** [August 22, 2010, 4:47pm UTC](https://www.ruby-forum.com/t/vacation/193019 "2010-08-22T16:47:06Z")

</div>

I’m on vacation since August 10 to 24. – Igor S. http://sysoev.ru/en/

---

## [Reverse proxy for streaming live video](https://www.ruby-forum.com/t/reverse-proxy-for-streaming-live-video/193675)

<div class="topic-metadata">

**Author:** [@fedel](https://www.ruby-forum.com/u/fedel)\
**Replies:** 1\
**Last updated:** [August 22, 2010, 11:39am UTC](https://www.ruby-forum.com/t/reverse-proxy-for-streaming-live-video/193675 "2010-08-22T11:39:48Z")

</div>

I am having trouble streaming HTTP tunneled video through nginx reverse proxy. My frontend server is running nginx 0.7.67 and a backend server sources a live video feed (RTSP wrapped in HTTP, mime application/x-rtsp-t…

---

## [Re: trying to get something like proxypassreverse going](https://www.ruby-forum.com/t/re-trying-to-get-something-like-proxypassreverse-going/193682)

<div class="topic-metadata">

**Author:** [@c1sc0](https://www.ruby-forum.com/u/c1sc0)\
**Replies:** 0\
**Last updated:** [August 22, 2010, 4:58am UTC](https://www.ruby-forum.com/t/re-trying-to-get-something-like-proxypassreverse-going/193682 "2010-08-22T04:58:22Z")

</div>

Tim U. removed\_email\_address@domain.invalid wrote: Hi there, Arrange that the backend application generates the correct-for-you urls directly. That way, nginx doesn’t have to do any special processing of the body c…

---

## [Re: trying to get something like proxypassreverse going](https://www.ruby-forum.com/t/re-trying-to-get-something-like-proxypassreverse-going/193672)

<div class="topic-metadata">

**Author:** [@c1sc0](https://www.ruby-forum.com/u/c1sc0)\
**Replies:** 1\
**Last updated:** [August 22, 2010, 2:54am UTC](https://www.ruby-forum.com/t/re-trying-to-get-something-like-proxypassreverse-going/193672 "2010-08-22T02:54:54Z")

</div>

“timuckun” removed\_email\_address@domain.invalid wrote: Hi there, I am still struggling to get this proxy going. I have followed example after example on the web and nothing seems to work. I have also read through th…

---

## [Trying to get something like proxypassreverse going](https://www.ruby-forum.com/t/trying-to-get-something-like-proxypassreverse-going/193531)

<div class="topic-metadata">

**Author:** [@Tim\_U](https://www.ruby-forum.com/u/Tim_U)\
**Replies:** 1\
**Last updated:** [August 21, 2010, 8:47am UTC](https://www.ruby-forum.com/t/trying-to-get-something-like-proxypassreverse-going/193531 "2010-08-21T08:47:26Z")

</div>

Hey all. I am trying to get proxy a certain path in my domain to a different back end than the “normal” paths. So far I have done this. I got all this information from various sites on the web and it almost works. p…

---

## [Nginx as a proxy, needs to follow 301 responses](https://www.ruby-forum.com/t/nginx-as-a-proxy-needs-to-follow-301-responses/193508)

<div class="topic-metadata">

**Author:** [@hendrik](https://www.ruby-forum.com/u/hendrik)\
**Replies:** 3\
**Last updated:** [August 20, 2010, 7:26pm UTC](https://www.ruby-forum.com/t/nginx-as-a-proxy-needs-to-follow-301-responses/193508 "2010-08-20T19:26:39Z")

</div>

Hi everyone, I am using nginx as a proxy for custom URLs. I call URLs like /proxy/www.example.com/favicon.ico and nginx acts as a proxy for www.example.com/favicon.ico. This works fine as long as the response from th…

---

## [File access with mongrel running as windows service](https://www.ruby-forum.com/t/file-access-with-mongrel-running-as-windows-service/119502)

<div class="topic-metadata">

**Author:** [@neongrau](https://www.ruby-forum.com/u/neongrau)\
**Replies:** 16\
**Last updated:** [August 20, 2010, 4:27pm UTC](https://www.ruby-forum.com/t/file-access-with-mongrel-running-as-windows-service/119502 "2010-08-20T16:27:30Z")

</div>

i have an archive of documents (word, excel, jpeg, png, gif…) residing on a network share that is accessed via send\_file. when running mongrel on the command line the files are properly delivered. with mongrel runnin…

---

## [Does nginx support OPTIONS request method?](https://www.ruby-forum.com/t/does-nginx-support-options-request-method/193594)

<div class="topic-metadata">

**Author:** [@joro](https://www.ruby-forum.com/u/joro)\
**Replies:** 3\
**Last updated:** [August 20, 2010, 11:20am UTC](https://www.ruby-forum.com/t/does-nginx-support-options-request-method/193594 "2010-08-20T11:20:10Z")

</div>

Hi guys, I am trying to make a cross-domain ajax request. The problem comes when i try to POST . Then Firefox makes “preflighted” request to see if it is OK to go ahead. Here is the request : OPTIONS /publish/?id=1…

---

## [How to catch a request that has a given word in url?](https://www.ruby-forum.com/t/how-to-catch-a-request-that-has-a-given-word-in-url/192971)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 8\
**Last updated:** [August 20, 2010, 5:45am UTC](https://www.ruby-forum.com/t/how-to-catch-a-request-that-has-a-given-word-in-url/192971 "2010-08-20T05:45:21Z")

</div>

Hi, I am trying to catch any request that has WORD in the url, eg: catch: http://example.org/whatever/path/WORD/file.pdf don’t catch: http://example.org/some/other/path/anotherfile.jpg and if simple to do, don’t catc…

---

## [Trouble getting SSL and proxying to work correctly](https://www.ruby-forum.com/t/trouble-getting-ssl-and-proxying-to-work-correctly/193582)

<div class="topic-metadata">

**Author:** [@janine](https://www.ruby-forum.com/u/janine)\
**Replies:** 0\
**Last updated:** [August 20, 2010, 1:37am UTC](https://www.ruby-forum.com/t/trouble-getting-ssl-and-proxying-to-work-correctly/193582 "2010-08-20T01:37:47Z")

</div>

I have Googled and looked at various sample SSL configurations and it seems like I’ve got things set up right, but there are two problems I can’t seem to fix: When I load https://dev.mysite.com, the lock that should …

---

## [Possibble to use fastcgi cache with set-cookie header](https://www.ruby-forum.com/t/possibble-to-use-fastcgi-cache-with-set-cookie-header/193578)

<div class="topic-metadata">

**Author:** [@Jools\_W](https://www.ruby-forum.com/u/Jools_W)\
**Replies:** 2\
**Last updated:** [August 20, 2010, 12:35am UTC](https://www.ruby-forum.com/t/possibble-to-use-fastcgi-cache-with-set-cookie-header/193578 "2010-08-20T00:35:07Z")

</div>

Hi, I’m wondering if it is possible to force fastcgi\_cache even when there is a Set-Cookie header? I was testing with http://nginxtest.exotica.org.uk/index.php which sets Set-Cookie: site=nginxtest; HttpOnly Expire…

---

## [Nginx can't execute perl-fcgiï¼Ÿ](https://www.ruby-forum.com/t/nginx-cant-execute-perl-fcgii-y/193547)

<div class="topic-metadata">

**Author:** [@zhxd](https://www.ruby-forum.com/u/zhxd)\
**Replies:** 1\
**Last updated:** [August 19, 2010, 5:14pm UTC](https://www.ruby-forum.com/t/nginx-cant-execute-perl-fcgii-y/193547 "2010-08-19T17:14:11Z")

</div>

Configure perl-fcgi on nginx. Sourcecode compile FCGIã€IOã€IO-Stringã€IO-Allã€Getopt,and install them. insert perl-cgi in nginx.conf,and start perl-cgi startscript. But my web visit the cgi,it says that: No such…

---

## [Problem re-writing using query strings](https://www.ruby-forum.com/t/problem-re-writing-using-query-strings/193553)

<div class="topic-metadata">

**Author:** [@evms](https://www.ruby-forum.com/u/evms)\
**Replies:** 0\
**Last updated:** [August 19, 2010, 4:41pm UTC](https://www.ruby-forum.com/t/problem-re-writing-using-query-strings/193553 "2010-08-19T16:41:59Z")

</div>

Hi, I’m basically trying to do this: rewrite /x.php?a=1 to /x.php?b=2. So, I have location /x.php { set $args ‘b=2’; rewrite ^ /x.php } This produces a loop. How can I basically do this? Re-write from same URL t…

---

## [How do i configure service created by mongrel in regedit](https://www.ruby-forum.com/t/how-do-i-configure-service-created-by-mongrel-in-regedit/193552)

<div class="topic-metadata">

**Author:** [@amit-singh](https://www.ruby-forum.com/u/amit-singh)\
**Replies:** 0\
**Last updated:** [August 19, 2010, 4:34pm UTC](https://www.ruby-forum.com/t/how-do-i-configure-service-created-by-mongrel-in-regedit/193552 "2010-08-19T16:34:37Z")

</div>

hi, I have created a window service(rals website)using commnad like mongrel\_rails service::install -N smar2 -p 3000 -a 192.168.247.49 -e production -c D:/work/Smar/src now a service named smar2 is created but when i …

---

## [Running asp.net mvc on nginx](https://www.ruby-forum.com/t/running-asp-net-mvc-on-nginx/193527)

<div class="topic-metadata">

**Author:** [@Shih-Chi\_C](https://www.ruby-forum.com/u/Shih-Chi_C)\
**Replies:** 1\
**Last updated:** [August 19, 2010, 2:28pm UTC](https://www.ruby-forum.com/t/running-asp-net-mvc-on-nginx/193527 "2010-08-19T14:28:29Z")

</div>

Hi, I am trying to run asp.net mvc with nginx under ubuntu Linux. Here is part of my setting for /etc/nginx/sites-available/default ver { listen 80; server\_name localhost; access\_log /var/log/nginx/your.domain…

---

## [Restrict direct link file access](https://www.ruby-forum.com/t/restrict-direct-link-file-access/193232)

<div class="topic-metadata">

**Author:** [@antituhan](https://www.ruby-forum.com/u/antituhan)\
**Replies:** 11\
**Last updated:** [August 19, 2010, 5:54am UTC](https://www.ruby-forum.com/t/restrict-direct-link-file-access/193232 "2010-08-19T05:54:29Z")

</div>

Hi, Could nginx restrict direct link access / hotlink access to specified file/extension ? I try to write the rules like this : location ~ ^/\*(.exe)$ { deny ip.ad.dr.es; } But nothing happen, the files still can…

---

## [AddHandler application/x-httpd-php .htm in nginx?](https://www.ruby-forum.com/t/addhandler-application-x-httpd-php-htm-in-nginx/185784)

<div class="topic-metadata">

**Author:** [@johnt519](https://www.ruby-forum.com/u/johnt519)\
**Replies:** 8\
**Last updated:** [August 18, 2010, 7:27pm UTC](https://www.ruby-forum.com/t/addhandler-application-x-httpd-php-htm-in-nginx/185784 "2010-08-18T19:27:31Z")

</div>

That command in apache htaccess allows to read htm files as php,so then you can load php file with extension htm.How do i enable this on nginx?

---

## [Set generated PHP output to Memcached server by Nginx transparently](https://www.ruby-forum.com/t/set-generated-php-output-to-memcached-server-by-nginx-transparently/193428)

<div class="topic-metadata">

**Author:** [@jkuang](https://www.ruby-forum.com/u/jkuang)\
**Replies:** 3\
**Last updated:** [August 18, 2010, 5:27pm UTC](https://www.ruby-forum.com/t/set-generated-php-output-to-memcached-server-by-nginx-transparently/193428 "2010-08-18T17:27:28Z")

</div>

Hi, I have set up for NginxHttpMemcachedModule and it works great reading output that I have set to Memcached server through my OWN PHP code. But that means I have to modify my PHP code to make it happens and sometime…

---

## [Type{} directive](https://www.ruby-forum.com/t/type-directive/193485)

<div class="topic-metadata">

**Author:** [@gnosek](https://www.ruby-forum.com/u/gnosek)\
**Replies:** 1\
**Last updated:** [August 18, 2010, 4:52pm UTC](https://www.ruby-forum.com/t/type-directive/193485 "2010-08-18T16:52:20Z")

</div>

Hi all, After a recent discussion I decided to whip up a patch implementing the type {} directive to route requests according to MIME types of requested files. The main advantage is a clearer config file, as instead …

---

## [Drupal cron.php access control](https://www.ruby-forum.com/t/drupal-cron-php-access-control/193449)

<div class="topic-metadata">

**Author:** [@AntSSS\_nio\_PSPSAl](https://www.ruby-forum.com/u/AntSSS_nio_PSPSAl)\
**Replies:** 2\
**Last updated:** [August 18, 2010, 3:13pm UTC](https://www.ruby-forum.com/t/drupal-cron-php-access-control/193449 "2010-08-18T15:13:22Z")

</div>

Hello, I’m settign an access control for Drupal cron.php that is invoked via a cron job. I tried two approaches and both seem to work Use the Access module and specify the allowed host. location /cron.php { deny a…

---

## [Large\_client\_header\_buffers directive is accepted in server, but ignored](https://www.ruby-forum.com/t/large-client-header-buffers-directive-is-accepted-in-server-but-ignored/193475)

<div class="topic-metadata">

**Author:** [@Brane\_FSGraSSSSnar](https://www.ruby-forum.com/u/Brane_FSGraSSSSnar)\
**Replies:** 1\
**Last updated:** [August 18, 2010, 12:42pm UTC](https://www.ruby-forum.com/t/large-client-header-buffers-directive-is-accepted-in-server-but-ignored/193475 "2010-08-18T12:42:54Z")

</div>

Hello there! We noticed quite lots of “414 Request URI to large” messages in nginx error logs for one of configured virtualhosts and decided to bump large\_client\_headers\_buffers directive in server (virtualhost) cont…

---

## [Does NginxMailAuthModule support multiple http\_auth servers now](https://www.ruby-forum.com/t/does-nginxmailauthmodule-support-multiple-http-auth-servers-now/193472)

<div class="topic-metadata">

**Author:** [@speedfirst](https://www.ruby-forum.com/u/speedfirst)\
**Replies:** 1\
**Last updated:** [August 18, 2010, 12:24pm UTC](https://www.ruby-forum.com/t/does-nginxmailauthmodule-support-multiple-http-auth-servers-now/193472 "2010-08-18T12:24:46Z")

</div>

Hey, I’m deploying my mail server and use nginx as the mail proxy. I tend to use multiple http\_auth servers to balance the load. Can I write multiple “http\_auth” directives? Or can I use a upstream block to indicate t…

---

## [TCP connection problems (FIN\_WAIT2/LAST\_ACK) when upstream server is keepalived](https://www.ruby-forum.com/t/tcp-connection-problems-fin-wait2-last-ack-when-upstream-server-is-keepalived/193360)

<div class="topic-metadata">

**Author:** [@dwass](https://www.ruby-forum.com/u/dwass)\
**Replies:** 2\
**Last updated:** [August 18, 2010, 9:53am UTC](https://www.ruby-forum.com/t/tcp-connection-problems-fin-wait2-last-ack-when-upstream-server-is-keepalived/193360 "2010-08-18T09:53:43Z")

</div>

Have a strange problem. We have a configuration (this is only a part of the configuration) that has problems if the upstream server is a load-balanced server using ipvs/keepalived. Here is the relevant part of the con…

---

## [Ngx\_http\_redis-0.3.2](https://www.ruby-forum.com/t/ngx-http-redis-0-3-2/193469)

<div class="topic-metadata">

**Author:** [@Sergey\_ASOsokin](https://www.ruby-forum.com/u/Sergey_ASOsokin)\
**Replies:** 0\
**Last updated:** [August 18, 2010, 9:36am UTC](https://www.ruby-forum.com/t/ngx-http-redis-0-3-2/193469 "2010-08-18T09:36:08Z")

</div>

Hello, redis module for ngnix (ngx\_http\_redis) version 0.3.2 released. http://people.FreeBSD.ORG/~osa/ngx\_http\_redis-0.3.2.tar.gz Changes with ngx\_http\_redis 0.3.2 17 Aug 2010 \*) Bugfix: ng…

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

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