
同じ Azure VM 上で Grafana と Jenkins を実行しています。Jenkins の場合: http://localhost:8080 Grafana の場合: http://localhost:3000
nginx をこのように設定しようと思いました。customdomain.com/grafana は http://localhost:3000 にアクセスする必要があります。customdomain.com/jenkins または customdomain.com は http://localhost:8080 にアクセスする必要があります。
しかし、/grafana でも Jenkins のみに送信されます。
それをどうやって修正するのでしょうか?
nginx でのマッピング用のデフォルトの設定ファイル。
location /grafana {
include /etc/nginx/proxy_params;
proxy_pass http://localhost:3000;
proxy_read_timeout 60s;
# Fix the "It appears that your reverse proxy set up is broken" error.
# Make sure the domain name is correct
#proxy_redirect http://localhost:3000 https://customdomain.com;
}
location / {
include /etc/nginx/proxy_params;
proxy_pass http://localhost:8080;
proxy_read_timeout 60s;
# Fix the "It appears that your reverse proxy set up is broken" error.
# Make sure the domain name is correct
proxy_redirect http://localhost:8080 https://customdomain.com;
}