Permalink
Browse files

Fix Nginx >= 0.8.38 support. Thanks Sergey A. Osokin

  • Loading branch information...
1 parent eb512a5 commit 745938abf5b8788891a9bd7fb590c4a2dff22d61 @FooBarWidget FooBarWidget committed May 31, 2010
Showing with 7 additions and 3 deletions.
  1. +1 −0 NEWS
  2. +6 −3 ext/nginx/StaticContentHandler.c
View
@@ -21,6 +21,7 @@ Release 2.2.12
If Nginx is running as root and passenger_user_switching is turned
off, then Phusion Passenger would fail to initialize because of
a permission problem. This has been fixed. Issue #458.
+ * [Nginx] Nginx >= 0.8.38 is now supported.
Release 2.2.11
@@ -25,6 +25,7 @@
*/
#include "StaticContentHandler.h"
+#include "ngx_http_passenger_module.h"
static void
set_request_extension(ngx_http_request_t *r, ngx_str_t *filename) {
@@ -66,9 +67,11 @@ passenger_static_content_handler(ngx_http_request_t *r, ngx_str_t *filename)
return NGX_DECLINED;
}
- if (r->zero_in_uri) {
- return NGX_DECLINED;
- }
+ #if NGINX_VERSION_NUM < 8038
+ if (r->zero_in_uri) {
+ return NGX_DECLINED;
+ }
+ #endif
log = r->connection->log;

0 comments on commit 745938a

Please sign in to comment.