# Server

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

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

---

## [Getting "MyIP - - "GET devices HTTP/1.1" 400 172 "-" "-""](https://www.ruby-forum.com/t/getting-myip-get-devices-http-1-1-400-172/223675)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [October 13, 2012, 11:20am UTC](https://www.ruby-forum.com/t/getting-myip-get-devices-http-1-1-400-172/223675 "2012-10-13T11:20:55Z")

</div>

I’m running NginX server and sending HTTP requests from cUrl, browser and python httplib client. When I try tosend any request through python httplib client, it is getting bad request response but the same request i…

---

## [Flushing fastcgi cache](https://www.ruby-forum.com/t/flushing-fastcgi-cache/223670)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [October 12, 2012, 11:48pm UTC](https://www.ruby-forum.com/t/flushing-fastcgi-cache/223670 "2012-10-12T23:48:41Z")

</div>

Don’t know if I’m just having a caffeine-deficiency moment here, but how does one clear the fastcgi cache on either a site-wide or per-file basis? Thanks.

---

## [Keep getting "does not match "](https://www.ruby-forum.com/t/keep-getting-does-not-match/223637)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [October 12, 2012, 7:55pm UTC](https://www.ruby-forum.com/t/keep-getting-does-not-match/223637 "2012-10-12T19:55:34Z")

</div>

I have a complicated setup where I’m running WordPress in the /blog/ subfolder, and then Vanilla Forums 2 in the /forums/ folder under root. The config below works fine for almost all pages except all images under the …

---

## [Nginx Map Multiple Parameter Input](https://www.ruby-forum.com/t/nginx-map-multiple-parameter-input/223652)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 12\
**Last updated:** [October 12, 2012, 5:15pm UTC](https://www.ruby-forum.com/t/nginx-map-multiple-parameter-input/223652 "2012-10-12T17:15:22Z")

</div>

I have a case where I need to use Nginx map in slightly different way. I use following to create a variable $blogpath map $uri $blogname{ ~^(?P\<blogpath\>/\[\_0-9a-zA-Z-\]+/)files/(.\*) $blogpath ; } Next, I …

---

## [Get conf location of a running nginx process](https://www.ruby-forum.com/t/get-conf-location-of-a-running-nginx-process/223636)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [October 12, 2012, 3:09am UTC](https://www.ruby-forum.com/t/get-conf-location-of-a-running-nginx-process/223636 "2012-10-12T03:09:12Z")

</div>

Hi list, Is there a general way to extract the nginx config file path, in a third party program? I see the sudo strace -s reload has this line open("/etc/nginx/nginx.conf", O\_RDONLY|O\_LARGEFILE) = 4 but how can I ge…

---

## [URI re-mapping using try\_files](https://www.ruby-forum.com/t/uri-re-mapping-using-try-files/223626)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [October 11, 2012, 11:23pm UTC](https://www.ruby-forum.com/t/uri-re-mapping-using-try-files/223626 "2012-10-11T23:23:07Z")

</div>

Hello, I am new to nginx, and am still learning my way. I use nginx to serve static html pages to users, and in particular, I want users who visit ‘www.example.com/public/doc/abc123?para=data’ to be served with the…

---

## [Does nginx have a directive analogous to Apache's \<Directory\>?](https://www.ruby-forum.com/t/does-nginx-have-a-directive-analogous-to-apaches-directory/223625)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [October 11, 2012, 10:37pm UTC](https://www.ruby-forum.com/t/does-nginx-have-a-directive-analogous-to-apaches-directory/223625 "2012-10-11T22:37:33Z")

</div>

Hello, I’m trying to set up an nginx server to replace our current setup based on Apache. Our users have password protected directories (with directives in .htaccess files) which we need to keep protected in the new …

---

## [Deny ips, and pick ips from a file](https://www.ruby-forum.com/t/deny-ips-and-pick-ips-from-a-file/223617)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [October 11, 2012, 1:03pm UTC](https://www.ruby-forum.com/t/deny-ips-and-pick-ips-from-a-file/223617 "2012-10-11T13:03:07Z")

</div>

Hi all, I need to deny users by ip. I assume we need to do something like this location / { block one workstation deny 192.168.1.1; allow anyone in 192.168.1.0/24 allow 192.168.1.0/24; drop rest of the world de…

---

## [Limit\_req seems to have no effect, but I would prefer it did](https://www.ruby-forum.com/t/limit-req-seems-to-have-no-effect-but-i-would-prefer-it-did/223551)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [October 11, 2012, 3:17am UTC](https://www.ruby-forum.com/t/limit-req-seems-to-have-no-effect-but-i-would-prefer-it-did/223551 "2012-10-11T03:17:36Z")

</div>

I’m attempting to rate limit requests, and I’m unable to make the limit\_req directive have any effect. I’ve trimmed it down to a minimal test case. Here’s my complete nginx.conf (with only the server\_name changed to …

---

## [This may be a dumb ssl question, but here goes](https://www.ruby-forum.com/t/this-may-be-a-dumb-ssl-question-but-here-goes/223602)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 7\
**Last updated:** [October 11, 2012, 1:17am UTC](https://www.ruby-forum.com/t/this-may-be-a-dumb-ssl-question-but-here-goes/223602 "2012-10-11T01:17:13Z")

</div>

Can I install and configure nginx to use a “public”/global CA’s SSL Certificate like Verisign, AND force (require) the use of client SSL certificates, AND allow those client/browser-certificates to be from a different…

---

## [Apparent deadlock with fastcgi](https://www.ruby-forum.com/t/apparent-deadlock-with-fastcgi/223611)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [October 11, 2012, 12:49am UTC](https://www.ruby-forum.com/t/apparent-deadlock-with-fastcgi/223611 "2012-10-11T00:49:09Z")

</div>

I have a simple fastcgi responder that converts a JSON post to a CSV download. It works in a streaming fashion, writing the response before finishing reading the request. According to the FastCGI specification, such …

---

## [Handling 500k concurrent connections on Linux](https://www.ruby-forum.com/t/handling-500k-concurrent-connections-on-linux/223568)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [October 10, 2012, 10:12pm UTC](https://www.ruby-forum.com/t/handling-500k-concurrent-connections-on-linux/223568 "2012-10-10T22:12:31Z")

</div>

I was wondering if anyone had some tips/guidelines for scaling Nginx on Linux to \>500k concurrent connections. Playing with the nginx\_http\_push\_stream module in streaming mode. Noticing periodic slow accept and/or res…

---

## [Starter/HelloWorld nginx module](https://www.ruby-forum.com/t/starter-helloworld-nginx-module/223585)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [October 10, 2012, 7:18pm UTC](https://www.ruby-forum.com/t/starter-helloworld-nginx-module/223585 "2012-10-10T19:18:16Z")

</div>

Hello, I want to develop a simple nginx module so I am looking for some sample module, and I searched in Google and got: “Emiller’s Guide to Nginx Module Development – Evan Miller” While the content is amazing in det…

---

## [Nginx upstream not balancing properly](https://www.ruby-forum.com/t/nginx-upstream-not-balancing-properly/223592)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [October 10, 2012, 5:42pm UTC](https://www.ruby-forum.com/t/nginx-upstream-not-balancing-properly/223592 "2012-10-10T17:42:59Z")

</div>

Hi, I am running latest nginx and using it for load balancing. I am using the upstream fair module. I have 3 backend servers running apache. The problem is that when I start a load test the balancing is not done co…

---

## [Ginx reverse proxy + wordpress in subdir](https://www.ruby-forum.com/t/ginx-reverse-proxy-wordpress-in-subdir/223591)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [October 10, 2012, 4:49pm UTC](https://www.ruby-forum.com/t/ginx-reverse-proxy-wordpress-in-subdir/223591 "2012-10-10T16:49:12Z")

</div>

hello @all i have url test.example.com/blog in nginx i have defined a reverse proxy location /blog { proxy\_pass http://blog.example.com/; proxy\_redirect default; } all this is running very well. in the directory …

---

## [Rewrite and FastCGI](https://www.ruby-forum.com/t/rewrite-and-fastcgi/223554)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 7\
**Last updated:** [October 10, 2012, 2:37pm UTC](https://www.ruby-forum.com/t/rewrite-and-fastcgi/223554 "2012-10-10T14:37:05Z")

</div>

Hello everyone! I’m trying to use rewrite and fastcgis with Nginx 1.2.1 (from the Debian Wheezy package). My root directory looks like this: /www/dir1 /www/dir2 In my server’s file I have this: root /www/; # …

---

## [Tengine-1.4.1](https://www.ruby-forum.com/t/tengine-1-4-1/223584)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [October 10, 2012, 10:05am UTC](https://www.ruby-forum.com/t/tengine-1-4-1/223584 "2012-10-10T10:05:59Z")

</div>

Hi folks, We are glad to announce that Tengine-1.4.1 (development version) has been released. You can either checkout the source code from github: GitHub - alibaba-archive/tengine: This project has been transfered to …

---

## [Help with cache manager](https://www.ruby-forum.com/t/help-with-cache-manager/223567)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [October 9, 2012, 10:46pm UTC](https://www.ruby-forum.com/t/help-with-cache-manager/223567 "2012-10-09T22:46:31Z")

</div>

Hi, I’m having trouble with the cache manager, it is not controlling the max\_size of the cache. I have 22 workers on a 24 core server, 3 cache paths, one with 600g and other two with 200g of max\_size. The cache path…

---

## [Getting built in 404 instead of my custom one](https://www.ruby-forum.com/t/getting-built-in-404-instead-of-my-custom-one/223544)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 8\
**Last updated:** [October 9, 2012, 10:34am UTC](https://www.ruby-forum.com/t/getting-built-in-404-instead-of-my-custom-one/223544 "2012-10-09T10:34:59Z")

</div>

Just noticed that my custom 404 page isn’t getting served in all circumstances and I’m getting the bare internal 404 at times. Looking at the debug, it seems to be choosing my 404, but somehow not displaying it: 2012…

---

## [Ngx\_openresty stable version 1.2.3.8 released](https://www.ruby-forum.com/t/ngx-openresty-stable-version-1-2-3-8-released/223541)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [October 9, 2012, 12:20am UTC](https://www.ruby-forum.com/t/ngx-openresty-stable-version-1-2-3-8-released/223541 "2012-10-09T00:20:22Z")

</div>

Hello, folks! I am happy to announce the new stable version of ngx\_openresty, 1.2.3.8: OpenResty® - Open source This release is exactly the same as the last development release, 1.2.3.7. This is the final release ba…

---

## [Redirect loop problem with SSL](https://www.ruby-forum.com/t/redirect-loop-problem-with-ssl/223511)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [October 8, 2012, 6:29pm UTC](https://www.ruby-forum.com/t/redirect-loop-problem-with-ssl/223511 "2012-10-08T18:29:42Z")

</div>

Hello, I am having a problem understanding exactly how to configure my nginx server to use SSL with Linode, RoR, Unicorn and spree ecommerce. This post will be kind of long, but this is just so you can see all the s…

---

## [Tomcat behind Nginx resulting in jsessionids in url](https://www.ruby-forum.com/t/tomcat-behind-nginx-resulting-in-jsessionids-in-url/223523)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [October 8, 2012, 5:00pm UTC](https://www.ruby-forum.com/t/tomcat-behind-nginx-resulting-in-jsessionids-in-url/223523 "2012-10-08T17:00:50Z")

</div>

Hello everybody, I’m trying to set up nginx as a reverse proxy and softwareloadbalancer. The backend is built by some tomcat servers. Using apache as a reverse proxy everything goes well, but using nginx the followin…

---

## [Imap\_client\_buffer not being obeyed](https://www.ruby-forum.com/t/imap-client-buffer-not-being-obeyed/223487)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [October 8, 2012, 12:58pm UTC](https://www.ruby-forum.com/t/imap-client-buffer-not-being-obeyed/223487 "2012-10-08T12:58:15Z")

</div>

I have imap\_client\_buffer set to 64k(as required by imap protocol) in the nginx.conf file However when an imap client sends a very long command, post authentication, the length gets truncated at 4k(the default page …

---

## [Joomla and zend](https://www.ruby-forum.com/t/joomla-and-zend/223348)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [October 8, 2012, 11:07am UTC](https://www.ruby-forum.com/t/joomla-and-zend/223348 "2012-10-08T11:07:51Z")

</div>

Hi, I’m trying to figure out how use a zend application within a joomla website which is not in the document root of a website. The website is located in /www/customer/some.name and the zend application is located in…

---

## [Ngx\_openresty devel version 1.2.3.7 released](https://www.ruby-forum.com/t/ngx-openresty-devel-version-1-2-3-7-released/223493)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [October 6, 2012, 9:29pm UTC](https://www.ruby-forum.com/t/ngx-openresty-devel-version-1-2-3-7-released/223493 "2012-10-06T21:29:07Z")

</div>

Hello, folks! I am happy to announce the new development version of ngx\_openresty, 1.2.3.7: OpenResty® - Open source Special thanks go to all our contributors and users for helping make this happen! Below is the co…

---

## [Deamon off option is not recognized](https://www.ruby-forum.com/t/deamon-off-option-is-not-recognized/223472)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [October 6, 2012, 12:36pm UTC](https://www.ruby-forum.com/t/deamon-off-option-is-not-recognized/223472 "2012-10-06T12:36:22Z")

</div>

hello, I wrote nginx.conf first line. deamon off; but demon off option is not recognized why? my nginx version: nginx/1.2.1 please help me /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf nginx: \[…

---

## [Webdav support](https://www.ruby-forum.com/t/webdav-support/223468)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [October 5, 2012, 5:53pm UTC](https://www.ruby-forum.com/t/webdav-support/223468 "2012-10-05T17:53:30Z")

</div>

I will be setting up a “server” for webdav access. Basically for SSL session caching only, not much else but that and proxy back to the actual app server. Do I need the webdav and the ngx-dav-ext-module to support al…

---

## [Ignore part of URL to force caching?](https://www.ruby-forum.com/t/ignore-part-of-url-to-force-caching/223450)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [October 5, 2012, 5:46pm UTC](https://www.ruby-forum.com/t/ignore-part-of-url-to-force-caching/223450 "2012-10-05T17:46:29Z")

</div>

I would like to “override” the intent of the app server that is basically disabling any caching of the backend file. For example, they are embedding a “noCache=#######” parameter at the end of the URL (there are othe…

---

## [How to tell Proxy module to retrieve secondary URL if primary URL doenst exist](https://www.ruby-forum.com/t/how-to-tell-proxy-module-to-retrieve-secondary-url-if-primary-url-doenst-exist/223431)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [October 5, 2012, 2:34pm UTC](https://www.ruby-forum.com/t/how-to-tell-proxy-module-to-retrieve-secondary-url-if-primary-url-doenst-exist/223431 "2012-10-05T14:34:16Z")

</div>

Hi all, I am using nginx’s Proxy module to retrieve images from Amazon S3. I need to be able to tell the Proxy module to retrieve a smaller sized file if a bigger sized file doesnt exist. How can I do that? For inst…

---

## [Nginx: mmap(MAP\_ANON|MAP\_SHARED, 2097152) failed (28: No space left on device)](https://www.ruby-forum.com/t/nginx-mmap-map-anon-map-shared-2097152-failed-28-no-space-left-on-device/223455)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [October 5, 2012, 11:50am UTC](https://www.ruby-forum.com/t/nginx-mmap-map-anon-map-shared-2097152-failed-28-no-space-left-on-device/223455 "2012-10-05T11:50:40Z")

</div>

Dear all, I must kindly ask for your help again. I have installed nginx on dozens of VPS and never came across the problem that I am facing now on my newest installation. When I try to (re-) start nginx, I get the fo…

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

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