I am reading through the official Grafana behind a reverse proxy documentation, but I still cannot get to see the result and I don't know why.
Here is what I did:
I added the following two type A
DNS records, which direct to my server and have TTL of 3600.
- www.grafana.mysite.com
- grafana.mysite.com
I created the following file /etc/nginx/sites-available/grafana.mysite.com
Inside, the file looks like so:
server {
listen 80;
root /usr/share/nginx/www;
index index.html index.htm;
location / {
proxy_pass http://localhost:3000/;
}
}
The I modified in /etc/grafana/grafana.ini
[server]
domain = grafana.mysite.com
After that tested nginx's syntax sudo nginx -t
and restarted the grafana server and the nginx server like so:
- sudo systemctl restart grafana-server
- sudo systemctl reload nginx
Yet when I go to either grafana.mysite.com
or www.grafana.mysite.com
I see the Welcome to nginx!
page only :/
Can someone help me fix this issue?