# Server

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

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

---

## [Nginx rewrite rules for phpBB](https://www.ruby-forum.com/t/nginx-rewrite-rules-for-phpbb/227244)

<div class="topic-metadata">

**Author:** [@Demontager](https://www.ruby-forum.com/u/Demontager)\
**Replies:** 0\
**Last updated:** [March 8, 2013, 10:15am UTC](https://www.ruby-forum.com/t/nginx-rewrite-rules-for-phpbb/227244 "2013-03-08T10:15:11Z")

</div>

I need help with phpBB rewrite rules. Used this tool htaccess-конвертер для nginx to convert some rules, but they are not applied. The syntax is ok, so i don’t know the problem. Original .htaccess - # Lines That sho…

---

## ['Primary' domain in server block?](https://www.ruby-forum.com/t/primary-domain-in-server-block/227201)

<div class="topic-metadata">

**Author:** [@Tom\_Barrett](https://www.ruby-forum.com/u/Tom_Barrett)\
**Replies:** 3\
**Last updated:** [March 8, 2013, 9:54am UTC](https://www.ruby-forum.com/t/primary-domain-in-server-block/227201 "2013-03-08T09:54:09Z")

</div>

Hi I’m doing some work with PayPal integration. My server block looks like this: server { server\_name dev01.localmap.net dev01.devsite.co.uk; … } The work is being done in under ‘dev01.devsite.co.uk’ domain. Howev…

---

## [Nginx for images (apache for pages)](https://www.ruby-forum.com/t/nginx-for-images-apache-for-pages/227227)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [March 8, 2013, 7:33am UTC](https://www.ruby-forum.com/t/nginx-for-images-apache-for-pages/227227 "2013-03-08T07:33:55Z")

</div>

I’m serving images and dynamic .html pages via apache on port 80. I’d like to have nginx to serve the images. How can this be done since both apache and nginx need to serve requests on port 80? Grant

---

## [Kindly help me convert this htaccess to nginx directives?](https://www.ruby-forum.com/t/kindly-help-me-convert-this-htaccess-to-nginx-directives/227225)

<div class="topic-metadata">

**Author:** [@ubunifu](https://www.ruby-forum.com/u/ubunifu)\
**Replies:** 1\
**Last updated:** [March 8, 2013, 12:04am UTC](https://www.ruby-forum.com/t/kindly-help-me-convert-this-htaccess-to-nginx-directives/227225 "2013-03-08T00:04:00Z")

</div>

ErrorDocument 404 / ErrorDocument 500 / Options +FollowSymlinks RewriteEngine on RewriteBase / SecFilterEngine Off SecFilterScanPOST Off RewriteCond %{SCRIPT\_FILENAME} !-d RewriteCond %{SCRIPT\_FILENAME} !-f Rewr…

---

## [Build from source pointing to installed libs (e.g. pcre)](https://www.ruby-forum.com/t/build-from-source-pointing-to-installed-libs-e-g-pcre/227209)

<div class="topic-metadata">

**Author:** [@anthony\_kerz](https://www.ruby-forum.com/u/anthony_kerz)\
**Replies:** 3\
**Last updated:** [March 7, 2013, 4:14pm UTC](https://www.ruby-forum.com/t/build-from-source-pointing-to-installed-libs-e-g-pcre/227209 "2013-03-07T16:14:34Z")

</div>

hi, i’m trying to build from source on an ubuntu system which has libpcre3 installed: tony@quantal:~/Downloads/nginx-1.3.14$ dpkg -l | grep pcre ii libpcre3:i386 1:8.30-5ubuntu1 i386 Perl 5 Compatible Regular Expres…

---

## [I/O error on uploading video upto 4mb](https://www.ruby-forum.com/t/i-o-error-on-uploading-video-upto-4mb/227206)

<div class="topic-metadata">

**Author:** [@shahzaib12](https://www.ruby-forum.com/u/shahzaib12)\
**Replies:** 1\
**Last updated:** [March 7, 2013, 3:41pm UTC](https://www.ruby-forum.com/t/i-o-error-on-uploading-video-upto-4mb/227206 "2013-03-07T15:41:16Z")

</div>

Hello, We recentyl changed our ip of the server to upgrade port to 2Gbps but after upgrading port, we are unable to upload .flv video upto 4mb. Everything was working fine before the up-gradation. Following is the …

---

## [Problem request\_timeout not working with proxy\_next\_upstream on proxy\_connect\_timeout but proxy\_read](https://www.ruby-forum.com/t/problem-request-timeout-not-working-with-proxy-next-upstream-on-proxy-connect-timeout-but-proxy-read/227172)

<div class="topic-metadata">

**Author:** [@yvlasov](https://www.ruby-forum.com/u/yvlasov)\
**Replies:** 3\
**Last updated:** [March 7, 2013, 2:47pm UTC](https://www.ruby-forum.com/t/problem-request-timeout-not-working-with-proxy-next-upstream-on-proxy-connect-timeout-but-proxy-read/227172 "2013-03-07T14:47:30Z")

</div>

Hello In our setup we have an NGNX as front-end and several back-end. The problem is our load profile, we have a lot of simple and fast http requests, and very few but very heavy in terms of time and BE cpu requests…

---

## [Cache keeps growing despite Max\_size limit](https://www.ruby-forum.com/t/cache-keeps-growing-despite-max-size-limit/227175)

<div class="topic-metadata">

**Author:** [@Jan-34](https://www.ruby-forum.com/u/Jan-34)\
**Replies:** 7\
**Last updated:** [March 7, 2013, 2:31pm UTC](https://www.ruby-forum.com/t/cache-keeps-growing-despite-max-size-limit/227175 "2013-03-07T14:31:08Z")

</div>

Hi, I’m having issues with nginx where my cache directory keeps growing until the hdd is full. If anyone can give me any information on how to solve this it will be appreciated. nginx -V: nginx version: nginx/1.2.…

---

## [Ngx\_slowfs\_cache-1.10](https://www.ruby-forum.com/t/ngx-slowfs-cache-1-10/227208)

<div class="topic-metadata">

**Author:** [@piotrs](https://www.ruby-forum.com/u/piotrs)\
**Replies:** 0\
**Last updated:** [March 7, 2013, 2:17pm UTC](https://www.ruby-forum.com/t/ngx-slowfs-cache-1-10/227208 "2013-03-07T14:17:41Z")

</div>

Version 1.10 is now available at: http://labs.frickle.com/nginx\_ngx\_slowfs\_cache/ GitHub repository is available at: Changes: 2013-03-07 VERSION 1.10 \* Fix compatibility with nginx-1.1.12+. Due to the changes i…

---

## [Want to access UNIX environment variable](https://www.ruby-forum.com/t/want-to-access-unix-environment-variable/226968)

<div class="topic-metadata">

**Author:** [@amodpandey](https://www.ruby-forum.com/u/amodpandey)\
**Replies:** 8\
**Last updated:** [March 7, 2013, 10:17am UTC](https://www.ruby-forum.com/t/want-to-access-unix-environment-variable/226968 "2013-03-07T10:17:34Z")

</div>

Hi, I have system where I have defined OS environment variable $ENV=prod or dev. I want to access this variable inside my nginx configuration. Please help. I have tried -g “env ENV” in command line. But how do I acc…

---

## [Limit serving to responses only below certain size](https://www.ruby-forum.com/t/limit-serving-to-responses-only-below-certain-size/227178)

<div class="topic-metadata">

**Author:** [@Calin\_D](https://www.ruby-forum.com/u/Calin_D)\
**Replies:** 3\
**Last updated:** [March 6, 2013, 9:07pm UTC](https://www.ruby-forum.com/t/limit-serving-to-responses-only-below-certain-size/227178 "2013-03-06T21:07:50Z")

</div>

Hi, Is there a way to server files only below a certain size? eg. Return 403 on files bigger than 5MB?

---

## [Nginx proxy\_intercept\_errors](https://www.ruby-forum.com/t/nginx-proxy-intercept-errors/227179)

<div class="topic-metadata">

**Author:** [@Kiril\_Kalchev](https://www.ruby-forum.com/u/Kiril_Kalchev)\
**Replies:** 6\
**Last updated:** [March 6, 2013, 4:55pm UTC](https://www.ruby-forum.com/t/nginx-proxy-intercept-errors/227179 "2013-03-06T16:55:59Z")

</div>

nginx mailing list removed\_email\_address@domain.invalid http://mailman.nginx.org/mailman/listinfo/nginx

---

## [Ngixn не отдает файлы больше 1 мб](https://www.ruby-forum.com/t/ngixn-1/227165)

<div class="topic-metadata">

**Author:** [@coffin](https://www.ruby-forum.com/u/coffin)\
**Replies:** 2\
**Last updated:** [March 6, 2013, 1:58pm UTC](https://www.ruby-forum.com/t/ngixn-1/227165 "2013-03-06T13:58:53Z")

</div>

Nginx не отдает файлы \> 1мб Есть Rails + Nginx + Unicorn Все работает, мелкие файлы отдаются, даже видео через JWPlayer проигрывается. Проблема в том, что есть флешка 1.8 МБ и когда пытаешься ее вывести на страницу …

---

## [Why would nginx 0.7.6 drop requests randomly](https://www.ruby-forum.com/t/why-would-nginx-0-7-6-drop-requests-randomly/227155)

<div class="topic-metadata">

**Author:** [@romez777](https://www.ruby-forum.com/u/romez777)\
**Replies:** 1\
**Last updated:** [March 6, 2013, 12:55pm UTC](https://www.ruby-forum.com/t/why-would-nginx-0-7-6-drop-requests-randomly/227155 "2013-03-06T12:55:09Z")

</div>

I notice our server is rapidly responding 500 errors for random pages. Our setup is pretty basic. We are running Nginx 0.7.6 with Unicorn and a Rails app on a Ubuntu 10.4 server. What ever the problem, it doesn’t seem…

---

## [Wanted: suggestions on how to invert proxy\_pass return codes](https://www.ruby-forum.com/t/wanted-suggestions-on-how-to-invert-proxy-pass-return-codes/227125)

<div class="topic-metadata">

**Author:** [@jonathan2000](https://www.ruby-forum.com/u/jonathan2000)\
**Replies:** 2\
**Last updated:** [March 6, 2013, 11:18am UTC](https://www.ruby-forum.com/t/wanted-suggestions-on-how-to-invert-proxy-pass-return-codes/227125 "2013-03-06T11:18:42Z")

</div>

Hi all - I have an odd requirement which I’m not quite able to solve - is there anyone out there with a solution? For reasons I won’t go into, but which are unfortunately immovable and quite real, I need to come up w…

---

## [Need help to convert .htaccess to nginx rules](https://www.ruby-forum.com/t/need-help-to-convert-htaccess-to-nginx-rules/227144)

<div class="topic-metadata">

**Author:** [@onel0ve](https://www.ruby-forum.com/u/onel0ve)\
**Replies:** 5\
**Last updated:** [March 6, 2013, 11:13am UTC](https://www.ruby-forum.com/t/need-help-to-convert-htaccess-to-nginx-rules/227144 "2013-03-06T11:13:27Z")

</div>

\[code\]\<Files \*.htm\> #Compress SetOutputFilter DEFLATE Options +FollowSymLinks RewriteEngine on RewriteBase / please use .php at url for admin RewriteRule ^recent-articles-feed rss.php \[NC\] RewriteRule ^rss/(\[^/…

---

## [Forwarding to upstream server at port specified in url query paramter](https://www.ruby-forum.com/t/forwarding-to-upstream-server-at-port-specified-in-url-query-paramter/227157)

<div class="topic-metadata">

**Author:** [@dakun](https://www.ruby-forum.com/u/dakun)\
**Replies:** 4\
**Last updated:** [March 6, 2013, 10:54am UTC](https://www.ruby-forum.com/t/forwarding-to-upstream-server-at-port-specified-in-url-query-paramter/227157 "2013-03-06T10:54:44Z")

</div>

I am trying to use the HttpProxyModule to forward traffic to an upstream server. The incoming request will be like: http://foobar.com/path?p=1234 where p=1234 indicates the upstream port to use. For this example I wo…

---

## [Nginx stats](https://www.ruby-forum.com/t/nginx-stats/218363)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [March 6, 2013, 7:38am UTC](https://www.ruby-forum.com/t/nginx-stats/218363 "2013-03-06T07:38:23Z")

</div>

Folks, I’am interested in nginx stats like per return status numbers, bytes served etc. I run nginx in a reverse proxy mode. I know parsing logs will give that, but I wanted to know if there any module which gives th…

---

## [Nginx-1.3.14: alert sched\_setaffinity() failed](https://www.ruby-forum.com/t/nginx-1-3-14-alert-sched-setaffinity-failed/227145)

<div class="topic-metadata">

**Author:** [@lynchnco](https://www.ruby-forum.com/u/lynchnco)\
**Replies:** 2\
**Last updated:** [March 5, 2013, 9:37pm UTC](https://www.ruby-forum.com/t/nginx-1-3-14-alert-sched-setaffinity-failed/227145 "2013-03-05T21:37:12Z")

</div>

Hi, On an updated CentOS 6.3 x86\_64 VM I just installed nginx 1.3.14 with extra modules ngx\_cache\_purge and nginx-auth-ldap, the SPDY 66 patch and built statically against openssl-1.0.1e. In the error log I see this …

---

## [Websocket on port 80](https://www.ruby-forum.com/t/websocket-on-port-80/227116)

<div class="topic-metadata">

**Author:** [@trm\_asn](https://www.ruby-forum.com/u/trm_asn)\
**Replies:** 1\
**Last updated:** [March 5, 2013, 8:55pm UTC](https://www.ruby-forum.com/t/websocket-on-port-80/227116 "2013-03-05T20:55:44Z")

</div>

Hi List, I am using Nginx-1.3.13 for this websocket support. I am doing socket.ioproxy from Nginx . Below is my nginx.conf for websocket . http { include /etc/nginx/mime.types; default\_type application/octet-…

---

## [QNs about cookies and caching](https://www.ruby-forum.com/t/qns-about-cookies-and-caching/227147)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 0\
**Last updated:** [March 5, 2013, 8:06pm UTC](https://www.ruby-forum.com/t/qns-about-cookies-and-caching/227147 "2013-03-05T20:06:39Z")

</div>

I’m wondering if someone can help with the following? I have a java app where I’m using nginx as a caching reverse proxy. I have a location defined for five distinct JSPs and different cache configurations and custom …

---

## [nginx/KQUEUE breaks proxy\_ignore\_client\_abort](https://www.ruby-forum.com/t/nginx-kqueue-breaks-proxy-ignore-client-abort/227037)

<div class="topic-metadata">

**Author:** [@philpeterman](https://www.ruby-forum.com/u/philpeterman)\
**Replies:** 10\
**Last updated:** [March 5, 2013, 4:33pm UTC](https://www.ruby-forum.com/t/nginx-kqueue-breaks-proxy-ignore-client-abort/227037 "2013-03-05T16:33:55Z")

</div>

Folks, If nginx is built on FreeBSD, “proxy\_ignore\_client\_abort on;” has no/little effect, because TCP half-closes cause a connection drop even if not speaking to a proxy backend. Situation: PGP clients talk to PGP k…

---

## [No such file or directory errors, nginx hang after a few hours](https://www.ruby-forum.com/t/no-such-file-or-directory-errors-nginx-hang-after-a-few-hours/179870)

<div class="topic-metadata">

**Author:** [@Tlvenn](https://www.ruby-forum.com/u/Tlvenn)\
**Replies:** 3\
**Last updated:** [March 5, 2013, 2:01pm UTC](https://www.ruby-forum.com/t/no-such-file-or-directory-errors-nginx-hang-after-a-few-hours/179870 "2013-03-05T14:01:17Z")

</div>

Hi, I am pretty new to nginx so I am pretty sure I must do something wrong here. Basically, I am using nginx as a proxy cache but nginx only read in a given directory, if the file is not found, nginx proxy pass to th…

---

## [Rewrite inside location block before proxy to local port](https://www.ruby-forum.com/t/rewrite-inside-location-block-before-proxy-to-local-port/227137)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 0\
**Last updated:** [March 5, 2013, 12:58pm UTC](https://www.ruby-forum.com/t/rewrite-inside-location-block-before-proxy-to-local-port/227137 "2013-03-05T12:58:45Z")

</div>

Hi, I asked somewhat releated question here: Problem arises with one java program. This java program now expects /beta/scm because it said “/scm not found” in its pretty java error page. Not nginx 404. So this is …

---

## [Getting HTTP 500 Error](https://www.ruby-forum.com/t/getting-http-500-error/227135)

<div class="topic-metadata">

**Author:** [@Demontager](https://www.ruby-forum.com/u/Demontager)\
**Replies:** 0\
**Last updated:** [March 5, 2013, 9:22am UTC](https://www.ruby-forum.com/t/getting-http-500-error/227135 "2013-03-05T09:22:35Z")

</div>

I’m trying to setup Nginx+phpFPM for first time (php5.2) and can’t get it working. Base system is FreeBSD 9.1. So my main configs: nginx.conf - user www www;worker\_processes 2;error\_log /var/log/nginx/error.log cri…

---

## [Get alert : sem\_init() failed (78: Function not implemented](https://www.ruby-forum.com/t/get-alert-sem-init-failed-78-function-not-implemented/227103)

<div class="topic-metadata">

**Author:** [@Meteor](https://www.ruby-forum.com/u/Meteor)\
**Replies:** 2\
**Last updated:** [March 5, 2013, 8:49am UTC](https://www.ruby-forum.com/t/get-alert-sem-init-failed-78-function-not-implemented/227103 "2013-03-05T08:49:52Z")

</div>

Hi All, I just upgrade freebsd from 8.1 to 9.1. And after that, every time I start Nginx, I’l get below error message: 2013/03/04 09:21:27 \[alert\] 43757#0: sem\_init() failed (78: Function not implemented) 2013/03/04…

---

## [USE\_THREAD nginx?](https://www.ruby-forum.com/t/use-thread-nginx/227113)

<div class="topic-metadata">

**Author:** [@alexanderk](https://www.ruby-forum.com/u/alexanderk)\
**Replies:** 1\
**Last updated:** [March 5, 2013, 8:10am UTC](https://www.ruby-forum.com/t/use-thread-nginx/227113 "2013-03-05T08:10:41Z")

</div>

Hi, I see under auto/options, the macro USE\_THREAD is set to no while the configure options are disabled. Out of curiosity, are they planned to bundle threading with the reactor loop in the future? or why is threadin…

---

## [Any suggestions for setting up Global/Wildcard Errors?](https://www.ruby-forum.com/t/any-suggestions-for-setting-up-global-wildcard-errors/227127)

<div class="topic-metadata">

**Author:** [@jonny](https://www.ruby-forum.com/u/jonny)\
**Replies:** 0\
**Last updated:** [March 5, 2013, 1:57am UTC](https://www.ruby-forum.com/t/any-suggestions-for-setting-up-global-wildcard-errors/227127 "2013-03-05T01:57:20Z")

</div>

I’m surprised this hasn’t come up before ( I’ve looked on this archive + Stack Overflow ) There doesn’t seem to be a way to catch all errors in nginx. They need to all be specified. I’m using nginx with proxy\_interc…

---

## [Manage Configuration with external script question](https://www.ruby-forum.com/t/manage-configuration-with-external-script-question/227118)

<div class="topic-metadata">

**Author:** [@Agus](https://www.ruby-forum.com/u/Agus)\
**Replies:** 0\
**Last updated:** [March 4, 2013, 9:24pm UTC](https://www.ruby-forum.com/t/manage-configuration-with-external-script-question/227118 "2013-03-04T21:24:16Z")

</div>

Hi guys, I set up an nginx as reverse proxy and did some scripts so hosts could be added automatically just by entering the name and ip. Pretty basic. Now i am interested in creating a script to manage the whole con…

---

## [Fastcgi\_buffers question](https://www.ruby-forum.com/t/fastcgi-buffers-question/227101)

<div class="topic-metadata">

**Author:** [@Anoop\_A](https://www.ruby-forum.com/u/Anoop_A)\
**Replies:** 0\
**Last updated:** [March 4, 2013, 3:47pm UTC](https://www.ruby-forum.com/t/fastcgi-buffers-question/227101 "2013-03-04T15:47:36Z")

</div>

Hi, What is the best configuration for fastcgi\_buffers fastcgi\_buffers 512 4k; or fastcgi\_buffers 4 512k; Both are allocating 2 Mb cache; but which is better . getconf PAGESIZE on my system returns 4k Thank you,

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

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