# Server

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

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

---

## [Can two server blocks in mail module listen the same port](https://www.ruby-forum.com/t/can-two-server-blocks-in-mail-module-listen-the-same-port/197412)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 1\
**Last updated:** [October 14, 2010, 5:55am UTC](https://www.ruby-forum.com/t/can-two-server-blocks-in-mail-module-listen-the-same-port/197412 "2010-10-14T05:55:56Z")

</div>

When I config nginx like this, it reports: “starting nginx…2010/10/12 11:44:04 \[emerg\] 14955#0: duplicate “143” address and port pair in /opt/nginx/nginx.conf.mail.imap:19” Is there something I did wrong or nginx does…

---

## [Nginx Caching strategy](https://www.ruby-forum.com/t/nginx-caching-strategy/195987)

<div class="topic-metadata">

**Author:** [@cachenewbie](https://www.ruby-forum.com/u/cachenewbie)\
**Replies:** 5\
**Last updated:** [October 14, 2010, 3:51am UTC](https://www.ruby-forum.com/t/nginx-caching-strategy/195987 "2010-10-14T03:51:29Z")

</div>

All - Is there a high level tutorial on how nginx does caching ? Does it use mmap to map the cache directory/file into memory and share it with all nginx worker processes (and use sendfile to send it out to the sock…

---

## [Nginx - can front-end proxy for very long POSTs with upload status support?](https://www.ruby-forum.com/t/nginx-can-front-end-proxy-for-very-long-posts-with-upload-status-support/197407)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 2\
**Last updated:** [October 14, 2010, 12:15am UTC](https://www.ruby-forum.com/t/nginx-can-front-end-proxy-for-very-long-posts-with-upload-status-support/197407 "2010-10-14T00:15:47Z")

</div>

Hi list, I did do some google searches but came up empty. I read the nginx proxy module docs but also came up empty. Can nginx act as a front-end proxy for very long POST requests where the back-end server is not bot…

---

## [Rewrite save original url](https://www.ruby-forum.com/t/rewrite-save-original-url/195335)

<div class="topic-metadata">

**Author:** [@ruhtra01](https://www.ruby-forum.com/u/ruhtra01)\
**Replies:** 5\
**Last updated:** [October 13, 2010, 7:31pm UTC](https://www.ruby-forum.com/t/rewrite-save-original-url/195335 "2010-10-13T19:31:46Z")

</div>

When rewriting a url with the rewrite directive, is it possible to save the original url in a request header for the downstream handler? Similar to the X-Rewrite-URL header built in to ISAPI rewrite. Or in Apache, I …

---

## [Forward proxy configuration for Nginx](https://www.ruby-forum.com/t/forward-proxy-configuration-for-nginx/197372)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 0\
**Last updated:** [October 13, 2010, 3:33pm UTC](https://www.ruby-forum.com/t/forward-proxy-configuration-for-nginx/197372 "2010-10-13T15:33:22Z")

</div>

I got Nginx working as a forward proxy to the internet by replacing the backend host with $http\_host variable (basically using the host name passed in the request instead of fixed IP address from the conf file). It se…

---

## [Passing HttpUploadProgressModule path to configure](https://www.ruby-forum.com/t/passing-httpuploadprogressmodule-path-to-configure/196121)

<div class="topic-metadata">

**Author:** [@Maciej\_Dziardziel](https://www.ruby-forum.com/u/Maciej_Dziardziel)\
**Replies:** 3\
**Last updated:** [October 13, 2010, 11:54am UTC](https://www.ruby-forum.com/t/passing-httpuploadprogressmodule-path-to-configure/196121 "2010-10-13T11:54:25Z")

</div>

Hi I am tying to install HttpUploadProgressModule. It works well, but (probalby due to some misconfiguration) it stores data in /usr/html/progress, and complains if it doesn’t exists. What should i set additionaly t…

---

## [IP address of fastcgi server?](https://www.ruby-forum.com/t/ip-address-of-fastcgi-server/196344)

<div class="topic-metadata">

**Author:** [@iberci](https://www.ruby-forum.com/u/iberci)\
**Replies:** 5\
**Last updated:** [October 12, 2010, 9:25pm UTC](https://www.ruby-forum.com/t/ip-address-of-fastcgi-server/196344 "2010-10-12T21:25:38Z")

</div>

Hi All, We’re doing some profiling and one of the parameters we’d like to get is the IP address of the fastcgi (in this case php-fpm) server that processed the request. PHP $\_SERVER\[‘server\_addr’\] returns the exter…

---

## [Why is client\_max\_body\_size default set to 1m?](https://www.ruby-forum.com/t/why-is-client-max-body-size-default-set-to-1m/196394)

<div class="topic-metadata">

**Author:** [@jlangevin](https://www.ruby-forum.com/u/jlangevin)\
**Replies:** 4\
**Last updated:** [October 12, 2010, 8:25pm UTC](https://www.ruby-forum.com/t/why-is-client-max-body-size-default-set-to-1m/196394 "2010-10-12T20:25:26Z")

</div>

After migrating one of our servers to Nginx from Apache, I decided to test file uploads (as I’ve implemented the Accelerated Upload Support feature in PHP-FPM/nginx). I found that client\_max\_body\_size is an additiona…

---

## [Client\_body\_in\_file\_only directive](https://www.ruby-forum.com/t/client-body-in-file-only-directive/196393)

<div class="topic-metadata">

**Author:** [@jlangevin](https://www.ruby-forum.com/u/jlangevin)\
**Replies:** 3\
**Last updated:** [October 12, 2010, 6:51pm UTC](https://www.ruby-forum.com/t/client-body-in-file-only-directive/196393 "2010-10-12T18:51:17Z")

</div>

When viewing the documentation for client\_body\_in\_file\_only, it shows the only possible values as on/off. My confusion occurs when viewing the PHP-FPM suggested usage of client\_body\_in\_file\_only, as it shows the di…

---

## [Building with geo-ip when GeoIP lib in non-standard location](https://www.ruby-forum.com/t/building-with-geo-ip-when-geoip-lib-in-non-standard-location/196308)

<div class="topic-metadata">

**Author:** [@djeyewater](https://www.ruby-forum.com/u/djeyewater)\
**Replies:** 8\
**Last updated:** [October 12, 2010, 4:27pm UTC](https://www.ruby-forum.com/t/building-with-geo-ip-when-geoip-lib-in-non-standard-location/196308 "2010-10-12T16:27:47Z")

</div>

I have the GeoIP lib installed in a non standard location. I am configuring nginx like ./configure --prefix=$NGX\_PATH --with-pcre=$HOME/tarballs/pcre-8.10 --without-http\_autoindex\_module --without-http\_charset\_modul…

---

## [FancyIndex error build](https://www.ruby-forum.com/t/fancyindex-error-build/196346)

<div class="topic-metadata">

**Author:** [@Indo\_P](https://www.ruby-forum.com/u/Indo_P)\
**Replies:** 1\
**Last updated:** [October 12, 2010, 5:36am UTC](https://www.ruby-forum.com/t/fancyindex-error-build/196346 "2010-10-12T05:36:18Z")

</div>

I tried to use the latest nginx 0.8.52 with fancyindex. However when I tried to install, it giving me error gcc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Wunused-function -Wunused-variable -Wunused…

---

## [Conf of ngx\_cache\_purge](https://www.ruby-forum.com/t/conf-of-ngx-cache-purge/196342)

<div class="topic-metadata">

**Author:** [@digginchina](https://www.ruby-forum.com/u/digginchina)\
**Replies:** 0\
**Last updated:** [October 12, 2010, 2:36am UTC](https://www.ruby-forum.com/t/conf-of-ngx-cache-purge/196342 "2010-10-12T02:36:27Z")

</div>

here is my conf: fastcgi\_cache\_path /usr/local/nginx/fastcgi\_cache levels=1:2 keys\_zone=DIGG:10m inactive=2m; location / { fastcgi\_cache DIGG; …

---

## [Preventing args other than list](https://www.ruby-forum.com/t/preventing-args-other-than-list/196320)

<div class="topic-metadata">

**Author:** [@mflive](https://www.ruby-forum.com/u/mflive)\
**Replies:** 4\
**Last updated:** [October 11, 2010, 11:41pm UTC](https://www.ruby-forum.com/t/preventing-args-other-than-list/196320 "2010-10-11T23:41:28Z")

</div>

Hi list, We’re having an upstream server that can accept many different parameters. Most query string parameters can be predefined in the backend itself but some cannot because they are unpredictable. We’d like to …

---

## [How to process only first path element in the URL as the CGI executable](https://www.ruby-forum.com/t/how-to-process-only-first-path-element-in-the-url-as-the-cgi-executable/196216)

<div class="topic-metadata">

**Author:** [@vfcforums](https://www.ruby-forum.com/u/vfcforums)\
**Replies:** 8\
**Last updated:** [October 11, 2010, 11:30pm UTC](https://www.ruby-forum.com/t/how-to-process-only-first-path-element-in-the-url-as-the-cgi-executable/196216 "2010-10-11T23:30:25Z")

</div>

I am using a FreePascal web module designed for apache cgi-bin with nginx. The CGI itself is called spidersample.cgi and contains modules such as hello, bye etc. With Apache when spidersample.cgi/hello is called, sp…

---

## [Upload directory](https://www.ruby-forum.com/t/upload-directory/196289)

<div class="topic-metadata">

**Author:** [@JCR](https://www.ruby-forum.com/u/JCR)\
**Replies:** 1\
**Last updated:** [October 11, 2010, 6:12pm UTC](https://www.ruby-forum.com/t/upload-directory/196289 "2010-10-11T18:12:14Z")

</div>

Hello, By default, where does Nginx store files that are uploaded through an html form? I am using a fastcgi application linked to nginx through supervisord. Or is it up to the sole cgi library to decide where to sto…

---

## [Handling closed and broken connection](https://www.ruby-forum.com/t/handling-closed-and-broken-connection/196315)

<div class="topic-metadata">

**Author:** [@ianic](https://www.ruby-forum.com/u/ianic)\
**Replies:** 1\
**Last updated:** [October 11, 2010, 5:26pm UTC](https://www.ruby-forum.com/t/handling-closed-and-broken-connection/196315 "2010-10-11T17:26:18Z")

</div>

Hi all! Can someone share an idea of the right way of making the worker to wait for some event to happen without blocking other requests (eg. for some file to appear on the local filesystem)? I tried setting up the t…

---

## [Two ssl cert within one nginx instance](https://www.ruby-forum.com/t/two-ssl-cert-within-one-nginx-instance/196304)

<div class="topic-metadata">

**Author:** [@yung](https://www.ruby-forum.com/u/yung)\
**Replies:** 2\
**Last updated:** [October 11, 2010, 9:42am UTC](https://www.ruby-forum.com/t/two-ssl-cert-within-one-nginx-instance/196304 "2010-10-11T09:42:53Z")

</div>

Hi, Can I set up two SSL Cert within one nginx instance, for example, one for www.a.com, another for www.b.com. Thanks.

---

## [Nginx's bug(alias and $request\_uri to conflict)](https://www.ruby-forum.com/t/nginxs-bug-alias-and-request-uri-to-conflict/196298)

<div class="topic-metadata">

**Author:** [@monad](https://www.ruby-forum.com/u/monad)\
**Replies:** 3\
**Last updated:** [October 11, 2010, 9:31am UTC](https://www.ruby-forum.com/t/nginxs-bug-alias-and-request-uri-to-conflict/196298 "2010-10-11T09:31:11Z")

</div>

thanks! my nginx version is 0.8.52, index.html in /home/my\_name/tools/nginx/html/ , this is my nginx config: worker\_processes 1; error\_log logs/error.log debug; events { worker\_connections 1024; } http { in…

---

## [Who Can Help me switch a Nginx rewrite rules](https://www.ruby-forum.com/t/who-can-help-me-switch-a-nginx-rewrite-rules/196290)

<div class="topic-metadata">

**Author:** [@cw723](https://www.ruby-forum.com/u/cw723)\
**Replies:** 0\
**Last updated:** [October 11, 2010, 12:01am UTC](https://www.ruby-forum.com/t/who-can-help-me-switch-a-nginx-rewrite-rules/196290 "2010-10-11T00:01:52Z")

</div>

RewriteRule /(?:attachment)/..(?:gif|jpg|jpeg|png|psd|wav|mid|asf|wma|wmv|rm|bmp|exe|rar|zip|msi|ram|doc|xls|mp3|mpg|swf|ra|mp4|rmp|avi|tar|flv|rmvb|torrent) /images/err.gif \[I,O\] RewriteRule ^(.)-htm-(.)$ $1.php?$2 …

---

## [How to load nginx config dynamiclly like apache .htaccess?](https://www.ruby-forum.com/t/how-to-load-nginx-config-dynamiclly-like-apache-htaccess/196266)

<div class="topic-metadata">

**Author:** [@JWD](https://www.ruby-forum.com/u/JWD)\
**Replies:** 1\
**Last updated:** [October 10, 2010, 4:25am UTC](https://www.ruby-forum.com/t/how-to-load-nginx-config-dynamiclly-like-apache-htaccess/196266 "2010-10-10T04:25:21Z")

</div>

How to load nginx config dynamiclly like apache .htaccess? Many people talk about it, but I still can’t find a way to make it work. Anather question: If I “mv access.log access.log.old”, will access record be logged i…

---

## [A new way called DWS to run php script on nginx 0.8.x!](https://www.ruby-forum.com/t/a-new-way-called-dws-to-run-php-script-on-nginx-0-8-x/196264)

<div class="topic-metadata">

**Author:** [@hightman](https://www.ruby-forum.com/u/hightman)\
**Replies:** 6\
**Last updated:** [October 10, 2010, 3:46am UTC](https://www.ruby-forum.com/t/a-new-way-called-dws-to-run-php-script-on-nginx-0-8-x/196264 "2010-10-10T03:46:08Z")

</div>

PHP-DWS is the abbreviation for “PHP Direct Web Server”. It works much like fastcgi server with nginx, But nginx pass the request header of HTTP and socket file description of this connection to it via calling sendm…

---

## [How to limit virtual host bandwidth](https://www.ruby-forum.com/t/how-to-limit-virtual-host-bandwidth/196265)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [October 10, 2010, 3:43am UTC](https://www.ruby-forum.com/t/how-to-limit-virtual-host-bandwidth/196265 "2010-10-10T03:43:47Z")

</div>

I want to run a web hosting, and I want to limit every virtual host bandwidth as a whole (No need limit\_conn\*limit\_rate), how? If can’t, how to limit client connection and server connection number at the same time, li…

---

## [0.8.52 AIO problem](https://www.ruby-forum.com/t/0-8-52-aio-problem/196143)

<div class="topic-metadata">

**Author:** [@Brane\_FSGraSSSSnar](https://www.ruby-forum.com/u/Brane_FSGraSSSSnar)\
**Replies:** 8\
**Last updated:** [October 10, 2010, 3:43am UTC](https://www.ruby-forum.com/t/0-8-52-aio-problem/196143 "2010-10-10T03:43:47Z")

</div>

Hello! I’m using nginx for serving static content. Nginx is serving from a folder containing millions of small files. Becouse machine doesn’t have lots of ram (2G) and becouse access pattern is completely random VF…

---

## [Send USR1 to nginx as non root user](https://www.ruby-forum.com/t/send-usr1-to-nginx-as-non-root-user/196240)

<div class="topic-metadata">

**Author:** [@geroldboehler](https://www.ruby-forum.com/u/geroldboehler)\
**Replies:** 1\
**Last updated:** [October 10, 2010, 3:42am UTC](https://www.ruby-forum.com/t/send-usr1-to-nginx-as-non-root-user/196240 "2010-10-10T03:42:01Z")

</div>

Hi, on my setup i have a root user and a deployer user. The nginx master process runs as root since i need to listen on port 80. The 2 worker processes run as deployer. So now i setup logrotate and would like to do a…

---

## [Failed to allocate memory while downloading large files](https://www.ruby-forum.com/t/failed-to-allocate-memory-while-downloading-large-files/194900)

<div class="topic-metadata">

**Author:** [@amit-singh](https://www.ruby-forum.com/u/amit-singh)\
**Replies:** 18\
**Last updated:** [October 8, 2010, 7:01am UTC](https://www.ruby-forum.com/t/failed-to-allocate-memory-while-downloading-large-files/194900 "2010-10-08T07:01:51Z")

</div>

hii , I uploaded 1 GB of file to filesystem,but now when i trying to download this 1 GB of file ,i am getting failed to allocate memory. am running mongrel as server in development mode. NoMemoryError (failed to allo…

---

## [Deny access per extension in multiple locations](https://www.ruby-forum.com/t/deny-access-per-extension-in-multiple-locations/196160)

<div class="topic-metadata">

**Author:** [@nfn](https://www.ruby-forum.com/u/nfn)\
**Replies:** 3\
**Last updated:** [October 8, 2010, 12:06am UTC](https://www.ruby-forum.com/t/deny-access-per-extension-in-multiple-locations/196160 "2010-10-08T00:06:30Z")

</div>

Hello, I have this rule in apache that denies access to some extensions in multiple locations. I have this .htaccess in some folders like uploads, docs, pdfs. Order allow,deny Deny from all How can I join this in on…

---

## [Nginx outbound HTTP\_REFERER not working](https://www.ruby-forum.com/t/nginx-outbound-http-referer-not-working/196156)

<div class="topic-metadata">

**Author:** [@jmadtech](https://www.ruby-forum.com/u/jmadtech)\
**Replies:** 3\
**Last updated:** [October 7, 2010, 6:18pm UTC](https://www.ruby-forum.com/t/nginx-outbound-http-referer-not-working/196156 "2010-10-07T18:18:14Z")

</div>

Hey all, I’ve got an interesting problem that I can’t seem to trace. On my site (which is running Nginx 0.6.24), I have a link to a customer’s external URL. When a user clicks that link and goes to the customer’s si…

---

## [Proxy\_pass strangeness](https://www.ruby-forum.com/t/proxy-pass-strangeness/196162)

<div class="topic-metadata">

**Author:** [@daveyfx](https://www.ruby-forum.com/u/daveyfx)\
**Replies:** 0\
**Last updated:** [October 7, 2010, 5:52pm UTC](https://www.ruby-forum.com/t/proxy-pass-strangeness/196162 "2010-10-07T17:52:29Z")

</div>

Hi all, I’m having an odd issue in my current configuration. I have nginx on the front-end, which is handling static content and passing off dynamic content requests to Apache servers in the back end. I’m having an od…

---

## [Catch all domains \*and\* subdomains?](https://www.ruby-forum.com/t/catch-all-domains-and-subdomains/196141)

<div class="topic-metadata">

**Author:** [@phillipoertel](https://www.ruby-forum.com/u/phillipoertel)\
**Replies:** 2\
**Last updated:** [October 7, 2010, 12:10pm UTC](https://www.ruby-forum.com/t/catch-all-domains-and-subdomains/196141 "2010-10-07T12:10:31Z")

</div>

How can I configure nginx to catch all domains and all subdomains of any domains? Using the following catches all domains, but doesn’t seem to catch subdomains: server { server\_name \_; } Suggestions? Phillip B Ol…

---

## [X-Accel-Redirect, proxy\_pass and Range Requests](https://www.ruby-forum.com/t/x-accel-redirect-proxy-pass-and-range-requests/196088)

<div class="topic-metadata">

**Author:** [@Ben\_Timby](https://www.ruby-forum.com/u/Ben_Timby)\
**Replies:** 1\
**Last updated:** [October 6, 2010, 6:03pm UTC](https://www.ruby-forum.com/t/x-accel-redirect-proxy-pass-and-range-requests/196088 "2010-10-06T18:03:36Z")

</div>

I have some complex interaction going on here and I would like to see if anybody has some suggestions for me. I have Nginx in front of apache serving static files, performing compression and SSL. For large files, I us…

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

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