Hello Alexander,
I solved the first problem.
But I still can not use chunkin module.
I followed the exact step in your link.
Following is the .configure result:
yzhang@virus:~/nginx-0.8.41$ ./configure
–add-module=./agentzh-chunkin-nginx-module-b0a3ee3
checking for OS
Linux 2.6.24-27-server x86_64
checking for C compiler … found
using GNU C compiler
gcc version: 4.2.4 (Ubuntu 4.2.4-1ubuntu4)
checking for gcc -pipe switch … found
checking for gcc builtin atomic operations … found
checking for gcc variadic macros … found
checking for C99 variadic macros … found
checking for unistd.h … found
checking for inttypes.h … found
checking for limits.h … found
checking for sys/filio.h … not found
checking for sys/param.h … found
checking for sys/mount.h … found
checking for sys/statvfs.h … found
checking for crypt.h … found
checking for Linux specific features
checking for epoll … found
checking for sendfile() … found
checking for sendfile64() … found
checking for sys/prctl.h … found
checking for prctl(PR_SET_DUMPABLE) … found
checking for sched_setaffinity() … found
checking for crypt_r() … found
checking for sys/vfs.h … found
checking for nobody group … not found
checking for nogroup group … found
checking for poll() … found
checking for /dev/poll … not found
checking for kqueue … not found
checking for crypt() … not found
checking for crypt() in libcrypt … found
checking for F_READAHEAD … not found
checking for posix_fadvise() … found
checking for O_DIRECT … found
checking for F_NOCACHE … not found
checking for directio() … not found
checking for statfs() … found
checking for statvfs() … found
checking for dlopen() … not found
checking for dlopen() in libdl … found
checking for sched_yield() … found
configuring additional modules
adding module in ./agentzh-chunkin-nginx-module-b0a3ee3
ngx_http_chunkin_filter_module was configured
checking for PCRE library … found
checking for system md library … not found
checking for system md5 library … not found
checking for OpenSSL md5 crypto library … found
checking for zlib library … found
creating objs/Makefile
checking for int size … 4 bytes
checking for long size … 8 bytes
checking for long long size … 8 bytes
checking for void * size … 8 bytes
checking for uint64_t … found
checking for sig_atomic_t … found
checking for sig_atomic_t size … 4 bytes
checking for socklen_t … found
checking for in_addr_t … found
checking for in_port_t … found
checking for rlim_t … found
checking for uintptr_t … uintptr_t found
checking for system endianess … little endianess
checking for size_t size … 8 bytes
checking for off_t size … 8 bytes
checking for time_t size … 8 bytes
checking for setproctitle() … not found
checking for pread() … found
checking for pwrite() … found
checking for strerror_r() … found but is not working
checking for gnu style strerror_r() … found
checking for sys_errlist[] … found
checking for localtime_r() … found
checking for posix_memalign() … found
checking for memalign() … found
checking for mmap(MAP_ANON|MAP_SHARED) … found
checking for mmap("/dev/zero", MAP_SHARED) … found
checking for System V shared memory … found
checking for struct msghdr.msg_control … found
checking for ioctl(FIONBIO) … found
checking for struct tm.tm_gmtoff … found
checking for struct dirent.d_namlen … not found
checking for struct dirent.d_type … found
Hello Alexander,I solved the first problem. But I still can not use
chunkin module. I followed the exact step in your link.
Following is the .configure result:
yzhang@virus:~/nginx-0.8.41$ ./configure
–add-module=./agentzh-chunkin-nginx-module-b0a3ee3checking for OS +
Linux 2.6.24-27-server x86_64checking for C compiler … found + using
GNU C compiler + gcc version: 4.2.4 (Ubuntu 4.2.4-1ubuntu4)checking for
gcc -pipe switch … foundchecking for gcc builtin atomic operations …
foundchecking for gcc variadic macros … foundchecking for C99 variadic
macros … foundchecking for unistd.h … foundchecking for inttypes.h
… foundchecking for limits.h … foundchecking for sys/filio.h … not
foundchecking for sys/param.h … foundchecking for sys/mount.h …
foundchecking for sys/statvfs.h … foundchecking for crypt.h …
foundchecking for Linux specific featureschecking for epoll …
foundchecking for sendfile() … foundchecking for sendfile64() …
foundchecking for sys/prctl.h … foundchecking for
prctl(PR_SET_DUMPABLE) … foundchecking for sched_setaffinity() …
foundchecking for crypt_r() … foundchecking for sys/vfs.h …
foundchecking for nobody group … not foundchecking for nogroup group
… foundchecking for poll() … foundchecking for /dev/poll … not
foundchecking for kqueue … not foundchecking for crypt() … not
foundchecking for crypt() in libcrypt … foundchecking for F_READAHEAD
… not foundchecking for posix_fadvise() … foundchecking for O_DIRECT
… foundchecking for F_NOCACHE … not foundchecking for directio() …
not foundchecking for statfs() … foundchecking for statvfs() …
foundchecking for dlopen() … not foundchecking for dlopen() in libdl
… foundchecking for sched_yield() … foundconfiguring additional
modulesadding module in ./agentzh-chunkin-nginx-module-b0a3ee3 +
ngx_http_chunkin_filter_module was configuredchecking for PCRE library
… foundchecking for system md library … not foundchecking for system
md5 library … not foundchecking for OpenSSL md5 crypto library …
foundchecking for zlib library … foundcreating objs/Makefilechecking
for int size … 4 byteschecking for long size … 8 byteschecking for
long long size … 8 byteschecking for void * size … 8 byteschecking
for uint64_t … foundchecking for sig_atomic_t … foundchecking for
sig_atomic_t size … 4 byteschecking for socklen_t … foundchecking
for in_addr_t … foundchecking for in_port_t … foundchecking for
rlim_t … foundchecking for uintptr_t … uintptr_t foundchecking for
system endianess … little endianesschecking for size_t size … 8
byteschecking for off_t size … 8 byteschecking for time_t size … 8
byteschecking for setproctitle() … not foundchecking for pread() …
foundchecking for pwrite() … foundchecking for strerror_r() … found
but is not workingchecking for gnu style strerror_r() … foundchecking
for sys_errlist … foundchecking for localtime_r() … foundchecking
for posix_memalign() … foundchecking for memalign() … foundchecking
for mmap(MAP_ANON|MAP_SHARED) … foundchecking for mmap(“/dev/zero”,
MAP_SHARED) … foundchecking for System V shared memory …
foundchecking for struct msghdr.msg_control … foundchecking for
ioctl(FIONBIO) … foundchecking for struct tm.tm_gmtoff …
foundchecking for struct dirent.d_namlen … not foundchecking for
struct dirent.d_type … found
Configuration summary + using system PCRE library + OpenSSL library is
not used + md5: using system crypto library + sha1 library is not used
Just a side note: fastcgi_index doesn’t make sense here at all.
rewrite ^(.*) /app.php last;
}
As soon as you did internal redirect (with rewrite) -
configuration in this location no longer applies. Instead
configuration in destination location will be used.
p.s. The only thing which survives internal redirect is variables.
Theoretically you may rewrite your config to set some variables
before rewrite and then use appropriate fastcgi_param in .php
location. But it’s not going to scale well and not recommended.
On Wed, Mar 23, 2011 at 04:34:38PM -0700, Jakub Zalas wrote:
Hi,
Just a side note: use “location = /foo/bar” instead.
Actually I need a regexp here. I just simplified my example.
As soon as you did internal redirect (with rewrite) -
configuration in this location no longer applies. ?Instead
configuration in destination location will be used.
This explains a lot. Thanks!
? ? }
Maxim D.
p.s. The only thing which survives internal redirect is variables. ?
Theoretically you may rewrite your config to set some variables
before rewrite and then use appropriate fastcgi_param in .php
location. ?But it’s not going to scale well and not recommended.
i am already using form to to upload files. my doubt is why its not
saving the file in uploaded file name.it is saving the file in number
form like this 0040353221 .i dont know why its happening and one more
question how to parse header using nginx configuration ?
What I would like is to NGINX listen to https:// on port 80 this way any
https request to F5 LB could still be taken care of by NGINX listening
on port 80 without being redirected to http. But I am afraid it’s not
possible.
Problem solved. It was a F5 configuration issue. NGINX doesn’t redirect
https:// on port 80 to http://. (http://.)
Message: 6
Date: Thu, 24 Mar 2011 20:40:17 +0300
From: Vitaly T. [email protected]
To: [email protected]
Subject: Re: HTTPS - NGINX with Passenger webservers behind F5 load
balancer
Message-ID: [email protected]
Content-Type: text/plain; charset=UTF-8; format=flowed
Thanks for your follow up.
–
Regards, Vitaly T.
System A.
U.S. +1 (206) 905-9939
Russia +7 911 094-2035
Message: 7
Date: Thu, 24 Mar 2011 13:03:36 -0700
From: Yanxin Z. [email protected]
To: [email protected]
Subject: problem in first usage of nginx
Message-ID: [email protected]
Content-Type: text/plain; charset=“iso-8859-1”
Hello,
I have several questions about using NginX.
After I first install nginx-0.8.41 in Ubuntu 8.04 system, with the
default
.conf file.
I start nginx with 127.0.0.1:8000, however, I can not see the default
webpage. The browser can not connect to server.
Could anyone help me to figure it out?
Message: 8
Date: Thu, 24 Mar 2011 23:23:29 +0300
From: Ivan [email protected]
To: [email protected]
Subject: Re: problem in first usage of nginx
Message-ID: [email protected]
Content-Type: text/plain; charset=“koi8-r”
Hello, I have several questions about using NginX.
After I first install nginx-0.8.41 in Ubuntu 8.04 system, with the
default .conf file. I start nginx with 127.0.0.1:8000, however, I can
not see the default webpage. The browser can not connect to server.
Could anyone help me to figure it out?
Message: 9
Date: Thu, 24 Mar 2011 21:25:56 +0100
From: Alexander K. [email protected]
To: [email protected]
Subject: Re: problem in first usage of nginx
Message-ID: [email protected]
Content-Type: text/plain; charset=“iso-8859-1”; Format=“flowed”
Hello Yanxin,
starts nginx if you not set the chunkin on; option?
Chunkin is no build in option, you must build ngnix from source. Use