Re: Compile Nginx

2020-04-28 Thread Anoop Alias
The Nginx binary compiled on one system can be run on a similar architecture system as it is portable code. The ones you download from the repo are compiled on a machine to binary by the repo maintainer you can ship the binary in a tool like rpm or deb On Tue, Apr 28, 2020 at 7:13 PM Praveen Kum

Re: Compile Nginx

2020-04-28 Thread Praveen Kumar K S
I usually install from the official nginx apt repo. But since I want to use modules like more_set_headers which requires building nginx from source, I'm looking for best practices. On Tue, Apr 28, 2020 at 6:50 PM Reinis Rozitis wrote: > > Can I compile nginx on Ubuntu 16.04 and reuse it on other

RE: Compile Nginx

2020-04-28 Thread Reinis Rozitis
> Can I compile nginx on Ubuntu 16.04 and reuse it on other deployments? Or do > I need to compile every time ? Please advise. As far as the hosts have all the shared libraries like openssl/pcre etc (you can check with 'ldd /path/to/nginx') there is no need to compile every time and you can jus

Re: Compile Nginx

2020-04-28 Thread basti
It depends on how you compile. First of all have a look at the repository of you distribution or nginx itself it's easier to update for bugfix or security impacts. The 2'nd way can be to upgrade you server and get a newer nginx. If that all is not an option I would prefer a build a debian packag

Re: Re: Compile nginx 1.4.7 --with-http_rewrite_module Error

2014-05-13 Thread gaop...@richinfo.cn
Think you The problem has been resolved.Because 'if($remote_addr' , 'If' and '(' a space is required between gaop...@richinfo.cn From: Valentin V. Bartenev Date: 2014-05-13 15:15 To: nginx Subject: Re: Compile nginx 1.4.7 --with-http_rewrite_module Erro

Re: Re: Compile nginx 1.4.7 --with-http_rewrite_module Error

2014-05-13 Thread gaop...@richinfo.cn
ngx_http_rewrite_module syntax:if (condition) { ... } default:— context:server, location I use in location', gaop...@richinfo.cn From: Valentin V. Bartenev Date: 2014-05-13 15:15 To: nginx Subject: Re: Compile nginx 1.4.7 --with-http_rewrite_module Error On Tuesday 13 May 2014 13:

Re: Compile nginx 1.4.7 --with-http_rewrite_module Error

2014-05-13 Thread Valentin V. Bartenev
On Tuesday 13 May 2014 13:34:11 gaop...@richinfo.cn wrote: > Think you > But If I turn off the words,I have no way is to use 'if' order.An error > occurred : [emerg] 14499#0: unknown directive "if($remote_addr" in > /usr/local/nginx1/conf/nginx.conf:46 There is no directive "if($remote_addr"

Re: Re: Compile nginx 1.4.7 --with-http_rewrite_module Error

2014-05-12 Thread gaop...@richinfo.cn
Think you But If I turn off the words,I have no way is to use 'if' order.An error occurred : [emerg] 14499#0: unknown directive "if($remote_addr" in /usr/local/nginx1/conf/nginx.conf:46 gaop...@richinfo.cn From: Steve Holdoway Date: 2014-05-13 13:09 To: nginx Subjec

Re: Compile nginx 1.4.7 --with-http_rewrite_module Error

2014-05-12 Thread Steve Holdoway
On Tue, 2014-05-13 at 11:25 +0800, gaop...@richinfo.cn wrote: > hi: > I compiled nginx1.4.7,add > to --with-pcre=/root/nginx/pcre-8.34 --with-http_rewrite_module parameter;An > error occurred :./configure: error: invalid option > "--with-http_rewrite_module" ,Trouble who can talk about what

Re: Compile NGINX with Openssl statically

2013-11-25 Thread Fabiano Furtado Pessoa Coelho
Hi Maxim! It worked! I applyed de openssl-1.0.1e-fix_pod_syntax-1.patch and the openssl compiled! Now, I will try this procedure on my RHEL6. Thanks. On Mon, Nov 25, 2013 at 12:02 PM, Maxim Dounin wrote: > Hello! > > On Fri, Nov 22, 2013 at 12:24:44PM -0200, Fabiano Furtado Pessoa Coelho wrote

Re: Compile NGINX with Openssl statically

2013-11-25 Thread Maxim Dounin
Hello! On Fri, Nov 22, 2013 at 12:24:44PM -0200, Fabiano Furtado Pessoa Coelho wrote: [...] > ... > making all in tools... > make[3]: Entering directory '/tmp/compile/openssl-1.0.1e/tools' > make[3]: Nothing to be done for 'all'. > make[3]: Leaving directory '/tmp/compile/openssl-1.0.1e/tools' >