# Bug fixes for nginx-1.0.4

**URL:** <https://www.ruby-forum.com/t/bug-fixes-for-nginx-1-0-4/208469>\
**Category:** NGINX\
**Created:** [June 19, 2011, 3:42pm UTC](https://www.ruby-forum.com/t/bug-fixes-for-nginx-1-0-4/208469 "2011-06-19T15:42:54Z")\
**Posts on this page:** 2\
**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:** [June 19, 2011, 3:42pm UTC](https://www.ruby-forum.com/t/bug-fixes-for-nginx-1-0-4/208469/1 "2011-06-19T15:42:54Z")

</div>

Hi:

I could not upload and put into development forum. So I place it  
here.

I ran configure with

#export SPATH=/home/s

# ./configure --prefix=${SPATH}

```
\
        --sbin-path=${SPATH}/bin/ngnix

```

–conf-path=${SPATH}/src/param/ngnix/ngnix.conf  
  
–error-log-path=${SPATH}/logs/ngnix-error.conf  
  
–pid-path=${SPATH}/logs/nginx.pid  
  
–lock-path=${SPATH}/logs/nginx.lock  
  
–http-log-path=${SPATH}/logs/ngnix-access.log  
  
–http-client-body-temp-path=${SPATH}/html/temp/client\_body  
  
–http-proxy-temp-path=${SPATH}/html/temp/proxy  
  
–http-fastcgi-temp-path=${SPATH}/html/temp/fastcgi  
  
–http-uwsgi-temp-path=${SPATH}/html/temp/uwsgi  
  
–http-scgi-temp-path=${SPATH}/html/temp/scgi  
  
–builddir=${SPATH}/src/build/xnpp/ngnix  
  
–with-http\_ssl\_module

# Bug 1:

The directories  
a) NGX\_HTTP\_PROXY\_TEMP\_PATH  
b) NGX\_HTTP\_FASTCGI\_TEMP\_PATH  
c) NGX\_HTTP\_FASTCGI\_TEMP\_PATH  
d) NGX\_HTTP\_UWSGI\_TEMP\_PATH

are not created by Makefile.

nginx-1.0.4/auto/install  
74a75,113

> case “.$NGX\_HTTP\_PROXY\_TEMP\_PATH” in  
> ./\*)  
> ;;
> 
> ```
> *)
> 
> ```

NGX\_HTTP\_PROXY\_TEMP\_PATH=$NGX\_PREFIX/$NGX\_HTTP\_PROXY\_TEMP\_PATH

> ```
> ;;
> 
> ```
> 
> esac
> 
> case “.$NGX\_HTTP\_FASTCGI\_TEMP\_PATH” in  
> ./\*)  
> ;;
> 
> ```
> *)
> 
> ```

NGX\_HTTP\_FASTCGI\_TEMP\_PATH=$NGX\_PREFIX/$NGX\_HTTP\_FASTCGI\_TEMP\_PATH

> ```
> ;;
> 
> ```
> 
> esac
> 
> case “.$NGX\_HTTP\_UWSGI\_TEMP\_PATH” in  
> ./\*)  
> ;;
> 
> ```
> *)
> 
> ```

NGX\_HTTP\_UWSGI\_TEMP\_PATH=$NGX\_PREFIX/$NGX\_HTTP\_UWSGI\_TEMP\_PATH

> ```
> ;;
> 
> ```
> 
> esac
> 
> case “.$NGX\_HTTP\_SCGI\_TEMP\_PATH” in  
> ./\*)  
> ;;

> ```
> *)
> NGX_HTTP_SCGI_TEMP_PATH=$NGX_PREFIX/$NGX_HTTP_SCGI_TEMP_PATH
> ;;
> 
> ```
> 
> esac

136a176,187

> test -d ‘$(DESTDIR)$NGX\_HTTP\_SCGI\_TEMP\_PATH’ ||   
> mkdir -p ‘$(DESTDIR)$NGX\_HTTP\_SCGI\_TEMP\_PATH’

# Bug 2:

If --builddir is two level depth, it is not created by Makefile.

## nginx-1.0.4/configure 10c10 \< test -d $NGX\_OBJS || mkdir $NGX\_OBJS

> test -d $NGX\_OBJS || mkdir -p $NGX\_OBJS

Posted at Nginx Forum:

> **[Bug fixes for nginx-1.0.4](https://forum.nginx.org/read.php?2,208219,208219#msg-208219)**
>
> Hi: I could not upload and put into development forum. So I place it here. I ran configure with #export SPATH=/home/s # ./configure --prefix=${SPATH} \\ --sbin-path=${SPATH}/bin/ngnix

---

<div class="post-metadata">

**Author:** ![yoonghm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/87869e/32.png) [@yoonghm](https://www.ruby-forum.com/u/yoonghm)\
**Post date:** [June 19, 2011, 10:34pm UTC](https://www.ruby-forum.com/t/bug-fixes-for-nginx-1-0-4/208469/2 "2011-06-19T22:34:32Z")

</div>

Hello!

On Sun, Jun 19, 2011 at 09:42:32AM -0400, yoonghm wrote:

> I could not upload and put into development forum. So I place it  
> here.

There is no such thing as “development forum”. There is  
development mailing list, and it’s intentionally only read-only in  
forum interface. Use mailing list as a mailing list.

[…]

> # Bug 1:
> 
> The directories  
> a) NGX\_HTTP\_PROXY\_TEMP\_PATH  
> b) NGX\_HTTP\_FASTCGI\_TEMP\_PATH  
> c) NGX\_HTTP\_FASTCGI\_TEMP\_PATH  
> d) NGX\_HTTP\_UWSGI\_TEMP\_PATH
> 
> are not created by Makefile.

They aren’t expected to.

These and other paths will be created by nginx binary on startup  
(if not redefined with configuration and/or command line options).

> # Bug 2:
> 
> If --builddir is two level depth, it is not created by Makefile.
> 
> ## nginx-1.0.4/configure 10c10 \< test -d $NGX\_OBJS || mkdir $NGX\_OBJS
> 
> > test -d $NGX\_OBJS || mkdir -p $NGX\_OBJS

No objections here.

But please, use unified diffs when posting patches. Recommended  
diff command line is “diff -up”.

Maxim D.
