We need to configure httpd to listen on port 80 which does a reverse proxy to localhost on 5601.
Make sure kibana is listening only on internal port before this settings are done .
ServerAdmin devops@learnadmin.com
ServerName kibana.learnadmin.com
DocumentRoot /var/www/auth
AuthType Basic
AuthName "Authentication Required"
AuthUserFile "/var/www/auth/htpasswd"
Require valid-user
ProxyPass / http://localhost:5601/
ProxyPassReverse / http://localhost:5601/
Use below command to create a htpasswd file and enable authentication
htpasswd -c /var/www/auth/htpasswd devops