# Nginx-1.0.3

**URL:** <https://www.ruby-forum.com/t/nginx-1-0-3/207423>\
**Category:** NGINX\
**Created:** [May 25, 2011, 5:25pm UTC](https://www.ruby-forum.com/t/nginx-1-0-3/207423 "2011-05-25T17:25:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [May 25, 2011, 5:25pm UTC](https://www.ruby-forum.com/t/nginx-1-0-3/207423/1 "2011-05-25T17:25:30Z")

</div>

Changes with nginx 1.0.3 25 May  
2011

```
*) Feature: the "auth_basic_user_file" directive supports "$apr1",
   "{PLAIN}", and "{SSHA}" password encryption methods.
   Thanks to Maxim D..

*) Feature: the "geoip_org" directive and $geoip_org variable.
   Thanks to Alexander Uskov, Arnaud Granal, and Denis F. Latypoff.

*) Feature: ngx_http_geo_module and ngx_http_geoip_module support 

```

IPv4  
addresses mapped to IPv6 addresses.

```
*) Bugfix: a segmentation fault occurred in a worker process during
   testing IPv4 address mapped to IPv6 address, if access or deny 

```

rules  
were defined only for IPv6; the bug had appeared in 0.8.22.

```
*) Bugfix: a cached reponse may be broken if proxy/fastcgi/scgi/
   uwsgi_cache_bypass and proxy/fastcgi/scgi/uwsgi_no_cache 

```

directive  
values were different; the bug had appeared in 0.8.46.

–  
Igor S.

---

<div class="post-metadata">

**Author:** ![imixaly4](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ab097/32.png) [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Post date:** [May 26, 2011, 4:10am UTC](https://www.ruby-forum.com/t/nginx-1-0-3/207423/2 "2011-05-26T04:10:03Z")

</div>

It has a bug!

Build with :  
./configure --without-http\_auth\_basic\_module && make

objs/src/core/ngx\_crypt.o: In function `ngx_crypt': ngx_crypt.c:(.text+0x7b): undefined reference to `ngx\_libc\_crypt’  
collect2: ld returned 1 exit status  
make[1]: \*\*\* [objs/nginx] Error 1  
make[1]: Leaving directory `/root/nginx-1.0.3’  
make: \*\*\* [build] Error 2

But ok when:  
./configure && make

2011/5/25 Igor S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![imixaly4](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ab097/32.png) [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Post date:** [May 26, 2011, 4:48am UTC](https://www.ruby-forum.com/t/nginx-1-0-3/207423/3 "2011-05-26T04:48:14Z")

</div>

I think there is the point:

in ngx\_crypt.c  
ngx\_int\_t  
ngx\_crypt(ngx\_pool\_t \*pool, u\_char \*key, u\_char \*salt, u\_char  
\*\*encrypted)  
{  
if (ngx\_strncmp(salt, “$apr1$”, sizeof(“$apr1$”) - 1) == 0) {  
return ngx\_crypt\_apr1(pool, key, salt, encrypted);  
} else if (ngx\_strncmp(salt, “{PLAIN}”, sizeof(“{PLAIN}”) - 1) == 0)  
{  
return ngx\_crypt\_plain(pool, key, salt, encrypted);

#if (NGX\_HAVE\_SHA1)  
} else if (ngx\_strncmp(salt, “{SSHA}”, sizeof(“{SSHA}”) - 1) == 0) {  
return ngx\_crypt\_ssha(pool, key, salt, encrypted);  
#endif  
}

```
/* fallback to libc crypt() */
return ngx_libc_crypt(pool, key, salt, encrypted);

```

}

and there is no libc crypt in my system.

So , I think is a bug .

2011/5/26 Wendal C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![imixaly4](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ab097/32.png) [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Post date:** [March 1, 2012, 1:33pm UTC](https://www.ruby-forum.com/t/nginx-1-0-3/207423/4 "2012-03-01T13:33:16Z")

</div>

Hi Maxim,

i am getting the same error on my (MAC os x lion),thanks for the reply  
but how do i apply above patch, i have never applied the patch  
before…please reply…i am using nginx 1.1.2

---

<div class="post-metadata">

**Author:** ![imixaly4](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ab097/32.png) [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Post date:** [May 26, 2011, 9:48am UTC](https://www.ruby-forum.com/t/nginx-1-0-3/207423/5 "2011-05-26T09:48:16Z")

</div>

Hello!

On Thu, May 26, 2011 at 10:09:27AM +0800, Wendal C. wrote:

> make: \*\*\* [build] Error 2
> 
> But ok when:  
> ./configure && make

Thank you for your report. The following patch unbreaks build  
without auth basic module:

diff --git a/src/core/ngx\_crypt.c b/src/core/ngx\_crypt.c  
— a/src/core/ngx\_crypt.c  
+++ b/src/core/ngx\_crypt.c  
@@ -11,6 +11,7 @@  
#include \<ngx\_sha1.h\>  
#endif

+#if (NGX\_CRYPT)

static ngx\_int\_t ngx\_crypt\_apr1(ngx\_pool\_t \*pool, u\_char \*key, u\_char  
\*salt,  
u\_char \*\*encrypted);  
@@ -232,3 +233,5 @@ ngx\_crypt\_ssha(ngx\_pool\_t \*pool, u\_char  
}

#endif /\* NGX\_HAVE\_SHA1 _/  
+  
+#endif /_ NGX\_CRYPT \*/

Maxim D.

---

<div class="post-metadata">

**Author:** ![imixaly4](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ab097/32.png) [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Post date:** [March 1, 2012, 1:37pm UTC](https://www.ruby-forum.com/t/nginx-1-0-3/207423/6 "2012-03-01T13:37:47Z")

</div>

Hello!

On Thu, Mar 01, 2012 at 01:33:16PM +0100, umesh chaudhari wrote:

> Hi Maxim,
> 
> i am getting the same error on my (MAC os x lion),thanks for the reply  
> but how do i apply above patch, i have never applied the patch  
> before..please reply

Just upgrade to the latest version, the problem in question was  
fixed in nginx 1.0.4 and there is no need to apply the patch  
anymore.

Maxim D.
