22
0
Fork 0

proxy apache

This commit is contained in:
Benoît S. 2020-07-23 05:43:58 +02:00
parent 787caba2ec
commit 2c9184739e
1 changed files with 23 additions and 1 deletions

View File

@ -17,4 +17,26 @@ title: Howto Netdata
## Accès
L'accès par défaut se fait sur le port 19999.
L'accès par défaut se fait sur le port 19999. Ou bien on peut configurer un reverse proxy Apache ou Nginx.
### Accès via Apache
~~~
RewriteEngine On
ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
Require all granted
</Proxy>
# Local Netdata server accessed with '/netdata/', at localhost:19999
ProxyPass "/netdata/" "http://localhost:19999/" connectiontimeout=5 timeout=30 keepalive=on
ProxyPassReverse "/netdata/" "http://localhost:19999/"
# if the user did not give the trailing /, add it
# for HTTP (if the virtualhost is HTTP, use this)
RewriteRule ^/netdata$ http://%{HTTP_HOST}/netdata/ [L,R=301]
# for HTTPS (if the virtualhost is HTTPS, use this)
#RewriteRule ^/netdata$ https://%{HTTP_HOST}/netdata/ [L,R=301]
~~~