There is an information on AGH wiki on how to setup AGH using a sub path FAQ · AdguardTeam/AdGuardHome Wiki · GitHub
Basically, this describe it as well on AGH GitHub How to set reverse proxy for AdGuardHome Dashboard with nginx correctly? · Issue #4266 · AdguardTeam/AdGuardHome · GitHub
- create a config file
nano /etc/nginx/sites-dietpi/dietpi-aghome.conf
- add following
location /aghome/ {
proxy_pass http://127.0.01:8083/;
proxy_redirect / /aghome/;
proxy_cookie_path / /aghome/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Protocol $scheme;
#proxy_set_header X-Url-Scheme $scheme;
}
- restart service
systemctl restart nginx.service
- AGH should be reachabe on
https://dietpi.example.com/aghome/
now