Hi,
I configured proxy authentication but in chrome still get this error: ERR_UNEXPECTED_PROXY_AUTH and in IE and Firefox i got a webpage with inside “Proxy Authentication Error”.
Grafana config is:
[auth.proxy]
enabled = true
header_name = X-WEBAUTH-USER
header_property = username
auto_sign_up = true
whitelist = 192.168.1.75
;ldap_sync_ttl = 60
;whitelist = 192.168.1.1, 192.168.2.1
Apache config is:
<VirtualHost *:80>
ServerName grafana.marcolino7.myds.me
<Proxy *>
AuthType Basic
AuthName GrafanaAuthProxy
AuthBasicProvider file
AuthUserFile /etc/apache2/sites-enabled/.htpasswd
Require valid-user
RewriteEngine On
RewriteRule .* - [E=PROXY_USER:%{LA-U:REMOTE_USER},NS]
RequestHeader set X-WEBAUTH-USER "%{PROXY_USER}e"
</Proxy>
RequestHeader unset Authorization
ProxyRequests Off
ProxyPass / http://192.168.1.75:3000/
ProxyPassReverse / http://192.168.1.75:3000/
ErrorLog /var/log/apache2/vhost80-error.log
CustomLog /var/log/apache2/vhost80-access.log combined
Grafana with work as expected if accessed direclty, or trough a Reverse proxy without authentication
Any help would be appreciated.
Marco