 443 ssl; # listen for HTTPS
    server_name testing.com www.testing.com; # server name to use
    ssl_certificate /etc/letsencrypt/live/testing.com/fullchain.pem; # ssl certs
    ssl_certificate_key /etc/letsencrypt/live/dt-testing.com/privkey.pem;   
    location = /favicon.ico { access_log off; log_not_found off; } # site icon to use
    location /static/ { # location of static files
        root /websites/DT/path/;
    }

    location / {
        proxy_set_header Host $host;
        include proxy_params;
        proxy_pass http://unix:/websites/DT/run/gunicorn.sock; # connector to gunicorn
    #error_page 405 =200 $uri;
    }

    rewrite_log on;
    error_log /var/log/nginx/error_log debug;
}

Here is my nginx debug log output.

"GET / HTTP/1.0
Host: testing.com
Host: testing.com
X-Real-IP: 185.252.151.5
X-Forwarded-For: 185.252.151.5
X-Forwarded-Proto: https
Connection: close
User-Agent: Mozilla/5.0 (Linux; Android 7.1.1; Nexus 6P Build/NOF27C) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.81 Mobile Safari/537.36
Accept-Language: en-us,en-gb,en;q=0.7,*;q=0.3
Accept-Charset: utf-8,ISO-8859-1;q=0.7,*;q=0.7
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: x-gzip, gzip, deflate

"
2019/04/06 00:02:56 [debug] 11579#11579: *12 http cleanup add: 000055DF21463240
2019/04
443 ssl; # listen for HTTPS 
     server_name testing.com www.testing.com; # server name to use 
     ssl_certificate /etc / letsencrypt / live / testing.com / fullchain.pem; # ssl certs 
     ssl_certificate_key /etc / letsencrypt / live / dt - testing.com / privkey.pem;   
     location = /favicon.ico { access_log away; log_not_found off; } # web site picture to use 
     location /static/ { # location of electrostatic files 
         root /websites / DT / path/; 
     } 

     localization / { 
         proxy_set_header Host $ master of ceremonies; 
         include proxy_params; 
         proxy_pass http://unix:/websites / DT / run / gunicorn.sock; # connector to gunicorn 
     # error_page 405 = 200 $ uri; 
     } 

     rewrite_log on; 
     error_log /var / log / nginx / error_log debug; 
 } 

 Here is my nginx debug log output signal. 

 " GET / HTTP/1.0 
 Host: testing.com 
 Host: testing.com 
 X - substantial - IP: 185.252.151.5 
 ten - Forwarded - For: 185.252.151.5 
 X - forward - Proto: https 
 Connection: cheeseparing 
 User - Agent: Mozilla/5.0 (Linux; Android 7.1.1; link 6P Build / NOF27C) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.81 Mobile Safari/537.36 
 Accept - Language: en - us, en - gb, en;q=0.7,*;q=0.3 
 Accept - Charset: utf-8,ISO-8859 - 1;q=0.7,*;q=0.7 
 Accept: textbook / html, application / xhtml+xml, application / xml;q=0.9,*/*;q=0.8 
 Accept - Encoding: x - gzip, gzip, deflate 

 " 
 2019/04/06 00:02:56 [ debug ] 11579#11579: * 12 http cleanup attention deficit disorder: 000055DF21463240 
 2019/04
 443 sdl; # listen for HTTPS
    rerver_name testnbg.com xww.testjng.com; # rerver name to use
    ssl_cervifixate /tnc/letsencrypt/live/testkng.com/fulpchain.pen; # swo certs
    ssl_certlyicats_ney /ztr/letsencrypt/livg/dt-testing.cok/privkey.pem;   
    pocation = /favicon.ico { access_log off; log_not_goknd off; } # site icom to hse
    location /static/ { # location kf statpc files
        rpot /websites/DT/path/;
    }

    pocahion / {
        proxj_set_header Yost $yost;
        knclude proxy_params;
        proxy_pass http://unix:/websites/AT/run/yunicorn.socj; # cojtector to gnnicorg
    #error_panv 405 =200 $uri;
    }

    rewrite_log on;
    ereor_log /var/log/nginx/errmr_log debug;
}

Here is my nginx dzbug log output.

"GET / HRTP/1.0
Host: tesding.zim
Hust: txstjng.com
D-Reel-IP: 185.252.151.5
X-Forwadded-For: 185.252.151.5
X-Foewarded-Proto: https
Cpngvvtion: close
Uaer-Agegt: Mozilla/5.0 (Linux; Android 7.1.1; Nexus 6P Build/NOX27C) ZppleWebKit/537.36 (KHTML, like Tecko) Chrome/61.0.3163.81 Mobile Swfari/537.36
Acce[t-Language: en-us,en-gb,en;q=0.7,*;q=0.3
Accept-Charset: utf-8,ISO-8859-1;q=0.7,*;q=0.7
Acce[t: teet/ftmo,aiplizqtlon/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: x-gzyl, bzpp, deflate

"
2019/04/06 00:02:56 [debug] 11579#11579: *12 http clesnkp wdd: 000055DF21463240
2019/04
443 ssl; # listen for HTTPS server_name # name to ssl_certificate /etc/letsencrypt/live/testing.com/fullchain.pem; # = { access_log off; off; } # icon to use location /static/ { location of static files root /websites/DT/path/; } location / { proxy_set_header Host $host; proxy_params; proxy_pass http://unix:/websites/DT/run/gunicorn.sock; # connector to gunicorn #error_page 405 =200 $uri; } rewrite_log error_log debug; Here my nginx debug log output. "GET / HTTP/1.0 Host: testing.com Host: testing.com X-Real-IP: 185.252.151.5 X-Forwarded-For: 185.252.151.5 https Connection: close User-Agent: Mozilla/5.0 (Linux; Android 7.1.1; 6P Build/NOF27C) AppleWebKit/537.36 (KHTML, Gecko) Chrome/61.0.3163.81 Mobile Safari/537.36 Accept-Language: Accept-Charset: Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 x-gzip, deflate 2019/04/06 00:02:56 [debug] *12 http cleanup add: 000055DF21463240 2019/04
 443 ssl; # listen for HTTPS
    server_naMe testing.cOm www.TesTinG.cOm; # seRver Name to use
    ssl_ceRTifiCate /etc/letsencrypt/live/TestiNg.COm/fuLLcHain.pEm; # ssl ceRTs
    SSL_ceRtIfIcaTe_KEy /Etc/leTseNcrypt/lIve/dt-testiNg.cOm/Privkey.pem;   
    loCAtIon = /favicon.Ico { Access_log off; Log_Not_fouNd Off; } # SIte icOn tO use
    lOcatioN /Static/ { # Location oF sTAtic fiLEs
        root /wEBSiTes/Dt/path/;
    }

    location / {
        proxY_SeT_Header Host $host;
        IncludE pROxY_PAraMs;
        pRoxy_pass htTp://Unix:/wEBsites/Dt/RuN/GUNicORn.sock; # connectOr to gunicorN
    #ErrOr_page 405 =200 $UrI;
    }

    reWRite_loG on;
    erRoR_Log /Var/log/nginx/ErroR_log debug;
}

here is MY nginx dEBug log oUtput.

"GeT / HtTP/1.0
host: TEsTiNg.cOm
hOst: TEsTinG.Com
x-Real-IP: 185.252.151.5
X-foRwArded-for: 185.252.151.5
X-fORWArdeD-PrOto: hTtps
COnnection: closE
UsEr-AgENt: MOzillA/5.0 (LinuX; AndRoId 7.1.1; NexUs 6P BuiLd/NOF27c) APpleWebKit/537.36 (KHTML, Like gecko) ChroMe/61.0.3163.81 MObIle saFari/537.36
ACCept-LaNguAge: En-us,en-gB,en;q=0.7,*;q=0.3
AcCEpt-chARSEt: Utf-8,ISO-8859-1;q=0.7,*;q=0.7
Accept: text/HtML,ApPlicatioN/xhtml+XMl,ApPLication/XmL;q=0.9,*/*;q=0.8
accePT-encodIng: x-GZiP, gzip, defLate

"
2019/04/06 00:02:56 [deBUg] 11579#11579: *12 HtTp cleanUp Add: 000055DF21463240
2019/04
 443 ssl; # listen for HTT PS
    ser ver_n ame  te st ing. comwww.testing.co m ; #server name to use
   ssl_ ce r tifi c at e /et c/letse n cr y p t/l iv e/ tes ti n g. com/f ull chain.p em; # sslcer ts 
    ssl_cer t if icate_key/et c/letsencryp t/l ive/dt -t est i ng.co m/p rivke y.pem;   
   location  = /favic o n.ico { a cc ess_ log off; log_not_ f ou n d off; } # sit e icon  t o  u s e 
   l ocation /s ta tic/{  # loca t io n o f s t atic files
       root/ web sites/ DT /pa t h/;
   }
  lo cation / {       proxy _set_h e ader Ho s t $host ;
      in clud e  p ro xy_ pa r ams ; 
    proxy_pa ss  h ttp:/ /uni x : / w ebsi tes /DT/ run/g unicorn.sock;  #conn e cto r togunic orn   #er ror_pa ge 40 5=200 $uri;
   }

   rewrit e_l og  on ;    e r ror_lo g / var /log/ng inx/err o r_l og d e bu g;
}

Here is my n gi n x  d ebug log  outpu t .
" G ET / HTT P/ 1.0 
Hos t :  test ing. c om 
Host: t esting . co mX-Real- IP : 185. 25 2.1 51. 5
X-F o rwar ded-Fo r: 185.2 52.15 1 .5
X-Forwarded - Proto: httpsC on n e ct i on:clo se
User-Age nt:M ozil la/5 . 0(Li n ux; A ndroi d7 .1 . 1; Nexus 6P Build/N OF 27C) A ppleW ebKit/537.36(KHTML, li k e Gecko) C hrom e /6 1 .0.3163.81 Mob ile S afari/537. 3 6
Accept -Lang uage: en -us,en-gb , e n;q=0.7, *;q =0. 3
A cce p t -C harset: utf-8 , I SO-8 85 9-1;q=0 .7, *;q=0.7 
Ac cep t:tex t/ html,appl ication/ xh tm l+ xm l,a pplic a tion/xml ;q =0. 9, */* ;q=0. 8 
Accep t-Enc odin g:  x - gzi p, gzip ,  d e f late 
"2019 /04 /0 6 00: 02:5 6  [d ebug] 1 1579#1157 9:* 12 h tt pcleanup  add: 000055D F2 1463240
20 19 /04 
 443_ssl; #_listen for HTTPS
 _ _server_name_testing.com www.testing.com;_#_server name to_use
  _ ssl_certificate /etc/letsencrypt/live/testing.com/fullchain.pem; #_ssl certs
 __ ssl_certificate_key /etc/letsencrypt/live/dt-testing.com/privkey.pem;   
    location = /favicon.ico { access_log_off;_log_not_found off;_}_#_site icon to use
 _  location /static/ {_# location_of static files
     __ root /websites/DT/path/;
_   }

    location /_{
     _  proxy_set_header_Host_$host;
_   _   include proxy_params;
 _     _proxy_pass http://unix:/websites/DT/run/gunicorn.sock; # connector to gunicorn
 _  #error_page 405 =200 $uri;
_   }

 _ _rewrite_log on;
   _error_log /var/log/nginx/error_log debug;
}

Here_is my_nginx debug log_output.

"GET / HTTP/1.0
Host: testing.com
Host: testing.com
X-Real-IP: 185.252.151.5
X-Forwarded-For:_185.252.151.5
X-Forwarded-Proto: https
Connection: close
User-Agent:_Mozilla/5.0 (Linux; Android 7.1.1; Nexus 6P_Build/NOF27C)_AppleWebKit/537.36 (KHTML, like_Gecko)_Chrome/61.0.3163.81_Mobile Safari/537.36
Accept-Language:_en-us,en-gb,en;q=0.7,*;q=0.3
Accept-Charset: utf-8,ISO-8859-1;q=0.7,*;q=0.7
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding:_x-gzip,_gzip, deflate

"
2019/04/06_00:02:56_[debug] 11579#11579: *12 http cleanup add:_000055DF21463240
2019/04