Re: Nginx with Java library

2019-05-23 Thread Patrick
On 2019-05-23 21:29, Jennie Jia wrote: > Here is my code to do the logic, but I checking the java library > provided by this nginx-clojure > https://github.com/nginx-clojure/nginx-clojure/tree/master/src/java/nginx/clojure/java. > I can not figure out how to get "cookie" header value from the ht

Re: Proxy Pass

2019-05-23 Thread Sathish Kumar
Hi All, I have now tried to use FQDN but still same issue. server 1 server_name abc.com; access_log /var/log/nginx/abc.access.log; error_log /var/log/nginx/abc.error.log warn; location /abc { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $p

Re: Proxy Pass

2019-05-23 Thread Sathish Kumar
Hi Team, Please ignore my previous email. Kindly check the below config and suggest me a solution. server 1 server_name abc.com; access_log /var/log/nginx/abc.access.log; error_log /var/log/nginx/abc.error.log warn; location /abc { proxy_set_header X-Real-IP $remote_addr;

Re: Proxy Pass

2019-05-23 Thread Sathish Kumar
Hi Team, I am already setting below headers. server 1 server_name abc.com; access_log /var/log/nginx/abc.access.log; error_log /var/log/nginx/abc.error.log warn; location /abc { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forw

Re: Proxy Pass

2019-05-23 Thread Sathish Kumar
Hi Rozitis, Thanks for your reply. On Thu, May 23, 2019, 10:58 PM Reinis Rozitis wrote: > > Instead of IP address, if we use FQDN with https, do we have to validate > the SSL certificate on Proxy_Pass?. > > By default the certificate validation is turned off (and nginx just uses > the ssl fo

RE: Nginx with Java library

2019-05-23 Thread Jennie Jia
I am following the example posted by https://github.com/nginx-clojure/nginx-clojure/blob/master/example-projects/c-module-integration-example/src/java/example/MyHandler.java. Here is my code to do the logic, but I checking the java library provided by this nginx-clojure https://github.com/ngi

Re: nginx proxy and Date header

2019-05-23 Thread Frank Liu
I understand your argument when nginx is normally used as a frontend server and "generation of the message" happens in nginx, but in this case, the document is about the nginx proxy module where nginx proxies the "message"

RE: Proxy Pass

2019-05-23 Thread Reinis Rozitis
> Instead of IP address, if we use FQDN with https, do we have to validate the > SSL certificate on Proxy_Pass?. By default the certificate validation is turned off (and nginx just uses the ssl for traffic encryption). If needed you can enable it with proxy_ssl_verify on; ( http://nginx.org/e

Proxy Pass

2019-05-23 Thread Sathish Kumar
Hi Team, Currently, we are using the below config to route the requests from one server to another backend server. Server1 location /abc { proxy_pass https://1.1.1.1/abc; } Server 2 (1.1.1.1) location /abc { proxy_pass http://127.0.0.1:/abc; } Instead of IP address, if we use FQDN with ht

Re: nginx proxy and Date header

2019-05-23 Thread Maxim Dounin
Hello! On Wed, May 22, 2019 at 10:30:57AM -0700, Frank Liu wrote: > Is there a reason why by default nginx doesn't pass the "Date" header from > upstream? > http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_hide_header > > https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html seem