Re: ssl setup please

2019-09-27 Thread lists
What shows up in the log files? Do you really need to use Cloudflare? Have you been DDoSed? I view Cloudflare as a man in the middle. I've been using Let's Encrypt for about a year with no drama.   Original Message   From: nginx-fo...@forum.nginx.org Sent: September 27, 2019 2:

ssl setup please

2019-09-27 Thread kenny2
Hello, I'm old and have been trying for years (no exaggeration) to get full ssl to work using cloudflare. The problem appears to be in the nginx setup somewhere (or maybe in the linux system which I may or may not have altered throughout the past years). When I choose to go "full ssl" my server

Re: understanding ngx_str_t structure

2019-09-27 Thread astre
ok thanks, then probably write to syslog using syslog API's and it seems nginx already supports syslog. Will that work? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,285729,285737#msg-285737 ___ nginx mailing list nginx@nginx.org http://mai

Re: understanding ngx_str_t structure

2019-09-27 Thread Roman Arutyunyan
On Fri, Sep 27, 2019 at 07:17:59AM -0400, astre wrote: > Right, actually the question is when I use std::cout nothing gets printed in > error_log even when it is set to debug. Logging in nginx is more complicated than just writing to fd #1. If you want to log a message to nginx error log, you sho

Re: understanding ngx_str_t structure

2019-09-27 Thread astre
Right, actually the question is when I use std::cout nothing gets printed in error_log even when it is set to debug. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,285729,285733#msg-285733 ___ nginx mailing list nginx@nginx.org http://mailma

Re: understanding ngx_str_t structure

2019-09-27 Thread Roman Arutyunyan
On Fri, Sep 27, 2019 at 06:51:12AM -0400, astre wrote: > Thanks Roman, it is working. Is there a way to directly print using > std::cout instead of ngx_log_* functions ? > P.S: I'm writing module in C++. You can use string length in the 'len' field to limit the number of characters printed. There

Re: understanding ngx_str_t structure

2019-09-27 Thread astre
Thanks Roman, it is working. Is there a way to directly print using std::cout instead of ngx_log_* functions ? P.S: I'm writing module in C++. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,285729,285731#msg-285731 ___ nginx mailing list ngi

Re: understanding ngx_str_t structure

2019-09-27 Thread Roman Arutyunyan
Hi, On Fri, Sep 27, 2019 at 05:44:09AM -0400, astre wrote: > Hi, > > I trying to print the requested URL path. For that I came across the "uri" > member which is of type ngx_str_t) under ngx_http_request_t structure. When > I print the "uri" using ngx_log_debug1 (ngx_log_debug1(NGX_LOG_DEBUG_HTTP

understanding ngx_str_t structure

2019-09-27 Thread astre
Hi, I trying to print the requested URL path. For that I came across the "uri" member which is of type ngx_str_t) under ngx_http_request_t structure. When I print the "uri" using ngx_log_debug1 (ngx_log_debug1(NGX_LOG_DEBUG_HTTP, log, 0, "%s", r->uri.data)) I see some extra data printed. For eg.

Re: Empty error and access log

2019-09-27 Thread Francis Daly
On Fri, Sep 27, 2019 at 01:36:55AM -0400, krishna wrote: Hi there, I do not have the answer for you. But... > Figured out that, nginx.pid file doesn't have the correct PID value(it > contains 1) - which could be valid since nginx is running inside docker > container and we are setting up the lo