# Nginx-1.3.1

**URL:** <https://www.ruby-forum.com/t/nginx-1-3-1/220295>\
**Category:** NGINX\
**Created:** [June 5, 2012, 4:31pm UTC](https://www.ruby-forum.com/t/nginx-1-3-1/220295 "2012-06-05T16:31:16Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gurdipe\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/b77776/32.png) [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Post date:** [June 5, 2012, 4:31pm UTC](https://www.ruby-forum.com/t/nginx-1-3-1/220295/1 "2012-06-05T16:31:16Z")

</div>

Changes with nginx 1.3.1 05 Jun  
2012

```
*) Security: now nginx/Windows ignores trailing dot in URI path
   component, and does not allow URIs with ":$" in it.
   Thanks to Vladimir Kochetkov, Positive Research Center.

*) Feature: the "proxy_pass", "fastcgi_pass", "scgi_pass", 

```

“uwsgi\_pass”  
directives, and the “server” directive inside the “upstream”  
block,  
now support IPv6 addresses.

```
*) Feature: the "resolver" directive now support IPv6 addresses and 

```

an  
optional port specification.

```
*) Feature: the "least_conn" directive inside the "upstream" block.

*) Feature: it is now possible to specify a weight for servers while
   using the "ip_hash" directive.

*) Bugfix: a segmentation fault might occur in a worker process if 

```

the  
“image\_filter” directive was used; the bug had appeared in 1.3.0.

```
*) Bugfix: nginx could not be built with ngx_cpp_test_module; the 

```

bug  
had appeared in 1.1.12.

```
*) Bugfix: access to variables from SSI and embedded perl module 

```

might  
not work after reconfiguration.  
Thanks to Yichun Z…

```
*) Bugfix: in the ngx_http_xslt_filter_module.
   Thanks to Kuramoto Eiji.

*) Bugfix: memory leak if $geoip_org variable was used.
   Thanks to Denis F. Latypoff.

*) Bugfix: in the "proxy_cookie_domain" and "proxy_cookie_path"
   directives.

```

Maxim D.

---

<div class="post-metadata">

**Author:** ![Maxim\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/da6949/32.png) [@Maxim\_D](https://www.ruby-forum.com/u/Maxim_D)\
**Post date:** [June 5, 2012, 8:15pm UTC](https://www.ruby-forum.com/t/nginx-1-3-1/220295/2 "2012-06-05T20:15:16Z")

</div>

Hello Nginx U.s,

Now available: Nginx 1.3.1 For Windows [http://goo.gl/Xvccu](http://goo.gl/Xvccu) (32-bit and  
64-bit versions)

These versions are to support legacy users who are already using  
Cygwin based builds of Nginx. Officially supported native Windows  
binaries are at [nginx.org](http://nginx.org).

## Thank you, Kevin

Kevin W.  
kworthington _@_ (gmail] [dot} {com)

> **[Kevin Worthington](https://kevinworthington.com/)**
>
> Practical Tech Guides, Troubleshooting, and Insights on the Modern Internet

[http://twitter.com/kworthington](http://twitter.com/kworthington)

---

<div class="post-metadata">

**Author:** ![Maxim\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/da6949/32.png) [@Maxim\_D](https://www.ruby-forum.com/u/Maxim_D)\
**Post date:** [June 6, 2012, 5:27am UTC](https://www.ruby-forum.com/t/nginx-1-3-1/220295/3 "2012-06-06T05:27:02Z")

</div>

After I upgraded to nginx 1.3.1, I’ve been having a problem with  
PHP-FPM. It would work fine for a few minutes then I would start getting  
500 Internal Server Errors on all the pages that use PHP. I have to  
keep restaring the PHP-FPM service in order to navigate my website.  
Everything was running smoothly before upgrading nginx and I’ve haven’t  
made any recent changes in the config files for both nginx and anything  
PHP related. I’m running Fedora 14 (can’t upgrade to anything more  
recent) and compiled nginx myself as I’ve always done in the past. Any  
help would be greatly appreciated.

–  
omega13a  
Owner and Founder of UFT  
[http://www.fedtrek.com](http://www.fedtrek.com)

---

<div class="post-metadata">

**Author:** ![Maxim\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/da6949/32.png) [@Maxim\_D](https://www.ruby-forum.com/u/Maxim_D)\
**Post date:** [June 6, 2012, 6:29am UTC](https://www.ruby-forum.com/t/nginx-1-3-1/220295/4 "2012-06-06T06:29:34Z")

</div>

Wild guess: maybe some file openings limit reached?

## Most important thing to start: what does the error log says?

_B. R._

---

<div class="post-metadata">

**Author:** ![Maxim\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/da6949/32.png) [@Maxim\_D](https://www.ruby-forum.com/u/Maxim_D)\
**Post date:** [June 7, 2012, 12:50am UTC](https://www.ruby-forum.com/t/nginx-1-3-1/220295/5 "2012-06-07T00:50:27Z")

</div>

I’m still having problems. I forgot to mention that I’m running PHP  
5.4.3.

–  
omega13a  
Owner and Founder of UFT  
[http://www.fedtrek.com](http://www.fedtrek.com)

---

<div class="post-metadata">

**Author:** ![Maxim\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/da6949/32.png) [@Maxim\_D](https://www.ruby-forum.com/u/Maxim_D)\
**Post date:** [June 6, 2012, 6:38am UTC](https://www.ruby-forum.com/t/nginx-1-3-1/220295/6 "2012-06-06T06:38:21Z")

</div>

I’m assuming this is the error as that the error long is filled with  
similar messages since around the time I upgraded:

2012/06/05 21:35:23 [error] 5976#0: \*43558 connect() to  
unix:/var/lib/php5-fpm/web1.sock failed (11: Resource temporarily  
unavailable) while connecting to upstream, client: 72.253.115.223,  
server: [fedtrek.com](http://fedtrek.com), request: “POST  
/Forums-file-ajax\_online\_update-mypage-minus200.html HTTP/1.1”,  
upstream: “fastcgi://unix:/var/lib/php5-fpm/web1.sock:”, host:  
“[www.fedtrek.com](http://www.fedtrek.com)”, referrer:  
“[http://www.fedtrek.com/Borg\_Species\_Designations.html](http://www.fedtrek.com/Borg_Species_Designations.html)”

---

<div class="post-metadata">

**Author:** ![Maxim\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/da6949/32.png) [@Maxim\_D](https://www.ruby-forum.com/u/Maxim_D)\
**Post date:** [June 7, 2012, 1:51am UTC](https://www.ruby-forum.com/t/nginx-1-3-1/220295/7 "2012-06-07T01:51:58Z")

</div>

Hello,

Well, you may:  
1°) Search the ML  
archive[http://forum.nginx.org/search.php?4,search=resource+temporarily+unavailable,author=,page=1,match\_type=ALL,match\_dates=365,match\_forum=2,match\_threads=0](http://forum.nginx.org/search.php?4,search=resource+temporarily+unavailable,author=,page=1,match_type=ALL,match_dates=365,match_forum=2,match_threads=0)to  
see if anyone already encountered your problem

2°) Since you said problems started to appear after an upgrade:  
Use the stable releases of Nginx (latest is 1.2.1) rather than  
development  
version if you don’t especially need it  
_Or_  
Revert to a previous development version to check if it could solve the  
problem

3°) Use the Fedora Nginx package.  
Other people seem to have problems with Nginx on Fedora. Package are  
made  
for Fedora starting with v15, but maybe you can give it a try anyway?

4°) Check you system so see where the problem might come:  
Too many files open, too many Nginx processes spawned, anything not  
normal.

## Can’t help much more, though…

_B. R._

---

<div class="post-metadata">

**Author:** ![Maxim\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/da6949/32.png) [@Maxim\_D](https://www.ruby-forum.com/u/Maxim_D)\
**Post date:** [June 7, 2012, 12:02pm UTC](https://www.ruby-forum.com/t/nginx-1-3-1/220295/8 "2012-06-07T12:02:05Z")

</div>

-------- Original-Nachricht --------

> Datum: Wed, 06 Jun 2012 15:49:38 -0700  
> Von: Brandon A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> An: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> Betreff: Re: nginx 1.3.1 not PHP-FPM friendly

> I’m still having problems. I forgot to mention that I’m running PHP 5.4.3.

I run nginx 1.3.1 and PHP 5.4.3 too and have no issues at all.

> > On 06/05/2012 09:28 PM, B.R. wrote:
> > 
> > > ```
> > > After I upgraded to nginx 1.3.1, I've been having a problem with
> > > --
> > > 
> > > ```
> > 
> > [http://www.fedtrek.com](http://www.fedtrek.com)
> > 
> > * * *
> > 
> > nginx mailing list  
> > [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> > [mailman.nginx.org archive](http://mailman.nginx.org/mailman/listinfo/nginx)

–  
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir  
belohnen Sie mit bis zu 50,- Euro! [https://freundschaftswerbung.gmx.de](https://freundschaftswerbung.gmx.de)

---

<div class="post-metadata">

**Author:** ![Maxim\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/da6949/32.png) [@Maxim\_D](https://www.ruby-forum.com/u/Maxim_D)\
**Post date:** [June 7, 2012, 6:02pm UTC](https://www.ruby-forum.com/t/nginx-1-3-1/220295/9 "2012-06-07T18:02:04Z")

</div>

My investigation of things on my server have just gotten a bit weirder.  
My server has ISPConfig installed and the web based control panel is not  
effected at all by this slowness. Yet everything on my site is taking an  
insane amount of time to load if it loads at all. Even a simple php file  
that contains only phpinfo(); takes forever… I’m completely baffled by  
this.

–  
omega13a  
Owner and Founder of UFT  
[http://www.fedtrek.com](http://www.fedtrek.com)

---

<div class="post-metadata">

**Author:** ![Maxim\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/da6949/32.png) [@Maxim\_D](https://www.ruby-forum.com/u/Maxim_D)\
**Post date:** [June 7, 2012, 8:49pm UTC](https://www.ruby-forum.com/t/nginx-1-3-1/220295/10 "2012-06-07T20:49:14Z")

</div>

If ISPConfig is running without trouble, it seems the problem doesn’t  
come  
from Nginx or PHP-FPM themselves.  
Check configuration, intermediates, conflicts, etc.

Maybe purge or start from scratch on a separate small installation of  
Nginx

- PHP-FPM?  
Try to clean-up things and remove unecessary features to get back to a  
very  
basic service.

## That’s what I do when strange or apparently illogical problems arouse,

_B. R._

---

<div class="post-metadata">

**Author:** ![Maxim\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/da6949/32.png) [@Maxim\_D](https://www.ruby-forum.com/u/Maxim_D)\
**Post date:** [June 7, 2012, 10:24pm UTC](https://www.ruby-forum.com/t/nginx-1-3-1/220295/11 "2012-06-07T22:24:32Z")

</div>

-------- Original-Nachricht --------

> Datum: Thu, 07 Jun 2012 09:00:05 -0700  
> Von: Brandon A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> An: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> Betreff: Re: nginx 1.3.1 not PHP-FPM friendly

> My investigation of things on my server have just gotten a bit weirder.  
> My server has ISPConfig installed and the web based control panel is not  
> effected at all by this slowness. Yet everything on my site is taking an  
> insane amount of time to load if it loads at all. Even a simple php file  
> that contains only phpinfo(); takes forever… I’m completely baffled by  
> this.

But all of this has nothing to do with nginx. Does it take the same  
amount of time if you call with php cli? Probably yes. Right?

> > > Von: Brandon A.[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> > > Owner and Founder of UFT
> > > 
> > > > unix:/var/lib/php5-fpm/web1.sock failed (11: Resource temporarily
> > > > 
> > > > > Most important thing to start: what does the error log says?  
> > > > > PHP.  
> > > > > omega13a
> > > > 
> > > > * * *
> > > > 
> > > > nginx mailing list  
> > > > [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> > > > [mailman.nginx.org archive](http://mailman.nginx.org/mailman/listinfo/nginx)
> 
> * * *
> 
> nginx mailing list  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [mailman.nginx.org archive](http://mailman.nginx.org/mailman/listinfo/nginx)

–  
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir  
belohnen Sie mit bis zu 50,- Euro! [https://freundschaftswerbung.gmx.de](https://freundschaftswerbung.gmx.de)
