proxy apache
This commit is contained in:
parent
787caba2ec
commit
2c9184739e
|
@ -17,4 +17,26 @@ title: Howto Netdata
|
||||||
|
|
||||||
## Accès
|
## 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]
|
||||||
|
~~~
|
Loading…
Reference in a new issue