I have installed Pi-Hole on my Ubuntu 18.04.4 box running apache 2.4.29. The admin dashboard is working when I navigate to the server's IP address, however I would like to use a vHost to point a subdomain to it.
The vHost I have has been reproduced below. The admin dashboard is appearing but none of the links/graphs embedded within it are. I assume this is because the vHost file is not handling relative urls/paths correctly.
Could someone help explain what changes I need to make to the vHost file in order for relative paths/urls to work in this case? The Pi-Hole admin folder is at /var/www/html/admin
on my server.
Thanks!
<VirtualHost *:80>
ServerName **PREFERRED URL NAME**
ServerAlias **PREFERRED WEBSITE NAME**
ProxyPass http://**SERVER IP**/admin/
ProxyPassReverse http://**SERVER IP**/admin/
</VirtualHost>