# Server

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

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

---

## [How to change apache .htaccess to nginx rewrite](https://www.ruby-forum.com/t/how-to-change-apache-htaccess-to-nginx-rewrite/186327)

<div class="topic-metadata">

**Author:** [@rangerangel](https://www.ruby-forum.com/u/rangerangel)\
**Replies:** 0\
**Last updated:** [April 5, 2010, 3:20am UTC](https://www.ruby-forum.com/t/how-to-change-apache-htaccess-to-nginx-rewrite/186327 "2010-04-05T03:20:59Z")

</div>

apache .htaccess ExpiresActive On ExpiresByType image/gif “access 1 week” ExpiresByType image/jpg “access 1 week” ExpiresByType image/jpeg “access 1 week” ExpiresByType image/png “access 1 week” ExpiresByType text/…

---

## [Nginx RPM installation, how to add a module?](https://www.ruby-forum.com/t/nginx-rpm-installation-how-to-add-a-module/186321)

<div class="topic-metadata">

**Author:** [@Zilllo](https://www.ruby-forum.com/u/Zilllo)\
**Replies:** 2\
**Last updated:** [April 4, 2010, 10:21pm UTC](https://www.ruby-forum.com/t/nginx-rpm-installation-how-to-add-a-module/186321 "2010-04-04T22:21:23Z")

</div>

Hello, Is there any way to add an nginx module (I am interested on Rewrite Module) on a installation made with an RPM that do not include such a module? Thank you! Posted at Nginx Forum:

---

## [Nginx version: nginx/0.8.34 bug ( nginx protect folder dont work )](https://www.ruby-forum.com/t/nginx-version-nginx-0-8-34-bug-nginx-protect-folder-dont-work/186314)

<div class="topic-metadata">

**Author:** [@conlele](https://www.ruby-forum.com/u/conlele)\
**Replies:** 1\
**Last updated:** [April 4, 2010, 6:29pm UTC](https://www.ruby-forum.com/t/nginx-version-nginx-0-8-34-bug-nginx-protect-folder-dont-work/186314 "2010-04-04T18:29:04Z")

</div>

my config nginx.conf location /database/ { root /var/www/vhost/mysite.com/htdocs/database; index index.php index.html index.htm; allow xxx.xxx.xxx.xxx; allow yyy.yyy.yyy.yyy; deny all; …

---

## [IRC (Nginx problem or unix?)](https://www.ruby-forum.com/t/irc-nginx-problem-or-unix/186256)

<div class="topic-metadata">

**Author:** [@flash](https://www.ruby-forum.com/u/flash)\
**Replies:** 3\
**Last updated:** [April 4, 2010, 6:13pm UTC](https://www.ruby-forum.com/t/irc-nginx-problem-or-unix/186256 "2010-04-04T18:13:16Z")

</div>

I have installed Webmasters Conference Room CR4 with a fresh install of Nginx (0.8.34). I do not have much experience running my own IRC channel and I’m not sure if this even has anything to do with Nginx. But when I …

---

## [Building nginx with non-system openssl?](https://www.ruby-forum.com/t/building-nginx-with-non-system-openssl/186261)

<div class="topic-metadata">

**Author:** [@Ben\_DJ](https://www.ruby-forum.com/u/Ben_DJ)\
**Replies:** 2\
**Last updated:** [April 4, 2010, 12:45am UTC](https://www.ruby-forum.com/t/building-nginx-with-non-system-openssl/186261 "2010-04-04T00:45:38Z")

</div>

Hi, I’ve installed OpenSSL 1.0.0 in /usr/local/ssl; sources are in /usr/local/src/openssl. Note, pkg-config --libs “libcrypto” && pkg-config --libs “libssl” && pkg-config --libs “openssl” -L/usr/local/ssl/lib…

---

## [The alias don't show](https://www.ruby-forum.com/t/the-alias-dont-show/186285)

<div class="topic-metadata">

**Author:** [@Michel\_Vega\_Fuenzal](https://www.ruby-forum.com/u/Michel_Vega_Fuenzal)\
**Replies:** 1\
**Last updated:** [April 3, 2010, 11:34pm UTC](https://www.ruby-forum.com/t/the-alias-dont-show/186285 "2010-04-03T23:34:51Z")

</div>

Hi list, sorry my english. I can show .php files, with this configuration in the file www.misito.cu in /etc/nginx/site-enable/: server { listen www.miserver.cu:80; server\_name www.misito.cu; access\_log /var/log/n…

---

## [Setting expires header results in 404?](https://www.ruby-forum.com/t/setting-expires-header-results-in-404/186254)

<div class="topic-metadata">

**Author:** [@RoastedPeanut](https://www.ruby-forum.com/u/RoastedPeanut)\
**Replies:** 2\
**Last updated:** [April 3, 2010, 9:26am UTC](https://www.ruby-forum.com/t/setting-expires-header-results-in-404/186254 "2010-04-03T09:26:46Z")

</div>

location ~\* .(ico|css|js|gif|jpg|png)$ { expires 7d; } If I add this to my server conf it will cause all those requests to fail with a 404…I’m feeling silly for missing this, and I know it’s probably very easy to fi…

---

## [Nginx 0.8.35 and](https://www.ruby-forum.com/t/nginx-0-8-35-and/186249)

<div class="topic-metadata">

**Author:** [@Davide\_DSAmico](https://www.ruby-forum.com/u/Davide_DSAmico)\
**Replies:** 1\
**Last updated:** [April 3, 2010, 12:25am UTC](https://www.ruby-forum.com/t/nginx-0-8-35-and/186249 "2010-04-03T00:25:25Z")

</div>

With nginx 0.8.35 have I (still) to apply this patch: http://www.ruby-forum.com/attachment/4342/cached\_0\_byte\_files\_fix\_v2.patch related to the content cached with 0 bytes size? Thanks for nginx and for your answers. …

---

## [Nginx-0.8.35](https://www.ruby-forum.com/t/nginx-0-8-35/186179)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 1\
**Last updated:** [April 2, 2010, 11:05pm UTC](https://www.ruby-forum.com/t/nginx-0-8-35/186179 "2010-04-02T23:05:50Z")

</div>

Changes with nginx 0.8.35 01 Apr 2010 \*) Change: now the charset filter runs before the SSI filter. \*) Feature: the "chunked\_transfer\_encoding" directive. \*) Bugfix: an "&" char…

---

## [Proxy\_pass with runtime variables?](https://www.ruby-forum.com/t/proxy-pass-with-runtime-variables/186211)

<div class="topic-metadata">

**Author:** [@Quan\_Zhou](https://www.ruby-forum.com/u/Quan_Zhou)\
**Replies:** 2\
**Last updated:** [April 2, 2010, 3:36pm UTC](https://www.ruby-forum.com/t/proxy-pass-with-runtime-variables/186211 "2010-04-02T15:36:12Z")

</div>

Hi all, I’m having issues with reverse proxy on Nginx I was setting up a reverse proxy listening \[::0\]:80 acts as 6 to 4 server on Nginx, so I’ve tried $host, $server\_name, $http\_host in proxy\_pass field, but they …

---

## [Problem witch fastcgi conettions](https://www.ruby-forum.com/t/problem-witch-fastcgi-conettions/186183)

<div class="topic-metadata">

**Author:** [@Michel\_Vega\_Fuenzal](https://www.ruby-forum.com/u/Michel_Vega_Fuenzal)\
**Replies:** 1\
**Last updated:** [April 1, 2010, 11:41pm UTC](https://www.ruby-forum.com/t/problem-witch-fastcgi-conettions/186183 "2010-04-01T23:41:05Z")

</div>

Hi list, sorry my english. I use this tutorial: http://blog.codefront.net/2007/06/11/nginx-php-and-a-php-fastcgi-daemon-init-script/ and the 9000 port is open: root@adminred:/etc/init.d# nmap localhost Starting Nmap…

---

## [Current recommended /state of the art PHP + Nginx stack?](https://www.ruby-forum.com/t/current-recommended-state-of-the-art-php-nginx-stack/186177)

<div class="topic-metadata">

**Author:** [@RoastedPeanut](https://www.ruby-forum.com/u/RoastedPeanut)\
**Replies:** 4\
**Last updated:** [April 1, 2010, 9:45pm UTC](https://www.ruby-forum.com/t/current-recommended-state-of-the-art-php-nginx-stack/186177 "2010-04-01T21:45:46Z")

</div>

Hi there and thanks for the great forum and software :slight\_smile: I’ve been running lighttpd for a while but it’s giving me too much downtime with spawn-fcgi and the frequent 500 server errors…so I’d like to move ov…

---

## [Apache .htaccess rewrite](https://www.ruby-forum.com/t/apache-htaccess-rewrite/186147)

<div class="topic-metadata">

**Author:** [@Payam\_C](https://www.ruby-forum.com/u/Payam_C)\
**Replies:** 1\
**Last updated:** [April 1, 2010, 9:33am UTC](https://www.ruby-forum.com/t/apache-htaccess-rewrite/186147 "2010-04-01T09:33:31Z")

</div>

hey Guys, I cant seem to figure out why I cant properly convert this from apache to nginx, any help would be appreciated… ive tried a dozen times but it just will not function as expected. Options +FollowSymLinks R…

---

## [Nginx+FCGI vs Nginx+Reverse Proxy, which is better when delivery big files?](https://www.ruby-forum.com/t/nginx-fcgi-vs-nginx-reverse-proxy-which-is-better-when-delivery-big-files/186144)

<div class="topic-metadata">

**Author:** [@nightsailer](https://www.ruby-forum.com/u/nightsailer)\
**Replies:** 0\
**Last updated:** [April 1, 2010, 7:25am UTC](https://www.ruby-forum.com/t/nginx-fcgi-vs-nginx-reverse-proxy-which-is-better-when-delivery-big-files/186144 "2010-04-01T07:25:20Z")

</div>

Hi: Anyone benchmark that? I need deploy a PSGI(Perl app) behind nginx, now, there’s two options: Perl app deployed as FastCGI application, connect to nginx. Perl app deployed as standalone PSGI web server, and ngi…

---

## [Nginx - Match Client Language](https://www.ruby-forum.com/t/nginx-match-client-language/186125)

<div class="topic-metadata">

**Author:** [@Payam\_C](https://www.ruby-forum.com/u/Payam_C)\
**Replies:** 2\
**Last updated:** [March 31, 2010, 10:29pm UTC](https://www.ruby-forum.com/t/nginx-match-client-language/186125 "2010-03-31T22:29:13Z")

</div>

Hi Guys, Anyone know what variable to search for and match against User/Client Browser Language? Say i want to drop everyone that has browser lang set to US or something. Thanks in advance, i should be able to figur…

---

## [Add slash to the base url](https://www.ruby-forum.com/t/add-slash-to-the-base-url/186096)

<div class="topic-metadata">

**Author:** [@prateekdayal](https://www.ruby-forum.com/u/prateekdayal)\
**Replies:** 8\
**Last updated:** [March 31, 2010, 6:39pm UTC](https://www.ruby-forum.com/t/add-slash-to-the-base-url/186096 "2010-03-31T18:39:06Z")

</div>

Hi, I am trying to add a trailing slash to every url and I have been able to \[almost\] achieve that with this rule if ($request\_method ~\* get){ rewrite ^(.\*\[^/\])$ $1/ permanent; } The if condition is to prevent redi…

---

## [Alias in Nginx](https://www.ruby-forum.com/t/alias-in-nginx/186104)

<div class="topic-metadata">

**Author:** [@Michel\_Vega\_Fuenzal](https://www.ruby-forum.com/u/Michel_Vega_Fuenzal)\
**Replies:** 1\
**Last updated:** [March 31, 2010, 5:54pm UTC](https://www.ruby-forum.com/t/alias-in-nginx/186104 "2010-03-31T17:54:02Z")

</div>

Hello List, sorry my english, I would like do like in Apache is make: “Alias /pepe /usr/share/pepe” Who I can do it in Nginx? Thank for all. – Usemos el Software Libre “Con todos y para el bien de todos” José Martí…

---

## [Nginx as Proxy and IP forwarding](https://www.ruby-forum.com/t/nginx-as-proxy-and-ip-forwarding/185831)

<div class="topic-metadata">

**Author:** [@cschiewek](https://www.ruby-forum.com/u/cschiewek)\
**Replies:** 8\
**Last updated:** [March 31, 2010, 3:23pm UTC](https://www.ruby-forum.com/t/nginx-as-proxy-and-ip-forwarding/185831 "2010-03-31T15:23:31Z")

</div>

Hi All, I’m in a situation where we have a 3rd party canned app (CF and Java on IIS) that we want to put behind an nginx proxy server. Unfortunately, we have no control over the app and or web server so we can not te…

---

## [Repeat requests](https://www.ruby-forum.com/t/repeat-requests/185977)

<div class="topic-metadata">

**Author:** [@matthieu\_Labour](https://www.ruby-forum.com/u/matthieu_Labour)\
**Replies:** 2\
**Last updated:** [March 31, 2010, 2:14pm UTC](https://www.ruby-forum.com/t/repeat-requests/185977 "2010-03-31T14:14:25Z")

</div>

Hi I am new to nginx. Can i use nginx to repeat / duplicate incoming requests …? I understand that I can use nginx to load balance … but in my use case, i need to duplicate the request. The incoming request should b…

---

## [Rewrite module and secure download](https://www.ruby-forum.com/t/rewrite-module-and-secure-download/180457)

<div class="topic-metadata">

**Author:** [@trinsic](https://www.ruby-forum.com/u/trinsic)\
**Replies:** 3\
**Last updated:** [March 31, 2010, 1:44pm UTC](https://www.ruby-forum.com/t/rewrite-module-and-secure-download/180457 "2010-03-31T13:44:34Z")

</div>

Hi guys, having a bit of a pickle at the moment. I’ve set up the secure download module and its working as it should. The problem is when you try to use it, it appends the file name as the hex timestamp (without an ex…

---

## [å…³äºŽnginxçš„proxyçš„ç–‘é—®](https://www.ruby-forum.com/t/a-a-znginxcs-proxycs-c-e/186062)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [March 31, 2010, 12:57pm UTC](https://www.ruby-forum.com/t/a-a-znginxcs-proxycs-c-e/186062 "2010-03-31T12:57:45Z")

</div>

å¤§å®¶å¥½ã€‚ è¯·é—®nginxçš„proxyæœ‰æ²¡æœ‰ç±»ä¼¼mail proxyçš„åŠŸèƒ½ï¼Œå†™ä¸€ä¸ªç¨‹åºæ¥æŸ¥è¯¢ä¸»æœºåæ‰€åœ¨çš„åŽç«¯æœåŠ¡å™¨çš„IPï¼Œç„¶åŽè‡ªåŠ¨çš„proxyåˆ°å¯¹åº”çš„åŽç«¯æœåŠ¡å™¨ä¸Šã€‚ è°¢è°¢

---

## [How to setup nginx as reverse proxy + tomcat ssl](https://www.ruby-forum.com/t/how-to-setup-nginx-as-reverse-proxy-tomcat-ssl/186084)

<div class="topic-metadata">

**Author:** [@kaiyuan](https://www.ruby-forum.com/u/kaiyuan)\
**Replies:** 3\
**Last updated:** [March 31, 2010, 11:48am UTC](https://www.ruby-forum.com/t/how-to-setup-nginx-as-reverse-proxy-tomcat-ssl/186084 "2010-03-31T11:48:06Z")

</div>

Hey guys, I am totally new to Nginx, I need some advice with my reverse proxy setup. This is what i am trying to set up. Client(commit a client cert)\<========\>| Nginx (reverse proxy with ssl)|\<========\>Tomcat (with …

---

## [Hiding the identity of nginx](https://www.ruby-forum.com/t/hiding-the-identity-of-nginx/186002)

<div class="topic-metadata">

**Author:** [@huet\_bartels](https://www.ruby-forum.com/u/huet_bartels)\
**Replies:** 4\
**Last updated:** [March 31, 2010, 10:40am UTC](https://www.ruby-forum.com/t/hiding-the-identity-of-nginx/186002 "2010-03-31T10:40:12Z")

</div>

Dear All. Have managed to check the following files to change the identity of nginx to another string, plus the footer section of the error pages. This seems to of work for the most part by changing the following file…

---

## [Reverse Proxy Cache Setup](https://www.ruby-forum.com/t/reverse-proxy-cache-setup/185944)

<div class="topic-metadata">

**Author:** [@royo](https://www.ruby-forum.com/u/royo)\
**Replies:** 5\
**Last updated:** [March 31, 2010, 5:05am UTC](https://www.ruby-forum.com/t/reverse-proxy-cache-setup/185944 "2010-03-31T05:05:30Z")

</div>

I’m trying to use nginx as a reverse cahce for my website which may require people to be logged in. I’m trying to figure out how to configure it so that users that don’t have a certain cookie set receive cached pages …

---

## [A few basic questions](https://www.ruby-forum.com/t/a-few-basic-questions/185947)

<div class="topic-metadata">

**Author:** [@dgm](https://www.ruby-forum.com/u/dgm)\
**Replies:** 1\
**Last updated:** [March 31, 2010, 12:04am UTC](https://www.ruby-forum.com/t/a-few-basic-questions/185947 "2010-03-31T00:04:42Z")

</div>

Hi All; The company I work for is moving to a drupal content management system. We expect to install a caching reverse proxy between the drupal servers and the Internet. I’m looking into nginx and varnish for that ro…

---

## [Dogpiling](https://www.ruby-forum.com/t/dogpiling/185950)

<div class="topic-metadata">

**Author:** [@vburshteyn](https://www.ruby-forum.com/u/vburshteyn)\
**Replies:** 8\
**Last updated:** [March 30, 2010, 5:53pm UTC](https://www.ruby-forum.com/t/dogpiling/185950 "2010-03-30T17:53:05Z")

</div>

Hey folks, Can I use nginx for anti-dogpiling? We have been using Varnish cause it has antidogpiling options, but its so limited in terms of what it does as to what we need, that id love to use nginx. Posted at Ngin…

---

## [Webdav upload and wrong modify time stamp (0.7.65, 0.8.34)](https://www.ruby-forum.com/t/webdav-upload-and-wrong-modify-time-stamp-0-7-65-0-8-34/186014)

<div class="topic-metadata">

**Author:** [@Marcin\_Engelmann](https://www.ruby-forum.com/u/Marcin_Engelmann)\
**Replies:** 2\
**Last updated:** [March 30, 2010, 2:28pm UTC](https://www.ruby-forum.com/t/webdav-upload-and-wrong-modify-time-stamp-0-7-65-0-8-34/186014 "2010-03-30T14:28:19Z")

</div>

Hello, I noticed that uploading file (webdav) when client\_body\_temp\_path and document root are on different partitions sets access and modify time stamps to 1970-01-01 instead of valid time. It works fine if client\_b…

---

## [Limit to IP, redirect all others to alternate site?](https://www.ruby-forum.com/t/limit-to-ip-redirect-all-others-to-alternate-site/186007)

<div class="topic-metadata">

**Author:** [@phillipoertel](https://www.ruby-forum.com/u/phillipoertel)\
**Replies:** 1\
**Last updated:** [March 30, 2010, 11:44am UTC](https://www.ruby-forum.com/t/limit-to-ip-redirect-all-others-to-alternate-site/186007 "2010-03-30T11:44:12Z")

</div>

How would I limit a virtual host to a single IP and redirect all other IPs to an alternate domain/website? I’m using the http\_access module to limit IPs which returns a 403, but I’d prefer that nginx return a “locatio…

---

## [Nginx recycles workers too often](https://www.ruby-forum.com/t/nginx-recycles-workers-too-often/184373)

<div class="topic-metadata">

**Author:** [@mindfrost82](https://www.ruby-forum.com/u/mindfrost82)\
**Replies:** 6\
**Last updated:** [March 30, 2010, 4:17am UTC](https://www.ruby-forum.com/t/nginx-recycles-workers-too-often/184373 "2010-03-30T04:17:59Z")

</div>

A couple of months ago I posted a topic because I thought my php-cgi processes were recycling too often (you can view it here http://forum.nginx.org/read.php?2,45516). After trying to troubleshoot this issue for mont…

---

## [Nginx 0.7.65 rewrite url with querystring problem?](https://www.ruby-forum.com/t/nginx-0-7-65-rewrite-url-with-querystring-problem/185981)

<div class="topic-metadata">

**Author:** [@WisdomFusion](https://www.ruby-forum.com/u/WisdomFusion)\
**Replies:** 0\
**Last updated:** [March 30, 2010, 3:52am UTC](https://www.ruby-forum.com/t/nginx-0-7-65-rewrite-url-with-querystring-problem/185981 "2010-03-30T03:52:14Z")

</div>

Hi, all Recently, I altered my web server lighty to nginx. And now, Struggling with some problems. First, I have a site in nginx which only rewrites urls and redircts them to a new domain, and this site has exactly n…

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

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