# Server

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

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

---

## [Replace content of body reverse proxy](https://www.ruby-forum.com/t/replace-content-of-body-reverse-proxy/200969)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 1\
**Last updated:** [October 26, 2012, 3:20pm UTC](https://www.ruby-forum.com/t/replace-content-of-body-reverse-proxy/200969 "2012-10-26T15:20:27Z")

</div>

Hi, I want to configure my nginx server to reverse proxy a given website, and change the contents of the html to render something else. For example, if my website is www.google-proxy.com, it will show the user the go…

---

## [Error\_page not redirecting as expected](https://www.ruby-forum.com/t/error-page-not-redirecting-as-expected/224008)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [October 26, 2012, 2:50pm UTC](https://www.ruby-forum.com/t/error-page-not-redirecting-as-expected/224008 "2012-10-26T14:50:39Z")

</div>

Hello, I’m sure it’s something simple, but I don’t know where the problem is in the following configuration: server { listen 80; server\_name example.com; root /path/to/webroot; error\_page 404 /status/404; locatio…

---

## [Nginx rewite base file name help!](https://www.ruby-forum.com/t/nginx-rewite-base-file-name-help/224001)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [October 26, 2012, 12:08pm UTC](https://www.ruby-forum.com/t/nginx-rewite-base-file-name-help/224001 "2012-10-26T12:08:48Z")

</div>

http://pic.test.com/view.php?filename=947284035\_234601603334998.jpg to http://pic.test.com/947284035\_234601603334998 base file name thanks Posted at Nginx Forum:

---

## [.htaccess style support in existing nginx](https://www.ruby-forum.com/t/htaccess-style-support-in-existing-nginx/223967)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 9\
**Last updated:** [October 26, 2012, 12:01pm UTC](https://www.ruby-forum.com/t/htaccess-style-support-in-existing-nginx/223967 "2012-10-26T12:01:47Z")

</div>

First, we can use “watch/monitor” files in linux for changes and execute some command based on it. Now, for a site lets put a “.nginxaccess” file to hold site specific configuration (file will be writable by PHp, etc …

---

## [Why two different responses?](https://www.ruby-forum.com/t/why-two-different-responses/223997)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [October 26, 2012, 10:37am UTC](https://www.ruby-forum.com/t/why-two-different-responses/223997 "2012-10-26T10:37:40Z")

</div>

One of these requests is sent by my program. One is sent by curl (it’s easy to tell which). They are identical as far as I can tell. However, the curl request returns the expected result (204) from my servlet. The…

---

## [Patch limit\_rate\_max: for your review](https://www.ruby-forum.com/t/patch-limit-rate-max-for-your-review/224000)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [October 26, 2012, 9:14am UTC](https://www.ruby-forum.com/t/patch-limit-rate-max-for-your-review/224000 "2012-10-26T09:14:06Z")

</div>

Hello I have a new patch for Nginx. I use this server to stream videos. I needed a way to burst the rate with limit\_rate\_after but controlled from config, not at full throttle. Eg.: send 4Mb with 500KBps and the rem…

---

## [Ajp](https://www.ruby-forum.com/t/ajp/223965)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 10\
**Last updated:** [October 25, 2012, 10:23pm UTC](https://www.ruby-forum.com/t/ajp/223965 "2012-10-25T22:23:54Z")

</div>

Hi I was wondering what people use to connect to tomcat with AJP I found this site But it’s not part of the 3rd party table on the wiki site. Alex

---

## [Using nginx as proxy from http to https](https://www.ruby-forum.com/t/using-nginx-as-proxy-from-http-to-https/223986)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [October 25, 2012, 9:04pm UTC](https://www.ruby-forum.com/t/using-nginx-as-proxy-from-http-to-https/223986 "2012-10-25T21:04:24Z")

</div>

Hello, I’m trying to use nginx as a proxy server that should dispatch HTTP requests to remote HTTPS server. Here are some configuration details which I’m using: location /test\_server { proxy\_pass ht…

---

## [Is that possible to queue request one by one](https://www.ruby-forum.com/t/is-that-possible-to-queue-request-one-by-one/223991)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [October 25, 2012, 8:53pm UTC](https://www.ruby-forum.com/t/is-that-possible-to-queue-request-one-by-one/223991 "2012-10-25T20:53:17Z")

</div>

Hi nginx module limit\_req only can limit request frequency by url param key. it delay a request by “ngx\_add\_timer(r-\>connection-\>write, delay)”. my requirement is a little bit different. i need the next request be p…

---

## [404 redirect or disconnect](https://www.ruby-forum.com/t/404-redirect-or-disconnect/223990)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [October 25, 2012, 6:18pm UTC](https://www.ruby-forum.com/t/404-redirect-or-disconnect/223990 "2012-10-25T18:18:27Z")

</div>

I have a custom site where valid users will always login and have a valid session (and a cookie or headers to represent it). I would like to do the following, but not sure how to start…can someone just point me in the…

---

## [Patch limit\_rate\_max: for your review](https://www.ruby-forum.com/t/patch-limit-rate-max-for-your-review/223982)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [October 25, 2012, 5:14pm UTC](https://www.ruby-forum.com/t/patch-limit-rate-max-for-your-review/223982 "2012-10-25T17:14:11Z")

</div>

Hello I have a new patch for Nginx. I use this server to stream videos. I needed a way to burst the rate with limit\_rate\_after but controlled from config, not at full throttle. Eg.: send 4Mb with 500KBps and the rem…

---

## [Using http basic authentication with custom form](https://www.ruby-forum.com/t/using-http-basic-authentication-with-custom-form/223988)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [October 25, 2012, 5:08pm UTC](https://www.ruby-forum.com/t/using-http-basic-authentication-with-custom-form/223988 "2012-10-25T17:08:20Z")

</div>

Hello, Is there a way to use http basic authentication with nginx with a custom form? I heard that it may be possible to use auth\_request to do this but am unsure how My main goal is to avoid the standard form that …

---

## [Mail-proxy, ssl and line termination](https://www.ruby-forum.com/t/mail-proxy-ssl-and-line-termination/223968)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [October 25, 2012, 12:26pm UTC](https://www.ruby-forum.com/t/mail-proxy-ssl-and-line-termination/223968 "2012-10-25T12:26:32Z")

</div>

Good morning, maybe, I’m posting this to the wrong place. nginx-devel@ rejected this. any pointers appreciated :slight\_smile: the setup… 1 nginx frontend, pop3 / pop3s / imap / imaps 2 backends, dovecot + ms-exchan…

---

## [SSI stubs/blocks](https://www.ruby-forum.com/t/ssi-stubs-blocks/223972)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [October 25, 2012, 11:16am UTC](https://www.ruby-forum.com/t/ssi-stubs-blocks/223972 "2012-10-25T11:16:57Z")

</div>

Hello, I am using nginx/1.2.3 on my server, and tried to use this in my SSI includes: However, this doesn’t seem to work. I just get a blank page, and nothing is included. Is my NGINX too old, or do I need to it …

---

## [NGINX looks for /logs/error.log as default?](https://www.ruby-forum.com/t/nginx-looks-for-logs-error-log-as-default/223884)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [October 25, 2012, 10:45am UTC](https://www.ruby-forum.com/t/nginx-looks-for-logs-error-log-as-default/223884 "2012-10-25T10:45:22Z")

</div>

Hello, I have a problem with NGINX version 1.2.4 it will constantly look for /logs/error.log, even though I have defined another error.log in my configuration. I start NGINX like this: nginx -p . -c config/nginx/deve…

---

## [Could people using auth-request please send me their actual nginx.conf files please?](https://www.ruby-forum.com/t/could-people-using-auth-request-please-send-me-their-actual-nginx-conf-files-please/223869)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [October 24, 2012, 9:51pm UTC](https://www.ruby-forum.com/t/could-people-using-auth-request-please-send-me-their-actual-nginx-conf-files-please/223869 "2012-10-24T21:51:39Z")

</div>

If you are successfully using auth request, -please send me your actual nginx.conf file. I am a relative newbie on nginx and cgi programming so actual examples will be very helpful. Thanks to all. My email is: remo…

---

## [Gzip\_static and file-extension '.gzip'](https://www.ruby-forum.com/t/gzip-static-and-file-extension-gzip/223941)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [October 24, 2012, 1:26pm UTC](https://www.ruby-forum.com/t/gzip-static-and-file-extension-gzip/223941 "2012-10-24T13:26:01Z")

</div>

hi, is there any chance to extend gzip\_static to act on more than the current file extension ‘.gz’ for pre-compressed files? In my case TYPO3 does generate ‘.css.gzip’ or ‘.js.gzip’ or even ‘.gzip.js’ in some places …

---

## [Nginx windows 64bit](https://www.ruby-forum.com/t/nginx-windows-64bit/210348)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [October 24, 2012, 12:04pm UTC](https://www.ruby-forum.com/t/nginx-windows-64bit/210348 "2012-10-24T12:04:11Z")

</div>

nginx windows 64bit?? Posted at Nginx Forum:

---

## [Limit\_rate\_after](https://www.ruby-forum.com/t/limit-rate-after/168948)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 3\
**Last updated:** [October 23, 2012, 5:42pm UTC](https://www.ruby-forum.com/t/limit-rate-after/168948 "2012-10-23T17:42:55Z")

</div>

Patch creates limit\_rate\_after directive: limit\_rate\_after 1m; limit\_rate 100k; The directive limits speed only after the first part was sent.

---

## [Help me](https://www.ruby-forum.com/t/help-me/223926)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [October 23, 2012, 4:57pm UTC](https://www.ruby-forum.com/t/help-me/223926 "2012-10-23T16:57:54Z")

</div>

does not work in the rewriting patch /var/www/localhost server { listen 80; server\_name localhost; root /var/www/localhost; index index.html index.htm index.php; location ~ .php$ { fastcgi\_pass 127.0…

---

## [Limit the burst speed controlled by limit\_rate\_after](https://www.ruby-forum.com/t/limit-the-burst-speed-controlled-by-limit-rate-after/223921)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [October 23, 2012, 2:35pm UTC](https://www.ruby-forum.com/t/limit-the-burst-speed-controlled-by-limit-rate-after/223921 "2012-10-23T14:35:24Z")

</div>

Hello I search since days how to limit the actual burst speed as well, not just after the initial data is sent. I wan that 4MB to be sent at 500KBps then the rest of the file to be sent at 90KBps. Is there any way t…

---

## [Question about ssl CRL](https://www.ruby-forum.com/t/question-about-ssl-crl/223911)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [October 23, 2012, 8:26am UTC](https://www.ruby-forum.com/t/question-about-ssl-crl/223911 "2012-10-23T08:26:04Z")

</div>

Hi New to nginx, trying to setup a SSL reverse proxy. I have the SSL server and client setup working, but when I add in crl pem it fails I downloaded the CRL from verisign converted from DER to PEM format and saved. …

---

## [Replace string in content](https://www.ruby-forum.com/t/replace-string-in-content/223847)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [October 23, 2012, 12:21am UTC](https://www.ruby-forum.com/t/replace-string-in-content/223847 "2012-10-23T00:21:09Z")

</div>

Hello, I just add these rows to the default config (/usr/local/nginx/conf/nginx.conf) at the end of the location section: location / { root html; index index.html index.htm; sub\_filter …

---

## [Controlling](https://www.ruby-forum.com/t/controlling/223882)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [October 22, 2012, 11:32am UTC](https://www.ruby-forum.com/t/controlling/223882 "2012-10-22T11:32:11Z")

</div>

With reference to: http://nginx.org/en/docs/http/ngx\_http\_fastcgi\_module.html#fastcgi\_cache\_path file names in a cache looks like this: /data/nginx/cache/c/29/b7f54b2df7773722d382f4809d65029c Is there any way to use …

---

## [Problem in config](https://www.ruby-forum.com/t/problem-in-config/223876)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [October 21, 2012, 11:24pm UTC](https://www.ruby-forum.com/t/problem-in-config/223876 "2012-10-21T23:24:41Z")

</div>

Hi Everybody, Kindly provide me the details for the config… and installation… my site is accessible at http://www.Loversearth.com Posted at Nginx Forum:

---

## [Different cache time for authentication & non auth users](https://www.ruby-forum.com/t/different-cache-time-for-authentication-non-auth-users/223867)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [October 21, 2012, 1:39pm UTC](https://www.ruby-forum.com/t/different-cache-time-for-authentication-non-auth-users/223867 "2012-10-21T13:39:16Z")

</div>

Hi all, How can I set separate caching expiration time for authenticated and non auth users? In my case the caching is set this way proxy\_cache\_key $scheme$host$request\_uri$cookie\_sessionid; proxy\_cache\_vali…

---

## [SSL port other than 443](https://www.ruby-forum.com/t/ssl-port-other-than-443/222497)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 10\
**Last updated:** [October 21, 2012, 4:29am UTC](https://www.ruby-forum.com/t/ssl-port-other-than-443/222497 "2012-10-21T04:29:04Z")

</div>

Hi, I have 2 server sections in my config. One runs on port 80 and SSL on 443. The other on port 83 and its SSL on 444: listen 83 default ; ## SSL directives might go here listen 444 ssl; Once I restart nginx and …

---

## [Nginx dead but pid file exists](https://www.ruby-forum.com/t/nginx-dead-but-pid-file-exists/223855)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [October 20, 2012, 2:01pm UTC](https://www.ruby-forum.com/t/nginx-dead-but-pid-file-exists/223855 "2012-10-20T14:01:04Z")

</div>

I had this problem a few times, “nginx dead but pid file exists” My site suddenly can not access, after I typed “service nginx status” and the answer is “nginx dead but pid file exists”, what happened to my vps? if p…

---

## [Install nginx-1.2.4 problems](https://www.ruby-forum.com/t/install-nginx-1-2-4-problems/223857)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [October 20, 2012, 1:38pm UTC](https://www.ruby-forum.com/t/install-nginx-1-2-4-problems/223857 "2012-10-20T13:38:16Z")

</div>

When we try to install nginx-1.2.4 and check with. /configure then two problems come as fallows: OpenSSL library is not used sha1 library is not found And then we check openssl installed or not then result come:- rp…

---

## [Cache always shows expired status for anonymous users](https://www.ruby-forum.com/t/cache-always-shows-expired-status-for-anonymous-users/223830)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [October 20, 2012, 11:43am UTC](https://www.ruby-forum.com/t/cache-always-shows-expired-status-for-anonymous-users/223830 "2012-10-20T11:43:11Z")

</div>

I have my homepage cached as shown location = / { if (-f /var/www/statichtmls/during\_build.html) { return 503; } set $country\_code $http\_x\_country\_code; set\_if\_empty $country\_code $geoip\_country\_code; limit\_req zo…

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

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