# Server

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

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

---

## [Problem with instant streaming request body to backend](https://www.ruby-forum.com/t/problem-with-instant-streaming-request-body-to-backend/215473)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [January 5, 2012, 1:45pm UTC](https://www.ruby-forum.com/t/problem-with-instant-streaming-request-body-to-backend/215473 "2012-01-05T13:45:36Z")

</div>

Hey, I am developer in new startup and Nginx is important part of whole system. Generally it is great load balancer, has many interesting modules and configuration possibilities but I have one serious problem which I…

---

## [NGinX Form Input Problem](https://www.ruby-forum.com/t/nginx-form-input-problem/215457)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 7\
**Last updated:** [January 5, 2012, 10:15am UTC](https://www.ruby-forum.com/t/nginx-form-input-problem/215457 "2012-01-05T10:15:38Z")

</div>

I have just recently set-up a new LEMP in Ubuntu 11.10 (64-bit) and running NGinX ver 1.0.5. the server is running fine but I cannot seem to get any forms to work. On my old server (windows) the forms worked fine, but…

---

## [Proxy\_ignore\_headers doesn't seem to work](https://www.ruby-forum.com/t/proxy-ignore-headers-doesnt-seem-to-work/214879)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [January 5, 2012, 4:19am UTC](https://www.ruby-forum.com/t/proxy-ignore-headers-doesnt-seem-to-work/214879 "2012-01-05T04:19:21Z")

</div>

Hello, I’ve problem similar as in this thread: http://mailman.nginx.org/pipermail/nginx/2010-May/020349.html nginx is ignoring my proxy\_cache\_valid value, using instead expire time specified by upstream server. prox…

---

## [Trailing slash being removed from document root](https://www.ruby-forum.com/t/trailing-slash-being-removed-from-document-root/215454)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [January 5, 2012, 12:17am UTC](https://www.ruby-forum.com/t/trailing-slash-being-removed-from-document-root/215454 "2012-01-05T00:17:08Z")

</div>

Hi all. We’re considering switching from lighttpd to nginx in my company and so far everything looks good except for one thing I can’t seem to figure out. When getting the document root in PHP from nginx using this: …

---

## [Simply change the listen port ,does not work](https://www.ruby-forum.com/t/simply-change-the-listen-port-does-not-work/215447)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [January 4, 2012, 10:06pm UTC](https://www.ruby-forum.com/t/simply-change-the-listen-port-does-not-work/215447 "2012-01-04T22:06:06Z")

</div>

Hi, I just installed nginx-1.0.11 , and start it by default , view http://xxx.xxx.xxx.xxx:80 ,and nginx works Then I change the listen port in default.conf to 82, kill nginx , restart , and view http://xxx.xxx.xxx.…

---

## [Is nginx vulnerable to the Hash Table Vulnerability (n.runs AG)?](https://www.ruby-forum.com/t/is-nginx-vulnerable-to-the-hash-table-vulnerability-n-runs-ag/215347)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [January 4, 2012, 9:02pm UTC](https://www.ruby-forum.com/t/is-nginx-vulnerable-to-the-hash-table-vulnerability-n-runs-ag/215347 "2012-01-04T21:02:23Z")

</div>

Without going through the way nginx parses an incoming request, I’m unsure if nginx isn’t vulnerable to this, because of the availability to grab the value of a GET parameter via http://wiki.nginx.org/HttpCoreModu…

---

## [Empty /error log lines (a lot of them)](https://www.ruby-forum.com/t/empty-error-log-lines-a-lot-of-them/215405)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [January 4, 2012, 7:28pm UTC](https://www.ruby-forum.com/t/empty-error-log-lines-a-lot-of-them/215405 "2012-01-04T19:28:11Z")

</div>

Hi, I am using NGINX 0.8.54 on Ubuntu 11.04, and I am getting a lot of weird log entries in nginx access file. The structure is somewhat like below, but as you can see there is no method, URL, referer, user agent, e…

---

## [Netcraft Survey](https://www.ruby-forum.com/t/netcraft-survey/215443)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [January 4, 2012, 6:29pm UTC](https://www.ruby-forum.com/t/netcraft-survey/215443 "2012-01-04T18:29:52Z")

</div>

Congrats on passing M$ in the Active Site category. We’ve been using nginx for a few years now, to front Apache servers, with dramatic results, so I’m very grateful for all your efforts and think the rise in nginx pop…

---

## [Rewrite rule custom.php to custom.css](https://www.ruby-forum.com/t/rewrite-rule-custom-php-to-custom-css/215439)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [January 4, 2012, 3:54pm UTC](https://www.ruby-forum.com/t/rewrite-rule-custom-php-to-custom-css/215439 "2012-01-04T15:54:42Z")

</div>

hi, how can i rename custom.php to custom.css for my wordpress custom css. let say i put my custom.php inside my theme folder http://example.com/wp-content/themes/mytheme/assets/css/custom.php Posted at Nginx Forum: …

---

## [Image\_filter on error\_page location](https://www.ruby-forum.com/t/image-filter-on-error-page-location/215414)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [January 4, 2012, 2:27am UTC](https://www.ruby-forum.com/t/image-filter-on-error-page-location/215414 "2012-01-04T02:27:33Z")

</div>

Hello, I can’t figure how to solve such issue - nginx seems not to apply image\_filter in case the picture comes from upstream via internal error\_page. I have something like (if picture is prefixed with sm\_ a dynamic …

---

## [Anyone can help?](https://www.ruby-forum.com/t/anyone-can-help/229210)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [January 3, 2012, 3:45pm UTC](https://www.ruby-forum.com/t/anyone-can-help/229210 "2012-01-03T15:45:59Z")

</div>

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

---

## [502 & 504 error, again](https://www.ruby-forum.com/t/502-504-error-again/215370)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [January 3, 2012, 3:45pm UTC](https://www.ruby-forum.com/t/502-504-error-again/215370 "2012-01-03T15:45:59Z")

</div>

I know it should be a well-known issue. I searched and try to find out what on earth it is, but I failed. Step: nginx works as reverse proxy and the version is V1.0.5, OS: Debian 5.0.3, Kernel Version 2.6.32 Ena…

---

## [Variable variables?](https://www.ruby-forum.com/t/variable-variables/215379)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [January 3, 2012, 6:26am UTC](https://www.ruby-forum.com/t/variable-variables/215379 "2012-01-03T06:26:08Z")

</div>

Hi, Nginx provides the value of the cookie “foo” in $cookie\_foo . Is it possible to read “foo” from the URL? In PHP you would use two dollar signs for this kind of indirection. Drupal sets the name of session cookie …

---

## [GZIP not compressing .js and .css files](https://www.ruby-forum.com/t/gzip-not-compressing-js-and-css-files/215382)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [January 2, 2012, 6:08pm UTC](https://www.ruby-forum.com/t/gzip-not-compressing-js-and-css-files/215382 "2012-01-02T18:08:56Z")

</div>

Hi, My server doesn’t appear to be compressing .js and .css files… I have the following in my /etc/nginx/nginx.conf… gzip on; gzip\_disable "msie6"; gzip\_vary on; # gzip\_proxied any; gzip\_comp\_lev…

---

## [Forcing a Basic Dialog Box](https://www.ruby-forum.com/t/forcing-a-basic-dialog-box/215316)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [January 2, 2012, 5:14am UTC](https://www.ruby-forum.com/t/forcing-a-basic-dialog-box/215316 "2012-01-02T05:14:22Z")

</div>

I am trying to use the new postgres module and cant figure out how to force a “Basic” dialog on the browser to do auth. I am running v 1.0.11 The auth is working correctly ie: http://user:removed\_email\_address@domain.…

---

## [Can nginx have client sent the request to a specific server?](https://www.ruby-forum.com/t/can-nginx-have-client-sent-the-request-to-a-specific-server/215368)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [January 2, 2012, 3:53am UTC](https://www.ruby-forum.com/t/can-nginx-have-client-sent-the-request-to-a-specific-server/215368 "2012-01-02T03:53:15Z")

</div>

If I have 3 web servers, and 1 nginx sitting in front of them (public ip mapped to my nginx server). My other backend servers are: www1.example.com www2.example.com www3.example.com My users are upload large files,…

---

## [Help with rewrite rule](https://www.ruby-forum.com/t/help-with-rewrite-rule/215367)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [January 2, 2012, 3:28am UTC](https://www.ruby-forum.com/t/help-with-rewrite-rule/215367 "2012-01-02T03:28:04Z")

</div>

I’m trying to rewrite any png files referenced through the fancybox sub directory to a directory off of the images folder as follows: rewrite ^/fancybox/(.+.png)$ /images/fancybox/$1 last; This is not working, probabl…

---

## [Verify client certificate, but ignore expiration date](https://www.ruby-forum.com/t/verify-client-certificate-but-ignore-expiration-date/215223)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [January 1, 2012, 11:49pm UTC](https://www.ruby-forum.com/t/verify-client-certificate-but-ignore-expiration-date/215223 "2012-01-01T23:49:25Z")

</div>

I wanted to know whether I can configure nginx to verify client certificates and reject them if invalid. However I would like to exclude the expiration date from the validation step. The context is rather simple. I …

---

## [How to add a new directory under domain root?](https://www.ruby-forum.com/t/how-to-add-a-new-directory-under-domain-root/215314)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [January 1, 2012, 9:33pm UTC](https://www.ruby-forum.com/t/how-to-add-a-new-directory-under-domain-root/215314 "2012-01-01T21:33:34Z")

</div>

Hello I have a folder titled images folder in www root, intending to hold some images. However, the folder is not visible when I try to look at images in it. e.g. http://192.168.1.68/imagesfolder/ – gives a 404 Not…

---

## [Only html file no-cache](https://www.ruby-forum.com/t/only-html-file-no-cache/215266)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [December 31, 2011, 2:27pm UTC](https://www.ruby-forum.com/t/only-html-file-no-cache/215266 "2011-12-31T14:27:18Z")

</div>

hi; my use reverse proxy and html files to be read by nginx, but I just want to have onyl html files no-cache … my v\_hosts.conf server { error\_log /var/log/nginx/vhost-error\_log warn; listen 46.4.103.194:80; server…

---

## [Nginx-1.1.12](https://www.ruby-forum.com/t/nginx-1-1-12/215202)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 13\
**Last updated:** [December 31, 2011, 1:41pm UTC](https://www.ruby-forum.com/t/nginx-1-1-12/215202 "2011-12-31T13:41:32Z")

</div>

Changes with nginx 1.1.12 26 Dec 2011 \*) Change: a "proxy\_pass" directive without URI part now uses changed URI after redirection with the “error\_page” directive. Thanks to La…

---

## [FLV cache headers?](https://www.ruby-forum.com/t/flv-cache-headers/215303)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [December 31, 2011, 12:50pm UTC](https://www.ruby-forum.com/t/flv-cache-headers/215303 "2011-12-31T12:50:13Z")

</div>

Can FLV files be cached to the browser? I’m passing the “expires max” tag which looks like its working as this is the response header: HTTP/1.1 200 OK Server: nginx/1.1.12 Date: Thu, 29 Dec 2011 19:13:09 GMT Conte…

---

## [Throttling bandwidth between proxy server and backend servers](https://www.ruby-forum.com/t/throttling-bandwidth-between-proxy-server-and-backend-servers/229191)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [December 31, 2011, 5:26am UTC](https://www.ruby-forum.com/t/throttling-bandwidth-between-proxy-server-and-backend-servers/229191 "2011-12-31T05:26:11Z")

</div>

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

---

## [Help with recompiling](https://www.ruby-forum.com/t/help-with-recompiling/215336)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [December 31, 2011, 4:26am UTC](https://www.ruby-forum.com/t/help-with-recompiling/215336 "2011-12-31T04:26:25Z")

</div>

I have NGinX installed from the Ubuntu rpm but since we deal with alot of flv files I wanted to recompile NGinX with the http\_flv\_module. It goes fine until the point when I use the make command and make install comm…

---

## [uWSGI 1.0](https://www.ruby-forum.com/t/uwsgi-1-0/215319)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [December 30, 2011, 9:23am UTC](https://www.ruby-forum.com/t/uwsgi-1-0/215319 "2011-12-30T09:23:34Z")

</div>

After 2 years of development, the uWSGI project is at 1.0 This major release focuses on adaptive process spawning (–cheaper mode), the new stats framework, Mules and an incredible amount of bug fixes and code refacto…

---

## [Reverse SSL proxy for jetty](https://www.ruby-forum.com/t/reverse-ssl-proxy-for-jetty/215309)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [December 29, 2011, 10:55pm UTC](https://www.ruby-forum.com/t/reverse-ssl-proxy-for-jetty/215309 "2011-12-29T22:55:29Z")

</div>

Hi, I’m trying to use nginx as a reverse-proxy in front of a jetty (running artifactory^1). HTTPS → NGINX → HTTP → Jetty In plain HTTP it works like a charm, but HTTPS fails. Jetty doesn’t recognizes the $scheme. I …

---

## [Help with location tag / reg ex](https://www.ruby-forum.com/t/help-with-location-tag-reg-ex/215301)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [December 29, 2011, 8:26pm UTC](https://www.ruby-forum.com/t/help-with-location-tag-reg-ex/215301 "2011-12-29T20:26:42Z")

</div>

I’d like to match all of the media files in this sub directory (and subsequent directories) but its not working. location ~\* /\_games/\\.(jpg|jpeg|png|gif|swf|flv|mp3)$ { expires max; } My regular expression is off th…

---

## [Never mind regarding location tag for media files](https://www.ruby-forum.com/t/never-mind-regarding-location-tag-for-media-files/215302)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [December 29, 2011, 8:06pm UTC](https://www.ruby-forum.com/t/never-mind-regarding-location-tag-for-media-files/215302 "2011-12-29T20:06:56Z")

</div>

See below: location ~\* ^/\_games/.+.(js|jpg|jpeg|png|gif|swf|flv|mp3)$ { This works.

---

## [Nginx file straming](https://www.ruby-forum.com/t/nginx-file-straming/215298)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [December 29, 2011, 7:20pm UTC](https://www.ruby-forum.com/t/nginx-file-straming/215298 "2011-12-29T19:20:33Z")

</div>

Hello I have problem with nginx When my server sream big files + 1024MB via firefox or other browser the connect is reseting (file szise is 4gb but download only 1000 - 1157) I use php-fpm dominian conf upstream ph…

---

## [Expires max question](https://www.ruby-forum.com/t/expires-max-question/215296)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [December 29, 2011, 5:07pm UTC](https://www.ruby-forum.com/t/expires-max-question/215296 "2011-12-29T17:07:30Z")

</div>

We’re running Moodle which uses this format to load images: /file.php/dirname/file.gif Using the map directives and modification of fastcgi parameters and location tag I was able to get the above format working. I wo…

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

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