How do I change pi hole's URL?
I want to use the
/admin path for something else but couldn't find a way to change Pi-Hole's path to something else.
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It only takes a minute to sign up.Sign up to join this community
There are many ways that you could do this, but the easiest is to change the port that pi-hole is using.
/etc/lighttpd.conf and change the line that says
server.port = 80 to use some other port number such as
8080. Then restart LigHTTPD using
sudo service lighttpd restart, and you will be able to access the pi-hole administrative interface at http://10.0.0.20:8080/admin.
Note that if you ever re-run the pi-hole installer, it will reset this value back to the original port 80.
This is another way to change its port and the benefit is that it won't get reset any time you reconfigure pi-hole or update it.
server.port := 8000 or your desired port to
/etc/lighttpd/external.conf then restart. Then restart lighttpd using
sudo systemctl restart lighttpd, and you will be able to access the pi-hole administrative interface at http://localhost:8000/admin.
For whatever reason putting the server.port in external.conf results in an error on restart. Changing it in lighttpd.conf works fine.
To get rid of the /admin in the URL one could create a link in the /html folder. ln admin pi-hole -s
Together with the port change it could look like this http://op:88/pi-hole/ (well the /admin path would still be there, it would just be for cosmetics)