PiHole & Vaultwarden port 80 conflict

Hi,

I have been using pihole for about 1 year with no problems. Last night i got vaultwarden setup on the same RPI using nginx for the reverse proxy, and nginx is stealing the port 80 from pihole. I can run either app alone, but not both at the same time. I was wondering if there is an easy way for a noob to make these 2 apps play nice together. I have pihole running in docker and nginx is just normal version on raspberry pi.

TIA
Dane

Seems like PiHole is using lighttpd (see Prerequisites - Pi-hole documentation) so you can either run that on a different port (this Guide is using Caddy as reverse proxy but you could theoretically also configure nginx to do the same) or disable lighttpd and use an nginx configuration like this.

I’d recommend looking/asking in the Pi-hole userspace for further support.

You are right, it is using lighttpd. i got into the config for it inside docker and changed it to listen on port 81. that fixed pihole, but broke nginx. I am thinking of running nginx in a docker container so I would have more control over the ports, but i dont know enough about docker to be able to get my revere proxy config into the container.

I posted docker-compose and nginx.conf on this other thread yesterday, which might give some hints:

Change the listen port there for nginx and should all work…(you can skip the duckdns parts)

I think it is all working except for the nginx conf file. I dont know to get it into the nginx container, so the reverse proxy isnt working. I decided to keep the duckdns parts so it will be easier to access from outside my network. Also for anyone else wanting to use this compose file, the spacing is off on the sections starting with line 16 and 29. Thanks for your help getting me this far.

Dane

On the docker host you can use the command for “docker cp” to copy a host file to the container.

nginx didnt work for me no matter what i tried. im going to try traefik or caddy and see if i have any better luck. thank you for trying