Re: How can I do cross Compile Nginx Web Server?

2018-04-13 Thread mot...@embedsys.ir
Dear Maxim Thanks for attention. My target Board is http://armdevs.com/Product/CORE9G25-CON.html (target OS: Linux 3.6.9) I need Web server , what is your advice? would you please tell me more? (I am new in Linux world). I have Install Nginx on my Host system (abuntu 16.0.4 LTS ) with

Re: How can I do cross Compile Nginx Web Server?

2018-04-13 Thread Maxim Dounin
Hello! On Fri, Apr 13, 2018 at 08:41:39PM +0430, mot...@embedsys.ir wrote: > Hi, > I need to do Cross Compile Nginx Web Server to use on my target board. > I tried , but ... > >hesam@hesam-MS-7392:~/temp/nginx-1.9.9$ ./configure > --crossbuild=Linux::arm >

Re: Trouble configuring PHP 7.1 module for Unit 1.0 on Gentoo Linux

2018-04-13 Thread Ralph Seichter
On 13.04.18 17:12, Igor Sysoev wrote: > > I think it would be worth mentioning this particular detail in > > https://unit.nginx.org/installation/#configuring-sources . > > Almost the same example is here: > https://unit.nginx.org/installation/#configuring-php-modules I should probably have been

Upstream module development

2018-04-13 Thread Ajith C
Hi, Now I am writing a Nginx module to communicate with an upstream server (LDAP) . I had coded both the create_request and process_header callback functions. But the problem is, I don’t want to talk with the upstream for for all the requests but only for the requests with some special

Re: Monitoring http returns

2018-04-13 Thread oscaretu
Perhaps this can be useful for you: https://github.com/Lax/nginx-http-accounting-module Kind regards, Oscar On Wed, Apr 11, 2018 at 6:19 AM, Jeff Abrahamson wrote: > I want to monitor nginx better: http returns (e.g., how many 500's, how > many 404's, how many 200's, etc.), as

How can I do cross Compile Nginx Web Server?

2018-04-13 Thread mot...@embedsys.ir
Hi, I need to do Cross Compile Nginx Web Server to use on my target board. I tried , but ... hesam@hesam-MS-7392:~/temp/nginx-1.9.9$ ./configure --crossbuild=Linux::arm --with-cc="/home/hesam/g25/arm-2011.09/bin/arm-none-linux-gnueabi-gcc" --with-ld-opt="/usr/arm-linux-gnueabi/lib"

Re: proxy pass и кодирование GET-параметров

2018-04-13 Thread Dmitry Volyntsev
On 12.04.2018 05:40, gz wrote: Добрый день. Использую SSI для включения ответа стороннего сервера. location /include { internal; proxy_pass http://example.com/endpoint?server=$server_name=$request_uri=$http_user_agent; } Серверу нужно передать ряд GET-параметров (не

Re: [SOLVED] Re: Trouble configuring PHP 7.1 module for Unit 1.0 on Gentoo Linux

2018-04-13 Thread Igor Sysoev
> On 13 Apr 2018, at 18:07, Ralph Seichter wrote: > > On 13.04.2018 16:40, Igor Sysoev wrote: > >> On Gentoo you should also use --lib-path > > Thank you, Igor! The following works on my Gentoo test server: > > ./configure php

[SOLVED] Re: Trouble configuring PHP 7.1 module for Unit 1.0 on Gentoo Linux

2018-04-13 Thread Ralph Seichter
On 13.04.2018 16:40, Igor Sysoev wrote: > On Gentoo you should also use --lib-path Thank you, Igor! The following works on my Gentoo test server: ./configure php --config=/usr/lib64/php7.1/bin/php-config --lib-path=/usr/lib64/php7.1/lib64 I think it would be worth mentioning this particular

Re: Trouble configuring PHP 7.1 module for Unit 1.0 on Gentoo Linux

2018-04-13 Thread Igor Sysoev
> On 13 Apr 2018, at 17:23, Ralph Seichter wrote: > > On 13.04.2018 14:49, Igor Sysoev wrote: > >>> $ ./configure php --config=/usr/lib64/php7.1/bin/php-config >>> configuring PHP module >>> checking for PHP ... found >>> + PHP SAPI: [embed cli fpm apache2handler]

Re: Trouble configuring PHP 7.1 module for Unit 1.0 on Gentoo Linux

2018-04-13 Thread Ralph Seichter
On 13.04.2018 14:49, Igor Sysoev wrote: >> $ ./configure php --config=/usr/lib64/php7.1/bin/php-config >> configuring PHP module >> checking for PHP ... found >> + PHP SAPI: [embed cli fpm apache2handler] >> checking for PHP embed SAPI ... not found > > Could you show the last lines from

Re: Perl Inline C code inside nginx Perl module

2018-04-13 Thread Maxim Dounin
Hello! On Fri, Apr 13, 2018 at 02:40:17AM +0200, Ondrej Jombik wrote: > We have some proprietary code in C language, which we cannot convert > into Perl. We would like to use this C code in Perl nginx module. Code > runs well under Perl's Inline C. > > However when I try to run Inline C code in

Re: Trouble configuring PHP 7.1 module for Unit 1.0 on Gentoo Linux

2018-04-13 Thread Ralph Seichter
On 13.04.18 12:52, Igor Sysoev wrote: > PHP package was built without embed SAPI support. > Otherwise it shows something like this: > + PHP SAPI: [cli fpm embed apache2handler] Thanks, Igor. I have rebuilt PHP 7.1 with the following USE flags: # /etc/portage/package.use/php dev-lang/php

Re: Trouble configuring PHP 7.1 module for Unit 1.0 on Gentoo Linux

2018-04-13 Thread Igor Sysoev
> On 13 Apr 2018, at 13:14, Ralph Seichter wrote: > > Congratulations to the whole team for reaching the release 1.0 milestone! > > I'm trying to build Unit on Gentoo Linux, and while module configs for > Python and Perl work as expected, I'm struggling with the PHP

Trouble configuring PHP 7.1 module for Unit 1.0 on Gentoo Linux

2018-04-13 Thread Ralph Seichter
Congratulations to the whole team for reaching the release 1.0 milestone! I'm trying to build Unit on Gentoo Linux, and while module configs for Python and Perl work as expected, I'm struggling with the PHP module: $ ./configure php --config=/usr/lib64/php7.1/bin/php-config configuring PHP