Re: Prevent reverse proxy from sending range headers to source server

2016-02-04 Thread Robert Paprocki
>From the docs ( http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_set_header): If the value of a header field is an empty string then this field will not be passed to a proxied server: proxy_set_header Range ""; proxy_ignore_header is meant to handle response headers, not request

Prevent reverse proxy from sending range headers to source server

2016-02-04 Thread FSC
Hello everyone! I set up my reverse proxy to cache files stored at AWS S3. I want to minimize the amount of traffic generated at AWS. Many of the files are mp4s. Clients make GET requests with the range set. A video player may get multiple chunks of a file at once. How can I have the proxy serve

eventfd() failed (38: Function not implemented)

2016-02-04 Thread sirwiz
I try to run Nginx, but i have error: eventfd() failed (38: Function not implemented) I found this patch (https://forum.nginx.org/read.php?29,258676,258685#REPLY) to 1.9.0, i cannot do diff so i do it manualy. So i found ngx_epoll_init(ngx_cycle_t And now my file: static ngx_int_t ngx_epoll_i

Re: compiling nginx from sources and including xslt sources

2016-02-04 Thread orglee
Oh ok I'm dumb. :P Can I somehow specify those library paths to? I really would like to avoid compiling them into directory structure of my current system. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,264346,264359#msg-264359 ___ nginx ma

Re: compiling nginx from sources and including xslt sources

2016-02-04 Thread Maxim Dounin
Hello! On Thu, Feb 04, 2016 at 12:55:43PM -0500, orglee wrote: > I'm still getting: > > (...) > checking for libxslt ... not found > checking for libxslt in /usr/local/ ... not found > checking for libxslt in /usr/pkg/ ... not found > checking for libxslt in /opt/local/ ... not found > > ./conf

Re: compiling nginx from sources and including xslt sources

2016-02-04 Thread orglee
I'm still getting: (...) checking for libxslt ... not found checking for libxslt in /usr/local/ ... not found checking for libxslt in /usr/pkg/ ... not found checking for libxslt in /opt/local/ ... not found ./configure: error: the HTTP XSLT module requires the libxml2/libxslt libraries. You can

Re: compiling nginx from sources and including xslt sources

2016-02-04 Thread Maxim Dounin
Hello! On Thu, Feb 04, 2016 at 10:36:38AM -0500, orglee wrote: > Hi, > > I'm trying to compile nginx from source but despite providing ./configure > with --with-ld-opt I can't seem to see it. > > This is the complete command I'm trying to use. [...] > --with-ld-opt="-I/opt/src/nginx/libxml-2.

Re: nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)

2016-02-04 Thread smsmaddy1981
Thanks Andrew, Daniel... I am able to restart NGinx as gvp user now with the suggested command: sudo ./nginx sudo ./nginx -s stop sudo ./nginx -s reload Thanks for supporting here. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,264319,264347#msg-264347 _

compiling nginx from sources and including xslt sources

2016-02-04 Thread orglee
Hi, I'm trying to compile nginx from source but despite providing ./configure with --with-ld-opt I can't seem to see it. This is the complete command I'm trying to use. ./configure --prefix=/opt/nginx-1.9.9/conf --sbin-path=/opt/nginx-1.9.9/sbin/nginx --conf-path=/opt/nginx-1.9.9/conf/nginx.conf

Re: nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)

2016-02-04 Thread Daniƫl Mostertman
Hi Maddy, Op 4-2-2016 om 13:31 schreef smsmaddy1981: > [gvp@alt-cti03 (TEST1) /var/gvp/Nginx/nginx-1.8.0/sbin] ./nginx > nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied) You edited the sudoers file to allow gvp to run programs as root. In order to do so, you have to put "sudo" in

Re: nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)

2016-02-04 Thread Andrew Hutchings
Hi Maddy, In Linux (and most other Unix based systems) ports below 1024 need to be opened using the root user. So you need to start NGINX as root which will open the port and then drop down to an unprivileged user for the port. Kind Regards Andrew On 04/02/16 12:31, smsmaddy1981 wrote: Hi L

Re: nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)

2016-02-04 Thread smsmaddy1981
Hi Lukas, as below: [gvp@alt-cti03 (TEST1) /var/gvp/Nginx/nginx-1.8.0/sbin] ./nginx nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied) Best regards, Maddy Posted at Nginx Forum: https://forum.nginx.org/read.php?2,264319,264338#msg-264338 __