# Server

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

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

---

## [Question re: HttpAccessModule and ipv6](https://www.ruby-forum.com/t/question-re-httpaccessmodule-and-ipv6/208072)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [June 9, 2011, 4:49pm UTC](https://www.ruby-forum.com/t/question-re-httpaccessmodule-and-ipv6/208072 "2011-06-09T16:49:58Z")

</div>

Hello, The wiki is not clear on this. Can specific ipv6 addresses be allowed and/or denied? – Jim O.

---

## [Error log](https://www.ruby-forum.com/t/error-log/208063)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [June 9, 2011, 1:03pm UTC](https://www.ruby-forum.com/t/error-log/208063 "2011-06-09T13:03:42Z")

</div>

I setup error and access logs as access\_log /logs/access/$server\_name.access.log main; error\_log /logs/error/$server\_name.error.log info; access logs are created correctly for each virtual host, but for error\_log “$s…

---

## [Try-files and Gallery3 rewriting](https://www.ruby-forum.com/t/try-files-and-gallery3-rewriting/208046)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [June 9, 2011, 10:13am UTC](https://www.ruby-forum.com/t/try-files-and-gallery3-rewriting/208046 "2011-06-09T10:13:39Z")

</div>

Hiho, I am currently running gallery3 on nginx/php-fpm. Works like a charm so far. But i’d like to get gallery3 also under the hood of try-files, but didn’t get it running up to now. The working (and evil) if rewri…

---

## [Ngx\_http\_redis-0.3.3 released](https://www.ruby-forum.com/t/ngx-http-redis-0-3-3-released/208008)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [June 9, 2011, 3:16am UTC](https://www.ruby-forum.com/t/ngx-http-redis-0-3-3-released/208008 "2011-06-09T03:16:05Z")

</div>

Hi, ngx\_http\_redis module version 0.3.3 released, available at http://people.freebsd.org/~osa/ngx\_http\_redis-0.3.3.tar.gz SHA256 (ngx\_http\_redis-0.3.3.tar.gz) = 65d41cff7462e23cbfc007e0592673987ed65119fadf193ea6eb55c…

---

## [Rewrite all php+args to php+args.html Q?](https://www.ruby-forum.com/t/rewrite-all-php-args-to-php-args-html-q/208032)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [June 9, 2011, 1:57am UTC](https://www.ruby-forum.com/t/rewrite-all-php-args-to-php-args-html-q/208032 "2011-06-09T01:57:45Z")

</div>

Hello Nginx Gurus, We have a local mirrored with wget web site. All dynamic files are saved like this “list.php?type=80.html \[\*.php?some args dot html\]” but in href tags are How can we rewrite requested files to l…

---

## [Urgent proxy\_pass](https://www.ruby-forum.com/t/urgent-proxy-pass/208026)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [June 9, 2011, 1:41am UTC](https://www.ruby-forum.com/t/urgent-proxy-pass/208026 "2011-06-09T01:41:07Z")

</div>

people please help me, I can not run Nginx root@servidor \[~\]# proxy\_passRestarting nginx daemon: nginxnginx: \[emerg\] “proxy\_pass” directive is not allowed here in /etc/nginx/nginx.conf:45 user nobody; no need for …

---

## [Show user's IP on tomcat's logs (6.x)](https://www.ruby-forum.com/t/show-users-ip-on-tomcats-logs-6-x/207927)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [June 8, 2011, 2:24pm UTC](https://www.ruby-forum.com/t/show-users-ip-on-tomcats-logs-6-x/207927 "2011-06-08T14:24:54Z")

</div>

hi all, today i put my nginx in production , listening on port 80. Requestes to www, pass-through proxy directive, will be sended to the localhost:82, where is the tomcat. Another site, blog.domain address is apache …

---

## [Root directory is lost when proxy\_pass / to another machine](https://www.ruby-forum.com/t/root-directory-is-lost-when-proxy-pass-to-another-machine/208009)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [June 8, 2011, 7:28am UTC](https://www.ruby-forum.com/t/root-directory-is-lost-when-proxy-pass-to-another-machine/208009 "2011-06-08T07:28:29Z")

</div>

Hello, I have two server, 10.1.1.1, 10.1.1.2. 10.1.1.1 have following nginx.conf, it forword “/” to 10.1.1.2, and it also has “/upload.php” page. location / { root html; proxy\_pass http://10.1.1.2; } location /…

---

## [Resume download](https://www.ruby-forum.com/t/resume-download/207968)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [June 8, 2011, 6:14am UTC](https://www.ruby-forum.com/t/resume-download/207968 "2011-06-08T06:14:06Z")

</div>

Hi all, I wanna ask about nginx configuration. Is there any way, so i can implementing ‘resume download’ feature for my nginx webserver? Thanks :smiley:

---

## [Nginx redis, select database not working?](https://www.ruby-forum.com/t/nginx-redis-select-database-not-working/207862)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [June 8, 2011, 3:50am UTC](https://www.ruby-forum.com/t/nginx-redis-select-database-not-working/207862 "2011-06-08T03:50:27Z")

</div>

I’m having problem with redis module: HTTP Redis | NGINX (version 0.32 downloaded from mirror at GitHub - elcuervo/nginx\_http\_redis: Mirror from wiki.nginx.org) As I tried, variable $redis\_db is never used and result …

---

## [Default page for all error codes?](https://www.ruby-forum.com/t/default-page-for-all-error-codes/207992)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [June 8, 2011, 12:12am UTC](https://www.ruby-forum.com/t/default-page-for-all-error-codes/207992 "2011-06-08T00:12:59Z")

</div>

hi, is it possible to define one error page for all errors? e.g. instead of having error\_page 404 = /myerrorpage.html could i do something along the lines of error\_page \* = /myerrorpage.html where \* would match …

---

## [Removing items from "proxy\_cache"](https://www.ruby-forum.com/t/removing-items-from-proxy-cache/207966)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [June 7, 2011, 6:06pm UTC](https://www.ruby-forum.com/t/removing-items-from-proxy-cache/207966 "2011-06-07T18:06:24Z")

</div>

Been trying to find info about this, but the best I could find is some python binary to use in the SSH shell. I’m looking for a programmatic way – ideally in PHP – to manually invalidate certain items from the proxy c…

---

## [Proxy to different server based on basic auth username](https://www.ruby-forum.com/t/proxy-to-different-server-based-on-basic-auth-username/207980)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [June 7, 2011, 3:57pm UTC](https://www.ruby-forum.com/t/proxy-to-different-server-based-on-basic-auth-username/207980 "2011-06-07T15:57:38Z")

</div>

Hi Nginx community, I am trying to replace an existing Apache proxy with an equivalent on using nginx. The current proxy performs an LDAP basic auth and then using that information with a PHP script redirects to the …

---

## [Logging to DB](https://www.ruby-forum.com/t/logging-to-db/207950)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [June 7, 2011, 1:21pm UTC](https://www.ruby-forum.com/t/logging-to-db/207950 "2011-06-07T13:21:55Z")

</div>

Is there any tried and tested way to log to a database? There appears to be several options using fifo, syslog, etc floating around, however, there seems to be some issues with certain options. Any pointers would be w…

---

## [Re: nginx cache exceeded, cache manager busy](https://www.ruby-forum.com/t/re-nginx-cache-exceeded-cache-manager-busy/207972)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [June 7, 2011, 12:15pm UTC](https://www.ruby-forum.com/t/re-nginx-cache-exceeded-cache-manager-busy/207972 "2011-06-07T12:15:43Z")

</div>

I have the same issue with 1.0.1 and 1.0.2.

---

## [Naive port of mod\_pagespeed for nginx](https://www.ruby-forum.com/t/naive-port-of-mod-pagespeed-for-nginx/207938)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [June 7, 2011, 9:08am UTC](https://www.ruby-forum.com/t/naive-port-of-mod-pagespeed-for-nginx/207938 "2011-06-07T09:08:26Z")

</div>

Hi all, This is just to announce my naive yet functional port of Google’s mod\_pagespeed to nginx. I’m not sure I’ll have much time to improve on this, but this might interest you. Right now it compiles with the lat…

---

## [Thawte SSL with 3 certificates](https://www.ruby-forum.com/t/thawte-ssl-with-3-certificates/207882)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [June 7, 2011, 2:00am UTC](https://www.ruby-forum.com/t/thawte-ssl-with-3-certificates/207882 "2011-06-07T02:00:11Z")

</div>

Hi all, After much googling, lots of hair pulling and still no result I’m hoping someone here has seen this particular issue or else can help point me in a direction that may help resolve it. For a site I’m building …

---

## [Uwsgi in osx](https://www.ruby-forum.com/t/uwsgi-in-osx/207952)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [June 7, 2011, 1:24am UTC](https://www.ruby-forum.com/t/uwsgi-in-osx/207952 "2011-06-07T01:24:26Z")

</div>

I try to configure uwsgi for python, but return the next error “uwsgi\_pass” directive is not allowed here in /Applications/MNPP/conf/nginx/sites-enabled/djangocms.local:12 upstream pythoncocoa { Server unix:/Applicat…

---

## [Lua parser and redis2 questions](https://www.ruby-forum.com/t/lua-parser-and-redis2-questions/207759)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 13\
**Last updated:** [June 6, 2011, 6:51pm UTC](https://www.ruby-forum.com/t/lua-parser-and-redis2-questions/207759 "2011-06-06T18:51:01Z")

</div>

Hi Folks - Looking for some examples or hints in order to leverage lua\_parser && redis2. To date, I’ve been using httpredis and content\_by\_lua code to perform a number of simple 'get’s which has worked well. Now, I’…

---

## [Help with X-Accel-Redirect and "rewrite or internal redirection cycle" errors](https://www.ruby-forum.com/t/help-with-x-accel-redirect-and-rewrite-or-internal-redirection-cycle-errors/207922)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [June 6, 2011, 4:56pm UTC](https://www.ruby-forum.com/t/help-with-x-accel-redirect-and-rewrite-or-internal-redirection-cycle-errors/207922 "2011-06-06T16:56:03Z")

</div>

Hi, I’m trying to use X-Accel-Redirect from a Ruby app to hand over downloading of a file to Nginx, but it fails and the error in the logs is: 2011/06/03 09:18:16 \[error\] 20500#0: \*37 rewrite or internal redirection …

---

## [Simple http authentication not working](https://www.ruby-forum.com/t/simple-http-authentication-not-working/207899)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [June 6, 2011, 3:18pm UTC](https://www.ruby-forum.com/t/simple-http-authentication-not-working/207899 "2011-06-06T15:18:57Z")

</div>

Below is my config. The folder /site/private is supposed to show the usual HTTP authentication box, but the php files from that folder just start downloading in clear text. What am I doing wrong? The path of the passw…

---

## [Keywords in 404.php](https://www.ruby-forum.com/t/keywords-in-404-php/207921)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [June 6, 2011, 2:33pm UTC](https://www.ruby-forum.com/t/keywords-in-404-php/207921 "2011-06-06T14:33:11Z")

</div>

In apache, I used to handle 404.php by $url = getenv(“REQUEST\_URI”); to get the requested page. Thus, if someone redirected to 404.php from /test.html, I had a php string containing “test.hetml”. This is indeed due to…

---

## [Nginx multiple apps, and CodeIgniter](https://www.ruby-forum.com/t/nginx-multiple-apps-and-codeigniter/207904)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [June 6, 2011, 2:25pm UTC](https://www.ruby-forum.com/t/nginx-multiple-apps-and-codeigniter/207904 "2011-06-06T14:25:43Z")

</div>

Ive been struggling with a No input file specified issue, and Ive been trying to figure out the routing issue. I am using fast-cgi, nginx (version 0.7.65) and CI 2.02 http://www.example.net/ci/ /…

---

## [Problem with $\_SERVER;](https://www.ruby-forum.com/t/problem-with-server/207898)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [June 6, 2011, 12:45am UTC](https://www.ruby-forum.com/t/problem-with-server/207898 "2011-06-06T00:45:31Z")

</div>

In my nginx server, $\_SERVER\[‘REQUEST\_URI’\]; does not work, and returns nothing. When using getenv(“REQUEST\_URI”); it will returns the url of the current page instead of the reffering url. And in this case, it will re…

---

## [Reload / HUP signal not working anymore](https://www.ruby-forum.com/t/reload-hup-signal-not-working-anymore/207887)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 13\
**Last updated:** [June 6, 2011, 12:20am UTC](https://www.ruby-forum.com/t/reload-hup-signal-not-working-anymore/207887 "2011-06-06T00:20:51Z")

</div>

I’m running the current stable version of Nginx (nginx: nginx version: nginx/1.0.4), but reloading my configs doesn’t work anymore. Instead I’ve to restart nginx on all webservers to get it reloading my configs, but t…

---

## [Reverse Cache for Multiple Sites](https://www.ruby-forum.com/t/reverse-cache-for-multiple-sites/207894)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [June 5, 2011, 10:48pm UTC](https://www.ruby-forum.com/t/reverse-cache-for-multiple-sites/207894 "2011-06-05T22:48:04Z")

</div>

I am looking to implement NGINX as a reverse proxy cache for a number of sites, there are 6 fairly busy sites between 4 webservers. I can find plenty of online assistance in configuring NGINX to reverse cache a singl…

---

## [URGENT: cookies don't work with nginx (proxying to apache!)](https://www.ruby-forum.com/t/urgent-cookies-dont-work-with-nginx-proxying-to-apache/207892)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [June 5, 2011, 9:28pm UTC](https://www.ruby-forum.com/t/urgent-cookies-dont-work-with-nginx-proxying-to-apache/207892 "2011-06-05T21:28:13Z")

</div>

Hi. nginx is proxying to apache. Everything works. Except cookies. My php pages seem just not to be able to set cookies! Is there any specific directive that I should watch out for? Could proxy\_cache stuff be interfer…

---

## [Mod\_proxy, compression, and chunked responses](https://www.ruby-forum.com/t/mod-proxy-compression-and-chunked-responses/207644)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [June 5, 2011, 6:42pm UTC](https://www.ruby-forum.com/t/mod-proxy-compression-and-chunked-responses/207644 "2011-06-05T18:42:39Z")

</div>

I have an application server behind nginx that may output chunked responses, and would like to use compression for them as I do for ordinary responses. Is that possible with nginx? If it is, is it possible in a way th…

---

## [Some security vulnerable](https://www.ruby-forum.com/t/some-security-vulnerable/207885)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [June 5, 2011, 2:18pm UTC](https://www.ruby-forum.com/t/some-security-vulnerable/207885 "2011-06-05T14:18:36Z")

</div>

What do you guys think about implement this into nginx just like it is in apache? if ( $fastcgi\_script\_name ~ ..\*/.\*php ) { return 403; } because without that some servers which allows to upload images are vulnerab…

---

## [Proxy\_cache not honoring pragma/cache-control settings](https://www.ruby-forum.com/t/proxy-cache-not-honoring-pragma-cache-control-settings/207879)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [June 5, 2011, 8:24am UTC](https://www.ruby-forum.com/t/proxy-cache-not-honoring-pragma-cache-control-settings/207879 "2011-06-05T08:24:10Z")

</div>

Hi, from the documentation I understand that proxy\_cache will NOT be activated for pages that have pragma to “no-cache” or Cache-control to “no-cache”, or even Expires to an old date. I have the following in my Locati…

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

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