nginx Digest, Vol 17, Issue 57
Yanxin Zhang
zhynxn at gmail.com
Thu Mar 24 23:54:04 MSK 2011
Hello,
I used:
make
make install
The installation of nginx is fine. But I can not use "chunkin" in conf
file.
Yanxin
On Thu, Mar 24, 2011 at 1:48 PM, <nginx-request at nginx.org> wrote:
> Send nginx mailing list submissions to
> nginx at nginx.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://nginx.org/mailman/listinfo/nginx
> or, via email, send a message with subject or body 'help' to
> nginx-request at nginx.org
>
> You can reach the person managing the list at
> nginx-owner at nginx.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of nginx digest..."
>
>
> Today's Topics:
>
> 1. Re[2]: problem in first usage of nginx (Ivan)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 24 Mar 2011 23:48:22 +0300
> From: Ivan <bdfy at mail.ru>
> To: nginx at nginx.org
> Subject: Re[2]: problem in first usage of nginx
> Message-ID: <E1Q2rSA-00058e-00.bdfy-mail-ru at f203.mail.ru>
> Content-Type: text/plain; charset="koi8-r"
>
> for ubuntu - best way use deb package. Build deb package with add chunkin
> module.
>
> or simple way (but worst ):
>
> make
> make install
>
> see:
> http://www.debian.org/doc/FAQ/ch-pkg_basics.en.html (
> http://www.debian.org/doc/FAQ/ch-pkg_basics.en.html)
>
>
> Thu, 24 Mar 2011 13:37:29 -0700 ?????? ?? Yanxin Zhang <zhynxn at gmail.com>:
>
> 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 at 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 +
> using system zlib library
> nginx path prefix: "/usr/local/nginx" nginx binary file:
> "/usr/local/nginx/sbin/nginx" nginx configuration prefix:
> "/usr/local/nginx/conf" nginx configuration file:
> "/usr/local/nginx/conf/nginx.conf" nginx pid file:
> "/usr/local/nginx/logs/nginx.pid" nginx error log file:
> "/usr/local/nginx/logs/error.log" nginx http access log file:
> "/usr/local/nginx/logs/access.log" nginx http client request body temporary
> files: "client_body_temp" nginx http proxy temporary files: "proxy_temp"
> nginx http fastcgi temporary files: "fastcgi_temp" nginx http uwsgi
> temporary files: "uwsgi_temp"
>
> Thank you so much. Yanxin
>
> On Thu, Mar 24, 2011 at 1:25 PM, <nginx-request at nginx.org> wrote:
> Send nginx mailing list submissions to
> nginx at nginx.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://nginx.org/mailman/listinfo/nginx (
> http://nginx.org/mailman/listinfo/nginx)
> or, via email, send a message with subject or body 'help' to
> nginx-request at nginx.org
>
> You can reach the person managing the list at
> nginx-owner at nginx.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of nginx digest..."
>
>
> Today's Topics:
>
> 1. Re: What's fastcgi_param scope (Maxim Dounin)
> 2. Re: .htaccess to nginx, how to make wp-minify work? (kaspars)
> 3. Re: What's fastcgi_param scope (Jakub Zalas)
> 4. Re: upload module help (vetri)
> 5. Re: HTTPS - NGINX with Passenger webservers behind F5 load
> balancer (Jarek Zmudzinski)
> 6. Re: HTTPS - NGINX with Passenger webservers behind F5 load
> balancer (Vitaly Tskhovrebov)
> 7. problem in first usage of nginx (Yanxin Zhang)
> 8. Re: problem in first usage of nginx (Ivan)
> 9. Re: problem in first usage of nginx (Alexander Kunz)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 24 Mar 2011 12:24:16 +0300
> From: Maxim Dounin <mdounin at mdounin.ru>
> To: nginx at nginx.org
> Subject: Re: What's fastcgi_param scope
> Message-ID: <20110324092416.GV99496 at mdounin.ru>
> Content-Type: text/plain; charset=us-ascii
>
> Hello!
>
> On Wed, Mar 23, 2011 at 04:34:38PM -0700, Jakub Zalas wrote:
>
> > Hi,
> >
> > I'm experiencing odd behavior of fastcgi_param.
> >
> > Based on the URL I'd like to pass additional parameters to PHP.
> >
> > For example:
> >
> > location ~ "^/foo/bar$" {
>
> Just a side note: use "location = /foo/bar" instead.
>
> > # this is not passed to fastcgi and not acesible via $_SERVER
> > fastcgi_param _ROUTING__route foo;
> > fastcgi_index app.php;
>
> 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.
>
> > # standard PHP stuff
> > location ~ \.php {
> > set $script $uri;
> > set $path_info "";
> > if ($uri ~ "^(.+\.php)(/.*)") {
> > set $script $1;
> > set $path_info $2;
> > }
> > fastcgi_pass 127.0.0.1:9000;
> > include /etc/nginx/fastcgi_params;
> > fastcgi_param SCRIPT_FILENAME /var/www/$host/web$script;
> > fastcgi_param PATH_INFO $path_info;
> > fastcgi_param SCRIPT_NAME $script;
> > }
>
> ... and this one has no "fastcgi_param _ROUTING__route" set.
>
> > I also tried nesting location but the result is the same.
> > fastcgi_param defined in nested location block is not passed to PHP.
> >
> > Could anyone explain me why it works this way?
>
> See above. Solution is to write explicitly what you want to
> happen instead of using internal redirects, i.e. something like
> this:
>
> location = /foo/bar {
> fastcgi_pass 127.0.0.1:9000;
> include /etc/nginx/fastcgi_params;
> fastcgi_param SCRIPT_FILENAME /var/www/$host/web/app.php;
> fastcgi_param _ROUTING__route foo;
> ...
> }
>
> Maxim Dounin
>
> 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.
>
>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 24 Mar 2011 05:31:35 -0400
> From: "kaspars" <nginx-forum at nginx.us>
> To: nginx at nginx.org
> Subject: Re: .htaccess to nginx, how to make wp-minify work?
> Message-ID:
> <
> c7e82d92ec6eaaf22e18941a4385fbd8.NginxMailingListEnglish at forum.nginx.org>
>
> Content-Type: text/plain; charset=UTF-8
>
> If your WordPress installation works, WP Minify does too! There is no
> need for special rewrites.
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,185233,185351#msg-185351 (
> http://forum.nginx.org/read.php?2,185233,185351#msg-185351)
>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Thu, 24 Mar 2011 03:22:56 -0700 (PDT)
> From: Jakub Zalas <jzalas at gmail.com>
> To: nginx at sysoev.ru
> Subject: Re: What's fastcgi_param scope
> Message-ID:
> <87e0ddd5-3593-4c8c-878e-92e20de1b737 at k7g2000yqj.googlegroups.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
>
>
> On Mar 24, 10:24?am, Maxim Dounin <mdou... at mdounin.ru> wrote:
> > Hello!
> >
> > 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!
>
>
> > See above. ?Solution is to write explicitly what you want to
> > happen instead of using internal redirects, i.e. something like
> > this:
> >
> > ? ? location = /foo/bar {
> > ? ? ? ? fastcgi_pass 127.0.0.1:9000;
> > ? ? ? ? include /etc/nginx/fastcgi_params;
> > ? ? ? ? fastcgi_param SCRIPT_FILENAME /var/www/$host/web/app.php;
> > ? ? ? ? fastcgi_param _ROUTING__route foo;
> > ? ? ? ? ...
> > ? ? }
> >
> > Maxim Dounin
> >
> > 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.
>
> Thank you. Your suggestions helped me a lot.
>
>
>
>
> ------------------------------
>
> Message: 4
> Date: Thu, 24 Mar 2011 08:10:03 -0400
> From: "vetri" <nginx-forum at nginx.us>
> To: nginx at nginx.org
> Subject: Re: upload module help
> Message-ID:
> <
> 502dbed122fac8937be4b0466db03dc4.NginxMailingListEnglish at forum.nginx.org>
>
> Content-Type: text/plain; charset=UTF-8
>
> mr alexander,
>
> 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 ?
>
> thanks for the reply
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,185057,185375#msg-185375 (
> http://forum.nginx.org/read.php?2,185057,185375#msg-185375)
>
>
>
>
> ------------------------------
>
> Message: 5
> Date: Thu, 24 Mar 2011 13:25:10 +0100
> From: Jarek Zmudzinski <lists at ruby-forum.com>
> To: nginx at nginx.org
> Subject: Re: HTTPS - NGINX with Passenger webservers behind F5 load
> balancer
> Message-ID: <07139f4e5d84597f445649d65126d7fb at ruby-forum.com>
> Content-Type: text/plain; charset=UTF-8
>
> Jarek Zmudzinski wrote in post #986664:
> > 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://.)
>
> Thanks.
>
> --
> Posted via http://www.ruby-forum.com/ (http://www.ruby-forum.com/) .
>
>
>
> ------------------------------
>
> Message: 6
> Date: Thu, 24 Mar 2011 20:40:17 +0300
> From: Vitaly Tskhovrebov <vt at chgk.info>
> To: nginx at nginx.org
> Subject: Re: HTTPS - NGINX with Passenger webservers behind F5 load
> balancer
> Message-ID: <4D8B8201.9000009 at chgk.info>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> Thanks for your follow up.
>
> --
> Regards, Vitaly Tskhovrebov
> System Administrator
> U.S. +1 (206) 905-9939
> Russia +7 911 094-2035
>
>
>
> ------------------------------
>
> Message: 7
> Date: Thu, 24 Mar 2011 13:03:36 -0700
> From: Yanxin Zhang <zhynxn at gmail.com>
> To: nginx at nginx.org
> Subject: problem in first usage of nginx
> Message-ID:
> <AANLkTinRmkR1taDHSMugJUjhF63kBDZ3+40K8u-_ebhm at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hello,
> I have several questions about using NginX.
>
> 1)
> 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?
>
> 2)
> I am following the instructions in
> http://wiki.nginx.org/HttpChunkinModule (
> http://wiki.nginx.org/HttpChunkinModule)
>
> to configure nginx.
> when I start nginx, I encounter the error:
> [emerg]: unknown directive "chunkin" in ./conf/nginx.conf:36
>
> The line is
> 35 server {
> 36 chunkin on;
> 37 listen 127.0.0.1:8000;
>
>
> Thanks,
> Yanxin
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://nginx.org/pipermail/nginx/attachments/20110324/cff6ff28/attachment-0001.html(
> http://nginx.org/pipermail/nginx/attachments/20110324/cff6ff28/attachment-0001.html)
> >
>
> ------------------------------
>
> Message: 8
> Date: Thu, 24 Mar 2011 23:23:29 +0300
> From: Ivan <bdfy at mail.ru>
> To: nginx at nginx.org
> Subject: Re: problem in first usage of nginx
> Message-ID: <E1Q2r45-0001d2-00.bdfy-mail-ru at f238.mail.ru>
> Content-Type: text/plain; charset="koi8-r"
>
> ( http://wiki.nginx.org/HttpChunkinModule (
> http://wiki.nginx.org/HttpChunkinModule) )
> http://wiki.nginx.org/HttpChunkinModule (
> http://wiki.nginx.org/HttpChunkinModule) (
> http://wiki.nginx.org/HttpChunkinModule (
> http://wiki.nginx.org/HttpChunkinModule) )
> This module is not distributed with the Nginx source. See the installation
> instructions ( http://wiki.nginx.org/HttpChunkinModule#Installation (
> http://wiki.nginx.org/HttpChunkinModule#Installation) ) .
>
>
> Thu, 24 Mar 2011 13:03:36 -0700 ?????? ?? Yanxin Zhang <zhynxn at gmail.com>:
>
> Hello, I have several questions about using NginX.
> 1) 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?
> 2)
> I am following the instructions in (
> http://wiki.nginx.org/HttpChunkinModule (
> http://wiki.nginx.org/HttpChunkinModule) )
> http://wiki.nginx.org/HttpChunkinModule (
> http://wiki.nginx.org/HttpChunkinModule) (
> http://wiki.nginx.org/HttpChunkinModule (
> http://wiki.nginx.org/HttpChunkinModule) )
> to configure nginx. when I start nginx, I encounter the error: [emerg]:
> unknown directive "chunkin" in ./conf/nginx.conf:36
> The line is 35 server { 36 chunkin on; 37 listen
> 127.0.0.1:8000;
>
> Thanks,Yanxin
>
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org (sentmsg?compose&amp;To=nginx at nginx.org)
> ( http://nginx.org/mailman/listinfo/nginx (
> http://nginx.org/mailman/listinfo/nginx) ) (
> http://nginx.org/mailman/listinfo/nginx (
> http://nginx.org/mailman/listinfo/nginx) )
> http://nginx.org/mailman/listinfo/nginx (
> http://nginx.org/mailman/listinfo/nginx) (
> http://nginx.org/mailman/listinfo/nginx (
> http://nginx.org/mailman/listinfo/nginx) )
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://nginx.org/pipermail/nginx/attachments/20110324/c7866067/attachment-0001.html(
> http://nginx.org/pipermail/nginx/attachments/20110324/c7866067/attachment-0001.html)
> >
>
> ------------------------------
>
> Message: 9
> Date: Thu, 24 Mar 2011 21:25:56 +0100
> From: Alexander Kunz <akunz at ntmedia.de>
> To: nginx at nginx.org
> Subject: Re: problem in first usage of nginx
> Message-ID: <4D8BA8D4.9080403 at ntmedia.de>
> 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
>
> --add-module=/path/to/chunkin-nginx-module
>
>
> while you configure...Described here:
>
> http://wiki.nginx.org/HttpChunkinModule#Installation (
> http://wiki.nginx.org/HttpChunkinModule#Installation)
>
> If you already do this, please show us the output from
>
> nginx -V
>
>
> Cheers,
> Alexander
>
>
>
> On 24.03.2011 21:03, Yanxin Zhang wrote:
> > Hello,
> > I have several questions about using NginX.
> >
> > 1)
> > 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 < http://127.0.0.1:8000 (
> http://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?
> >
> > 2)
> > I am following the instructions in
> > http://wiki.nginx.org/HttpChunkinModule (
> http://wiki.nginx.org/HttpChunkinModule)
> >
> > to configure nginx.
> > when I start nginx, I encounter the error:
> > [emerg]: unknown directive "chunkin" in ./conf/nginx.conf:36
> >
> > The line is
> > 35 server {
> > 36
> > 37 listen 127.0.0.1:8000 < http://127.0.0.1:8000 (
> http://127.0.0.1:8000) >;
> >
> >
> > Thanks,
> > Yanxin
> >
> >
> >
> >
> > _______________________________________________
> > nginx mailing list
> > nginx at nginx.org
> > http://nginx.org/mailman/listinfo/nginx (
> http://nginx.org/mailman/listinfo/nginx)
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://nginx.org/pipermail/nginx/attachments/20110324/e39e9822/attachment.html(
> http://nginx.org/pipermail/nginx/attachments/20110324/e39e9822/attachment.html)
> >
>
> ------------------------------
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx (
> http://nginx.org/mailman/listinfo/nginx)
>
>
> End of nginx Digest, Vol 17, Issue 55
> *************************************
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org (sentmsg?compose&To=nginx at nginx.org)
> (http://nginx.org/mailman/listinfo/nginx)
> http://nginx.org/mailman/listinfo/nginx (
> http://nginx.org/mailman/listinfo/nginx)
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://nginx.org/pipermail/nginx/attachments/20110324/4145aa62/attachment.html
> >
>
> ------------------------------
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
>
> End of nginx Digest, Vol 17, Issue 57
> *************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20110324/da139bb1/attachment-0001.html>
More information about the nginx
mailing list