# Server

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

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

---

## [Encrypt the $remote\_addr in log files](https://www.ruby-forum.com/t/encrypt-the-remote-addr-in-log-files/194027)

<div class="topic-metadata">

**Author:** [@Dimitri\_R](https://www.ruby-forum.com/u/Dimitri_R)\
**Replies:** 2\
**Last updated:** [August 29, 2010, 1:11am UTC](https://www.ruby-forum.com/t/encrypt-the-remote-addr-in-log-files/194027 "2010-08-29T01:11:54Z")

</div>

Hi, I want to give the user of my websites more privacy. Well â€“ I just need the logs for debugging and some statistics. So I donâ€™t need to save the real users IP address, but I need some kind of identifier string t…

---

## [Is directive alias incompatible with module FastCGI?](https://www.ruby-forum.com/t/is-directive-alias-incompatible-with-module-fastcgi/193427)

<div class="topic-metadata">

**Author:** [@IPB\_Refugee](https://www.ruby-forum.com/u/IPB_Refugee)\
**Replies:** 2\
**Last updated:** [August 28, 2010, 6:38am UTC](https://www.ruby-forum.com/t/is-directive-alias-incompatible-with-module-fastcgi/193427 "2010-08-28T06:38:38Z")

</div>

Hello, at first let me thank you for developing NginX! I use NginX 0.8.48, PHP 5.3.3 with inbuilt php-fpm version 0.6.5 on CentOS 5.5. But there is one problem I have been trying to solve for hours without success: I…

---

## [Error in nginx-0.8.42: : mkdir() "/usr/local/nginx/uwsgi\_temp" failed](https://www.ruby-forum.com/t/error-in-nginx-0-8-42-mkdir-usr-local-nginx-uwsgi-temp-failed/190741)

<div class="topic-metadata">

**Author:** [@MSAlan](https://www.ruby-forum.com/u/MSAlan)\
**Replies:** 5\
**Last updated:** [August 27, 2010, 11:56pm UTC](https://www.ruby-forum.com/t/error-in-nginx-0-8-42-mkdir-usr-local-nginx-uwsgi-temp-failed/190741 "2010-08-27T23:56:33Z")

</div>

Up until (at least) nginx-0.8.37 I was able to rebuild the nginx Ubuntu package without any problems (I have previously posted in this list the procedure to rebuild a Debain/Ubuntu package). Using the nginx-0.8.42.ta…

---

## [Timer\_resolution / $request\_time](https://www.ruby-forum.com/t/timer-resolution-request-time/193945)

<div class="topic-metadata">

**Author:** [@martinx](https://www.ruby-forum.com/u/martinx)\
**Replies:** 4\
**Last updated:** [August 27, 2010, 9:17pm UTC](https://www.ruby-forum.com/t/timer-resolution-request-time/193945 "2010-08-27T21:17:53Z")

</div>

Hello, I’ve been using this settings for a while: timer\_resolution 100ms; log\_format combined\_time '$remote\_addr - $remote\_user \[$time\_local\] ’ ‘"$request" $status $body\_bytes\_sent ’ ‘"$http\_referer" “$http\_user\_ag…

---

## [Equivalent of Apache's SetEnv Variable](https://www.ruby-forum.com/t/equivalent-of-apaches-setenv-variable/192407)

<div class="topic-metadata">

**Author:** [@Raina\_G](https://www.ruby-forum.com/u/Raina_G)\
**Replies:** 45\
**Last updated:** [August 27, 2010, 4:57pm UTC](https://www.ruby-forum.com/t/equivalent-of-apaches-setenv-variable/192407 "2010-08-27T16:57:54Z")

</div>

Issue: I’d like to configure Magento to run in multi-domain mode. I’ve been successful doing this via Apache in the past. It seems that Nginx should be equally capable, but I haven’t succeeded. Server Specs: Nginx (…

---

## [Use rewrite without reload nginx?](https://www.ruby-forum.com/t/use-rewrite-without-reload-nginx/174492)

<div class="topic-metadata">

**Author:** [@dennis](https://www.ruby-forum.com/u/dennis)\
**Replies:** 1\
**Last updated:** [August 27, 2010, 3:11pm UTC](https://www.ruby-forum.com/t/use-rewrite-without-reload-nginx/174492 "2010-08-27T15:11:55Z")

</div>

Hi, I will use redirects in nginx without reload the server like .htaccess in apache is that possible? Cause ftp user should be able to add some redirects and they have no access to reload the server. regards Dennis …

---

## [Proxy\_pass" may not have URI part in location](https://www.ruby-forum.com/t/proxy-pass-may-not-have-uri-part-in-location/193978)

<div class="topic-metadata">

**Author:** [@manjeet](https://www.ruby-forum.com/u/manjeet)\
**Replies:** 0\
**Last updated:** [August 27, 2010, 2:19pm UTC](https://www.ruby-forum.com/t/proxy-pass-may-not-have-uri-part-in-location/193978 "2010-08-27T14:19:48Z")

</div>

Hello I have just managed to install nginx on Linux. I am having 2 problems: Error: proxy\_pass" may not have URI part in location my conf : location ~ /fb/ { proxy\_pass http://xyz.dev:3000/fb/restserver.php; P…

---

## [Request\_completion variable and zero length 200 response](https://www.ruby-forum.com/t/request-completion-variable-and-zero-length-200-response/193975)

<div class="topic-metadata">

**Author:** [@SS\_SSSSSSSSSS\_S](https://www.ruby-forum.com/u/SS_SSSSSSSSSS_S)\
**Replies:** 0\
**Last updated:** [August 27, 2010, 12:19pm UTC](https://www.ruby-forum.com/t/request-completion-variable-and-zero-length-200-response/193975 "2010-08-27T12:19:13Z")

</div>

Hello, We are using request\_completion core variable to log every request. Until recently, we found that some requests got logged with: $request\_completion = NULL $statue = 200 $bytes\_send = 0 $body\_bytes\_send = 0 …

---

## [RequestHeader set X-Base-Path](https://www.ruby-forum.com/t/requestheader-set-x-base-path/193967)

<div class="topic-metadata">

**Author:** [@khine](https://www.ruby-forum.com/u/khine)\
**Replies:** 0\
**Last updated:** [August 27, 2010, 10:22am UTC](https://www.ruby-forum.com/t/requestheader-set-x-base-path/193967 "2010-08-27T10:22:43Z")

</div>

hello, i have this apache vhost entry, ServerName company.domain.com ServerAlias company-limited.domain.com RewriteEngine On RewriteRule ^/(.\*) http://localhost:8080/companies/company-limited/$1 \[P\] …

---

## [Apache to nginx rewrite rule](https://www.ruby-forum.com/t/apache-to-nginx-rewrite-rule/193944)

<div class="topic-metadata">

**Author:** [@khine](https://www.ruby-forum.com/u/khine)\
**Replies:** 2\
**Last updated:** [August 27, 2010, 7:28am UTC](https://www.ruby-forum.com/t/apache-to-nginx-rewrite-rule/193944 "2010-08-27T07:28:17Z")

</div>

hello, what is the way to convert this apache vhost directive to nginx? ServerName example.com ServerAlias vhost1.example.com ServerAlias vhost2.example.com RewriteEngine On RewriteRule ^/(.\*) http://localhos…

---

## [Issue with fastcgi\_cache and missing content length / length:0	(chunked transfer encoding)](https://www.ruby-forum.com/t/issue-with-fastcgi-cache-and-missing-content-length-length-0-chunked-transfer-encoding/193931)

<div class="topic-metadata">

**Author:** [@Thomas\_Lohner](https://www.ruby-forum.com/u/Thomas_Lohner)\
**Replies:** 2\
**Last updated:** [August 27, 2010, 12:22am UTC](https://www.ruby-forum.com/t/issue-with-fastcgi-cache-and-missing-content-length-length-0-chunked-transfer-encoding/193931 "2010-08-27T00:22:10Z")

</div>

Dear list, i’m having an issue with cached fastcgi responses with content length 0: #curl http://127.0.0.1/lq/aac/iPhone/a3efe0a282dafd curl: (18) transfer closed with outstanding read data remaining #curl -I http://…

---

## [Https and the Host header](https://www.ruby-forum.com/t/https-and-the-host-header/193860)

<div class="topic-metadata">

**Author:** [@janine](https://www.ruby-forum.com/u/janine)\
**Replies:** 1\
**Last updated:** [August 26, 2010, 6:37pm UTC](https://www.ruby-forum.com/t/https-and-the-host-header/193860 "2010-08-26T18:37:21Z")

</div>

I am using Nginx as a proxy in front of a Java application (because it’s hosted at Amazon where we only get one IP address per system, and I am running multiple sites). When the application calls getRequestURL, it get…

---

## [For Nginx proxy module problem](https://www.ruby-forum.com/t/for-nginx-proxy-module-problem/193929)

<div class="topic-metadata">

**Author:** [@SSSSSSSSSSSSSSSSS\_S](https://www.ruby-forum.com/u/SSSSSSSSSSSSSSSSS_S)\
**Replies:** 0\
**Last updated:** [August 26, 2010, 5:52pm UTC](https://www.ruby-forum.com/t/for-nginx-proxy-module-problem/193929 "2010-08-26T17:52:50Z")

</div>

Hi,All, How to config nginx’s proxy module to specify a application? e.g. server { listen 80; server\_name server1.com # Main location location / { proxy\_pass http://127.0.0.1:8080/server1; proxy\_r…

---

## [SCGI module](https://www.ruby-forum.com/t/scgi-module/193925)

<div class="topic-metadata">

**Author:** [@Xan](https://www.ruby-forum.com/u/Xan)\
**Replies:** 0\
**Last updated:** [August 26, 2010, 5:37pm UTC](https://www.ruby-forum.com/t/scgi-module/193925 "2010-08-26T17:37:37Z")

</div>

Hi, In the wiki, there is a SCGI module \[http://wiki.nginx.org/NginxHttpScgiModule\] that belongs to Standard modules. But there is no documentation avaliable. Anyone could enligth me how to use it? Thanks, Xan, Po…

---

## [Proxy pass if not found on local](https://www.ruby-forum.com/t/proxy-pass-if-not-found-on-local/193911)

<div class="topic-metadata">

**Author:** [@stingreen](https://www.ruby-forum.com/u/stingreen)\
**Replies:** 1\
**Last updated:** [August 26, 2010, 3:04pm UTC](https://www.ruby-forum.com/t/proxy-pass-if-not-found-on-local/193911 "2010-08-26T15:04:50Z")

</div>

Hello, Well, the subject says it all. Is it possible ? I tried something like the following without success. Check the htdocs first, if not found, look under somedomain.com. Thanks in advance, location / { …

---

## [Question on server\_name\_in\_redirect](https://www.ruby-forum.com/t/question-on-server-name-in-redirect/193836)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [August 26, 2010, 4:24am UTC](https://www.ruby-forum.com/t/question-on-server-name-in-redirect/193836 "2010-08-26T04:24:23Z")

</div>

server { listen 80; server\_name example.com:7788 example.com; server\_name\_in\_redirect on; root /var/www/html/exampel/; index index.php index.html; According to the wiki, this should automati…

---

## [GitHub configuration files](https://www.ruby-forum.com/t/github-configuration-files/193870)

<div class="topic-metadata">

**Author:** [@nofun](https://www.ruby-forum.com/u/nofun)\
**Replies:** 4\
**Last updated:** [August 26, 2010, 3:25am UTC](https://www.ruby-forum.com/t/github-configuration-files/193870 "2010-08-26T03:25:16Z")

</div>

Hello, I am trying to put together a set of configuration files, generalized for different web applications (for the moment just Drupal and WordPress) and with added security. All of them will be modular so that they…

---

## [Nignx + phpmyadmin set up and config Help](https://www.ruby-forum.com/t/nignx-phpmyadmin-set-up-and-config-help/193873)

<div class="topic-metadata">

**Author:** [@orlick](https://www.ruby-forum.com/u/orlick)\
**Replies:** 0\
**Last updated:** [August 25, 2010, 10:45pm UTC](https://www.ruby-forum.com/t/nignx-phpmyadmin-set-up-and-config-help/193873 "2010-08-25T22:45:41Z")

</div>

Nignx + phpmyadmin set up and config Would anyone be kind to help me set a phpmyadmin admin so it would work with my set up Physical box with Debian Lenny with cgi-fcgi 5.2.6-1+lenny8 My configuration in /etc/ngi…

---

## [Problems with secured IE](https://www.ruby-forum.com/t/problems-with-secured-ie/193786)

<div class="topic-metadata">

**Author:** [@dcian](https://www.ruby-forum.com/u/dcian)\
**Replies:** 3\
**Last updated:** [August 25, 2010, 9:42pm UTC](https://www.ruby-forum.com/t/problems-with-secured-ie/193786 "2010-08-25T21:42:49Z")

</div>

Hi All, I’m webmaster of a number of websites, and several people have reported that they are having problems using some of my sites They are all using versions of IE that are in libraries or large corporate installa…

---

## [Log rotation on windows?](https://www.ruby-forum.com/t/log-rotation-on-windows/193723)

<div class="topic-metadata">

**Author:** [@ruhtra01](https://www.ruby-forum.com/u/ruhtra01)\
**Replies:** 20\
**Last updated:** [August 25, 2010, 7:21pm UTC](https://www.ruby-forum.com/t/log-rotation-on-windows/193723 "2010-08-25T19:21:42Z")

</div>

I’ve searched a lot for this but I haven’t found any information. On linux you can do a log rotation by sending the USR1 signal to the process. Is there a similar way to do this on windows? Thanks.

---

## [How to add secure download module](https://www.ruby-forum.com/t/how-to-add-secure-download-module/193835)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 8\
**Last updated:** [August 25, 2010, 6:43pm UTC](https://www.ruby-forum.com/t/how-to-add-secure-download-module/193835 "2010-08-25T18:43:02Z")

</div>

Hi, I can’t compile Nginx with the secure download module. It keeps complaining about a missing mhash.h file. How to I tell Nginx where to find this mhash? Do I need to install mhash or just have the sources at hand? …

---

## [Include in if](https://www.ruby-forum.com/t/include-in-if/193843)

<div class="topic-metadata">

**Author:** [@ddarko](https://www.ruby-forum.com/u/ddarko)\
**Replies:** 2\
**Last updated:** [August 25, 2010, 6:10pm UTC](https://www.ruby-forum.com/t/include-in-if/193843 "2010-08-25T18:10:50Z")

</div>

nginx version: nginx/0.8.49 I would like to serve static files by default, in the absence - uwsgi\_pass. So I wrote this: server { listen 80; server\_name www1; location / { root /var/www/1/public; if (!-f $requ…

---

## [X-Accel-Redirect issues - Image of 0 size](https://www.ruby-forum.com/t/x-accel-redirect-issues-image-of-0-size/193832)

<div class="topic-metadata">

**Author:** [@habodal](https://www.ruby-forum.com/u/habodal)\
**Replies:** 3\
**Last updated:** [August 25, 2010, 5:41pm UTC](https://www.ruby-forum.com/t/x-accel-redirect-issues-image-of-0-size/193832 "2010-08-25T17:41:32Z")

</div>

Hello, I am trying to use the X-Accel-Redirect header feature of Dokuwiki. However, when attempting to access images, for example, I receive an image of zero size which the browsers displays as a URL. I believe my ng…

---

## [Question on server\_name\_in\_redirect](https://www.ruby-forum.com/t/question-on-server-name-in-redirect/193837)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [August 25, 2010, 11:10am UTC](https://www.ruby-forum.com/t/question-on-server-name-in-redirect/193837 "2010-08-25T11:10:27Z")

</div>

server { listen 80; server\_name example.com:7788 example.com; server\_name\_in\_redirect on; root /var/www/html/exampel/; index index.php index.html; According to the wiki, this should automati…

---

## [Problems with some rewrite](https://www.ruby-forum.com/t/problems-with-some-rewrite/193778)

<div class="topic-metadata">

**Author:** [@revirii](https://www.ruby-forum.com/u/revirii)\
**Replies:** 5\
**Last updated:** [August 25, 2010, 12:01am UTC](https://www.ruby-forum.com/t/problems-with-some-rewrite/193778 "2010-08-25T00:01:18Z")

</div>

Greetings, i’m currently facing a problem with some rewrites. Given an url i have to rewrite it to a local folder. url: www.domain.com/img/default/420006675369688559/image.png doc root: /home/images/public/ local pa…

---

## [One parameter missing from GeoIP data via FCGI](https://www.ruby-forum.com/t/one-parameter-missing-from-geoip-data-via-fcgi/193767)

<div class="topic-metadata">

**Author:** [@dean](https://www.ruby-forum.com/u/dean)\
**Replies:** 3\
**Last updated:** [August 24, 2010, 11:51pm UTC](https://www.ruby-forum.com/t/one-parameter-missing-from-geoip-data-via-fcgi/193767 "2010-08-24T23:51:56Z")

</div>

I’m running v.0.8.49 with GeoIP using both a city and a country database. All of the GeoIP-generated parameters passed via FGCI seem to work great, except that $geoip\_postal\_code comes through empty. I’ve checked my …

---

## [Mp4 streaming + X-Accel-Redirect works on dev, fails on prod](https://www.ruby-forum.com/t/mp4-streaming-x-accel-redirect-works-on-dev-fails-on-prod/193808)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 2\
**Last updated:** [August 24, 2010, 10:06pm UTC](https://www.ruby-forum.com/t/mp4-streaming-x-accel-redirect-works-on-dev-fails-on-prod/193808 "2010-08-24T22:06:15Z")

</div>

Hi, How come my Rails app that relies on Nginx to stream mp4 videos to flash and restricts access with X-Accel-Redirect, works on my dev machine but fails on the production server? The config files are 99% the same: …

---

## [Issues with Restfulie using NGinx+Passenger+Ruby on Rails 2.3.8](https://www.ruby-forum.com/t/issues-with-restfulie-using-nginx-passenger-ruby-on-rails-2-3-8/193815)

<div class="topic-metadata">

**Author:** [@razenha](https://www.ruby-forum.com/u/razenha)\
**Replies:** 0\
**Last updated:** [August 24, 2010, 9:46pm UTC](https://www.ruby-forum.com/t/issues-with-restfulie-using-nginx-passenger-ruby-on-rails-2-3-8/193815 "2010-08-24T21:46:03Z")

</div>

Hi, I have an application using a gem named Restfulie for json ajax request. I\`m using the good and old webrick in my local dev environment and the applicatiom works just fine. Restfulie uses content negotiation, th…

---

## [Rewrite with apostrophe causes 404](https://www.ruby-forum.com/t/rewrite-with-apostrophe-causes-404/189071)

<div class="topic-metadata">

**Author:** [@st1905](https://www.ruby-forum.com/u/st1905)\
**Replies:** 4\
**Last updated:** [August 24, 2010, 4:46pm UTC](https://www.ruby-forum.com/t/rewrite-with-apostrophe-causes-404/189071 "2010-08-24T16:46:17Z")

</div>

Hello, videos/1432/so-it/'s-ok-karyn-garcia above causes 404 if i manually edit the url to videos/1432/so-it’s-ok-karyn-garcia it works Here is the rewrite rule rewrite ^/videos/(\[^/\])/(\[^/\])$ /play.php?vid=$1 las…

---

## [Location header, memcached, nginx, django and redirected paths](https://www.ruby-forum.com/t/location-header-memcached-nginx-django-and-redirected-paths/193627)

<div class="topic-metadata">

**Author:** [@Michel\_Sabchuk](https://www.ruby-forum.com/u/Michel_Sabchuk)\
**Replies:** 1\
**Last updated:** [August 24, 2010, 3:59pm UTC](https://www.ruby-forum.com/t/location-header-memcached-nginx-django-and-redirected-paths/193627 "2010-08-24T15:59:26Z")

</div>

Hi guys, how are you? I using nginx, django and memcached for a site. If some path isn’t on memcached, nginx send it to apache/django, the cache are generated and, until it expires, nginx takes care of the requests by…

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

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