Trace: nginx

Autentikasi htpasswd di nginx, tambahkan baris berikut

auth_basic "Restricted Access";                                
        auth_basic_user_file /usr/share/nginx/kibana/public/passwd;  
        

kemudian buat file htpassdw nya

sudo htpasswd -c /usr/share/nginx/kibana/public/passwd admin

restart nginx

  • Enable remote ip nginx (rpaf)

Tambahkan baris berikut di file /etc/nginx/conf.d/default.conf

set_real_ip_from  reverseproxy_ip;
real_ip_header    X-Forwarded-For;

tambahkan baris berikut pada file /etc/nginx/nginx.conf

log_format specialLog '$http_x_real_ip - $remote_user [$time_local] '
                        '"$request" $status $body_bytes_sent '
                        '"$http_referer" "$http_user_agent"';

Tambahin config berikut pada file /etc/nginx/sites-enabled/vhostconfig_nginx

        access_log syslog:server=10.13.254.172 specialLog;

restart nginx

 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki