Openvpn / pihole - change administration link
from UncleStewart@sh.itjust.works to selfhosted@lemmy.world on 24 Apr 14:43
https://sh.itjust.works/post/18299756

Hi So, I’ve had openvpn running on a raspberry pi for over a year with no problems. After some braining I concluded that I also should run pihole on the same raspberry pi. After all it’s “just a DNS resolver”. Both are running great together on the raspberry. But, I can’t administer openvpn because they both use “<IP of raspberry>/admin”, and because I installed pihole last, well I can now only administer pihole. So, how do I make one of them use something like “<ip of raspberry>/admin2” ?

Thanks

#selfhosted

threaded - newest

pe1uca@lemmy.pe1uca.dev on 24 Apr 15:08 next collapse

I think you have two options:

  1. Use a reverse proxy so you can even have two different domains for each instead of a path. The configuration for this would change depending on your reverse proxy.
  2. You can change the config of your pihole in /etc/lighttpd/conf-available/15-pihole-admin.conf. In there you can see what’s the base url to be used and other redirects it has. You just need to remember to check this file each time there’s an update, since it warns you it can be overwritten by that process.
UncleStewart@sh.itjust.works on 24 Apr 23:06 collapse

Thanks for replying. So, if I go for option 2, I should just change all instances with “admin” to “admin2”?

sleepybear@lemmy.myspamtrap.com on 25 Apr 12:27 collapse

One way is to run Pi-hole’s admin interface on a different port. That’s configured in:

/etc/lighttpd/external.conf

Set:

server.port := 8000

Then your URL is IP:8000/admin

UncleStewart@sh.itjust.works on 25 Apr 14:35 collapse

Thanks for answering. Will try this later tonight.

Edit: No file with that name there. Only a “lighttpd.conf”