# Server

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

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

---

## [Same config for two virtual hosts (except hostname / certificate)](https://www.ruby-forum.com/t/same-config-for-two-virtual-hosts-except-hostname-certificate/214181)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [November 24, 2011, 12:43am UTC](https://www.ruby-forum.com/t/same-config-for-two-virtual-hosts-except-hostname-certificate/214181 "2011-11-24T00:43:48Z")

</div>

Hi, I’m still a little shaky with how to best structure my nginx configurations and where one can / should use includes and where one couldn’t. somehow I like the idea of a directory structure like /etc/nginx/ # fo…

---

## [Disable buffering/caching of HTTP PUT upload requests in nginx proxy](https://www.ruby-forum.com/t/disable-buffering-caching-of-http-put-upload-requests-in-nginx-proxy/214172)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [November 23, 2011, 8:35pm UTC](https://www.ruby-forum.com/t/disable-buffering-caching-of-http-put-upload-requests-in-nginx-proxy/214172 "2011-11-23T20:35:07Z")

</div>

Hello, During the upcoming days I’m going to try to implement a feature in nginx proxy that allows disabling local disk buffering/caching of HTTP PUT upload requests, e.g. allow directly stream the uploads to the ba…

---

## [Match any location except particular one](https://www.ruby-forum.com/t/match-any-location-except-particular-one/214161)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [November 23, 2011, 5:29pm UTC](https://www.ruby-forum.com/t/match-any-location-except-particular-one/214161 "2011-11-23T17:29:46Z")

</div>

Hello, i have a website with the following files structure: engine/ \_\_index.php webroot/ \_\_images/ \_\_css/ \_\_cms/ \_\_\_\_\_\_engine/ \_\_\_\_\_\_\_\_\_index.php \_\_\_\_\_\_webroot/ \_\_\_\_\_\_\_\_\_images/ \_\_\_\_\_\_\_\_\_css/ others/ So the …

---

## [Configuration problem with subdomain and proxy\_pass](https://www.ruby-forum.com/t/configuration-problem-with-subdomain-and-proxy-pass/214153)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 8\
**Last updated:** [November 23, 2011, 5:09pm UTC](https://www.ruby-forum.com/t/configuration-problem-with-subdomain-and-proxy-pass/214153 "2011-11-23T17:09:57Z")

</div>

Hi, I have a problem with configuration subdomains for nginx. I want to configure domains: mydomain.com (port 80) → http://localhost:8080/ www.mydomain.com (port 80) → http://localhost:8080/ subdomain.mydomain.com (…

---

## [Php.ini & Virtual Hosts](https://www.ruby-forum.com/t/php-ini-virtual-hosts/214160)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [November 23, 2011, 2:59pm UTC](https://www.ruby-forum.com/t/php-ini-virtual-hosts/214160 "2011-11-23T14:59:48Z")

</div>

Is it possible to define a php.ini file per virtual host. If so, how can it be done? Thanks. – Joshua Parker http://www.joshparker.us/

---

## [Server\_name host order](https://www.ruby-forum.com/t/server-name-host-order/214149)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [November 23, 2011, 2:56pm UTC](https://www.ruby-forum.com/t/server-name-host-order/214149 "2011-11-23T14:56:04Z")

</div>

Hello, I would like to know if this is correct Will NGINX allways return the first of the provided hostname name in from the server\_name as beign the “SERVER\_NAME”, eg server\_name hostname1 hostname2; I have two serv…

---

## [No nice Permalinks with Wordpress](https://www.ruby-forum.com/t/no-nice-permalinks-with-wordpress/214141)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [November 23, 2011, 2:49pm UTC](https://www.ruby-forum.com/t/no-nice-permalinks-with-wordpress/214141 "2011-11-23T14:49:51Z")

</div>

Hello, after days of testing i don’t find a way to use short permalinks with Wordpress, i can only configure URLS with /index.php/xxx in it, not sure why. The rewrite-rules are there, but wordpress ignores them. I t…

---

## [Nginx stuck processes](https://www.ruby-forum.com/t/nginx-stuck-processes/212932)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 7\
**Last updated:** [November 23, 2011, 2:12pm UTC](https://www.ruby-forum.com/t/nginx-stuck-processes/212932 "2011-11-23T14:12:39Z")

</div>

Hi, We are using nginx version: 1.0.0 for pop-proxy. We have seen off-late certain processes remaining in state whereby nginx becomes non-responsive. Below is the dump of ps showing the stuck process of nginx ==\> R -…

---

## [$request\_time meaning](https://www.ruby-forum.com/t/request-time-meaning/214101)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [November 23, 2011, 1:40pm UTC](https://www.ruby-forum.com/t/request-time-meaning/214101 "2011-11-23T13:40:26Z")

</div>

Hi, How is the $request\_time calculated in the case of a proxied request. I’m interested especially in the case where the resource is stale in cache. Thanks

---

## [Is proxy\_cache\_bypass recaching?](https://www.ruby-forum.com/t/is-proxy-cache-bypass-recaching/214111)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [November 23, 2011, 12:31pm UTC](https://www.ruby-forum.com/t/is-proxy-cache-bypass-recaching/214111 "2011-11-23T12:31:42Z")

</div>

Hi all, I have this in my location directive proxy\_cache\_bypass $http\_soon; now I do a curl call to invalidate \[user@ip-10-111 ~\]$ curl “Custom Application Development Software for…

---

## [Log request only when they reached a size](https://www.ruby-forum.com/t/log-request-only-when-they-reached-a-size/214150)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [November 23, 2011, 11:56am UTC](https://www.ruby-forum.com/t/log-request-only-when-they-reached-a-size/214150 "2011-11-23T11:56:58Z")

</div>

Dear list! I’m new here, so I just hope I’m following the rules. I would like to send a patch for http\_log\_module which I made for version nginx-1.0.10. My company is in adserving business and it is important for us …

---

## [Spawning PHP as FastCGI](https://www.ruby-forum.com/t/spawning-php-as-fastcgi/214134)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [November 22, 2011, 9:40pm UTC](https://www.ruby-forum.com/t/spawning-php-as-fastcgi/214134 "2011-11-22T21:40:25Z")

</div>

I used the bash script given on this pagehttp://wiki.nginx.org/PHPFcgiExample#Spawning\_a\_FastCGI\_Process, after having changed the binding to a UNIX socket (and not a network one). The update-rc configuration tool gi…

---

## [PH Fast-CGI security pitfall](https://www.ruby-forum.com/t/ph-fast-cgi-security-pitfall/214132)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [November 22, 2011, 9:29pm UTC](https://www.ruby-forum.com/t/ph-fast-cgi-security-pitfall/214132 "2011-11-22T21:29:19Z")

</div>

Hello, I juste read this articlehttps://nealpoole.com/blog/2011/04/setting-up-php-fastcgi-and-nginx-dont-trust-the-tutorials-check-your-configuration/which highlight a common security pitfall to serve PHP files. I do…

---

## [URL decoding a variable and/or using rewite effectively](https://www.ruby-forum.com/t/url-decoding-a-variable-and-or-using-rewite-effectively/214126)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [November 22, 2011, 6:11pm UTC](https://www.ruby-forum.com/t/url-decoding-a-variable-and-or-using-rewite-effectively/214126 "2011-11-22T18:11:19Z")

</div>

Thank you in advance to anyone who can point me in the right direction. We currently use nginx as an asset server. Requests are made to the asset server in the form of: http://downloads.ourdomain.com?unique\_key=MD5has…

---

## [Conflict: index and try\_files](https://www.ruby-forum.com/t/conflict-index-and-try-files/214010)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [November 22, 2011, 2:56pm UTC](https://www.ruby-forum.com/t/conflict-index-and-try-files/214010 "2011-11-22T14:56:46Z")

</div>

In the following simple configuration server { server\_name testsite.static; root /some/path/; index blog.html; try\_files $uri $uri.html =404; } the try\_files directive seems to interfere with the index directive: …

---

## [Nginx 100% cpu and it may be a nginx bug](https://www.ruby-forum.com/t/nginx-100-cpu-and-it-may-be-a-nginx-bug/214121)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [November 22, 2011, 11:45am UTC](https://www.ruby-forum.com/t/nginx-100-cpu-and-it-may-be-a-nginx-bug/214121 "2011-11-22T11:45:29Z")

</div>

The function ngx\_http\_upstream\_get\_round\_robin\_peer in nginx will loop for a long period of times when pc-\>tries equals to 0. Well then, under what conditions does pc-\>tries equal to zero? When executing ngx\_http\_upst…

---

## [Localhost path to images directory](https://www.ruby-forum.com/t/localhost-path-to-images-directory/214100)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [November 21, 2011, 9:11pm UTC](https://www.ruby-forum.com/t/localhost-path-to-images-directory/214100 "2011-11-21T21:11:26Z")

</div>

I have nginx and php5-fpm set up and working to serve /var/www/index.php as localhost/index.php That works fine. The images on the page are not showing up however. The images are in a folder /var/www/images The fold…

---

## [Cant start Nginx on Mac OS X](https://www.ruby-forum.com/t/cant-start-nginx-on-mac-os-x/214068)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 9\
**Last updated:** [November 21, 2011, 6:05pm UTC](https://www.ruby-forum.com/t/cant-start-nginx-on-mac-os-x/214068 "2011-11-21T18:05:50Z")

</div>

Sorry for the newbie question. I am new to nginx. i installed it successfully on my mac, but when i try to start it, i get this error nginx: \[alert\] could not open error log file: open() “/opt/local/var/log/nginx/erro…

---

## [Mod\_mysql\_userdir?](https://www.ruby-forum.com/t/mod-mysql-userdir/214089)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [November 21, 2011, 3:13pm UTC](https://www.ruby-forum.com/t/mod-mysql-userdir/214089 "2011-11-21T15:13:47Z")

</div>

Hello Nginx Team, we would like to ask have you got solution for following problem. We have ftp users that are authorized in mysql they want to see their homedirs through the web by using the same user and password. …

---

## [Enable SSL for a specific directory?](https://www.ruby-forum.com/t/enable-ssl-for-a-specific-directory/214045)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [November 21, 2011, 2:15pm UTC](https://www.ruby-forum.com/t/enable-ssl-for-a-specific-directory/214045 "2011-11-21T14:15:17Z")

</div>

Hi, I’m trying to enable SSL for a specific directory only. In other words, the / directory is not encrypted, while the /protected is. server { listen 192.168.1.2:80 default\_server; server\_name www.domai…

---

## [Shibboleth and authorizer mode](https://www.ruby-forum.com/t/shibboleth-and-authorizer-mode/214080)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [November 21, 2011, 1:49pm UTC](https://www.ruby-forum.com/t/shibboleth-and-authorizer-mode/214080 "2011-11-21T13:49:49Z")

</div>

Hello everyone I need to confirm something for a work colleague This page https://wiki.shibboleth.net/confluence/display/SHIB2/NativeSPFastCGIConfig states this “Nginx has fastcgi responder support but not the “auth…

---

## [2 steps authentication!](https://www.ruby-forum.com/t/2-steps-authentication/214086)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [November 21, 2011, 1:25pm UTC](https://www.ruby-forum.com/t/2-steps-authentication/214086 "2011-11-21T13:25:35Z")

</div>

Google 2 step authentication has a pam module: So, theoretically, it could be implemented into nginx. What do you think about it? My goal is to have 2 step auth, somehow, on some dir of my web server (some director…

---

## [Nginx serving old version of CSS file](https://www.ruby-forum.com/t/nginx-serving-old-version-of-css-file/214065)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [November 21, 2011, 10:36am UTC](https://www.ruby-forum.com/t/nginx-serving-old-version-of-css-file/214065 "2011-11-21T10:36:17Z")

</div>

I have spent 2 hours trying to get to the bottom of a problem and am utterly stumped. I am certain it must be something I’m doing wrong, and NOT an nginx problem, but I can’t think for the life of me what it might be.…

---

## [Can Mail modules provides simple load-balancing (round-robin and client IP) across backend servers?](https://www.ruby-forum.com/t/can-mail-modules-provides-simple-load-balancing-round-robin-and-client-ip-across-backend-servers/214075)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [November 21, 2011, 9:33am UTC](https://www.ruby-forum.com/t/can-mail-modules-provides-simple-load-balancing-round-robin-and-client-ip-across-backend-servers/214075 "2011-11-21T09:33:44Z")

</div>

Can Mail modules provides simple load-balancing (round-robin and client IP) across backend servers Like http HttpUpstreamModule? upstream backend { ip\_hash; server backend1.example.com; server backend2.example.c…

---

## [Trailing slash at end URL with nginx as a reverse proxy for multiple website](https://www.ruby-forum.com/t/trailing-slash-at-end-url-with-nginx-as-a-reverse-proxy-for-multiple-website/214055)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [November 21, 2011, 8:06am UTC](https://www.ruby-forum.com/t/trailing-slash-at-end-url-with-nginx-as-a-reverse-proxy-for-multiple-website/214055 "2011-11-21T08:06:30Z")

</div>

Hi, I’m running OpenIndiana 151a server then now I’d like to build the web service with nginx. Briefly, my scenario is: one central server installed a few website in virtual machines, and there is a different real ma…

---

## [Please check my nginx/php-fpm configs](https://www.ruby-forum.com/t/please-check-my-nginx-php-fpm-configs/214074)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [November 21, 2011, 8:02am UTC](https://www.ruby-forum.com/t/please-check-my-nginx-php-fpm-configs/214074 "2011-11-21T08:02:47Z")

</div>

Hi dear nginx community! Please check my ginx and php-fpm logs. I use that configuration on high-loaded servers in startup company. Thank you in avance! nginx: http://pastebin.com/GxL8h0KD php-fpm: http://pastebin.c…

---

## [Redirect arbitrary sub-domains to custom 404 when wild card A record is set?](https://www.ruby-forum.com/t/redirect-arbitrary-sub-domains-to-custom-404-when-wild-card-a-record-is-set/214066)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [November 20, 2011, 11:28pm UTC](https://www.ruby-forum.com/t/redirect-arbitrary-sub-domains-to-custom-404-when-wild-card-a-record-is-set/214066 "2011-11-20T23:28:23Z")

</div>

Is there a way to capture all requests to sub-domains which do not have a virtual host setup, and redirect to a custom 404 page? I will have a wild card A record setup \*.example.com and all our users will have a sub-d…

---

## [Kernel: nginx\[18233\]: segfault at 0000000000000008 rip 000000000043edf8 rsp 00007fff34a21fa0 error 4](https://www.ruby-forum.com/t/kernel-nginx-18233-segfault-at-0000000000000008-rip-000000000043edf8-rsp-00007fff34a21fa0-error-4/206931)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 12\
**Last updated:** [November 20, 2011, 9:44pm UTC](https://www.ruby-forum.com/t/kernel-nginx-18233-segfault-at-0000000000000008-rip-000000000043edf8-rsp-00007fff34a21fa0-error-4/206931 "2011-11-20T21:44:19Z")

</div>

I having this message which i posted in subject repeating a lot in /var/log/messages,is this some kind of bug?Nginx ver 1.0.1

---

## [Nginx mass dynamic virtual hosts like apache?](https://www.ruby-forum.com/t/nginx-mass-dynamic-virtual-hosts-like-apache/214050)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [November 20, 2011, 10:43am UTC](https://www.ruby-forum.com/t/nginx-mass-dynamic-virtual-hosts-like-apache/214050 "2011-11-20T10:43:11Z")

</div>

Hello I’m new to nginx and was wondering if there is a configuration that is similar to apaches mass dynamic virtual hosts http://httpd.apache.org/docs/2.0/vhosts/mass.html I’m having an SaaS developed where users wi…

---

## [Sub-domains only server for web application?](https://www.ruby-forum.com/t/sub-domains-only-server-for-web-application/214056)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [November 20, 2011, 10:22am UTC](https://www.ruby-forum.com/t/sub-domains-only-server-for-web-application/214056 "2011-11-20T10:22:52Z")

</div>

Our website currently runs wordpress to manage the front end site www.example.com When users register they get a subdomain username.example.com where they can login to our application. The application is built on zend …

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

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