Fix Pihole web interface after installing Nextcloud AIO

Hi. I have installed Pihole and set it up and everything worked. After i installed Nextcloud AIO on the same Raspberry Pi web interface isn’t loading anymore. I get secure connection errors. I am using Raspberry Pi OS and installed Nextcloud AIO with Docker.

Likely, the webserver within the Nextcloud container is using the same port as Pi-hole's webserver.

Try mapping that container's port to a different port of your host.

Could i change Pihole port instead? It would probably be easier.

Yes.

If this is a recent Pi-hole version (v5.15+), you just need to change the port in /etc/lighttpd/lighttpd.conf.

Find the line containing server.port = 80 and replace with the desired port.
Example:

server.port = 8080

Save the file and restart lighttpd:

service lighttpd restart
1 Like

Changing port mappings in Docker is quite easy, e.g. you'd just need to change -p 80:80 to -p 8081:80 in your docker run script, or change the equivalent lines in your docker-compose ports section.

This method would apply to any container, including a Pi-hole one, as long as its not using Docker's host network driver.
If you would use a Pi-hole container in that mode, you could set its WEB_PORT variable instead.

Changed it to 8081. I will try opening the web page now.

Thanks! It works now.

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