Re: Proxy parameter to nginx service

2017-06-05 Thread juan_barbancho_rsi
Hi, I thought that the use of proxy_pass could be the opction to pass the proxy environment var, in the ngnix.conf file. This may be at general level of only at proxy_pass level. Could be a improve for the nginx server ? Saludos Juanp ADVERTENCIA LEGAL --- "Este men

how to install nginx_substitutions_filter in existing Nginx

2017-06-05 Thread David Woodstuck
I am a new Nginx user. I just install Nginx 1.12. I like to use nginx_substitutions_filter. I cannot figure out how to install nginx_substitutions_filter in previously existing Nginx. I found this url - http://www.newfreesoft.com/server/compiling_source_code_nginx_module_installation_subs_filter_1

Re: source rpms missing?

2017-06-05 Thread David Kewley
I just discovered that source rpms are also missing for the 1.13 mainline releases. David On Mon, Jun 5, 2017 at 6:00 PM, David Kewley wrote: > In http://nginx.org/packages/rhel/6/SRPMS/ I don't see > nginx-1.12.0-1.el6.ngx.src.rpm as expected. Similar for RHEL 5 and 7, and > for CentOS. This a

Re: Proxy parameter to nginx service

2017-06-05 Thread Zhang Chao
Hi I think it is tough by nguni itself, maybe you can use the ngx_lua, save the environment to Nginx variable, and use them in proxy_pass. On 5 June 2017 at 22:17:05, juan_barbancho_...@cajarural.com ( juan_barbancho_...@cajarural.com) wrote: Hi Guys, I need to use nginx to made a proxy_pass t

source rpms missing?

2017-06-05 Thread David Kewley
In http://nginx.org/packages/rhel/6/SRPMS/ I don't see nginx-1.12.0-1.el6.ngx.src.rpm as expected. Similar for RHEL 5 and 7, and for CentOS. This appears just to affect this release not (most of) the previous releases. Could the srpms be posted? If I should take a different route to raise this iss

How to proxy

2017-06-05 Thread David Woodstuck
I have one proxy server(nginx) - such as nginx.mycom.com and three upstream servers - name1.mycom.com, name2.mycom.com name3.mycom.com for my one application. Contents from upstream servers have a lot of iframes which have different domains. I want to allow XSS for these different domains. I don't

back-reference from if() and rewrite?

2017-06-05 Thread ST
Hello, I need to translate following rule from apache to nginx: RewriteCond %{QUERY_STRING} id=([^&]*) [NC,OR] RewriteCond %{QUERY_STRING} daily=([^&]*) [NC] RewriteCond %{REQUEST_URI} !mobSpecCycle [NC] RewriteCond %{REQUEST_URI} !mobSpecTheme [NC] RewriteRule ^rss\/mobSpec([^\/]+)/?$ /rss/mobSp

Proxy parameter to nginx service

2017-06-05 Thread juan_barbancho_rsi
Hi Guys, I need to use nginx to made a proxy_pass to some url, but I need to pass some proxy param in order to do not get the connection " upstream timed out (110: Connection timed out) " Some people know how I could pass the proxy envirnoment to nginx software. export http_proxy=htt

Re: Redirect http:8080 to https:8443

2017-06-05 Thread ST
Thank you very much! This solved the issue! On Mon, 2017-06-05 at 15:16 +0200, bless...@jacekowski.org wrote: > On 06/05/17T16:01:17 +0300, ST wrote: > > If I clear cache it works sometimes... > > > On Mon, 2017-06-05 at 13:48 +0100, Miguel C wrote: > > > > > > $ curl -I http://127.0.0.1:8080 >

Re: Occasional successful upstreamed requests that don't get picked up

2017-06-05 Thread rcutter
Just to follow up on this post in case people find it in the future - we haven't found any evidence that there is an issue with NGINX or Kong. If folks experience this kind of issue, would recommend examining the network (to include tcpdumps, etc) to figure out what's really happening with dropped

Re: Redirect http:8080 to https:8443

2017-06-05 Thread blessjah
On 06/05/17T16:01:17 +0300, ST wrote: > If I clear cache it works sometimes... > On Mon, 2017-06-05 at 13:48 +0100, Miguel C wrote: > > > > $ curl -I http://127.0.0.1:8080 > > > > > > HTTP/1.1 301 Moved Permanently Browsers may choose to aggresively cache 301 Moved Permanently responses. 302 F

Re: Redirect http:8080 to https:8443

2017-06-05 Thread ST
Thank you for the fast response. curl shows correct output, like yours, however in Chromium/Firefox only http redirects to https while port remains the same - 8080, so I get the error: "This site can’t provide a secure connection" If I clear cache it works sometimes... On Mon, 2017-06-05 at 13:48

Re: Redirect http:8080 to https:8443

2017-06-05 Thread Miguel C
That should work, whats the output you get using curl or httpie. the same config works fine for me: $ curl -I http://127.0.0.1:8080 HTTP/1.1 301 Moved Permanently Server: nginx/1.10.0 (Ubuntu) Date: Mon, 05 Jun 2017 12:45:13 GMT Content-Type: text/html Content-Length: 194 Connection: keep-alive

Re: Redirect http:8080 to https:8443

2017-06-05 Thread Jim Ohlstein
On Mon, 2017-06-05 at 15:28 +0300, ST wrote: > Hello, > > I try to redirect http on port 8080 to https on port 8443 as follows, > but it doesn't seem to work. http redirects to https, but the port > remains the same - 8080. Why? > > Thank you! > > # redirect http to https > server { > listen

Redirect http:8080 to https:8443

2017-06-05 Thread ST
Hello, I try to redirect http on port 8080 to https on port 8443 as follows, but it doesn't seem to work. http redirects to https, but the port remains the same - 8080. Why? Thank you! # redirect http to https server { listen 8080; server_name n.example.com; return 301 https://$host: