Suggestion for own port for Pi-hole and changing the admin folder to another location

I'm suggesting that Pi-hole be able to use its own port, and not the one currently on 80 and 443, and if a web server (Apache, Nginx, Lighttpd) is installed, it conflicts. For example, Webmin uses port 10000, Usermin uses port 20000, and Cockpit uses port 9090. These three panels incorporate their own server, just as Pi-hole currently does, since previously it had to be linked to a web page server, such as Lighttpd.
I'm also suggesting that, by default, the admin folder, when you install Pi-hole, not be stored in /var/www/html, but in a different path, so it doesn't occupy the Apache path.
Just two suggestions that I think make sense, since Pi-hole now has its own standalone server and doesn't depend on any other service as it did before.
Best regards and thanks.

Agree on that!

You can do that with Pi-hole. In the UI it's in settings -> expert -> all settings -> webserver and api, webserver.port

It is the default, but is also easily changed:

webserver.paths.webroot, and webserver.paths.webhome in the same tab as above.

They can also be set directly in /etc/pihole.toml.

1 Like

One (Noob-ish) question here:
Will Pi-Hole automagically manage folder/file permissions when moved to another location?

It will not.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.