RE: Nginx with Java library

2019-05-24 Thread Jennie Jia
Actually by dumping a few dependency jar inside of the jar folder of the ngnix-clojure-0.4.5. (jvm_classpath "jars/*";). It seems working.. but I am not sure if it is the correct or best way to do it -Original Message- From: nginx On Behalf Of Jennie Jia Sent: Friday, May 24, 2019 3:3

Re: Proxy Pass

2019-05-24 Thread Francis Daly
On Fri, May 24, 2019 at 08:54:23PM +0800, Sathish Kumar wrote: Hi there, > Server1: 2.2.2.2 - abc.domain.com, Port 443 > > Server2: 1.1.1.1 - def.domain.com and def.abc.com - Port 443 That suggests that your back-end server is running more than one https server on the same IP:port. Does it use

Re: Reading large request body using ngx_http_read_client_request_body

2019-05-24 Thread NginxNewbee
Hey Maxim, Should other nginx methods like ngx_http_output_filter and ngx_http_finalize_request be used on main thread as well ? I am using ngx_http_finalize_request in the thread's completion handler already. However I was wondering if our business logic (running on thread) needs to send response

RE: Nginx with Java library

2019-05-24 Thread Jennie Jia
Thank you, Patrick! I am trying figure out how to port the ONAP crypto config to the nginx-clojure app. But no luck so far... Here is what did: 1) I added the dependency in the pom.xml here https://github.com/nginx-clojure/nginx-clojure/blob/master/example-projects/c-module-integration-

Re: Max_fails for proxy_pass without an upstream block

2019-05-24 Thread Sergey Kandaurov
> On 3 May 2019, at 02:12, jarstewa wrote: > > Is there an equivalent of max_fails > (http://nginx.org/en/docs/http/ngx_http_upstream_module.html#max_fails) if > I'm using proxy_pass without an upstream block? > Not that I'm aware of. -- Sergey Kandaurov ___

Re: Proxy Pass

2019-05-24 Thread Sathish Kumar
Hi Francis, All the requests are processing successfully but its logging to incorrect access log. Server1: 2.2.2.2 - abc.domain.com, Port 443 Server2: 1.1.1.1 - def.domain.com and def.abc.com - Port 443 On Fri, May 24, 2019, 8:44 PM Francis Daly wrote: > On Fri, May 24, 2019 at 09:23:44AM +

Re: Proxy Pass

2019-05-24 Thread Francis Daly
On Fri, May 24, 2019 at 09:23:44AM +0800, Sathish Kumar wrote: Hi there, I am not certain what server_name values correspond to what IP addresses or ports used; and I am not certain what nginx servers use ssl and what ones don't. If you don't get an answer to your question, perhaps it will be wo

Re: args and rewrite vars always empty

2019-05-24 Thread User via nginx
On 5/24/19 11:38 AM, Maxim Dounin wrote: > There is no special $0 variable in nginx, and the above > configuration is expected to produce: > > nginx: [emerg] unknown "0" variable > > error on start (just checked with 1.10.3 to be sure). Thanks! I found my mistake. I'm so stupid :) I generate my n

Re: args and rewrite vars always empty

2019-05-24 Thread Maxim Dounin
Hello! On Fri, May 24, 2019 at 10:43:35AM +, User via nginx wrote: > On 5/24/19 9:50 AM, Maxim Dounin wrote: > > The first line shows actual matching - regular expression itself > > and the string it matches, and the second one shows the result.  > > The above two lines were obtained with the

Re: args and rewrite vars always empty

2019-05-24 Thread User via nginx
On 5/24/19 9:50 AM, Maxim Dounin wrote: > The first line shows actual matching - regular expression itself > and the string it matches, and the second one shows the result.  > The above two lines were obtained with the following trivial > configuration: Yes, thanks. I clearly understand it all. I

Re: args and rewrite vars always empty

2019-05-24 Thread Maxim Dounin
Hello! On Fri, May 24, 2019 at 08:27:23AM +, User via nginx wrote: > Hello, > > I'm trying to make simple rewrite to work and found that $args and other > $1 vars from rewrite&try_files are always empty. > > nginx version: nginx/1.10.3 > > Server config: > >   location /product/ { >     r

Re: args and rewrite vars always empty

2019-05-24 Thread User via nginx
On 5/24/19 8:41 AM, Patrick wrote: > Use 'break' instead of 'last' as per > > https://nginx.org/en/docs/http/ngx_http_rewrite_module.html#rewrite Unfortunately, it did not help. A small addition. Only try_files lose $args, rewrite show args at error_logs with following request: domain.com/product

Re: args and rewrite vars always empty

2019-05-24 Thread Patrick
On 2019-05-24 08:27, User via nginx wrote: > I'm trying to make simple rewrite to work and found that $args and other > $1 vars from rewrite&try_files are always empty. > >   location /product/ { >     rewrite ^/product/(.*)/$ /$1.txt last; >   } Use 'break' instead of 'last' as per https://nginx

args and rewrite vars always empty

2019-05-24 Thread User via nginx
Hello, I'm trying to make simple rewrite to work and found that $args and other $1 vars from rewrite&try_files are always empty. nginx version: nginx/1.10.3 Server config:   location /product/ {     rewrite ^/product/(.*)/$ /$1.txt last;    #    try_files $uri/ /test.php?test=$uri; # tries, the